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

Disassembly:
push 0xffffffffffffffff
push 0x4f0a93
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.004e3619
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.004e8cb5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004ea214
test eax, eax
je 0x45753c
mov ecx, dword [esp + 0x3c]
call fcn.004e8ce2
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 0x457500
push edi
mov ecx, esi
call fcn.004e6347
mov ecx, esi
call fcn.004576a0
cmp dword [esp + 0x38], 1
jne 0x457535
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.004e6482
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 0x459f60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x459f93
push esi
call fcn.0045d060
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x459f8c
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 0x45a019
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a002
mov eax, dword [esi + 8]
test eax, eax
je 0x459fb7
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 0x459ffe
cmp eax, 2
je 0x45a002
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x459faa
cmp eax, 3
je 0x459fdd
cmp eax, 1
jne 0x459faa
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 0x459faa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x459faa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a040
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a028
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a040
add esp, 4
pop esi
ret

Function at 0x4670e0
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 0x467183
test eax, eax
jbe 0x467183
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x467183
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 0x46712e
xor esi, esi
jmp 0x467134
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46715f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046acc0
add esi, eax
push esi
mov ebx, esi
call fcn.0046acc0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x467140
pop ebp
test edi, edi
pop edi
jne 0x467183
test ebx, ebx
je 0x467183
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004cf7f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4672c5
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 0x4673dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4673dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e3a6b
mov esi, eax
test esi, esi
je 0x4673dd
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 0x4673dd
mov ecx, esi
call fcn.00467230
cmp edi, eax
jge 0x4673dd
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 0x467363
mov dword [esp + 0x34], 1
jmp 0x4673be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4673dd
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.00465a50
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 0x4910a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4910cc
mov ecx, dword [esp + 8]
push ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [edx + 0x500314]
lea edx, [eax*8]
xor ebx, edx
xor eax, ebx
inc ecx
dec esi
jne 0x4910b0
pop ebx
pop esi
ret
Function at 0x4bb380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x2c
call fcn.004cf9d7
mov esi, eax
add esp, 4
test esi, esi
jne 0x4bb397
pop esi
pop ebp
ret
push edi
push 0x2c
push 0
push esi
call fcn.004d15a0
add esp, 0xc
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edi, eax
mov dword [esi], edi
test edi, edi
jne 0x4bb3ca
push esi
call fcn.004cf8ee
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4bb3d7
mov ebx, 0x14
lea eax, [ebx*4]
push eax
call fcn.004cf9d7
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x4bb405
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004cf8ee
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
test ebx, ebx
je 0x4bb440
push 0
push 0
push esi
push 0x4bb240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x28]
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x28]
cmp dword [edx + edi*4], 0
je 0x4bb43b
inc dword [esi + 0x20]
inc edi
cmp edi, ebx
jb 0x4bb415
cmp dword [esi + 0x20], 0
jne 0x4bb472
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x28]
push ecx
call fcn.004cf8ee
push esi
call fcn.004cf8ee
add esp, 8
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
mov dword [esi + 0x1c], 1
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4be900
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call fcn.004d1c16
add esp, 8
push 1
call fcn.004d1b23
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x4be946
push esi
mov esi, eax
shl esi, 7
add esi, eax
inc edx
movsx eax, cl
mov cl, byte [edx]
test cl, cl
lea eax, [esi + eax - 0x61c8ffff]
jne 0x4be92d
pop esi
ret
Function at 0x4c7700
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4c774a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4c7779
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4c77bb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4ca7a0
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 0x4ca806
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 0x4ca806
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ca7e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4cab90
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4cabc8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4cb840
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 0x4cb889
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 0x4cbd00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f1560
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.004cb8b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004cb930
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004cb930
lea ecx, [esi + 0xc]
call fcn.004e1fc9
lea ecx, [esi + 0x10]
call fcn.004e1fc9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004ccec0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004ccec0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004ccec0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e203e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e203e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e440f
Capabilities:
Get graphical window text

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

Function at 0x4e5b01
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 0x4e5b43
call fcn.004eb8bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e5b43
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e5b3a
xor eax, eax
jmp 0x4e5b4b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e5b51
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ebdef
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 0x4ebe1d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ebe3b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ebd55
jmp 0x4ebe3b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ebe3b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ebd55
test edi, edi
mov eax, edi
jne 0x4ebe25
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40102a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4050f0
call fcn.00401db4
mov edi, 0x94
mov eax, edi
call fcn.00401f10
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 [0x4072b8], ecx
mov eax, dword [esi + 4]
mov dword [0x4072c4], eax
mov edx, dword [esi + 8]
mov dword [0x4072c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4072bc], esi
cmp ecx, 2
je 0x40108a
or esi, 0x8000
mov dword [0x4072bc], esi
shl eax, 8
add eax, edx
mov dword [0x4072c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4010c5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4010c5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010dd
cmp eax, 0x20b
je 0x4010ca
mov dword [ebp - 0x1c], esi
jmp 0x4010f1
cmp dword [ecx + 0x84], 0xe
jbe 0x4010c5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4010c5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401d63
pop ecx
test eax, eax
jne 0x40111d
cmp dword [0x4072a8], 1
jne 0x40110a
call fcn.00401518
push 0x1c
call fcn.004013a1
push 0xff
call fcn.00401206
pop ecx
pop ecx
call fcn.00401cc1
mov dword [ebp - 4], esi
call fcn.00401b16
test eax, eax
jge 0x401136
push 0x1b
call fcn.00401005
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407834], eax
call fcn.004019f4
mov dword [0x4072a0], eax
call fcn.00401952
test eax, eax
jge 0x40115c
push 8
call fcn.00401005
pop ecx
call fcn.0040171f
test eax, eax
jge 0x40116d
push 9
call fcn.00401005
pop ecx
push 1
call fcn.00401236
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401183
push eax
call fcn.00401005
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004016c2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4011a4
movzx eax, word [ebp - 0x40]
jmp 0x4011a7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4011c5
push edi
call fcn.00401361
call fcn.00401383
jmp 0x4011f7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401def
ret
Function at 0x4012a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4072f8], esi
push edi
jne 0x4012c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4072f4], esi
mov byte [0x4072f0], al
jne 0x401326
mov ecx, dword [0x407828]
test ecx, ecx
je 0x401307
mov eax, dword [0x407824]
sub eax, 4
cmp eax, ecx
jmp 0x401300
mov eax, dword [eax]
test eax, eax
je 0x4012f2
call eax
mov eax, dword [0x407824]
sub eax, 4
cmp eax, dword [0x407828]
mov dword [0x407824], eax
jae 0x4012ea
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401326
mov eax, dword [edi]
test eax, eax
je 0x40131f
call eax
add edi, 4
cmp edi, esi
jb 0x401317
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x401345
mov eax, dword [edi]
test eax, eax
je 0x40133e
call eax
add edi, 4
cmp edi, esi
jb 0x401336
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40135f
push dword [ebp + 8]
mov dword [0x4072f8], 1
call fcn.00401206
pop ebp
ret

