joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402018
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x2a0
mov eax, dword [0x417420]
xor eax, ebp
mov dword [ebp + 0x21c], eax
mov ecx, dword [0x419a58]
inc dword [0x419a58]
test ecx, ecx
mov eax, dword [ebp + 0x228]
push ebx
push esi
push edi
je 0x402054
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x22c]
mov ecx, 0x7d4
push eax
call fcn.004021f6
push eax
mov ebx, 0x191
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040918b
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40208c
push 0xc89
push str.sfxhead.c
call fcn.00402018
push 0x30
mov ecx, 0x7d0
call fcn.004021f6
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x419a48]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
mov esi, 0x104
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.004017f9
lea eax, [ebp + 0x118]
push eax
call fcn.00409100
add esp, 0x10
test eax, eax
je 0x4020e5
push 0x413328
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00408c6b
add esp, 0xc
mov edi, str.WZSFX32.RPT
push edi
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00408c6b
add esp, 0xc
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40204c
push 0x413344
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00408c6b
push eax
call section..text
add esp, 0x10
test al, al
jne 0x40214d
push 0xc9a
push str.sfxhead.c
call fcn.00402018
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00409100
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0040188e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, 0x7d1
call fcn.004021f6
push eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040918b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4021a4
push 0xca2
push str.sfxhead.c
call fcn.00402018
push 0x30
mov ecx, 0x7d0
call fcn.004021f6
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x419a48]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40204c
Function at 0x402515
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x417420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00409100
cmp eax, 2
pop ecx
je 0x402540
push 0x494
push str.sfxhead.c
call fcn.00402018
push esi
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004091a7
push eax
call section..text
add esp, 0x10
test al, al
jne 0x402560
push 0x495
jmp 0x402536
push 0x413328
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004091a7
push eax
call section..text
add esp, 0x10
test al, al
jne 0x402584
push 0x496
jmp 0x402536
lea eax, [ebp - 0xc]
push eax
call fcn.00409100
cmp eax, 8
pop ecx
jae 0x402622
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4025c4
or ax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408b96
leave
ret
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.0040134e
add esp, 0xc
test eax, eax
jne 0x4025b3
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x4025b3
cmp al, 0x2e
je 0x4025f4
cmp al, 0x20
je 0x4025f4
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x4025e5
cmp byte [ecx], bl
je 0x4025b3
mov al, byte [ecx]
cmp al, 0x30
jb 0x402602
cmp al, 0x39
jbe 0x402605
inc ecx
jmp 0x4025f8
xor eax, eax
jmp 0x40261a
movzx edx, dl
imul eax, eax, 0xa
sub edx, 0x30
cmp edx, 9
ja 0x4025b7
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x402609
jmp 0x4025b7
push 0x497
push dword [0x41701c]
jmp 0x40253b
Function at 0x4038b5
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x417420]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
mov eax, dword [ebp + 0x5b0]
mov ecx, dword [ebp + 0x5b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5b4]
push eax
mov dword [ebp - 0x28], eax
mov esi, 0x2e3
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x2c], ecx
call fcn.004091a7
push eax
call section..text
add esp, 0x10
test al, al
jne 0x403917
push 0xe3a
push str.sfxhead.c
call fcn.00402018
xor ebx, ebx
cmp byte [edi], bl
je 0x40395f
push 0x4133ec
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00408c6b
push eax
call section..text
add esp, 0x10
test al, al
jne 0x403940
push 0xe3d
jmp 0x40390d
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00408c6b
push eax
call section..text
add esp, 0x10
test al, al
jne 0x40395f
push 0xe3e
jmp 0x40390d
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4039ac
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00401379
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00401379
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4039ac
mov eax, dword [ebp - 0x3c]
jmp 0x403a84
lea eax, [ebp + 0x2c0]
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x4039f3
push dword [ebp - 0x28]
mov ecx, 0x422
call fcn.004021f6
push eax
lea eax, [ebp + 0x2c0]
push esi
push eax
call fcn.0040918b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4039ef
push 0xe5e
jmp 0x40390d
push 0x10
jmp 0x403a64
cmp eax, 0x20
jbe 0x403a35
mov al, byte [edi]
neg al
push 1
push ebx
sbb eax, eax
and eax, edi
push eax
mov eax, dword [0x417060]
push dword [ebp - 0x28]
and eax, 0x20000
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x419a48]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x403a30
mov dword [ecx], eax
cmp eax, 0x20
ja 0x403a84
push dword [ebp - 0x28]
mov ecx, 0x400
push eax
call fcn.004021f6
push eax
lea eax, [ebp + 0x2c0]
push esi
push eax
call fcn.0040918b
add esp, 0x14
cmp eax, 0xffffffff
jne 0x403a63
push 0xea7
jmp 0x40390d
push ebx
mov ecx, 0x7d0
call fcn.004021f6
push eax
lea eax, [ebp + 0x2c0]
push eax
push dword [0x419a48]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b96
add ebp, 0x5a8
leave
ret
Function at 0x403a9c
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x417420]
xor eax, ebp
mov dword [ebp + 0x198], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x403ae7
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push str.winzip_shellopencommand
push 0x80000000
mov dword [ebp - 0x80], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403b12
push 0
mov ecx, 0x7d0
call fcn.004021f6
push eax
mov ecx, 0x40e
call fcn.004021f6
push eax
push dword [0x419a48]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x403bc3
push ebx
xor ebx, ebx
cmp byte [ebp - 0x78], bl
push esi
lea esi, [ebp - 0x78]
je 0x403b3d
push 4
push str.___1
push esi
call fcn.004097cb
add esp, 0xc
test eax, eax
je 0x403b37
inc esi
cmp byte [esi], bl
jne 0x403b1e
cmp byte [esi], bl
je 0x403b3d
mov byte [esi], bl
push 0x4198c0
push str.__s_
lea eax, [ebp + 0x90]
push 0x107
push eax
call fcn.0040918b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403b6f
push 0xec9
push str.sfxhead.c
call fcn.00402018
mov eax, dword [0x417060]
test ax, 0x1000
je 0x403ba2
test ax, ax
js 0x403ba2
lea eax, [ebp + 0x90]
push eax
call fcn.00409100
pop ecx
lea ecx, [ebp + 0x90]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004038b5
add esp, 0xc
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
call fcn.00408b96
add ebp, 0x19c
leave
ret

