joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402df0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43c61b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x494080]
push ebp
push esi
push edi
mov dword [esp + 0x114], eax
mov esi, ecx
call fcn.0042eb14
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x588]
push eax
xor ebp, ebp
push ebp
push str.SegNumber
push str.Main
mov dword [esp + 0x130], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
imul eax, eax, 0x108
push eax
mov dword [esp + 0x14], edi
call fcn.00432e1a
add esp, 4
cmp edi, ebp
mov dword [esi + 0x58c], eax
jbe 0x402f61
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
lea esp, [esp]
push ebp
lea ecx, [esp + 0x14]
push str.Seg_d
push ecx
call fcn.00401930
mov eax, dword [esi + 0x588]
mov edx, dword [esi + 0x58c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
push 0xff
add edx, edi
push edx
push 0x43ffb2
push eax
push str.Main
call ebx
mov eax, dword [esi + 0x588]
mov edx, dword [esi + 0x58c]
push eax
push 0xff
lea ecx, [esp + 0x20]
push ecx
push 0x43ffb2
push str.StartAddr
add edx, edi
push edx
call ebx
push 0x10
lea eax, [esp + 0x1c]
push 0
push eax
mov byte [esp + 0x25], 0x30
call fcn.0041e098
mov ecx, dword [esi + 0x58c]
add esp, 0xc
mov dword [ecx + edi + 0x100], eax
mov eax, dword [esi + 0x588]
push eax
mov eax, dword [esi + 0x58c]
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x43ffb2
push str.SegSize
add eax, edi
push eax
call ebx
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
mov byte [esp + 0x25], 0x30
call fcn.0041e098
mov edx, dword [esi + 0x58c]
add esp, 0xc
mov dword [edx + edi + 0x104], eax
mov eax, dword [esp + 0x14]
inc ebp
add edi, 0x108
cmp ebp, eax
jb 0x402e80
mov edi, eax
pop ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x120], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop ebp
call fcn.0041d3ce
add esp, 0x118
ret
Function at 0x407073
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x4070a8
mov edx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x4070b1
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4070b1
mov eax, dword [esi + 8]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4070a8
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 4], 0
jbe 0x4070cb
mov eax, ecx
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea edi, [esi + 0x54]
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407132
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x407127
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x407132
call ebx
cmp eax, 0x3e4
je 0x407132
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
add esp, 0x14
ret 0xc

Function at 0x407140
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x4071ab
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x407175
mov eax, dword [esp + 8]
test eax, eax
jbe 0x407175
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x68]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4071b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4071b4
xor eax, eax
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x4071c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x407231
mov byte [esi + 0x90], 0
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40720d
mov ecx, dword [esi + 0x7c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x407231
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x7c], 0
mov al, 1
pop esi
ret 4
xor al, al
pop esi
ret 4
Function at 0x4092c0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43cd86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
mov eax, dword [0x494080]
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x348], eax
call fcn.00414f93
mov edi, dword [esp + 0x35c]
push edi
lea eax, [esp + 0x1bc]
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0041e485
add esp, 0xc
push 0
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00415026
test eax, eax
je 0x40943a
push esi
jmp 0x409340
lea ecx, [esp + 0x14]
call fcn.00414d74
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.00414f5a
test eax, eax
jne 0x40942d
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.0041524e
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0xc8
or eax, ecx
mov byte [esp + 0x358], 1
jge 0x40939d
push 0xc8
mov ecx, esi
call fcn.00401540
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4093a3
mov byte [esp + 0x358], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [eax + 0x38]
test eax, eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push str._s_s
je 0x40940f
lea edx, [esp + 0x100]
push edx
call fcn.0041e485
add esp, 0x10
lea eax, [esp + 0xf4]
push eax
mov ecx, ebp
call fcn.004092c0
jmp 0x40942d
lea edx, [esp + 0x290]
push edx
call fcn.0041e485
add esp, 0x10
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x409340
pop esi
lea ecx, [esp + 0x10]
call fcn.00414ca4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x34c], 0xffffffff
jne 0x409468
call fcn.00414fb7
xor eax, eax
jmp 0x409472
call fcn.00414fb7
mov eax, 1
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x340]
call fcn.0041d3ce
add esp, 0x350
ret 4
Function at 0x4094a0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43cd9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x494080]
push ebx
push esi
xor esi, esi
push 0x43ffb2
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], eax
mov dword [esp + 0x10], esi
call fcn.00401a30
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x134], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x409591
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x440b84
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
mov eax, ecx
and eax, 0xffff
push eax
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x1c]
push str.V_d._d_d_d
push ecx
call fcn.00401930
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402790
mov esi, dword [esp + 0x134]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x128], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4095d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.0041d3ce
add esp, 0x124
ret 4

