joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x1000c040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x39643364
push eax
mov dword [esp + 0x18], 0x6c6c642e
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov byte [esp + 0x18], 0
mov edi, eax
movq qword [esp + 0x10], xmm0
push 0x20
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ebx, eax
test ebx, ebx
je 0x10005277
push 0x38
lea eax, [esp + 0x28]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x44], 1
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 1
mov esi, dword [ebx]
push eax
lea eax, [esp + 0x28]
push eax
push 0x20
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 1
push 0
push ebx
call dword [esi + 0x40]
test eax, eax
js 0x10005277
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x10005277
xor esi, esi
nop
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10005301
cmp dword [edi], ebx
je 0x10005350
add esi, 4
add edi, 4
cmp esi, 0x128000
jb 0x100052f0
mov edi, dword [0x1000d50c]
cmp dword [0x1000d4d4], 0
jne 0x10005360
cmp edi, 0x1000
jbe 0x10005358
mov ebx, dword [edi]
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [esp + 0x20]
mov dword [edi], 0x10005030
push eax
push dword [esp + 0x20]
push 4
push edi
call esi
jmp 0x1000535a
mov dword [0x1000d50c], edi
jmp 0x10005315
xor ebx, ebx
mov dword [0x1000d4d4], ebx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10007464
mov esp, ebp
pop ebp
ret
Function at 0x10005500
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000c040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x100055ef
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10005587
cmp ecx, edi
jne 0x1000557e
mov edx, dword [eax + 4]
test edx, edx
je 0x10005540
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1000554c
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1000555b
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10005565
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x10005571
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1000557e
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10005531
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xc8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0
push 0
push 0
push 0x10005380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.10007464
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007250
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000871d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x1000c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.100070f0
cmp byte [ebp - 0x84], 0
jne 0x100073a1
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x100072e5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x1000cee0
call fcn.100070f0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.100070f0
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x10007354
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.100071a0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x100073e3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100073d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100073d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10007557
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007464
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x4312494e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x355b43df
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4013f0
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 0x401409
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40141d
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 0x40143e
cmp esi, eax
jae 0x401417
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401430
cmp esi, eax
jae 0x401417
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40374b
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 0x40379e
call fcn.004232dd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40379e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x403794
xor eax, eax
jmp 0x4038b7
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 0x4037ce
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 0x4037ce
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4038b4
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4037fb
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00403eef
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4038b4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x403844
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x403844
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40383e
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00403eef
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4038a4
and dword [ebp + 0xc], 0
jmp 0x4038a4
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4038a4
push 0xc
call fcn.0041d1d1
mov esi, eax
test esi, esi
pop ecx
je 0x403886
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 0x403888
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40389f
push dword [ebp - 8]
call fcn.00418c24
jmp 0x4038a4
call fcn.00418bfb
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x403809
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40cc31
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42a750
call fcn.0040e754
push 8
call fcn.004100b0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x438f74], esi
jne 0x40cc65
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x438f70], esi
mov al, byte [ebp + 0x10]
mov byte [0x438f6c], al
cmp dword [ebp + 0xc], edi
jne 0x40ccaf
cmp dword [0x43a80c], edi
je 0x40cc9f
mov eax, dword [0x43a808]
sub eax, 4
mov dword [0x43a808], eax
cmp eax, dword [0x43a80c]
jb 0x40cc9f
mov eax, dword [eax]
cmp eax, edi
je 0x40cc80
call eax
jmp 0x40cc80
push 0x432090
mov eax, 0x432088
call fcn.0040cbaf
pop ecx
push 0x43209c
mov eax, 0x432094
call fcn.0040cbaf
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40cce0
cmp dword [ebp + 0x10], edi
jne 0x40ccee
mov dword [0x438f74], esi
push dword [ebp + 8]
call fcn.0040cb6d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40cced
push 8
call fcn.0040fffb
pop ecx
ret
call fcn.0040e78f
ret

Function at 0x40cd34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cd54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e9ac
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40cd77
test byte [esp + 8], 2
je 0x40cd77
call fcn.0040e99a
mov dword [eax], 0xd
call fcn.0040e9a3
mov dword [eax], 5
jmp 0x40cd50
xor eax, eax
ret