Function at 0x403bd8
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x7000
push esi
push 0
push dword [0x418404]
call fcn.00401379
mov eax, dword [0x418596]
add esp, 0xc
test eax, eax
jg 0x403c03
and dword [0x4199cc], 0
xor eax, eax
pop esi
ret
cmp eax, esi
ja 0x403c09
mov esi, eax
push esi
push dword [0x418404]
push dword [0x417004]
call fcn.0040895e
add esp, 0xc
cmp dword [0x4199f8], 0
mov dword [0x4199cc], eax
je 0x403c75
cmp eax, 0xffffffff
je 0x403c75
cmp eax, esi
je 0x403c81
test eax, eax
jl 0x403c75
mov ecx, dword [0x41700c]
mov edx, dword [0x4199fc]
inc ecx
call fcn.00402632
mov eax, dword [0x4199cc]
test eax, eax
jne 0x403c6e
push esi
push dword [0x418404]
push dword [0x417004]
call fcn.0040895e
add esp, 0xc
mov dword [0x4199cc], eax
cmp eax, 0xffffffff
je 0x403c75
mov esi, eax
cmp eax, esi
je 0x403c81
push 2
pop ecx
jmp fcn.00403346
mov esi, dword [0x418404]
mov ecx, dword [0x417040]
mov dword [0x4199c8], esi
test byte [ecx + 0x28], 1
je 0x403cd3
mov byte [0x4199c7], 1
test word [ecx + 0x28], 0x1300
jne 0x403cdf
push edi
mov edi, eax
test edi, edi
je 0x403ccb
dec edi
call fcn.004085aa
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.004085c4
inc esi
test edi, edi
pop ecx
jne 0x403caf
mov eax, dword [0x4199cc]
mov byte [0x4199c7], 0
pop edi
mov ecx, eax
dec eax
mov dword [0x4199cc], eax
mov eax, ecx
pop esi
ret
push 0xf72
push dword [0x41701c]
call fcn.00402018
int3
Function at 0x4085c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x423ae8]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4185a8]
mov ecx, dword [0x423af0]
mov dword [0x423ae8], eax
movzx eax, al
add eax, dword [0x423aec]
imul eax, eax, 0x8088405
inc eax
mov dword [0x423aec], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4185a8]
mov eax, dword [esp + 4]
mov dword [0x423af0], ecx
ret

Function at 0x408654
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x417420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x4199f4]
mov esi, ecx
call fcn.0040861c
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401329
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.004085aa
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.004085c4
inc esi
cmp esi, 0xc
pop ecx
jl 0x408683
cmp dword [0x4199f0], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x4086c2
movzx cx, byte [0x41858f]
cmp ax, cx
je 0x4086cc
or eax, 0xffffffff
jmp 0x4086ce
movzx cx, byte [0x418595]
jmp 0x4086b8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b96
leave
ret