Function at 0x409e50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x494080]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409ec4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0041d3ce
add esp, 0x110
ret 0xc
Function at 0x40a9a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43cea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x40aaa6
push esi
call fcn.0042eb14
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x40aa0b
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401540
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40aa1f
xor eax, eax
jmp 0x40aa33
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aa24
sub eax, edx
js 0x40aab6
cmp eax, dword [esi - 8]
jg 0x40aab6
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.004017f0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40aa7b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40aa7b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40aaa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004011f0
int3
Function at 0x40c100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x40c110
cmp esi, 9
jle 0x40c11d
push str.bad_pack_level
call fcn.00412b00
add esp, 4
movzx edx, word [esi*8 + 0x49243c]
xor eax, eax
cmp esi, 1
mov ecx, 0x4000
mov edi, 0x4d2138
rep stosd dword es:[edi], eax
movzx eax, word [esi*8 + 0x49243a]
movzx ecx, word [esi*8 + 0x492438]
mov dword [0x49574c], eax
movzx eax, word [esi*8 + 0x49243e]
mov dword [0x49573c], esi
mov dword [0x495728], ecx
mov dword [0x495750], edx
mov dword [0x495730], eax
jne 0x40c175
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x40c181
cmp esi, 9
jne 0x40c181
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x4ad8e8
mov dword [0x495748], esi
mov dword [0x495740], esi
call dword [0x495718]
add esp, 8
cmp eax, esi
mov dword [0x495744], eax
je 0x40c1f7
cmp eax, 0xffffffff
je 0x40c1f7
mov edi, 0x106
cmp eax, edi
mov dword [0x495738], esi
jae 0x40c1d5
nop
cmp dword [0x495738], esi
jne 0x40c1d5
call fcn.0040bad0
cmp dword [0x495744], edi
jb 0x40c1c0
movzx ecx, byte [0x4ad8e8]
movzx edx, byte [0x4ad8e9]
shl ecx, 5
xor ecx, edx
and ecx, 0x7fff
pop edi
mov dword [0x495754], ecx
pop esi
ret
pop edi
mov dword [0x495744], esi
mov dword [0x495738], 1
pop esi
ret
Function at 0x412a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x412a23
or eax, 0xffffffff
mov dword [0x492e30], eax
not eax
ret
mov eax, dword [0x492e30]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x412a4f
push edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x492a30]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x412a32
pop edi
mov dword [0x492e30], eax
pop esi
not eax
ret