Function at 0x40d007
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.0040cea0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d0a2
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 [0x438f34]
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 0x40d0a2
cmp eax, 1
je 0x40d0c3
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 0x40d0a2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d06f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d09e
xor eax, eax
inc eax
jmp 0x40d0e2
cmp edi, eax
jae 0x40d0a6
xor eax, eax
jmp 0x40d0e2
cmp eax, esi
jae 0x40d0ad
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 [0x438f34]
jmp 0x40d0c6
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 0x40d25a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a780
call fcn.0040e754
mov edi, 0x94
mov eax, edi
call fcn.0040cea0
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 [0x438f34], ecx
mov eax, dword [esi + 4]
mov dword [0x438f40], eax
mov edx, dword [esi + 8]
mov dword [0x438f44], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x438f38], esi
cmp ecx, 2
je 0x40d2ba
or esi, 0x8000
mov dword [0x438f38], esi
shl eax, 8
add eax, edx
mov dword [0x438f3c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d2f5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d2f5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d30d
cmp eax, 0x20b
je 0x40d2fa
mov dword [ebp - 0x1c], esi
jmp 0x40d321
cmp dword [ecx + 0x84], 0xe
jbe 0x40d2f5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d31b
cmp dword [ecx + 0x74], 0xe
jbe 0x40d2f5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410b92
pop ecx
test eax, eax
jne 0x40d335
push 0x1c
call fcn.0040d236
pop ecx
call fcn.0040f9cd
test eax, eax
jne 0x40d346
push 0x10
call fcn.0040d236
pop ecx
call fcn.004100e1
mov dword [ebp - 4], esi
call fcn.004120b2
test eax, eax
jge 0x40d35f
push 0x1b
call fcn.0040d211
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a800], eax
call fcn.00411f90
mov dword [0x438f78], eax
call fcn.00411eee
test eax, eax
jge 0x40d385
push 8
call fcn.0040d211
pop ecx
call fcn.00411cbb
test eax, eax
jge 0x40d396
push 9
call fcn.0040d211
pop ecx
push 1
call fcn.0040cbc7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d3ac
push eax
call fcn.0040d211
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00411c5e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d3cd
movzx eax, word [ebp - 0x40]
jmp 0x40d3d0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004182c8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d3ee
push edi
call fcn.0040ccf4
call fcn.0040cd16
jmp 0x40d420
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040e78f
ret
Function at 0x411721
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 0x41174f
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 0x411756
cmp ebx, dword [eax + 4]
jae 0x411756
xor eax, eax
jmp 0x411946
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x411767
xor eax, eax
inc eax
jmp 0x411945
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41177d
cmp ecx, edx
jae 0x4118c2
cmp dword [eax + 4], 0
je 0x411786
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41176e
cmp dword [ebp + 8], 0
je 0x4117a8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4118c2
cmp eax, esi
jae 0x4118c2
mov eax, dword [0x439110]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4117cd
cmp dword [esi*4 + 0x439118], edi
je 0x4118c6
inc esi
cmp esi, eax
jl 0x4117bb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411942
cmp dword [ebp - 8], 0x1000000
jne 0x411942
test byte [ebp - 0xc], 0xcc
je 0x41184b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411942
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411942
cmp word [eax + 0x18], 0x10b
jne 0x411942
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411942
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41184b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41184b
test byte [ecx + 0x27], 0x80
jne 0x4118c2
push 1
push 0x439158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41175f
mov ecx, dword [0x439110]
test ecx, ecx
mov edx, ecx
jle 0x41187f
lea eax, [ecx*4 + 0x439114]
cmp dword [eax], edi
je 0x41187f
dec edx
sub eax, 4
test edx, edx
jg 0x411873
test edx, edx
jne 0x4118b0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41188c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4118a4
lea eax, [edx*4 + 0x439118]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411892
cmp ecx, 0x10
jge 0x4118b0
inc ecx
mov dword [0x439110], ecx
push 0
push 0x439158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41175f
xor eax, eax
jmp 0x411945
test esi, esi
jle 0x41175f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x439158
call ebx
test eax, eax
jne 0x41175f
cmp dword [esi*4 + 0x439118], edi
je 0x41191c
mov eax, dword [0x439110]
lea esi, [eax - 1]
test esi, esi
jl 0x41190a
cmp dword [esi*4 + 0x439118], edi
je 0x411906
dec esi
jns 0x4118fa
test esi, esi
jge 0x41191a
cmp eax, 0x10
jge 0x411915
inc eax
mov dword [0x439110], eax
lea esi, [eax - 1]
jmp 0x41191c
je 0x411934
xor ecx, ecx
test esi, esi
jl 0x411934
lea eax, [ecx*4 + 0x439118]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411922
push 0
push 0x439158
call ebx
jmp 0x41175f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41194a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x435ff0]
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 + 0x436588]
je 0x41197f
inc eax
cmp eax, 0x13
jb 0x411970
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x436588]
jne 0x411aa5
mov eax, dword [0x438f80]
cmp eax, 1
je 0x411a7d
cmp eax, edx
jne 0x4119af
cmp dword [0x436004], 1
je 0x411a7d
cmp ecx, 0xfc
je 0x411aa5
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 0x4119e5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004130e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d880
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411a19
mov eax, edi
push eax
call fcn.0040d880
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a914
push edi
call fcn.00414870
add esp, 0x10
push edi
call fcn.0040d880
push dword [esi + 0x43658c]
mov ebx, eax
call fcn.0040d880
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040cea0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004130e0
push edi
push ebx
call fcn.004130f0
push 0x42a910
push ebx
call fcn.004130f0
push dword [esi + 0x43658c]
push ebx
call fcn.004130f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414771
add esp, 0x2c
jmp 0x411aa5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43658c]
push dword [esi]
call fcn.0040d880
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.0040c61d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x414771
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x439378], ebx
push esi
push edi
jne 0x4147f1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41482c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b72c
push edi
call esi
test eax, eax
mov dword [0x439378], eax
je 0x41482c
push 0x42b71c
push edi
call esi
push 0x42b708
push edi
mov dword [0x43937c], eax
call esi
cmp dword [0x438f34], 2
mov dword [0x439380], eax
jne 0x4147f1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x439388], eax
je 0x4147f1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x439384], eax
mov eax, dword [0x439384]
test eax, eax
je 0x414836
call eax
test eax, eax
je 0x41481d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x439388]
test eax, eax
je 0x41481d
test byte [ebp - 8], 1
jne 0x414836
cmp dword [0x438f40], 4
jb 0x414830
or byte [ebp + 0x12], 0x20
jmp 0x414855
xor eax, eax
jmp 0x414865
or byte [ebp + 0x12], 4
jmp 0x414855
mov eax, dword [0x43937c]
test eax, eax
je 0x414855
call eax
mov ebx, eax
test ebx, ebx
je 0x414855
mov eax, dword [0x439380]
test eax, eax
je 0x414855
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x439378]
pop edi
pop esi
pop ebx
leave
ret