joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011330
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x50], edx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x100114f3
push ebx
push ebx
push str.FltMgr
push ebx
push str.FSFilter_Infrastructure
push edi
push 1
push ebx
push 2
push 0xf01ff
push str.K7AntiVirus_MiniFilter_Driver
push str.K7Sentry
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x100114ec
cmp dword [ebp - 0x50], 0
mov ebx, 1
je 0x100114e5
push 0
push str.SystemCurrentControlSetServicesK7Sentry
push 0x80000002
call fcn.10028ce0
mov esi, eax
test esi, esi
je 0x100114e2
push 0
push str.Config
push esi
call fcn.10028a50
push 0
push str.Instances
push esi
mov dword [ebp - 0x50], eax
call fcn.10028a50
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x100114df
push str.Inst1
push str.DefaultInstance
push edi
call fcn.10029180
push 0
push str.Inst1
push edi
call fcn.10028a50
mov edi, eax
test edi, edi
je 0x100114df
push str.321100
push str.Altitude
push edi
call fcn.10029180
push 0
push str.Flags
push edi
call fcn.10029150
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x10011440
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SystemCurrentControlSetServicesK7SentryConfig
push 0x80000002
call fcn.10028ce0
mov esi, eax
test esi, esi
je 0x100114df
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.1002b060
add esp, 0xc
mov dword [ebp - 0x44], 0x40
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100114b4
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100114b4
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call dword [0x10077548]
call edi
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
shrd ecx, eax, 0xa
push ecx
push str.PhysicalMemoryInKB
push esi
call fcn.10029150
push dword [ebp - 0x40]
push str.MemoryLoad
push esi
call fcn.10029150
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret
Function at 0x10014f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push 0x80000002
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x108], bl
call fcn.10028a20
mov edi, eax
test edi, edi
je 0x10014f88
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.PackageComponents
push edi
call fcn.10028f10
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x10014f88
cmp byte [ebp - 0x108], bl
je 0x10014f88
lea eax, [ebp - 0x108]
push 0x10081dac
push eax
call fcn.1002d6e0
add esp, 8
test eax, eax
setne bl
test eax, eax
je 0x1001508f
push 0
push str.SoftwareK7_ComputingK7TotalSecurityCommonInfoFeatureStatus
push 0x80000002
mov dword [ebp - 0x210], 0
call fcn.10028a20
mov edi, eax
test edi, edi
je 0x10015002
push 0x3f7
lea eax, [ebp - 0x108]
push str.FSUpsInfo_08X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.10028ec0
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x10015002
cmp dword [ebp - 0x210], 0
je 0x10015002
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
push str.AMSI
push str.AntiVirus
push str.Products
push str.SoftwareK7_ComputingK7TotalSecurity
lea eax, [ebp - 0x20c]
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push eax
push 0x80000002
call fcn.10028a20
mov esi, eax
test esi, esi
je 0x1001508f
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push str.ProviderId
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10015070
cmp dword [ebp - 0x214], 0
mov eax, 1
cmovne ebx, eax
neg ebx
push esi
sbb ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
lea eax, [ebx + 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret

Function at 0x10017160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], 0x47455456
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp byte [0x10089b50], 0
mov ebx, eax
jne 0x1001719b
call fcn.100181e0
mov esi, dword [0x10089b54]
test esi, esi
jne 0x100171b2
push str._r_ngm_fpProcessIdToSessionId_IS_null
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100171c1
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
call dword [0x10077548]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
mov edx, 0x10031
push 8
push eax
call fcn.10018590
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100181e0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Kernel32.dll
mov dword [0x10089b54], 0
mov dword [0x10089b60], 0
mov dword [0x10089b5c], 0
mov dword [0x10089b58], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1001823e
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10018260
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100821ac
push esi
mov dword [0x10089b60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10089b54], eax
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x10018282
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100182a4
push str.WTSEnumerateSessionsA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSFreeMemory
push esi
mov dword [0x10089b5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10089b58], eax
mov dword [0x10089b64], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
pop esi
test eax, eax
js 0x1001838b
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.1002b060
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10018303
cmp dword [ebp - 0x9c], 6
jb 0x10018303
mov dword [0x10089b64], 1
jmp 0x1001836f
lea eax, [ebp - 0xa4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10018366
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x10018366
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 4
push ecx
push 0x10089b64
lea ecx, [ebp - 0xac]
push ecx
push 0
push str.AllowMultipleTSSessions
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10089b64], 1
jne 0x1001838b
cmp dword [0x10089b60], 0
je 0x10018381
cmp dword [0x10089b5c], 0
jne 0x1001838b
mov dword [0x10089b64], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x10089b50], 1
call fcn.10029e88
mov esp, ebp
pop ebp
ret
Function at 0x10018df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push 0x80000002
mov edi, edx
call fcn.10028a20
mov esi, eax
test esi, esi
jne 0x10018e15
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10018e28
push eax
push str.ProxyEnabled
push esi
call fcn.10028ec0
test edi, edi
je 0x10018e38
push edi
push str.ConnectIdFirst
push esi
call fcn.10028ec0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10018e4b
push eax
push str.ConnectIdSecond
push esi
call fcn.10028ec0
cmp dword [ebp + 0x10], 0
jne 0x10018e61
cmp dword [ebp + 0x14], 0
jne 0x10018e61
cmp dword [ebp + 0x18], 0
je 0x10018f7f
push 0x1d0
call fcn.10029eb0
push 0x1d0
mov edi, eax
push 0
push edi
call fcn.1002b060
add esp, 0x10
push 0x1d0
push edi
push str.ProxyInfo
push esi
call fcn.10028e20
cmp eax, 1
jne 0x10018f71
movd xmm0, dword [edi + 8]
lea eax, [edi + 0xc]
push ebx
lea ebx, [edi + 8]
pshufd xmm1, xmm0, 0
movd xmm0, dword [edi + 4]
lea ecx, [edi + 4]
pshufd xmm2, xmm0, 0
lea edx, [eax + 0x1c0]
mov dword [ebp - 4], edx
cmp eax, ecx
ja 0x10018ec9
xor edx, edx
cmp dword [ebp - 4], ecx
jae 0x10018f2b
cmp eax, ebx
ja 0x10018ed9
lea ecx, [eax + 0x1c0]
xor edx, edx
cmp ecx, ebx
jae 0x10018f2b
mov ecx, 7
nop
movups xmm0, xmmword [eax]
pxor xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
pxor xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
pxor xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
pxor xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
sub ecx, 1
jne 0x10018ee0
mov edx, 0xffffff90
add edx, 0x71
nop
mov ecx, dword [ebx]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
mov ecx, dword [edi + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x10018f30
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 0x110]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 0x190]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ebx
push 0x1d0
push edi
call fcn.10029e99
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001d800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1001d80b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x1001d8c7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
sub edi, 1
jne 0x1001d820
pop edi
test esi, esi
je 0x1001d8ea
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
sub esi, 1
jne 0x1001d8d0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1001d900
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x1007f7b0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007f7b0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x1001e470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x1001e4b8
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e4aa
mov byte [edi + 8], 1
mov eax, dword [ebp - 4]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.1002b2f0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e4f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x1001e52b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e526
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x1001e558
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x1001e53c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.1002b2f0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x1001e56c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1001e563
cmp byte [esi + 8], 0
je 0x1001e563
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
mov cl, byte [ebx]
test cl, cl
je 0x1001e7ba
cmp byte [ebx + 1], 0
je 0x1001e80f
push 2
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov cl, byte [ebx]
jmp 0x1001e7c0
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
test cl, cl
je 0x1001e7e5
cmp byte [ebx + 1], 0
je 0x1001e7de
push 1
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [ebx + 0xc]
jmp 0x1001e7e8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x1001e7f7
mov eax, dword [ebx + 0x1c]
mov esi, 0xffff
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp eax, esi
jae 0x1001e7fc
mov esi, eax
mov dword [ebp - 0x10], eax
push 0x404
call fcn.100455ea
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001e819
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, eax
jbe 0x1001e916
nop dword [eax]
mov edx, dword [ebp - 8]
add eax, 0x400
cmp eax, esi
mov ecx, esi
cmovbe ecx, eax
mov eax, 0x404
sub edx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x404
mov dword [ebp - 0x18], edx
mov esi, ecx
cmova esi, eax
mov al, byte [ebx]
mov dword [ebp - 0xc], esi
test al, al
je 0x1001e881
cmp byte [ebx + 1], 0
je 0x1001e916
mov eax, dword [ebx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebx]
jmp 0x1001e884
mov dword [ebx + 0x1c], edx
test al, al
je 0x1001e8a6
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e8a1
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x1001e8d0
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
lea eax, [edx + esi]
mov esi, dword [ebx + 0x18]
sub esi, edx
cmp eax, dword [ebx + 0x18]
cmovbe esi, dword [ebp - 0xc]
add ecx, edx
push esi
push ecx
push edi
call fcn.1002b2f0
add esp, 0xc
mov eax, esi
add dword [ebx + 0x1c], esi
mov esi, dword [ebp - 0xc]
xor edx, edx
div esi
cmp eax, 1
jne 0x1001e916
lea eax, [esi - 3]
test eax, eax
js 0x1001e901
mov ecx, eax
dec eax
cmp byte [eax + edi], 0x50
jne 0x1001e8fd
cmp byte [ecx + edi], 0x4b
jne 0x1001e8fd
cmp byte [eax + edi + 2], 5
jne 0x1001e8fd
cmp byte [eax + edi + 3], 6
je 0x1001e929
test eax, eax
jns 0x1001e8e0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001e916
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
jb 0x1001e830
push edi
call fcn.100455e5
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x1001e904
Function at 0x1001fd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x1001ff1a
cmp dword [ebx + 4], 0xffffffff
jne 0x1001ff1a
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001fdb7
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x1001fde3
cmp al, 0x2f
je 0x1001fde3
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1001fdd0
mov ax, word [0x10081250]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x1001fe0e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1001fe29
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x1001fe26
cmp edi, 3
je 0x1001fe26
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 2], al
mov byte [ebp - 1], bl
cmp edi, 1
je 0x1001fe6f
cmp edi, 2
jne 0x1001fe8b
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001fe69
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp - 1], 1
jmp 0x1001fe75
mov ebx, esi
mov byte [ebp - 1], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 2], al
push 0x20
call fcn.10029eb0
add esp, 4
mov esi, eax
cmp edi, 1
je 0x1001fec6
cmp edi, 2
je 0x1001fec6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x1001fef7
mov al, byte [ebp - 1]
mov byte [esi + 0x10], al
mov al, byte [ebp - 2]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x1001fef7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.1001e940
mov ecx, dword [ebp - 8]
mov edx, 0x200
pop esi
pop edi
pop ebx
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10020770
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x100207a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100207a2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x10020868
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x100207b9
cmp al, 0x5c
jne 0x100207bb
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x100207b1
cmp edi, ebx
je 0x100207fb
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.1002b2f0
add esp, 0xc
cmp edi, 0x104
jae 0x10020878
lea edx, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
mov ecx, esi
call fcn.10020770
mov byte [ebp - 0x108], 0
test esi, esi
je 0x1002081d
lea ecx, [ebp - 0x108]
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10020810
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10020820
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10020830
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x10020868
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
mov esp, ebp
pop ebp
ret
call fcn.1002a001
int3
Function at 0x10027cd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10027d00
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x410]
mov dword [ebp - 0x40c], 0
push eax
push 0x20008
mov word [ebp - 0x408], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10027e11
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 2
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x410]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10027e11
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10027e11
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x404], esi
jbe 0x10027df3
nop word [eax + eax]
push dword [ebp + esi*8 - 0x400]
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10027dee
inc esi
cmp esi, dword [ebp - 0x404]
jb 0x10027db0
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
mov edi, 1
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10029e88
mov esp, ebp
pop ebp
ret