joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491093
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.004840e7
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.00489783
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048ac9f
test eax, eax
je 0x453e5c
mov ecx, dword [esp + 0x3c]
call fcn.004897b0
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 0x453e20
push edi
mov ecx, esi
call fcn.00486e13
mov ecx, esi
call fcn.00453fc0
cmp dword [esp + 0x38], 1
jne 0x453e55
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.00486f4e
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 0x456880
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4568b3
push esi
call fcn.00459990
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4568ac
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 0x456939
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x456922
mov eax, dword [esi + 8]
test eax, eax
je 0x4568d7
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 0x45691e
cmp eax, 2
je 0x456922
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4568ca
cmp eax, 3
je 0x4568fd
cmp eax, 1
jne 0x4568ca
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 0x4568ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4568ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00456960
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x456948
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00456960
add esp, 4
pop esi
ret

Function at 0x465280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4652c3
mov eax, dword [esi]
jmp 0x4652c5
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x4652e6
push 0x4b85b0
push edi
push eax
call fcn.0047f91b
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x465346
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x465346
mov eax, dword [esi]
test eax, eax
je 0x46532d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x46533d
push eax
call fcn.00482876
add esp, 4
push esi
call fcn.00482876
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4669a0
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 0x466a43
test eax, eax
jbe 0x466a43
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x466a43
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 0x4669ee
xor esi, esi
jmp 0x4669f4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x466a1f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00418520
add esi, eax
push esi
mov ebx, esi
call fcn.00418520
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x466a00
pop ebp
test edi, edi
pop edi
jne 0x466a43
test ebx, ebx
je 0x466a43
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00472080
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x466b85
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 0x466c9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466c9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00484539
mov esi, eax
test esi, esi
je 0x466c9d
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 0x466c9d
mov ecx, esi
call fcn.00466af0
cmp edi, eax
jge 0x466c9d
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 0x466c23
mov dword [esp + 0x34], 1
jmp 0x466c7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x466c9d
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.00466060
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 0x46b220
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46b286
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46b286
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46b267
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x46be20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46be69
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x46c2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046be90
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046bf10
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046bf10
lea ecx, [esi + 0xc]
call fcn.00482a97
lea ecx, [esi + 0x10]
call fcn.00482a97
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046d4a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046d4a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046d4a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00482b0c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00482b0c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x484edd
Capabilities:
Get graphical window text

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