Function at 0x408b96
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417420]
jne 0x408ba0
repz ret
jmp fcn.0040a7a8
Function at 0x40e2cf
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x417d70]
je 0x40e2ea
inc edi
cmp edi, 0x17
jb 0x40e2db
cmp edi, 0x17
jae 0x40e46a
push ebp
push 3
call fcn.00411de0
cmp eax, 1
pop ecx
je 0x40e436
push 3
call fcn.00411de0
test eax, eax
pop ecx
jne 0x40e31e
cmp dword [0x417460], 1
je 0x40e436
cmp ebx, 0xfc
je 0x40e469
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x424038
push ebp
call fcn.004091a7
add esp, 0xc
test eax, eax
je 0x40e354
push esi
push esi
push esi
push esi
push esi
call fcn.0040a439
add esp, 0x14
push 0x104
mov esi, 0x424051
push esi
push 0
mov byte [0x424155], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e398
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004091a7
add esp, 0xc
test eax, eax
je 0x40e398
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a439
add esp, 0x14
push esi
call fcn.00409100
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e3dd
push esi
call fcn.00409100
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42434c
push 0x413c6c
sub ecx, eax
push ecx
push eax
call fcn.004098a3
add esp, 0x14
test eax, eax
je 0x40e3dd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a439
add esp, 0x14
jmp 0x40e3df
xor esi, esi
push 0x413c68
push ebx
push ebp
call fcn.00408c6b
add esp, 0xc
test eax, eax
je 0x40e3ff
push esi
push esi
push esi
push esi
push esi
call fcn.0040a439
add esp, 0x14
push dword [edi*8 + 0x417d74]
push ebx
push ebp
call fcn.00408c6b
add esp, 0xc
test eax, eax
je 0x40e421
push esi
push esi
push esi
push esi
push esi
call fcn.0040a439
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00411c23
add esp, 0xc
jmp 0x40e469
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40e469
cmp ebp, 0xffffffff
je 0x40e469
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x417d74]
push dword [esi]
call fcn.00409100
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x411c23
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b349
xor ebx, ebx
cmp dword [0x424568], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x411cf9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411dd9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41470c
push edi
call esi
cmp eax, ebx
je 0x411dd9
push eax
call fcn.0040b2db
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424568], eax
call esi
push eax
call fcn.0040b2db
mov dword [esp], 0x4146e8
push edi
mov dword [0x42456c], eax
call esi
push eax
call fcn.0040b2db
mov dword [0x424570], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040cff0
test eax, eax
pop ecx
pop ecx
je 0x411cc7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a439
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x411cf9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b2db
cmp eax, ebx
pop ecx
mov dword [0x424578], eax
je 0x411cf9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b2db
pop ecx
mov dword [0x424574], eax
mov eax, dword [0x424574]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x411d7e
cmp dword [0x424578], ecx
je 0x411d7e
push eax
call fcn.0040b352
push dword [0x424578]
mov esi, eax
call fcn.0040b352
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x411d7e
cmp edi, ebx
je 0x411d7e
call esi
cmp eax, ebx
je 0x411d4b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411d4b
test byte [ebp - 0x18], 1
jne 0x411d7e
lea eax, [ebp - 0x10]
push eax
call fcn.0040d027
test eax, eax
pop ecx
je 0x411d66
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a439
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x411d75
or dword [ebp + 0x10], 0x200000
jmp 0x411db9
or dword [ebp + 0x10], 0x40000
jmp 0x411db9
mov eax, dword [0x42456c]
cmp eax, dword [ebp - 8]
je 0x411db9
push eax
call fcn.0040b352
cmp eax, ebx
pop ecx
je 0x411db9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x411db9
mov eax, dword [0x424570]
cmp eax, dword [ebp - 8]
je 0x411db9
push eax
call fcn.0040b352
cmp eax, ebx
pop ecx
je 0x411db9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424568]
call fcn.0040b352
cmp eax, ebx
pop ecx
je 0x411dd9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411ddb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038dd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x410300
call fcn.00404604
mov edi, 0x94
mov eax, edi
call fcn.00406d60
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 [0x415258], ecx
mov eax, dword [esi + 4]
mov dword [0x415264], eax
mov edx, dword [esi + 8]
mov dword [0x415268], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41525c], esi
cmp ecx, 2
je 0x40393d
or esi, 0x8000
mov dword [0x41525c], esi
shl eax, 8
add eax, edx
mov dword [0x415260], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403978
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403978
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403990
cmp eax, 0x20b
je 0x40397d
mov dword [ebp - 0x1c], esi
jmp 0x4039a4
cmp dword [ecx + 0x84], 0xe
jbe 0x403978
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40399e
cmp dword [ecx + 0x74], 0xe
jbe 0x403978
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00404968
pop ecx
test eax, eax
jne 0x4039b8
push 0x1c
call fcn.004038b9
pop ecx
call fcn.00405f92
test eax, eax
jne 0x4039c9
push 0x10
call fcn.004038b9
pop ecx
call fcn.00406cd7
mov dword [ebp - 4], esi
call fcn.00406ad9
test eax, eax
jge 0x4039e2
push 0x1b
call fcn.00403894
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x416b18], eax
call fcn.004069b7
mov dword [0x4150d8], eax
call fcn.00406915
test eax, eax
jge 0x403a08
push 8
call fcn.00403894
pop ecx
call fcn.004066e2
test eax, eax
jge 0x403a19
push 9
call fcn.00403894
pop ecx
push 1
call fcn.00406204
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403a2f
push eax
call fcn.00403894
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406685
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403a50
movzx eax, word [ebp - 0x40]
jmp 0x403a53
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004028e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403a71
push edi
call fcn.00406331
call fcn.00406353
jmp 0x403aa3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040463f
ret
Function at 0x40626e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x410670
call fcn.00404604
push 8
call fcn.0040491d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x415298], esi
jne 0x4062a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x415294], esi
mov al, byte [ebp + 0x10]
mov byte [0x415290], al
cmp dword [ebp + 0xc], edi
jne 0x4062ec
cmp dword [0x416ae8], edi
je 0x4062dc
mov eax, dword [0x416ae4]
sub eax, 4
mov dword [0x416ae4], eax
cmp eax, dword [0x416ae8]
jb 0x4062dc
mov eax, dword [eax]
cmp eax, edi
je 0x4062bd
call eax
jmp 0x4062bd
push 0x41404c
mov eax, 0x414044
call fcn.004061ec
pop ecx
push 0x414058
mov eax, 0x414050
call fcn.004061ec
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40631d
cmp dword [ebp + 0x10], edi
jne 0x40632b
mov dword [0x415298], esi
push dword [ebp + 8]
call fcn.004061aa
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40632a
push 8
call fcn.00404868
pop ecx
ret
call fcn.0040463f
ret