Function at 0x4013a1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407170]
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 + 0x407038]
je 0x4013d6
inc eax
cmp eax, 0x13
jb 0x4013c7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407038]
jne 0x4014fc
mov eax, dword [0x4072a8]
cmp eax, 1
je 0x4014d4
cmp eax, edx
jne 0x401406
cmp dword [0x407034], 1
je 0x4014d4
cmp ecx, 0xfc
je 0x4014fc
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 0x40143c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402110
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402340
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401470
mov eax, edi
push eax
call fcn.00402340
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405508
push edi
call fcn.00402210
add esp, 0x10
push edi
call fcn.00402340
push dword [esi + 0x40703c]
mov ebx, eax
call fcn.00402340
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402110
push edi
push ebx
call fcn.00402120
push 0x4054e8
push ebx
call fcn.00402120
push dword [esi + 0x40703c]
push ebx
call fcn.00402120
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402009
add esp, 0x2c
jmp 0x4014fc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40703c]
push dword [esi]
call fcn.00402340
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.004023fc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402009
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407414], ebx
push esi
push edi
jne 0x402089
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4020c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407414], eax
je 0x4020c4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407418], eax
call esi
cmp dword [0x4072b8], 2
mov dword [0x40741c], eax
jne 0x402089
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407424], eax
je 0x402089
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407420], eax
mov eax, dword [0x407420]
test eax, eax
je 0x4020ce
call eax
test eax, eax
je 0x4020b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407424]
test eax, eax
je 0x4020b5
test byte [ebp - 8], 1
jne 0x4020ce
cmp dword [0x4072c4], 4
jb 0x4020c8
or byte [ebp + 0x12], 0x20
jmp 0x4020ed
xor eax, eax
jmp 0x4020fd
or byte [ebp + 0x12], 4
jmp 0x4020ed
mov eax, dword [0x407418]
test eax, eax
je 0x4020ed
call eax
mov ebx, eax
test ebx, ebx
je 0x4020ed
mov eax, dword [0x40741c]
test eax, eax
je 0x4020ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40384e
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 0x40387c
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 0x403883
cmp ebx, dword [eax + 4]
jae 0x403883
xor eax, eax
jmp 0x403a73
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403894
xor eax, eax
inc eax
jmp 0x403a72
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4038aa
cmp ecx, edx
jae 0x4039ef
cmp dword [eax + 4], 0
je 0x4038b3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40389b
cmp dword [ebp + 8], 0
je 0x4038d5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4039ef
cmp eax, esi
jae 0x4039ef
mov eax, dword [0x407430]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4038fa
cmp dword [esi*4 + 0x407438], edi
je 0x4039f3
inc esi
cmp esi, eax
jl 0x4038e8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403a6f
cmp dword [ebp - 8], 0x1000000
jne 0x403a6f
test byte [ebp - 0xc], 0xcc
je 0x403978
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403a6f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403a6f
cmp word [eax + 0x18], 0x10b
jne 0x403a6f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403a6f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403978
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403978
test byte [ecx + 0x27], 0x80
jne 0x4039ef
push 1
push 0x407478
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40388c
mov ecx, dword [0x407430]
test ecx, ecx
mov edx, ecx
jle 0x4039ac
lea eax, [ecx*4 + 0x407434]
cmp dword [eax], edi
je 0x4039ac
dec edx
sub eax, 4
test edx, edx
jg 0x4039a0
test edx, edx
jne 0x4039dd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4039b9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4039d1
lea eax, [edx*4 + 0x407438]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4039bf
cmp ecx, 0x10
jge 0x4039dd
inc ecx
mov dword [0x407430], ecx
push 0
push 0x407478
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40388c
xor eax, eax
jmp 0x403a72
test esi, esi
jle 0x40388c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407478
call ebx
test eax, eax
jne 0x40388c
cmp dword [esi*4 + 0x407438], edi
je 0x403a49
mov eax, dword [0x407430]
lea esi, [eax - 1]
test esi, esi
jl 0x403a37
cmp dword [esi*4 + 0x407438], edi
je 0x403a33
dec esi
jns 0x403a27
test esi, esi
jge 0x403a47
cmp eax, 0x10
jge 0x403a42
inc eax
mov dword [0x407430], eax
lea esi, [eax - 1]
jmp 0x403a49
je 0x403a61
xor ecx, ecx
test esi, esi
jl 0x403a61
lea eax, [ecx*4 + 0x407438]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403a4f
push 0
push 0x407478
call ebx
jmp 0x40388c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret