joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45df31
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040ab76
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45df6e
call fcn.0045db95
mov dword [esi + 0xc], 1
jmp 0x45df73
call fcn.0045db95
cmp dword [esi], 0
je 0x45dfbc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x45df94
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040aa2a
jmp 0x45dfa6
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004014e0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040436f
jmp 0x45dfe0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x45dfe0
push dword [esi]
push dword [ebp + 8]
call fcn.00413dbc
pop esi
pop ebp
ret 0xc

Function at 0x461b69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x461b83
call fcn.0040a942
mov esi, dword [eax + 0xc]
push dword [0x5642c4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x461ba1
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x461b99
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x461bce
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x461b9b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00461a97
mov esi, eax
jmp 0x461bc0
Function at 0x4dc14e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dc166
mov edi, dword [esi + 0xc]
jmp 0x4dc1a6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4dc17f
call fcn.00406de6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dc194
call fcn.00406de6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dc1a6
call fcn.00406de6
call fcn.0040a942
cmp dword [eax + 0x3c], 0
je 0x4dc1bb
push edi
mov ecx, ebx
call fcn.004db014
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dc068
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dc1d9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dc1e5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f54e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55f450]
jne 0x4f54ef
repz ret
jmp fcn.004fc0e4
Function at 0x5084cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55f450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fede0
and dword [ebp - 0x14], 0
cmp dword [0x566bfc], 0
mov dword [ebp - 0x18], eax
jne 0x50857f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x508627
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x508627
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x540c04
push ebx
mov dword [0x566bfc], eax
call edi
push eax
call esi
push 0x540bf0
push ebx
mov dword [0x566c00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x566c04], eax
call edi
push eax
call esi
mov dword [0x566c0c], eax
test eax, eax
je 0x50857f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x566c08], eax
mov eax, dword [0x566c08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5085d8
cmp dword [0x566c0c], ecx
je 0x5085d8
push eax
call esi
push dword [0x566c0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5085d8
test ebx, ebx
je 0x5085d8
call edi
test eax, eax
je 0x5085cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5085cf
test byte [ebp - 8], 1
jne 0x5085d8
or dword [ebp + 0x10], 0x200000
jmp 0x50860b
mov eax, dword [0x566c00]
cmp eax, dword [ebp - 0x18]
je 0x50860b
push eax
call esi
test eax, eax
je 0x50860b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50860b
mov eax, dword [0x566c04]
cmp eax, dword [ebp - 0x18]
je 0x50860b
push eax
call esi
test eax, eax
je 0x50860b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x566bfc]
call esi
test eax, eax
je 0x508627
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x508629
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f54e5
leave
ret
Function at 0x10002b96
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10002ba5
pop dword [ebp - 0x48]
mov eax, 0xa18da907
sub eax, 0x918d7d62
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xfbe8b745
sub dword [ebp - 0x58], 0xad9671fa
mov dword [ebp - 0x54], 0xbcb69ba
add dword [ebp - 0x54], 0x2667e28b
mov dword [ebp - 0x50], 0x7bf74812
sub dword [ebp - 0x50], 0x2fab03e4
mov dword [ebp - 0x4c], 0xa94748ff
add dword [ebp - 0x4c], 0x56b8b701
lea eax, [ebp - 0x58]
push eax
mov eax, 0xec84bc64
sub eax, 0xdc83ec28
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x32645e71
sub dword [ebp - 0x58], 0xbdf1f51b
mov dword [ebp - 0x54], 0x8939416e
sub dword [ebp - 0x54], 0x47ccdff9
mov dword [ebp - 0x50], 0x5efc6bc9
add dword [ebp - 0x50], 0x47300a3
mov dword [ebp - 0x4c], 0xe7716ae7
add dword [ebp - 0x4c], 0x188e9519
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x35f92
push 0
call eax
mov ecx, 0x2062360d
sub ecx, 0x2061f38d
xor esi, esi
add esi, eax
mov edx, 0x10015200
add edx, dword [ebp - 0x48]
mov edi, 0xce64a5a8
mov dword [ebp - 0x20], 0x41af46b0
mov ebx, dword [edx]
mov dword [ebp - 0x1c], 0xc4e06ca9
xor ebx, edi
mov dword [ebp - 0x44], 0xa725d6da
mov dword [esi], ebx
add dword [ebp - 8], ebx
add esi, 0xf95bd762
sub esi, 0xf95bd75e
add edx, 4
loop 0x10002cb8
add eax, 0xc6febf25
add eax, 0x39023dae
mov ebx, eax
add eax, 0x818a0991
sub eax, 0x818a098c
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x8126b8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x8126bc]
xor ecx, ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
call fcn.00401077
mov eax, dword [0x8126c0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x8126c4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
jmp 0x4010d0
xor ecx, ecx
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x821914], 0xc
mov dword [ebp - 4], eax
jne 0x4010fa
push ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, dword [0x821914]
cmp eax, 0xfa9
jne 0x401116
mov dword [0x821910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401137
push str.fahubizavojijalaho
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x821868], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov edx, edi
lea eax, [ebx + edi]
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x82190c], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, esi
shr edx, cl
lea eax, [ebx + esi]
mov dword [ebp - 0x14], eax
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4010ce
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x4073d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81184c]
jne 0x4073de
repz ret
jmp fcn.0040be73

