joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bd40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004264f0
test eax, eax
je 0x42be2f
mov ecx, edi
call fcn.004264f0
mov ecx, eax
call fcn.00423b60
test eax, eax
jne 0x42be2f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42be2f
mov eax, dword [0x534dc8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42bda2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004264f0
mov ecx, eax
call fcn.00423d90
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42be2f
cmp ebx, eax
jne 0x42be2f
cmp dword [esp + 0x10], eax
jne 0x42be15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42ea50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46fad8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42ea89
inc eax
mov dword [esi + 0x10], eax
jmp 0x42eb9c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42ea9d
mov eax, 0xffffffc7
jmp 0x42eb9e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42eaae
cmp dword [esi + 8], eax
jne 0x42ea9d
cmp dword [esi + 8], eax
jne 0x42eac7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42eac7
mov eax, 0xffffffc7
jmp 0x42eb9e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42eadb
push eax
mov ecx, ebx
call fcn.0042e280
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401660
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42eb0c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401680
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042d9f0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42eb3f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5068e0
call fcn.00401860
mov eax, dword [esp + 0x38]
jmp 0x42eb9e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042e8b0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42eb83
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042e8d0
mov esi, eax
test esi, esi
jne 0x42ebb3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042e8b0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42eb55
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5068e0
call fcn.00401860
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5068e0
call fcn.00401860
mov eax, esi
jmp 0x42eb9e

Function at 0x431cd0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431d30
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431d30
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431d30
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431d30
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x431d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x437ec0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004673b1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437860
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004672df
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463ac6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463ac6
push 1
push 0
push 0
mov ecx, esi
call fcn.00463a6e
push 1
push 0
push 1
mov ecx, esi
call fcn.00463a6e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467423
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438040
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004673b1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437860
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004672df
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x438104
cmp dword [esp + 0x40], 1
jne 0x438102
cmp ecx, eax
jge 0x438104
mov eax, ecx
cmp eax, 0xc8
jge 0x438110
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00437ec0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467423
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x438890
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470193
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461ee6
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467659
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468bb1
test eax, eax
je 0x4389ac
mov ecx, dword [esp + 0x3c]
call fcn.00467686
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438970
push edi
mov ecx, esi
call fcn.00464c4a
mov ecx, esi
call fcn.00438b10
cmp dword [esp + 0x38], 1
jne 0x4389a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464db4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43b3c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b3f3
push esi
call fcn.0043e4b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b3ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b479
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b462
mov eax, dword [esi + 8]
test eax, eax
je 0x43b417
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b45e
cmp eax, 2
je 0x43b462
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b40a
cmp eax, 3
je 0x43b43d
cmp eax, 1
jne 0x43b40a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b40a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b40a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b4a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b488
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b4a0
add esp, 4
pop esi
ret

Function at 0x462cdc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462d14
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460d93
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460d6b
jmp 0x462d20
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4643ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464410
call fcn.0046a0bd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464410
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464407
xor eax, eax
jmp 0x464418
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046441e
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a5ed
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a61b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a639
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a553
jmp 0x46a639
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a639
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a553
test edi, edi
mov eax, edi
jne 0x46a623
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011f3
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00401a19
test al, al
je 0x401222
cmp dword [esi + 0x10], 0
je 0x4012f4
push 0x42c220
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push dword [esi + 0x10]
jmp 0x4012ee
push ebx
lea eax, [ebp - 4]
push edi
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov ecx, esi
call fcn.00401ad8
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x401286
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401ad8
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x4012b4
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401ad8
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x4012e2
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401ad8
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov esi, dword [esi + 0x10]
pop edi
test esi, esi
pop ebx
je 0x4012f4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
leave
ret

Function at 0x401bf9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
and dword [ebx + 4], 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401c75
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x401c56
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp + 8]
je 0x401c5c
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401c34
jmp 0x401c6a
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0040267f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x401c77
xor al, al
pop edi
pop ebx
leave
ret
Function at 0x401ca9
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402771
and dword [esi + 0x130], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esi + 0x134]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401dd8
mov ecx, esi
call fcn.00402526
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401dbe
mov ebx, 0x42c494
push ebx
push edi
call fcn.00416020
add esp, 0x10
jmp 0x401d1b
push ebx
push edi
call fcn.00416020
inc eax
push eax
push edi
call fcn.004167c0
push ebx
push edi
call fcn.00416020
add esp, 0x18
test eax, eax
jne 0x401d02
mov ebx, 0x42c490
push ebx
push edi
call fcn.00416020
pop ecx
pop ecx
jmp 0x401d48
push ebx
push edi
call fcn.00416020
inc eax
push eax
push edi
call fcn.004167c0
push ebx
push edi
call fcn.00416020
add esp, 0x18
test eax, eax
jne 0x401d2f
push edi
call fcn.00416740
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42c48c
push eax
call fcn.004167c0
pop ecx
lea eax, [esp + 0x10]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401d85
push 0x42c480
push edi
call fcn.004167c0
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.0040278c
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.00402788
push eax
push esi
push 0x42c464
mov ecx, esi
call fcn.00401091
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x4020df
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
mov edi, ecx
call fcn.00416900
push dword [edi + 0x130]
lea eax, [ebp - 0xc4c]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
push 0x42c56c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 0x134]
push eax
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0xc4c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, edi
call fcn.00402634
test al, al
jne 0x402226
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
je 0x402226
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x402226
push dword [edi + 0x128]
lea ecx, [ebp - 0x44c]
call fcn.004116bd
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4021ca
cmp dword [esi], ebx
mov dword [ebp + 0xc], ebx
jbe 0x4021d7
lea ecx, [ebp - 0x44c]
call fcn.0040114f
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xc]
add ecx, edx
sub byte [ecx], al
inc edx
cmp edx, dword [esi]
mov dword [ebp + 0xc], edx
jb 0x4021ab
jmp 0x4021d7
push 0x42c54c
push ebx
call fcn.0041164f
pop ecx
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x435314], ebx
je 0x40221d
mov ecx, edi
call fcn.004022ba
push 0x42c4f8
push dword [edi + 0x18]
call fcn.0040222d
pop ecx
push eax
call fcn.0041164f
push dword [edi + 0x18]
call fcn.00401fc4
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40229c
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4022aa
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x4022ab
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4022b9
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x4022ba
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edi, [ebx + 8]
mov eax, dword [edi]
test eax, eax
je 0x4022dd
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4022eb
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040599e
mov ecx, eax
call fcn.00405a26
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebp - 4]
call esi
push 2
push 0
push 2
push edi
mov ecx, ebx
call fcn.00414a42
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x40235e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42c5b0
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push 0
lea eax, [ebx + 0xc]
push 2
push eax
mov ecx, ebx
call fcn.00414a42
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x4023a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42c574
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x40244b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
push 0x100
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401000
push eax
push edi
call fcn.00401f67
add esp, 0x10
test eax, eax
jne 0x402480
xor al, al
jmp 0x402521
movzx ecx, word [esi + 0x14]
mov edi, eax
sub edi, dword [ebp + 8]
and dword [ebp + 8], 0
lea edx, [ecx + esi + 0x18]
movzx ecx, word [esi + 6]
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x4024ba
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x4024ac
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x4024ba
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x40249c
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 0x14]
mov edx, dword [ebx + 0xc]
add ecx, dword [edx + 0x34]
add ecx, edi
mov dword [0x435310], ecx
cmp dword [eax + 0x100], 0x100
jne 0x4024fb
cmp byte [eax + 0x105], 0
jne 0x4024fb
add ecx, 0x100
mov dword [0x435318], 0xc
mov dword [0x435314], ecx
jmp 0x40251f
add ecx, 0x104
push 0x18
mov dword [0x435314], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x435318], eax
cmp eax, ecx
jb 0x40251f
mov dword [0x435318], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402553
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 1], 0
push ebx
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x40262b
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
mov esi, 0x128
push eax
push ebx
mov dword [ebp - 0x130], esi
call sub.KERNEL32.dll_Process32First
jmp 0x4025ba
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x128], eax
je 0x4025c0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40259c
jmp 0x4025c6
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4025cf
mov dword [eax], edi
cmp edi, 0xffffffff
je 0x402623
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32First
jmp 0x402604
cmp dword [ebp - 0x128], edi
je 0x40260a
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4025e9
jmp 0x402623
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.004169b0
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0xc

Function at 0x40278c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ecx + 4], ebx
mov dword [ebp - 0xc], ecx
jne 0x402877
push esi
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
setne al
push 0x42c1e0
push eax
call fcn.0041164f
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x42c610], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x42c610
je 0x402867
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [eax]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402831
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40285c
cmp byte [ebp + 0xc], bl
jne 0x40285c
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push 0x42c6d4
push eax
call fcn.00416958
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.0041164f
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x402800
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax + 4], ecx
mov al, 1
pop ebx
leave
ret 8