Function at 0x414498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4144eb
call fcn.004397fc
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4144eb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4144e1
xor eax, eax
jmp 0x414604
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x41451b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x41451b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x414601
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x414548
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041359b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x414601
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414591
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x414591
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41458b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041359b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4145f1
and dword [ebp + 0xc], 0
jmp 0x4145f1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4145f1
push 0xc
call fcn.00432def
mov esi, eax
test esi, esi
pop ecx
je 0x4145d3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4145d5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4145ec
push dword [ebp - 8]
call fcn.0042d94b
jmp 0x4145f1
call fcn.0042d922
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x414556
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41d072
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.0041d360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d10d
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 [0x4e7624]
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 0x41d10d
cmp eax, 1
je 0x41d12e
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 0x41d10d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d0da
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d109
xor eax, eax
inc eax
jmp 0x41d14d
cmp edi, eax
jae 0x41d111
xor eax, eax
jmp 0x41d14d
cmp eax, esi
jae 0x41d118
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 [0x4e7624]
jmp 0x41d131
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 0x41e35f
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 0x41e37c
call fcn.0041e899
mov dword [eax], 0x16
xor eax, eax
jmp 0x41e3e6
push esi
push 0x8c
push 1
call fcn.0041f353
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41e3d1
push esi
call fcn.004240be
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 0x41e3af
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41e2ca
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41e3e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041d001
test ebx, ebx
pop ecx
je 0x41e3e3
push ebx
call fcn.0041e8ab
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41f55f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x445dc0
call fcn.00421120
mov edi, 0x94
mov eax, edi
call fcn.0041d360
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 [0x4e7624], ecx
mov eax, dword [esi + 4]
mov dword [0x4e7630], eax
mov edx, dword [esi + 8]
mov dword [0x4e7634], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e7628], esi
cmp ecx, 2
je 0x41f5bf
or esi, 0x8000
mov dword [0x4e7628], esi
shl eax, 8
add eax, edx
mov dword [0x4e762c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41f5fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5fa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f612
cmp eax, 0x20b
je 0x41f5ff
mov dword [ebp - 0x1c], esi
jmp 0x41f626
cmp dword [ecx + 0x84], 0xe
jbe 0x41f5fa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41f620
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5fa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00421ee7
pop ecx
test eax, eax
jne 0x41f63a
push 0x1c
call fcn.0041f53b
pop ecx
call fcn.004242b8
test eax, eax
jne 0x41f64b
push 0x10
call fcn.0041f53b
pop ecx
call fcn.00426380
mov dword [ebp - 4], esi
call fcn.00425364
test eax, eax
jge 0x41f664
push 0x1b
call fcn.0041f516
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4e7ef0], eax
call fcn.0042625e
mov dword [0x4e7610], eax
call fcn.004261bc
test eax, eax
jge 0x41f68a
push 8
call fcn.0041f516
pop ecx
call fcn.00425f89
test eax, eax
jge 0x41f69b
push 9
call fcn.0041f516
pop ecx
push 1
call fcn.0041ff22
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41f6b1
push eax
call fcn.0041f516
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00425f2c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41f6d2
movzx eax, word [ebp - 0x40]
jmp 0x41f6d5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042ae6e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41f6f3
push edi
call fcn.0042004f
call fcn.00420071
jmp 0x41f725
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042115b
ret
Function at 0x41ff8c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x445e30
call fcn.00421120
push 8
call fcn.00421e9c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4e7664], esi
jne 0x41ffc0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4e7660], esi
mov al, byte [ebp + 0x10]
mov byte [0x4e765c], al
cmp dword [ebp + 0xc], edi
jne 0x42000a
cmp dword [0x4e7ee8], edi
je 0x41fffa
mov eax, dword [0x4e7ee4]
sub eax, 4
mov dword [0x4e7ee4], eax
cmp eax, dword [0x4e7ee8]
jb 0x41fffa
mov eax, dword [eax]
cmp eax, edi
je 0x41ffdb
call eax
jmp 0x41ffdb
push 0x44f0c4
mov eax, 0x44f0bc
call fcn.0041ff0a
pop ecx
push 0x44f0d0
mov eax, 0x44f0c8
call fcn.0041ff0a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42003b
cmp dword [ebp + 0x10], edi
jne 0x420049
mov dword [0x4e7664], esi
push dword [ebp + 8]
call fcn.0041fec8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x420048
push 8
call fcn.00421de7
pop ecx
ret
call fcn.0042115b
ret