Function at 0x40b861
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405b17
and dword [ebp - 4], 0
cmp dword [0x8168fc], 0
mov ebx, eax
jne 0x40b912
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b9c3
push eax
call fcn.00405aa5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8168fc], eax
call esi
push eax
call fcn.00405aa5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x816900], eax
call esi
push eax
call fcn.00405aa5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x816904], eax
call esi
push eax
call fcn.00405aa5
pop ecx
mov dword [0x81690c], eax
test eax, eax
je 0x40b912
push 0x80df18
push edi
call esi
push eax
call fcn.00405aa5
pop ecx
mov dword [0x816908], eax
mov eax, dword [0x816908]
cmp eax, ebx
je 0x40b96a
cmp dword [0x81690c], ebx
je 0x40b96a
push eax
call fcn.00405b20
push dword [0x81690c]
mov esi, eax
call fcn.00405b20
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b96a
test edi, edi
je 0x40b96a
call esi
test eax, eax
je 0x40b961
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b961
test byte [ebp - 0xc], 1
jne 0x40b96a
or dword [ebp + 0x10], 0x200000
jmp 0x40b9a3
mov eax, dword [0x816900]
cmp eax, ebx
je 0x40b9a3
push eax
call fcn.00405b20
pop ecx
test eax, eax
je 0x40b9a3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9a3
mov eax, dword [0x816904]
cmp eax, ebx
je 0x40b9a3
push eax
call fcn.00405b20
pop ecx
test eax, eax
je 0x40b9a3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8168fc]
call fcn.00405b20
pop ecx
test eax, eax
je 0x40b9c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ba4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403de0
test esi, esi
jne 0x402bdb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403ed0
jmp 0x402bfc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402a40
mov dword [esp], eax
test esi, esi
je 0x402bfc
cmp dword [ebx], 0
je 0x402bfc
dec esi
jmp 0x402be3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40315c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40f014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031d4
xor eax, eax
push ebp
push 0x4031cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403210
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40f014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40f014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410044], 0
je 0x403cbd
cmp word [0x410218], 0xd7b2
jne 0x403c85
cmp dword [0x410220], 0
jbe 0x403c85
mov eax, 0x410214
call dword [0x410230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40f05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ce4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40f020], 0
jne 0x403cd9
push 0
push 0x40f054
push 0x40f05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404ca2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404028
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404c8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ca9
lea eax, [ebp - 0x10]
call fcn.00403de0
ret

Function at 0x408164
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40819d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ed0
jmp 0x4081a6
mov eax, ebx
mov edx, esi
call fcn.00403e34
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4081b0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4081d1
mov al, byte [esp]
jmp 0x4081d3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409530
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409594
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404028
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406020
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40959b
lea eax, [ebp - 0xc]
call fcn.00403de0
ret
Function at 0x40a1ac
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004041d0
xor eax, eax
push ebp
push 0x40a2bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d30
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
mov eax, dword [0x40f540]
mov eax, dword [eax]
call fcn.004041e0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [0x40f5c0]
call fcn.0040df18
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403fbc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push dword [ebp - 8]
push 0x40a2d8
push dword [ebp - 4]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004040a0
mov eax, dword [ebp - 0x60]
call fcn.004041e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x40a28d
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004041e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x40a29c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2c6
lea eax, [ebp - 0x60]
call fcn.00403de0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e04
ret

