joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f050
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x40f760
call fcn.0040f5e4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4116e8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40eecd
cmp eax, esi
jne 0x40eec0
xor esi, esi
inc esi
mov edi, esi
jmp 0x40eed0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40eea4
xor esi, esi
inc esi
cmp dword [0x4116ec], esi
jne 0x40eee2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40ef1c
cmp dword [0x4116ec], ebx
jne 0x40ef16
mov dword [0x4116ec], esi
push 0x401018
push 0x40100c
call fcn.0040effc
pop ecx
pop ecx
test eax, eax
je 0x40ef1c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40eff1
mov dword [0x410094], esi
cmp dword [0x4116ec], esi
jne 0x40ef3f
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4116ec], 2
test edi, edi
jne 0x40ef4c
xor eax, eax
mov ecx, 0x4116e8
xchg dword [ecx], eax
cmp dword [0x4116f0], 0
je 0x40ef78
push 0x4116f0
call fcn.0040f410
pop ecx
test eax, eax
je 0x40ef78
push ebx
push 2
push ebx
mov esi, dword [0x4116f0]
mov ecx, esi
call dword [0x4121a8]
call esi
push dword [0x4100a0]
push dword [0x41009c]
push dword [0x410098]
call fcn.00406412
add esp, 0xc
mov dword [0x410090], eax
cmp dword [0x4100a8], 0
jne 0x40efd6
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x410094], 0
jne 0x40efea
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x410090]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040f62c
ret
call fcn.0040f518
jmp 0x40ee88

Function at 0x40f2ef
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f780
call fcn.0040f678
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f34f
cmp eax, 0xffffffff
je 0x40f34f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40f348
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40f348
cmp edx, 0x10000000
jae 0x40f348
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40f345
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040f6bd
ret 4

