joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x51f89f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x53c348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x53c348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x53b178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f8a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x43b643
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop edx
mov ebx, ebx
mov ebx, ebx
and edi, ebx
call fcn.0043b686
sub ebx, 0x72411058
xor dword [ecx], edx
dec ebx
sub esp, 4
mov dword [esp], edi
mov edi, dword [esp]
add esp, 4
inc ecx
mov ebx, edi
or ebx, ebx
or edi, edi
cmp ecx, eax
jne fcn.0043b643
add ebx, 0xc56229c9
ret
Function at 0x418c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c8d8
push 0x418d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x58c620], 0xffffffff
or dword [0x58c624], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x58c61c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x58c618]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x58c628], eax
call fcn.00418d41
cmp dword [0x4bf0f0], 0
jne 0x418c93
push 0x418d3e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00418d2c
push 0x46e00c
push 0x46e008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x58c614]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x58c610]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x46e004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00418a8b
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401030
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x9c], 0x70
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0x7ac8030d
mov ecx, dword [ebp - 0x9c]
add ecx, 0xf
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 4], 0
jne 0x4010eb
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_CloseWindow]
mov dword [ebp - 0x98], 0x80100011
mov dword [ebp - 0x24], 0
mov eax, dword [str.Winscard.dll]
mov dword [ebp - 0xac], eax
mov ecx, dword [0x40c31c]
mov dword [ebp - 0xa8], ecx
mov edx, dword [0x40c320]
mov dword [ebp - 0xa4], edx
mov al, byte [0x40c324]
mov byte [ebp - 0xa0], al
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x18]
push 0
push 0x20
push 0xe8
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x57
jne 0x40115d
mov ecx, dword [0x40ef40]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], str.SCardForgetReaderGroupA
push dword [ebp - 0xc]
push dword [ebp - 0x94]
call dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
push 0
push 0
call dword [ebp - 0x24]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x98]
je 0x4011b0
cmp dword [ebp - 0x8c], 2
jne 0x4011c9
mov ecx, dword [ebp - 0x8c]
sub ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x20], 0xc2d39e5
cmp dword [ebp - 0x38], 0
je 0x4011d5
cmp dword [ebp + 8], 0
jne 0x4011de
cmp dword [ebp - 0x8c], 0
jne 0x401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
cmp dword [ebp + 8], 0
je 0x401200
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov dword [ebp - 0x38], 6
push 0
push 0xa
push 0
push 0xffffffffffffffff
call sub.PSAPI.DLL_EnumProcessModules
sub eax, 0xfffffff9
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x8c]
jne 0x40123a
cmp dword [ebp + 8], 0
je 0x401233
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4083d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1bc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp + 8], 0x200000
mov eax, dword [ebp + 8]
shl eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40ef40], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x19c], edx
lea eax, [ebp - 0x198]
mov dword [ebp - 0x160], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a8], 0
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.00401310
add esp, 8
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1b0], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
jbe 0x401671
push dword [ebp - 0x160]
cmp dword [ebp - 0x164], 0
jbe 0x40169d
push 0x40c348
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x40169d
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
mov ebx, dword [ebp - 0x164]
cmp dword [ebp - 0x164], 0
je 0x4016ac
push 0
jmp ebx
mov dword [ebp - 4], 0
wait
fld qword [0x40c350]
sub esp, 8
fstp qword [esp]
call fcn.004016f0
fstp st(0)
add esp, 8
wait
jmp 0x4016d3
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40204c
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c368
call fcn.004044b0
mov edi, 0x94
mov eax, edi
call fcn.00404610
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 [0x40efcc], ecx
mov eax, dword [esi + 4]
mov dword [0x40efd8], eax
mov edx, dword [esi + 8]
mov dword [0x40efdc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40efd0], esi
cmp ecx, 2
je 0x4020ac
or esi, 0x8000
mov dword [0x40efd0], esi
shl eax, 8
add eax, edx
mov dword [0x40efd4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4020e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4020e7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4020ff
cmp eax, 0x20b
je 0x4020ec
mov dword [ebp - 0x1c], esi
jmp 0x402113
cmp dword [ecx + 0x84], 0xe
jbe 0x4020e7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40210d
cmp dword [ecx + 0x74], 0xe
jbe 0x4020e7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040445d
pop ecx
test eax, eax
jne 0x40213f
cmp dword [0x40ef98], 1
jne 0x40212c
call fcn.00403c12
push 0x1c
call fcn.00403a9b
push 0xff
call fcn.00403900
pop ecx
pop ecx
call fcn.004043bb
mov dword [ebp - 4], esi
call fcn.00404210
test eax, eax
jge 0x402158
push 0x1b
call fcn.00402027
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f590], eax
call fcn.004040ee
mov dword [0x40ef90], eax
call fcn.0040404c
test eax, eax
jge 0x40217e
push 8
call fcn.00402027
pop ecx
call fcn.00403e19
test eax, eax
jge 0x40218f
push 9
call fcn.00402027
pop ecx
push 1
call fcn.00403930
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4021a5
push eax
call fcn.00402027
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403dbc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4021c6
movzx eax, word [ebp - 0x40]
jmp 0x4021c9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401540
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4021e7
push edi
call fcn.00403a5b
call fcn.00403a7d
jmp 0x402219
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004044eb
ret
Function at 0x40399a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40f00c], esi
push edi
jne 0x4039ba
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 [0x40f008], esi
mov byte [0x40f004], al
jne 0x403a20
mov ecx, dword [0x40f588]
test ecx, ecx
je 0x403a01
mov eax, dword [0x40f584]
sub eax, 4
cmp eax, ecx
jmp 0x4039fa
mov eax, dword [eax]
test eax, eax
je 0x4039ec
call eax
mov eax, dword [0x40f584]
sub eax, 4
cmp eax, dword [0x40f588]
mov dword [0x40f584], eax
jae 0x4039e4
mov eax, 0x40e020
mov esi, 0x40e024
cmp eax, esi
mov edi, eax
jae 0x403a20
mov eax, dword [edi]
test eax, eax
je 0x403a19
call eax
add edi, 4
cmp edi, esi
jb 0x403a11
mov eax, 0x40e028
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x403a3f
mov eax, dword [edi]
test eax, eax
je 0x403a38
call eax
add edi, 4
cmp edi, esi
jb 0x403a30
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403a59
push dword [ebp + 8]
mov dword [0x40f00c], 1
call fcn.00403900
pop ebp
ret