Function at 0x4865cb
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 0x48660d
call fcn.0048c13f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48660d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486604
xor eax, eax
jmp 0x486615
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048661b
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c66f
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 0x48c69d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c6bb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c5d5
jmp 0x48c6bb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c6bb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c5d5
test edi, edi
mov eax, edi
jne 0x48c6a5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4029a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4029bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029de
cmp esi, eax
jae 0x4029b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029d0
cmp esi, eax
jae 0x4029b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40ebf6
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.0040edf0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ec91
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 [0x4412d0]
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 0x40ec91
cmp eax, 1
je 0x40ecb2
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 0x40ec91
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40ec5e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40ec8d
xor eax, eax
inc eax
jmp 0x40ecd1
cmp edi, eax
jae 0x40ec95
xor eax, eax
jmp 0x40ecd1
cmp eax, esi
jae 0x40ec9c
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 [0x4412d0]
jmp 0x40ecb5
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 0x40ef84
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434190
call fcn.0040fc34
mov edi, 0x94
mov eax, edi
call fcn.0040edf0
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 [0x4412d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4412dc], eax
mov edx, dword [esi + 8]
mov dword [0x4412e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4412d4], esi
cmp ecx, 2
je 0x40efe4
or esi, 0x8000
mov dword [0x4412d4], esi
shl eax, 8
add eax, edx
mov dword [0x4412d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f01f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f01f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f037
cmp eax, 0x20b
je 0x40f024
mov dword [ebp - 0x1c], esi
jmp 0x40f04b
cmp dword [ecx + 0x84], 0xe
jbe 0x40f01f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f045
cmp dword [ecx + 0x74], 0xe
jbe 0x40f01f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411ff2
pop ecx
test eax, eax
jne 0x40f05f
push 0x1c
call fcn.0040ef60
pop ecx
call fcn.00411ab8
test eax, eax
jne 0x40f070
push 0x10
call fcn.0040ef60
pop ecx
call fcn.00413710
mov dword [ebp - 4], esi
call fcn.00413512
test eax, eax
jge 0x40f089
push 0x1b
call fcn.0040ef3b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x442b90], eax
call fcn.004133f0
mov dword [0x4412c0], eax
call fcn.0041334e
test eax, eax
jge 0x40f0af
push 8
call fcn.0040ef3b
pop ecx
call fcn.0041311b
test eax, eax
jge 0x40f0c0
push 9
call fcn.0040ef3b
pop ecx
push 1
call fcn.0040f695
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f0d6
push eax
call fcn.0040ef3b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004130be
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f0f7
movzx eax, word [ebp - 0x40]
jmp 0x40f0fa
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041a240
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f118
push edi
call fcn.0040f7c2
call fcn.0040f7e4
jmp 0x40f14a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040fc6f
ret
Function at 0x40f6ff
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4341b8
call fcn.0040fc34
push 8
call fcn.00411f1b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x441310], esi
jne 0x40f733
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44130c], esi
mov al, byte [ebp + 0x10]
mov byte [0x441308], al
cmp dword [ebp + 0xc], edi
jne 0x40f77d
cmp dword [0x442b88], edi
je 0x40f76d
mov eax, dword [0x442b84]
sub eax, 4
mov dword [0x442b84], eax
cmp eax, dword [0x442b88]
jb 0x40f76d
mov eax, dword [eax]
cmp eax, edi
je 0x40f74e
call eax
jmp 0x40f74e
push 0x43d098
mov eax, 0x43d090
call fcn.0040f67d
pop ecx
push 0x43d0a4
mov eax, 0x43d09c
call fcn.0040f67d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f7ae
cmp dword [ebp + 0x10], edi
jne 0x40f7bc
mov dword [0x441310], esi
push dword [ebp + 8]
call fcn.0040f63b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f7bb
push 8
call fcn.00411e66
pop ecx
ret
call fcn.0040fc6f
ret
Function at 0x412b81
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x412baf
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x412bb6
cmp ebx, dword [eax + 4]
jae 0x412bb6
xor eax, eax
jmp 0x412da6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x412bc7
xor eax, eax
inc eax
jmp 0x412da5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x412bdd
cmp ecx, edx
jae 0x412d22
cmp dword [eax + 4], 0
je 0x412be6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x412bce
cmp dword [ebp + 8], 0
je 0x412c08
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x412d22
cmp eax, esi
jae 0x412d22
mov eax, dword [0x441498]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x412c2d
cmp dword [esi*4 + 0x4414a0], edi
je 0x412d26
inc esi
cmp esi, eax
jl 0x412c1b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412da2
cmp dword [ebp - 8], 0x1000000
jne 0x412da2
test byte [ebp - 0xc], 0xcc
je 0x412cab
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x412da2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x412da2
cmp word [eax + 0x18], 0x10b
jne 0x412da2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x412da2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x412cab
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x412cab
test byte [ecx + 0x27], 0x80
jne 0x412d22
push 1
push 0x4414e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x412bbf
mov ecx, dword [0x441498]
test ecx, ecx
mov edx, ecx
jle 0x412cdf
lea eax, [ecx*4 + 0x44149c]
cmp dword [eax], edi
je 0x412cdf
dec edx
sub eax, 4
test edx, edx
jg 0x412cd3
test edx, edx
jne 0x412d10
push 0xf
pop ebx
cmp ecx, ebx
jg 0x412cec
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x412d04
lea eax, [edx*4 + 0x4414a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x412cf2
cmp ecx, 0x10
jge 0x412d10
inc ecx
mov dword [0x441498], ecx
push 0
push 0x4414e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x412bbf
xor eax, eax
jmp 0x412da5
test esi, esi
jle 0x412bbf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4414e0
call ebx
test eax, eax
jne 0x412bbf
cmp dword [esi*4 + 0x4414a0], edi
je 0x412d7c
mov eax, dword [0x441498]
lea esi, [eax - 1]
test esi, esi
jl 0x412d6a
cmp dword [esi*4 + 0x4414a0], edi
je 0x412d66
dec esi
jns 0x412d5a
test esi, esi
jge 0x412d7a
cmp eax, 0x10
jge 0x412d75
inc eax
mov dword [0x441498], eax
lea esi, [eax - 1]
jmp 0x412d7c
je 0x412d94
xor ecx, ecx
test esi, esi
jl 0x412d94
lea eax, [ecx*4 + 0x4414a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x412d82
push 0
push 0x4414e0
call ebx
jmp 0x412bbf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412daa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43e360]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43e768]
je 0x412ddf
inc eax
cmp eax, 0x13
jb 0x412dd0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43e768]
jne 0x412f05
mov eax, dword [0x4412c8]
cmp eax, 1
je 0x412edd
cmp eax, edx
jne 0x412e0f
cmp dword [0x43e394], 1
je 0x412edd
cmp ecx, 0xfc
je 0x412f05
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412e45
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00411cd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040f4c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412e79
mov eax, edi
push eax
call fcn.0040f4c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43425c
push edi
call fcn.004168d0
add esp, 0x10
push edi
call fcn.0040f4c0
push dword [esi + 0x43e76c]
mov ebx, eax
call fcn.0040f4c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040edf0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411cd0
push edi
push ebx
call fcn.00411ce0
push 0x434258
push ebx
call fcn.00411ce0
push dword [esi + 0x43e76c]
push ebx
call fcn.00411ce0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004167c9
add esp, 0x2c
jmp 0x412f05
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43e76c]
push dword [esi]
call fcn.0040f4c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040e4be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4167c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x441704], ebx
push esi
push edi
jne 0x416849
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416884
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43512c
push edi
call esi
test eax, eax
mov dword [0x441704], eax
je 0x416884
push 0x43511c
push edi
call esi
push 0x435108
push edi
mov dword [0x441708], eax
call esi
cmp dword [0x4412d0], 2
mov dword [0x44170c], eax
jne 0x416849
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x441714], eax
je 0x416849
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x441710], eax
mov eax, dword [0x441710]
test eax, eax
je 0x41688e
call eax
test eax, eax
je 0x416875
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x441714]
test eax, eax
je 0x416875
test byte [ebp - 8], 1
jne 0x41688e
cmp dword [0x4412dc], 4
jb 0x416888
or byte [ebp + 0x12], 0x20
jmp 0x4168ad
xor eax, eax
jmp 0x4168bd
or byte [ebp + 0x12], 4
jmp 0x4168ad
mov eax, dword [0x441708]
test eax, eax
je 0x4168ad
call eax
mov ebx, eax
test ebx, ebx
je 0x4168ad
mov eax, dword [0x44170c]
test eax, eax
je 0x4168ad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x441704]
pop edi
pop esi
pop ebx
leave
ret