joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x445164]
push ebx
mov dword [esp + 0x424], eax
push esi
push edi
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov word [esp + 0x18], bx
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x220], bx
mov ecx, 0x81
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push 0x438428
push eax
call fcn.004197f7
mov ecx, dword [esi + 0xc]
push ecx
lea edx, [esp + 0x22c]
push edx
call fcn.004197cd
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x22c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e281
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x43721c
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e32b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push 0x436670
push eax
call fcn.00419cde
add esp, 8
test eax, eax
je 0x40e32b
lea ecx, [esp + 0x18]
push ecx
call fcn.0041924a
add esp, 4
cmp word [esp + eax*2 + 0x16], 0x5c
jne 0x40e2cd
lea edx, [esp + 0x18]
push edx
call fcn.0041924a
add esp, 4
mov word [esp + eax*2 + 0x16], bx
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.00419d10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi + 0x50]
push 0x4365fc
push edx
mov word [eax + 2], bx
call fcn.004018c0
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004197cd
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e32b
mov eax, 1
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x42c]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x42c]
xor eax, eax
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e340
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x445164]
push esi
push edi
mov dword [esp + 0x214], eax
mov esi, ecx
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0x26
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 8]
push 0x436bc8
push ecx
call fcn.004197cd
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0x50]
push 0x4365fc
push eax
call fcn.004018c0
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004197cd
add esp, 0x1c
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e3df
mov eax, 1
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x214]
call fcn.0041923c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x214]
xor eax, eax
call fcn.0041923c
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x445164]
push esi
mov dword [esp + 0x214], eax
push 0x104
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0xc]
push 0x436674
push ecx
call fcn.004197cd
mov edx, dword [esi + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004197cd
mov ecx, dword [0x4460e8]
mov ecx, dword [ecx + 0x20]
add esp, 0x10
call fcn.00402b90
test eax, eax
je 0x40e653
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x20]
lea edx, [esp + 8]
push edx
call fcn.00402bc0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.00401920
mov ecx, esi
call fcn.0040dc20
test eax, eax
jne 0x40e62c
mov dword [esi + 0x28], 1
mov eax, dword [esp + 8]
mov ecx, dword [0x4460e8]
mov ecx, dword [ecx + 0x20]
push eax
call fcn.00402be0
mov ecx, dword [esp + 0x214]
call fcn.0041923c
pop esi
add esp, 0x214
ret
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.00401920
mov ecx, esi
call fcn.0040dc20
test eax, eax
jne 0x40e676
mov dword [esi + 0x28], 1
mov ecx, dword [esp + 0x214]
call fcn.0041923c
pop esi
add esp, 0x214
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x436670
push eax
call fcn.00419cde
add esp, 8
test eax, eax
je 0x40e96f
mov ecx, esi
call fcn.0040e070
mov eax, dword [esi + 0x10]
push 0x436670
push eax
call fcn.00419cde
add esp, 8
test eax, eax
je 0x40e98c
mov ecx, esi
pop esi
jmp 0x40e5a0
pop esi
ret
Function at 0x40f383
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40f398
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40f3aa
xor eax, eax
jmp 0x40f3dc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40f3ce
cmp esi, eax
jae 0x40f3a6
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40f3c0
cmp esi, eax
jae 0x40f3a6
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x419037
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43b450
call fcn.0041b3d4
mov edi, 0x94
mov eax, edi
call fcn.0041ae60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44834c], ecx
mov eax, dword [esi + 4]
mov dword [0x448358], eax
mov edx, dword [esi + 8]
mov dword [0x44835c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x448350], esi
cmp ecx, 2
je 0x419097
or esi, 0x8000
mov dword [0x448350], esi
shl eax, 8
add eax, edx
mov dword [0x448354], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4190d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4190d2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4190ea
cmp eax, 0x20b
je 0x4190d7
mov dword [ebp - 0x1c], esi
jmp 0x4190fe
cmp dword [ecx + 0x84], 0xe
jbe 0x4190d2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4190f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4190d2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041cb89
pop ecx
test eax, eax
jne 0x419112
push 0x1c
call fcn.00419013
pop ecx
call fcn.0041ca80
test eax, eax
jne 0x419123
push 0x10
call fcn.00419013
pop ecx
call fcn.0041c7d8
mov dword [ebp - 4], esi
call fcn.0041c5da
test eax, eax
jge 0x41913c
push 0x1b
call fcn.00418fee
pop ecx
call fcn.0041c53b
mov dword [0x449d30], eax
call fcn.0041c3d1
mov dword [0x44833c], eax
call fcn.0041c33b
test eax, eax
jge 0x419161
push 8
call fcn.00418fee
pop ecx
call fcn.0041c108
test eax, eax
jge 0x419172
push 9
call fcn.00418fee
pop ecx
push 1
call fcn.0041b236
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x419188
push eax
call fcn.00418fee
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0041c0c2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4191a9
movzx eax, word [ebp - 0x40]
jmp 0x4191ac
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00426969
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4191ca
push edi
call fcn.0041b363
call fcn.0041b385
jmp 0x4191fc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041b40f
ret
Function at 0x41a683
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41a6a0
call fcn.0041b837
mov dword [eax], 0x16
xor eax, eax
jmp 0x41a70a
push esi
push 0x8c
push 1
call fcn.0041bcf3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41a6f5
push esi
call fcn.0041c886
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41a6d3
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41a5ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41a709
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041ab4a
test ebx, ebx
pop ecx
je 0x41a707
push ebx
call fcn.0041b849
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41b2a0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43b540
call fcn.0041b3d4
push 8
call fcn.0041e79b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44838c], esi
jne 0x41b2d4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x448388], esi
mov al, byte [ebp + 0x10]
mov byte [0x448384], al
cmp dword [ebp + 0xc], edi
jne 0x41b31e
cmp dword [0x449d28], edi
je 0x41b30e
mov eax, dword [0x449d24]
sub eax, 4
mov dword [0x449d24], eax
cmp eax, dword [0x449d28]
jb 0x41b30e
mov eax, dword [eax]
cmp eax, edi
je 0x41b2ef
call eax
jmp 0x41b2ef
push 0x444094
mov eax, 0x44408c
call fcn.0041b21e
pop ecx
push 0x4440a0
mov eax, 0x444098
call fcn.0041b21e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41b34f
cmp dword [ebp + 0x10], edi
jne 0x41b35d
mov dword [0x44838c], esi
push dword [ebp + 8]
call fcn.0041b1dc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41b35c
push 8
call fcn.0041e6e6
pop ecx
ret
call fcn.0041b40f
ret
Function at 0x41b634
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041ae60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b6cf
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44834c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41b6cf
cmp eax, 1
je 0x41b6f0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b6cf
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41b69c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41b6cb
xor eax, eax
inc eax
jmp 0x41b70f
cmp edi, eax
jae 0x41b6d3
xor eax, eax
jmp 0x41b70f
cmp eax, esi
jae 0x41b6da
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44834c]
jmp 0x41b6f3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bdae
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x445164]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x445328]
je 0x41bde3
inc eax
cmp eax, 0x13
jb 0x41bdd4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x445328]
jne 0x41bf09
mov eax, dword [0x448340]
cmp eax, 1
je 0x41bee1
cmp eax, edx
jne 0x41be13
cmp dword [0x445160], 1
je 0x41bee1
cmp ecx, 0xfc
je 0x41bf09
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41be49
lea eax, [ebp - 0x80]
push 0x43b96c
push eax
call fcn.0041e550
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041ad70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41be7d
mov eax, edi
push eax
call fcn.0041ad70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b968
push edi
call fcn.00421780
add esp, 0x10
push edi
call fcn.0041ad70
push dword [esi + 0x44532c]
mov ebx, eax
call fcn.0041ad70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041ae60
mov ebx, esp
push 0x43b94c
push ebx
call fcn.0041e550
push edi
push ebx
call fcn.0041e560
push 0x43b948
push ebx
call fcn.0041e560
push dword [esi + 0x44532c]
push ebx
call fcn.0041e560
push 0x12010
push 0x43b920
push ebx
call fcn.0042167e
add esp, 0x2c
jmp 0x41bf09
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44532c]
push dword [esi]
call fcn.0041ad70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041923c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41c3d1
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4485ac]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41c41a
call ebp
mov esi, eax
cmp esi, ebx
je 0x41c400
mov dword [0x4485ac], 1
jmp 0x41c41f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41c415
push 2
pop eax
mov dword [0x4485ac], eax
jmp 0x41c41a
mov eax, dword [0x4485ac]
cmp eax, 1
jne 0x41c477
cmp esi, ebx
jne 0x41c432
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41c432
xor eax, eax
jmp 0x41c51e
cmp word [esi], bx
mov eax, esi
je 0x41c447
inc eax
inc eax
cmp word [eax], bx
jne 0x41c439
inc eax
inc eax
cmp word [eax], bx
jne 0x41c439
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041ab38
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41c46a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41c51e
push ebp
push esi
push edi
call fcn.0041a710
add esp, 0xc
jmp 0x41c45c
cmp eax, 2
je 0x41c480
cmp eax, ebx
jne 0x41c42b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41c42b
cmp byte [ebp], bl
mov esi, ebp
je 0x41c4b6
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41c42b
push esi
add edi, eax
call fcn.0041ad70
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41c493
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041ab38
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41c52f
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41c510
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41c525
push edi
call fcn.0041ad70
push esi
lea edi, [edi + eax + 1]
call fcn.0041924a
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41c4d6
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0041ab4a
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41c42b
Function at 0x41c53b
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4485b0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41c57b
call esi
test eax, eax
je 0x41c560
mov dword [0x4485b0], 1
jmp 0x41c580
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41c577
mov dword [0x4485b0], 2
jmp 0x41c589
xor eax, eax
jmp 0x41c5d7
cmp eax, 1
jne 0x41c584
call esi
jmp 0x41c5d7
cmp eax, 2
jne 0x41c577
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x41c5cf
lea eax, [esi + esi]
push eax
call fcn.0041ab38
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41c5cf
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x41c5d3
push ebp
call fcn.0041ab4a
pop ecx
xor eax, eax
jmp 0x41c5d5
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x420ea3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x445164]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x420f22
push esi
call fcn.00423626
test eax, eax
pop ecx
jne 0x420eea
call fcn.0041b840
mov dword [eax], 0xf
call fcn.0041b837
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041923c
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x420f35
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x420edd
inc eax
cmp eax, esi
ja 0x420edd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x420f6c
cmp eax, dword [ebp + 0x10]
jg 0x420f4d
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0041ab38
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x420f81
call fcn.0041b837
mov dword [eax], 0xc
jmp 0x420edd
cmp eax, dword [ebp + 0x10]
jle 0x420f81
call fcn.0041b837
mov dword [eax], 0x22
jmp 0x420edd
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004197f7
pop ecx
pop ecx
jmp 0x420edf
Function at 0x420fdb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x421009
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x421010
cmp ebx, dword [eax + 4]
jae 0x421010
xor eax, eax
jmp 0x421200
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x421021
xor eax, eax
inc eax
jmp 0x4211ff
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x421037
cmp ecx, edx
jae 0x42117c
cmp dword [eax + 4], 0
je 0x421040
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x421028
cmp dword [ebp + 8], 0
je 0x421062
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42117c
cmp eax, esi
jae 0x42117c
mov eax, dword [0x448818]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x421087
cmp dword [esi*4 + 0x448820], edi
je 0x421180
inc esi
cmp esi, eax
jl 0x421075
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4211fc
cmp dword [ebp - 8], 0x1000000
jne 0x4211fc
test byte [ebp - 0xc], 0xcc
je 0x421105
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4211fc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4211fc
cmp word [eax + 0x18], 0x10b
jne 0x4211fc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4211fc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x421105
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x421105
test byte [ecx + 0x27], 0x80
jne 0x42117c
push 1
push 0x448860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x421019
mov ecx, dword [0x448818]
test ecx, ecx
mov edx, ecx
jle 0x421139
lea eax, [ecx*4 + 0x44881c]
cmp dword [eax], edi
je 0x421139
dec edx
sub eax, 4
test edx, edx
jg 0x42112d
test edx, edx
jne 0x42116a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x421146
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42115e
lea eax, [edx*4 + 0x448820]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42114c
cmp ecx, 0x10
jge 0x42116a
inc ecx
mov dword [0x448818], ecx
push 0
push 0x448860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x421019
xor eax, eax
jmp 0x4211ff
test esi, esi
jle 0x421019
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x448860
call ebx
test eax, eax
jne 0x421019
cmp dword [esi*4 + 0x448820], edi
je 0x4211d6
mov eax, dword [0x448818]
lea esi, [eax - 1]
test esi, esi
jl 0x4211c4
cmp dword [esi*4 + 0x448820], edi
je 0x4211c0
dec esi
jns 0x4211b4
test esi, esi
jge 0x4211d4
cmp eax, 0x10
jge 0x4211cf
inc eax
mov dword [0x448818], eax
lea esi, [eax - 1]
jmp 0x4211d6
je 0x4211ee
xor ecx, ecx
test esi, esi
jl 0x4211ee
lea eax, [ecx*4 + 0x448820]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4211dc
push 0
push 0x448860
call ebx
jmp 0x421019
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42167e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x448864], ebx
push esi
push edi
jne 0x4216fe
push 0x43c420
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x421739
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c414
push edi
call esi
test eax, eax
mov dword [0x448864], eax
je 0x421739
push 0x43c404
push edi
call esi
push 0x43c3f0
push edi
mov dword [0x448868], eax
call esi
cmp dword [0x44834c], 2
mov dword [0x44886c], eax
jne 0x4216fe
push 0x43c3d4
push edi
call esi
test eax, eax
mov dword [0x448874], eax
je 0x4216fe
push 0x43c3bc
push edi
call esi
mov dword [0x448870], eax
mov eax, dword [0x448870]
test eax, eax
je 0x421743
call eax
test eax, eax
je 0x42172a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x448874]
test eax, eax
je 0x42172a
test byte [ebp - 8], 1
jne 0x421743
cmp dword [0x448358], 4
jb 0x42173d
or byte [ebp + 0x12], 0x20
jmp 0x421762
xor eax, eax
jmp 0x421772
or byte [ebp + 0x12], 4
jmp 0x421762
mov eax, dword [0x448868]
test eax, eax
je 0x421762
call eax
mov ebx, eax
test ebx, ebx
je 0x421762
mov eax, dword [0x44886c]
test eax, eax
je 0x421762
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x448864]
pop edi
pop esi
pop ebx
leave
ret