Function at 0x403a9b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e8a4]
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 + 0x40e9f0]
je 0x403ad0
inc eax
cmp eax, 0x13
jb 0x403ac1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e9f0]
jne 0x403bf6
mov eax, dword [0x40ef98]
cmp eax, 1
je 0x403bce
cmp eax, edx
jne 0x403b00
cmp dword [0x40e890], 1
je 0x403bce
cmp ecx, 0xfc
je 0x403bf6
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 0x403b36
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405b10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405a80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403b6a
mov eax, edi
push eax
call fcn.00405a80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c8f8
push edi
call fcn.00406180
add esp, 0x10
push edi
call fcn.00405a80
push dword [esi + 0x40e9f4]
mov ebx, eax
call fcn.00405a80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404610
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405b10
push edi
push ebx
call fcn.00405b20
push 0x40c8d8
push ebx
call fcn.00405b20
push dword [esi + 0x40e9f4]
push ebx
call fcn.00405b20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040607f
add esp, 0x2c
jmp 0x403bf6
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e9f4]
push dword [esi]
call fcn.00405a80
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.00405fb5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40607f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f154], ebx
push esi
push edi
jne 0x4060ff
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40613a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40f154], eax
je 0x40613a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f158], eax
call esi
cmp dword [0x40efcc], 2
mov dword [0x40f15c], eax
jne 0x4060ff
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f164], eax
je 0x4060ff
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f160], eax
mov eax, dword [0x40f160]
test eax, eax
je 0x406144
call eax
test eax, eax
je 0x40612b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f164]
test eax, eax
je 0x40612b
test byte [ebp - 8], 1
jne 0x406144
cmp dword [0x40efd8], 4
jb 0x40613e
or byte [ebp + 0x12], 0x20
jmp 0x406163
xor eax, eax
jmp 0x406173
or byte [ebp + 0x12], 4
jmp 0x406163
mov eax, dword [0x40f158]
test eax, eax
je 0x406163
call eax
mov ebx, eax
test ebx, ebx
je 0x406163
mov eax, dword [0x40f15c]
test eax, eax
je 0x406163
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f154]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406754
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 0x406782
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 0x406789
cmp ebx, dword [eax + 4]
jae 0x406789
xor eax, eax
jmp 0x406979
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40679a
xor eax, eax
inc eax
jmp 0x406978
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4067b0
cmp ecx, edx
jae 0x4068f5
cmp dword [eax + 4], 0
je 0x4067b9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4067a1
cmp dword [ebp + 8], 0
je 0x4067db
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4068f5
cmp eax, esi
jae 0x4068f5
mov eax, dword [0x40f170]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406800
cmp dword [esi*4 + 0x40f178], edi
je 0x4068f9
inc esi
cmp esi, eax
jl 0x4067ee
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406975
cmp dword [ebp - 8], 0x1000000
jne 0x406975
test byte [ebp - 0xc], 0xcc
je 0x40687e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406975
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406975
cmp word [eax + 0x18], 0x10b
jne 0x406975
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406975
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40687e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40687e
test byte [ecx + 0x27], 0x80
jne 0x4068f5
push 1
push 0x40f1b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406792
mov ecx, dword [0x40f170]
test ecx, ecx
mov edx, ecx
jle 0x4068b2
lea eax, [ecx*4 + 0x40f174]
cmp dword [eax], edi
je 0x4068b2
dec edx
sub eax, 4
test edx, edx
jg 0x4068a6
test edx, edx
jne 0x4068e3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4068bf
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4068d7
lea eax, [edx*4 + 0x40f178]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4068c5
cmp ecx, 0x10
jge 0x4068e3
inc ecx
mov dword [0x40f170], ecx
push 0
push 0x40f1b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406792
xor eax, eax
jmp 0x406978
test esi, esi
jle 0x406792
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f1b8
call ebx
test eax, eax
jne 0x406792
cmp dword [esi*4 + 0x40f178], edi
je 0x40694f
mov eax, dword [0x40f170]
lea esi, [eax - 1]
test esi, esi
jl 0x40693d
cmp dword [esi*4 + 0x40f178], edi
je 0x406939
dec esi
jns 0x40692d
test esi, esi
jge 0x40694d
cmp eax, 0x10
jge 0x406948
inc eax
mov dword [0x40f170], eax
lea esi, [eax - 1]
jmp 0x40694f
je 0x406967
xor ecx, ecx
test esi, esi
jl 0x406967
lea eax, [ecx*4 + 0x40f178]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406955
push 0
push 0x40f1b8
call ebx
jmp 0x406792
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret