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

Disassembly:
push 0xffffffffffffffff
push 0x467d83
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.0045bfa1
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.004615ef
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462b0b
test eax, eax
je 0x43bcec
mov ecx, dword [esp + 0x3c]
call fcn.0046161c
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 0x43bcb0
push edi
mov ecx, esi
call fcn.0045ec81
mov ecx, esi
call fcn.0043be50
cmp dword [esp + 0x38], 1
jne 0x43bce5
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.0045edbc
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 0x43e710
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e743
push esi
call fcn.00441800
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e73c
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 0x43e7c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e7b2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e767
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 0x43e7ae
cmp eax, 2
je 0x43e7b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e75a
cmp eax, 3
je 0x43e78d
cmp eax, 1
jne 0x43e75a
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 0x43e75a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e75a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e7f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e7d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e7f0
add esp, 4
pop esi
ret

Function at 0x45cd7d
Capabilities:
Get graphical window text

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

Function at 0x45e46f
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 0x45e4b1
call fcn.00463deb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e4b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e4a8
xor eax, eax
jmp 0x45e4b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e4bf
pop edi
pop esi
pop ebx
ret 4

Function at 0x46431b
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 0x464349
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464367
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464281
jmp 0x464367
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464367
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464281
test edi, edi
mov eax, edi
jne 0x464351
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401270
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 0x401289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40129d
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 0x4012be
cmp esi, eax
jae 0x401297
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012b0
cmp esi, eax
jae 0x401297
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403b20
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x435100]
push edi
mov dword [esp + 0x1c], eax
call fcn.00423cf9
mov ecx, dword [esp + 0x2c]
movzx edx, word [esp + 0x28]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403b6c
call fcn.00423cf9
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 8], eax
jne 0x403b7e
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x18]
call fcn.0040dd5e
add esp, 0x1c
ret 0xc
push ebx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [esp + 0x18], 0
call fcn.00423cf9
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov ebx, eax
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x403bed
push ebp
jmp 0x403cb1
mov eax, 2
sub eax, ebx
mov dword [esp + 0x38], eax
mov edi, 1
mov eax, 3
xor esi, esi
sub edi, ebx
sub eax, ebx
mov byte [esp + 0x1c], 0x2f
mov byte [esp + 0x1d], 0x5a
mov byte [esp + 0x1e], 0x7f
mov byte [esp + 0x1f], 0xe2
mov byte [esp + 0x20], 0x19
mov byte [esp + 0x21], 0x36
mov byte [esp + 0x22], 0x91
mov byte [esp + 0x23], 0x77
mov byte [esp + 0x24], 0x81
mov byte [esp + 0x25], 0x2e
mov byte [esp + 0x26], 0x58
mov ecx, ebx
mov dword [esp + 0x34], eax
xor edx, edx
mov ebp, 0xa
mov eax, esi
div ebp
mov al, byte [ecx]
add esi, 4
mov dl, byte [esp + edx + 0x1c]
xor al, dl
xor edx, edx
mov byte [ecx], al
lea eax, [edi + ecx]
div ebp
mov al, byte [esp + edx + 0x1c]
xor byte [ecx + 1], al
mov edx, dword [esp + 0x38]
lea eax, [edx + ecx]
xor edx, edx
div ebp
mov al, byte [esp + edx + 0x1c]
xor byte [ecx + 2], al
mov edx, dword [esp + 0x34]
lea eax, [edx + ecx]
xor edx, edx
div ebp
add ecx, 4
mov al, byte [esp + edx + 0x1c]
mov dl, byte [ecx - 1]
xor dl, al
cmp esi, 0x80
mov byte [ecx - 1], dl
jl 0x403c45
mov edi, dword [esp + 0x30]
mov ecx, 0x20
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
call fcn.0040dd5e
add esp, 0x1c
ret 0xc
Function at 0x40551c
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 0x40556f
call fcn.00423cf9
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40556f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x405565
xor eax, eax
jmp 0x405688
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 0x40559f
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 0x40559f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x405685
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4055cc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00404626
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x405685
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x405615
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x405615
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40560f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00404626
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x405675
and dword [ebp + 0xc], 0
jmp 0x405675
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x405675
push 0xc
call fcn.0041fb9a
mov esi, eax
test esi, esi
pop ecx
je 0x405657
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 0x405659
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x405670
push dword [ebp - 8]
call fcn.0041ab3d
jmp 0x405675
call fcn.0041ab14
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4055da
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40da07
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.0040dcf0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40daa2
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 [0x4380e8]
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 0x40daa2
cmp eax, 1
je 0x40dac3
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 0x40daa2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40da6f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40da9e
xor eax, eax
inc eax
jmp 0x40dae2
cmp edi, eax
jae 0x40daa6
xor eax, eax
jmp 0x40dae2
cmp eax, esi
jae 0x40daad
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 [0x4380e8]
jmp 0x40dac6
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 0x40e7bc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42c6d8
call fcn.0040f498
mov edi, 0x94
mov eax, edi
call fcn.0040dcf0
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 [0x4380e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4380f4], eax
mov edx, dword [esi + 8]
mov dword [0x4380f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4380ec], esi
cmp ecx, 2
je 0x40e81c
or esi, 0x8000
mov dword [0x4380ec], esi
shl eax, 8
add eax, edx
mov dword [0x4380f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e857
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e857
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e86f
cmp eax, 0x20b
je 0x40e85c
mov dword [ebp - 0x1c], esi
jmp 0x40e883
cmp dword [ecx + 0x84], 0xe
jbe 0x40e857
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e87d
cmp dword [ecx + 0x74], 0xe
jbe 0x40e857
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410895
pop ecx
test eax, eax
jne 0x40e897
push 0x1c
call fcn.0040e798
pop ecx
call fcn.00411c06
test eax, eax
jne 0x40e8a8
push 0x10
call fcn.0040e798
pop ecx
call fcn.00413963
mov dword [ebp - 4], esi
call fcn.00413765
test eax, eax
jge 0x40e8c1
push 0x1b
call fcn.0040e773
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4399d0], eax
call fcn.00413643
mov dword [0x4380d4], eax
call fcn.004135a1
test eax, eax
jge 0x40e8e7
push 8
call fcn.0040e773
pop ecx
call fcn.0041336e
test eax, eax
jge 0x40e8f8
push 9
call fcn.0040e773
pop ecx
push 1
call fcn.0040f2fd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e90e
push eax
call fcn.0040e773
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413311
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e92f
movzx eax, word [ebp - 0x40]
jmp 0x40e932
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041a046
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e950
push edi
call fcn.0040f42a
call fcn.0040f44c
jmp 0x40e982
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f4d3
ret
Function at 0x40f367
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42c748
call fcn.0040f498
push 8
call fcn.0041084a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x438128], esi
jne 0x40f39b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x438124], esi
mov al, byte [ebp + 0x10]
mov byte [0x438120], al
cmp dword [ebp + 0xc], edi
jne 0x40f3e5
cmp dword [0x4399c8], edi
je 0x40f3d5
mov eax, dword [0x4399c4]
sub eax, 4
mov dword [0x4399c4], eax
cmp eax, dword [0x4399c8]
jb 0x40f3d5
mov eax, dword [eax]
cmp eax, edi
je 0x40f3b6
call eax
jmp 0x40f3b6
push 0x434098
mov eax, 0x434090
call fcn.0040f2e5
pop ecx
push 0x4340a4
mov eax, 0x43409c
call fcn.0040f2e5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f416
cmp dword [ebp + 0x10], edi
jne 0x40f424
mov dword [0x438128], esi
push dword [ebp + 8]
call fcn.0040f2a3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f423
push 8
call fcn.00410795
pop ecx
ret
call fcn.0040f4d3
ret
Function at 0x411424
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 0x411452
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 0x411459
cmp ebx, dword [eax + 4]
jae 0x411459
xor eax, eax
jmp 0x411649
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41146a
xor eax, eax
inc eax
jmp 0x411648
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411480
cmp ecx, edx
jae 0x4115c5
cmp dword [eax + 4], 0
je 0x411489
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411471
cmp dword [ebp + 8], 0
je 0x4114ab
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4115c5
cmp eax, esi
jae 0x4115c5
mov eax, dword [0x438290]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4114d0
cmp dword [esi*4 + 0x438298], edi
je 0x4115c9
inc esi
cmp esi, eax
jl 0x4114be
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411645
cmp dword [ebp - 8], 0x1000000
jne 0x411645
test byte [ebp - 0xc], 0xcc
je 0x41154e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411645
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411645
cmp word [eax + 0x18], 0x10b
jne 0x411645
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411645
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41154e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41154e
test byte [ecx + 0x27], 0x80
jne 0x4115c5
push 1
push 0x4382d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x411462
mov ecx, dword [0x438290]
test ecx, ecx
mov edx, ecx
jle 0x411582
lea eax, [ecx*4 + 0x438294]
cmp dword [eax], edi
je 0x411582
dec edx
sub eax, 4
test edx, edx
jg 0x411576
test edx, edx
jne 0x4115b3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41158f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4115a7
lea eax, [edx*4 + 0x438298]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411595
cmp ecx, 0x10
jge 0x4115b3
inc ecx
mov dword [0x438290], ecx
push 0
push 0x4382d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x411462
xor eax, eax
jmp 0x411648
test esi, esi
jle 0x411462
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4382d8
call ebx
test eax, eax
jne 0x411462
cmp dword [esi*4 + 0x438298], edi
je 0x41161f
mov eax, dword [0x438290]
lea esi, [eax - 1]
test esi, esi
jl 0x41160d
cmp dword [esi*4 + 0x438298], edi
je 0x411609
dec esi
jns 0x4115fd
test esi, esi
jge 0x41161d
cmp eax, 0x10
jge 0x411618
inc eax
mov dword [0x438290], eax
lea esi, [eax - 1]
jmp 0x41161f
je 0x411637
xor ecx, ecx
test esi, esi
jl 0x411637
lea eax, [ecx*4 + 0x438298]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411625
push 0
push 0x4382d8
call ebx
jmp 0x411462
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412ffd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x435100]
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 + 0x435698]
je 0x413032
inc eax
cmp eax, 0x13
jb 0x413023
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x435698]
jne 0x413158
mov eax, dword [0x4380dc]
cmp eax, 1
je 0x413130
cmp eax, edx
jne 0x413062
cmp dword [0x435114], 1
je 0x413130
cmp ecx, 0xfc
je 0x413158
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 0x413098
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00414950
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040ee60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4130cc
mov eax, edi
push eax
call fcn.0040ee60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c7ec
push edi
call fcn.00416250
add esp, 0x10
push edi
call fcn.0040ee60
push dword [esi + 0x43569c]
mov ebx, eax
call fcn.0040ee60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040dcf0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414950
push edi
push ebx
call fcn.00414960
push 0x42c7e8
push ebx
call fcn.00414960
push dword [esi + 0x43569c]
push ebx
call fcn.00414960
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041614b
add esp, 0x2c
jmp 0x413158
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43569c]
push dword [esi]
call fcn.0040ee60
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.0040dd5e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41614b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43851c], ebx
push esi
push edi
jne 0x4161cb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416206
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d6e4
push edi
call esi
test eax, eax
mov dword [0x43851c], eax
je 0x416206
push 0x42d6d4
push edi
call esi
push 0x42d6c0
push edi
mov dword [0x438520], eax
call esi
cmp dword [0x4380e8], 2
mov dword [0x438524], eax
jne 0x4161cb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43852c], eax
je 0x4161cb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x438528], eax
mov eax, dword [0x438528]
test eax, eax
je 0x416210
call eax
test eax, eax
je 0x4161f7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43852c]
test eax, eax
je 0x4161f7
test byte [ebp - 8], 1
jne 0x416210
cmp dword [0x4380f4], 4
jb 0x41620a
or byte [ebp + 0x12], 0x20
jmp 0x41622f
xor eax, eax
jmp 0x41623f
or byte [ebp + 0x12], 4
jmp 0x41622f
mov eax, dword [0x438520]
test eax, eax
je 0x41622f
call eax
mov ebx, eax
test ebx, ebx
je 0x41622f
mov eax, dword [0x438524]
test eax, eax
je 0x41622f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43851c]
pop edi
pop esi
pop ebx
leave
ret