Function at 0x40f3c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40f3fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40f3f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40f400
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40f3e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f4e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40f4f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40f511
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x402590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
call fcn.0041aeca
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x7fff
mov dword [ebp - 4], edi
push esi
mov byte [ebp - 4], 1
call fcn.0040d367
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [ebp - 0x24], ebx
jne 0x4025f7
push 0x42e924
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
call fcn.0040e296
xor eax, eax
mov ecx, 0x1fff
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
push ecx
push esi
stosw word es:[edi], ax
push ebx
push str.GetDevicePrinters
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, 0x7ffd
jne 0x402632
push 0x42e924
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 0
call fcn.0040e296
call fcn.0041aeca
mov edx, dword [eax]
push 1
push esi
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x402649
call fcn.00401360
lea edi, [eax + 0x10]
cmp dword [edi - 8], esi
mov dword [ebp + 0xc], edi
jge 0x40265e
push 0x80070057
call fcn.00401250
mov dword [edi - 0xc], esi
mov byte [edi + 0x7fff], 0
mov ecx, 0x1fff
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push ebx
mov byte [ebp - 4], 2
call fcn.0040d379
add esp, 4
push 0xa
push 0
lea ecx, [ebp + 0xc]
call fcn.00401b90
push 0xa
push 0x3b
lea ecx, [ebp + 0xc]
call fcn.00401b90
mov esi, dword [ebp + 0xc]
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x4026a8
or eax, 0xffffffff
jmp 0x4026c1
push 0x428654
push esi
call fcn.0040d937
add esp, 8
test eax, eax
jne 0x4026bf
or eax, 0xffffffff
jmp 0x4026c1
sub eax, esi
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.004018e0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401de0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 1
push 0x428650
lea ecx, [ebp - 0x14]
call fcn.00401b00
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
mov dword [ebp - 4], 0
call fcn.00401370
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402765
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404d0f
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 0x404d62
call fcn.004243af
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x404d62
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x404d58
xor eax, eax
jmp 0x404e7b
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 0x404d92
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 0x404d92
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x404e78
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404dbf
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004056c9
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x404e78
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404e08
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x404e08
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x404e02
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004056c9
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404e68
and dword [ebp + 0xc], 0
jmp 0x404e68
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x404e68
push 0xc
call fcn.0041af9f
mov esi, eax
test esi, esi
pop ecx
je 0x404e4a
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 0x404e4c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404e63
push dword [ebp - 8]
call fcn.00419c29
jmp 0x404e68
call fcn.00419c00
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404dcd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d3ea
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.0040d6d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d485
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 [0x437034]
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 0x40d485
cmp eax, 1
je 0x40d4a6
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 0x40d485
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d452
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d481
xor eax, eax
inc eax
jmp 0x40d4c5
cmp edi, eax
jae 0x40d489
xor eax, eax
jmp 0x40d4c5
cmp eax, esi
jae 0x40d490
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 [0x437034]
jmp 0x40d4a9
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 0x40e553
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b510
call fcn.0040f780
mov edi, 0x94
mov eax, edi
call fcn.0040d6d0
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 [0x437034], ecx
mov eax, dword [esi + 4]
mov dword [0x437040], eax
mov edx, dword [esi + 8]
mov dword [0x437044], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x437038], esi
cmp ecx, 2
je 0x40e5b3
or esi, 0x8000
mov dword [0x437038], esi
shl eax, 8
add eax, edx
mov dword [0x43703c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e5ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e5ee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e606
cmp eax, 0x20b
je 0x40e5f3
mov dword [ebp - 0x1c], esi
jmp 0x40e61a
cmp dword [ecx + 0x84], 0xe
jbe 0x40e5ee
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e614
cmp dword [ecx + 0x74], 0xe
jbe 0x40e5ee
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410400
pop ecx
test eax, eax
jne 0x40e62e
push 0x1c
call fcn.0040e52f
pop ecx
call fcn.004117b1
test eax, eax
jne 0x40e63f
push 0x10
call fcn.0040e52f
pop ecx
call fcn.00413283
mov dword [ebp - 4], esi
call fcn.00413085
test eax, eax
jge 0x40e658
push 0x1b
call fcn.0040e50a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4388f0], eax
call fcn.00412f63
mov dword [0x437024], eax
call fcn.00412ec1
test eax, eax
jge 0x40e67e
push 8
call fcn.0040e50a
pop ecx
call fcn.00412c8e
test eax, eax
jge 0x40e68f
push 9
call fcn.0040e50a
pop ecx
push 1
call fcn.0040e82d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e6a5
push eax
call fcn.0040e50a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412c31
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e6c6
movzx eax, word [ebp - 0x40]
jmp 0x40e6c9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00419716
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e6e7
push edi
call fcn.0040e95a
call fcn.0040e97c
jmp 0x40e719
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f7bb
ret
Function at 0x40e897
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42b538
call fcn.0040f780
push 8
call fcn.004103b5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x437074], esi
jne 0x40e8cb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x437070], esi
mov al, byte [ebp + 0x10]
mov byte [0x43706c], al
cmp dword [ebp + 0xc], edi
jne 0x40e915
cmp dword [0x4388e8], edi
je 0x40e905
mov eax, dword [0x4388e4]
sub eax, 4
mov dword [0x4388e4], eax
cmp eax, dword [0x4388e8]
jb 0x40e905
mov eax, dword [eax]
cmp eax, edi
je 0x40e8e6
call eax
jmp 0x40e8e6
push 0x433090
mov eax, 0x433088
call fcn.0040e815
pop ecx
push 0x43309c
mov eax, 0x433094
call fcn.0040e815
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40e946
cmp dword [ebp + 0x10], edi
jne 0x40e954
mov dword [0x437074], esi
push dword [ebp + 8]
call fcn.0040e7d3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40e953
push 8
call fcn.00410300
pop ecx
ret
call fcn.0040f7bb
ret
Function at 0x410f8f
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 0x410fbd
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 0x410fc4
cmp ebx, dword [eax + 4]
jae 0x410fc4
xor eax, eax
jmp 0x4111b4
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410fd5
xor eax, eax
inc eax
jmp 0x4111b3
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410feb
cmp ecx, edx
jae 0x411130
cmp dword [eax + 4], 0
je 0x410ff4
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410fdc
cmp dword [ebp + 8], 0
je 0x411016
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411130
cmp eax, esi
jae 0x411130
mov eax, dword [0x4371e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41103b
cmp dword [esi*4 + 0x4371e8], edi
je 0x411134
inc esi
cmp esi, eax
jl 0x411029
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4111b0
cmp dword [ebp - 8], 0x1000000
jne 0x4111b0
test byte [ebp - 0xc], 0xcc
je 0x4110b9
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4111b0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4111b0
cmp word [eax + 0x18], 0x10b
jne 0x4111b0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4111b0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4110b9
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4110b9
test byte [ecx + 0x27], 0x80
jne 0x411130
push 1
push 0x437228
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410fcd
mov ecx, dword [0x4371e0]
test ecx, ecx
mov edx, ecx
jle 0x4110ed
lea eax, [ecx*4 + 0x4371e4]
cmp dword [eax], edi
je 0x4110ed
dec edx
sub eax, 4
test edx, edx
jg 0x4110e1
test edx, edx
jne 0x41111e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4110fa
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x411112
lea eax, [edx*4 + 0x4371e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411100
cmp ecx, 0x10
jge 0x41111e
inc ecx
mov dword [0x4371e0], ecx
push 0
push 0x437228
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410fcd
xor eax, eax
jmp 0x4111b3
test esi, esi
jle 0x410fcd
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x437228
call ebx
test eax, eax
jne 0x410fcd
cmp dword [esi*4 + 0x4371e8], edi
je 0x41118a
mov eax, dword [0x4371e0]
lea esi, [eax - 1]
test esi, esi
jl 0x411178
cmp dword [esi*4 + 0x4371e8], edi
je 0x411174
dec esi
jns 0x411168
test esi, esi
jge 0x411188
cmp eax, 0x10
jge 0x411183
inc eax
mov dword [0x4371e0], eax
lea esi, [eax - 1]
jmp 0x41118a
je 0x4111a2
xor ecx, ecx
test esi, esi
jl 0x4111a2
lea eax, [ecx*4 + 0x4371e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411190
push 0
push 0x437228
call ebx
jmp 0x410fcd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41291d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x434120]
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 + 0x434510]
je 0x412952
inc eax
cmp eax, 0x13
jb 0x412943
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x434510]
jne 0x412a78
mov eax, dword [0x43702c]
cmp eax, 1
je 0x412a50
cmp eax, edx
jne 0x412982
cmp dword [0x434150], 1
je 0x412a50
cmp ecx, 0xfc
je 0x412a78
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 0x4129b8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00414a40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040ece0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4129ec
mov eax, edi
push eax
call fcn.0040ece0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b5e8
push edi
call fcn.00415ee0
add esp, 0x10
push edi
call fcn.0040ece0
push dword [esi + 0x434514]
mov ebx, eax
call fcn.0040ece0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d6d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414a40
push edi
push ebx
call fcn.00414a50
push 0x428654
push ebx
call fcn.00414a50
push dword [esi + 0x434514]
push ebx
call fcn.00414a50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00415ddb
add esp, 0x2c
jmp 0x412a78
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x434514]
push dword [esi]
call fcn.0040ece0
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.0040d73e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x415ddb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43746c], ebx
push esi
push edi
jne 0x415e5b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415e96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c4e4
push edi
call esi
test eax, eax
mov dword [0x43746c], eax
je 0x415e96
push 0x42c4d4
push edi
call esi
push 0x42c4c0
push edi
mov dword [0x437470], eax
call esi
cmp dword [0x437034], 2
mov dword [0x437474], eax
jne 0x415e5b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43747c], eax
je 0x415e5b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x437478], eax
mov eax, dword [0x437478]
test eax, eax
je 0x415ea0
call eax
test eax, eax
je 0x415e87
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43747c]
test eax, eax
je 0x415e87
test byte [ebp - 8], 1
jne 0x415ea0
cmp dword [0x437040], 4
jb 0x415e9a
or byte [ebp + 0x12], 0x20
jmp 0x415ebf
xor eax, eax
jmp 0x415ecf
or byte [ebp + 0x12], 4
jmp 0x415ebf
mov eax, dword [0x437470]
test eax, eax
je 0x415ebf
call eax
mov ebx, eax
test ebx, ebx
je 0x415ebf
mov eax, dword [0x437474]
test eax, eax
je 0x415ebf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43746c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416519
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x434120]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41654a
xor eax, eax
jmp 0x4166d3
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x438580]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x416586
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041793e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416661
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41669f
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4165ea
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4165db
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4165bb
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41662a
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x416633
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4165ac
jmp 0x416635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4166ce
cmp dword [ebp - 0x6c], edi
je 0x41669f
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x416694
call fcn.0040f98a
mov dword [eax], 9
call fcn.0040f993
mov dword [eax], esi
jmp 0x4166c9
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416689
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x416635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x416635
push dword [ebp - 0x6c]
call fcn.0040f99c
pop ecx
jmp 0x4166c9
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4166b7
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4166b7
xor eax, eax
jmp 0x4166d1
call fcn.0040f98a
mov dword [eax], 0x1c
call fcn.0040f993
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4166d1
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040d73e
add ebp, 0x3a0
leave
ret