Function at 0x406371
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x414090]
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 + 0x4141f0]
je 0x4063a6
inc eax
cmp eax, 0x13
jb 0x406397
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4141f0]
jne 0x4064cc
mov eax, dword [0x4150e0]
cmp eax, 1
je 0x4064a4
cmp eax, edx
jne 0x4063d6
cmp dword [0x4140ac], 1
je 0x4064a4
cmp ecx, 0xfc
je 0x4064cc
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 0x40640c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004075c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406440
mov eax, edi
push eax
call fcn.00407310
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4103bc
push edi
call fcn.004076c0
add esp, 0x10
push edi
call fcn.00407310
push dword [esi + 0x4141f4]
mov ebx, eax
call fcn.00407310
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406d60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004075c0
push edi
push ebx
call fcn.004075d0
push 0x4103b8
push ebx
call fcn.004075d0
push dword [esi + 0x4141f4]
push ebx
call fcn.004075d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004074c5
add esp, 0x2c
jmp 0x4064cc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4141f4]
push dword [esi]
call fcn.00407310
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.004032b6
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406ebc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x414090]
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 0x406eed
xor eax, eax
jmp 0x407076
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 + 0x4169e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x406f29
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004092bf
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407004
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x407042
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 0x406f8d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406f7e
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 0x406f5e
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 0x406fcd
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x406fd6
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x406f4f
jmp 0x406fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x407071
cmp dword [ebp - 0x6c], edi
je 0x407042
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x407037
call fcn.00407aa8
mov dword [eax], 9
call fcn.00407ab1
mov dword [eax], esi
jmp 0x40706c
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 0x40702c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x406fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x406fd8
push dword [ebp - 0x6c]
call fcn.00407aba
pop ecx
jmp 0x40706c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40705a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40705a
xor eax, eax
jmp 0x407074
call fcn.00407aa8
mov dword [eax], 0x1c
call fcn.00407ab1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x407074
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004032b6
add ebp, 0x3a0
leave
ret