Function at 0x40a2dc
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004041d0
xor eax, eax
push ebp
push 0x40a3e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d30
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
mov eax, dword [0x40f540]
mov eax, dword [eax]
call fcn.004041e0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [0x40f5c0]
call fcn.0040df18
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403fbc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push dword [ebp - 8]
push 0x40a3f8
push dword [ebp - 4]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004040a0
mov eax, dword [ebp - 0x60]
call fcn.004041e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x40a3bd
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004041e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a3e7
lea eax, [ebp - 0x60]
call fcn.00403de0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e04
ret
Function at 0x40a4c8
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe8c
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
push 1
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov ebp, eax
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp word [esp + 0x14], 0x5a4d
je 0x40a52e
push 0
push 0
push ebp
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [esp], 0
mov dword [esp + 4], 0
jmp 0x40a5df
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 0x14]
push eax
push 0xf8
lea eax, [esp + 0x60]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp dword [esp + 0x54], 0x4550
je 0x40a57a
push 0
push 0
push ebp
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [esp], 0
mov dword [esp + 4], 0
jmp 0x40a5df
mov ax, word [esp + 0x5a]
xor edi, edi
movzx esi, ax
dec esi
test esi, esi
jl 0x40a5c5
inc esi
push 0
lea eax, [esp + 0x14]
push eax
push 0x28
lea eax, [esp + 0x158]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0x160]
cmp edi, eax
jae 0x40a5c2
mov edi, eax
lea eax, [ecx + edi]
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
dec esi
jne 0x40a58a
push 0
push 0
push ebp
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x174
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a5f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40a7f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
xor eax, eax
call fcn.0040b14c
mov eax, dword [0x40f454]
mov eax, dword [eax]
call fcn.0040a4c8
mov edx, dword [0x40f564]
mov dword [edx], eax
mov eax, dword [0x40f564]
mov eax, dword [eax]
xor edx, edx
call fcn.0040b14c
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 3]
mov eax, dword [0x40f454]
mov ecx, 3
call fcn.0040b1a0
cmp dword [ebp - 8], 3
jne 0x40a7dc
lea eax, [ebp - 0x10]
lea edx, [ebp - 3]
mov ecx, 3
call fcn.00404028
mov eax, dword [ebp - 0x10]
mov edx, 0x40a808
call fcn.0040412c
jne 0x40a7dc
mov eax, dword [0x40f564]
add dword [eax], 0x100
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xa]
mov eax, dword [0x40f454]
mov ecx, 1
call fcn.0040b1a0
mov al, byte [ebp - 0xa]
and al, 8
cmp al, 8
sete byte [0x40f2dc]
mov al, byte [ebp - 0xa]
and al, 0x40
cmp al, 0x40
sete byte [0x40f2e0]
mov al, byte [ebp - 0xa]
and al, 0x80
cmp al, 0x80
sete byte [0x40f2e4]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xb]
mov eax, dword [0x40f454]
mov ecx, 1
call fcn.0040b1a0
cmp byte [ebp - 0xb], 0
seta byte [0x40f2d8]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 9]
mov eax, dword [0x40f454]
mov ecx, 1
call fcn.0040b1a0
cmp byte [ebp - 9], 0
seta byte [0x40f2d4]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xa]
mov eax, dword [0x40f454]
mov ecx, 1
call fcn.0040b1a0
cmp byte [ebp - 0xa], 0
seta byte [0x40f2d0]
cmp byte [0x40f2d8], 0
je 0x40a757
lea eax, [ebp - 8]
push eax
push 0
xor ecx, ecx
mov cl, byte [ebp - 0xb]
mov edx, dword [0x4107a4]
mov eax, dword [0x40f454]
call fcn.0040b1a0
xor eax, eax
mov al, byte [ebp - 0xb]
mov edx, dword [0x4107a4]
mov byte [edx + eax], 0
cmp byte [0x40f2d4], 0
je 0x40a799
lea eax, [ebp - 8]
push eax
push 0
xor ecx, ecx
mov cl, byte [ebp - 9]
mov edx, dword [0x41079c]
mov eax, dword [0x40f454]
call fcn.0040b1a0
xor eax, eax
mov al, byte [ebp - 9]
mov edx, dword [0x41079c]
mov byte [edx + eax], 0
cmp byte [0x40f2d0], 0
je 0x40a7bd
lea eax, [ebp - 8]
push eax
push 0
xor ecx, ecx
mov cl, byte [ebp - 0xa]
mov edx, dword [0x4107a0]
mov eax, dword [0x40f454]
call fcn.0040b1a0
xor eax, eax
mov al, byte [ebp - 0xa]
mov edx, dword [0x4107a0]
mov byte [edx + eax], 0
mov eax, dword [0x40f654]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7f9
lea eax, [ebp - 0x10]
call fcn.00403de0
ret