joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a230
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov word [esp + 0xe], 0x7d0
mov word [esp + 0xc], 0x50
mov ecx, dword [esp + 0xc]
push ecx
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push str.Oracle_Universal_Installer
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x16]
push eax
add edx, 0x28
push 1
push 0xfffffffffffffff5
mov word [esp + 0x28], dx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push 0xfffffffffffffff5
call ebx
push 0x4000
push eax
call fcn.0040c673
push 0x41a480
push eax
call fcn.0040c3d4
push 0
mov ecx, 8
mov esi, eax
mov edi, 0x41a4e0
push 4
push 0
rep movsd dword es:[edi], dword [esi]
push 0x41a4e0
call fcn.0040c333
add esp, 0x20
push 0xfffffffffffffff6
call ebx
push 0x4000
push eax
call fcn.0040c673
push 0x4195fc
push eax
call fcn.0040c3d4
push 0
mov ecx, 8
mov esi, eax
mov edi, 0x41a4c0
push 4
push 0
rep movsd dword es:[edi], dword [esi]
push 0x41a4c0
call fcn.0040c333
add esp, 0x20
push 0xfffffffffffffff4
call ebx
push 0x4000
push eax
call fcn.0040c673
push 0x41a480
push eax
call fcn.0040c3d4
mov ecx, 8
mov esi, eax
mov edi, 0x41a500
push 0
rep movsd dword es:[edi], dword [esi]
push 4
push 0
push 0x41a500
call fcn.0040c333
add esp, 0x20
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x40ab6f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ab9a
test byte [esp + 8], 0x80
je 0x40ab89
and al, 0xfe
jmp 0x40ab8b
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40abab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f0ea
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x412721
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41cfd0
cmp edx, dword [eax]
je 0x412743
add eax, 8
inc ecx
cmp eax, 0x41d060
jl 0x412734
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41cfd0]
jne 0x412871
mov eax, dword [0x41e018]
cmp eax, 1
je 0x41284b
test eax, eax
jne 0x412774
cmp dword [0x41aa44], 1
je 0x41284b
cmp edx, 0xfc
je 0x412871
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4127ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411550
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ff50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4127ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417a90
push edi
call fcn.0040abb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411550
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411560
lea eax, [ebp - 0xa0]
push 0x419658
push eax
call fcn.00411560
push dword [esi + 0x41cfd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411560
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415696
add esp, 0x2c
pop edi
jmp 0x412871
lea eax, [ebp + 8]
lea esi, [esi + 0x41cfd4]
push 0
push eax
push dword [esi]
call fcn.0040ff50
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]
pop esi
leave
ret

Function at 0x416886
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4168a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f0ea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4168c7
test byte [esp + 8], 2
je 0x4168c7
mov dword [0x41dfa8], 0xd
mov dword [0x41dfac], 5
jmp 0x4168a2
xor eax, eax
ret
Function at 0x10021c7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10021c8d
pop dword [ebp - 0x28]
mov eax, 0x37d937ab
sub eax, 0x27d71b1e
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3f9d2
push 0
mov eax, 0x3dd59054
add eax, 0xd22dd088
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x4477
mov edi, eax
mov ebx, 0xea1de456
sub ebx, 0xda1a2656
add ebx, dword [ebp - 0x28]
mov esi, 0xd9c352e
sub dword [ebp - 0x20], ebx
mov edx, dword [ebx]
xor dword [ebp - 0x24], 0x3726d310
add edx, esi
xor dword [ebp - 0xc], esi
mov dword [edi], edx
xor dword [ebp - 0x10], 0xed2ef475
add edi, 0x4d74fdc9
sub edi, 0x4d74fdc5
add ebx, 0xf641d075
add ebx, 0x9be2f8f
loop 0x10021ce0
add eax, 0x104af
mov ebx, eax
add eax, 0x5a5abac5
sub eax, 0x5a5abac0
mov ecx, 0xc2eecee4
sub ecx, 0xb2eecee4
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10021c7e
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10021c7e
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x4175d0
Capabilities:
Terminate process

Disassembly:
push 0x118
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4175ea
mov ecx, eax
call fcn.00416c10
jmp 0x4175ec
xor eax, eax
mov ecx, dword [esp + 4]
mov dword [0x46daa8], eax
mov eax, dword [esp + 8]
push esi
push eax
push ecx
call sub.framework.dll_public:_static_int___cdecl_Application::Execute_int__char___const_
mov ecx, dword [0x46daa8]
add esp, 8
test ecx, ecx
mov esi, eax
je 0x417616
mov edx, dword [ecx]
push 1
call dword [edx]
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
call fcn.00417630
jmp 0x417640
push 0x417650
call fcn.00449cd0
pop ecx
ret
Function at 0x4281a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44e9c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x10], cl
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x24], edi
mov byte [esi + 0x20], dl
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
push edi
push edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x20], 2
call sub.framework.dll_public:_void___thiscall_Point::constructor_int__int_
push edi
push edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x20], 3
call sub.framework.dll_public:_void___thiscall_Point::constructor_int__int_
push edi
push edi
lea ecx, [esi + 0x64]
mov byte [esp + 0x20], 4
call sub.framework.dll_public:_void___thiscall_Point::constructor_int__int_
mov al, byte [esp + 0xb]
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x7c], al
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x449f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, dword [ebx]
mov edi, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
jne 0x449f6b
mov eax, dword [ebx]
push 0x2f
push eax
call edi
add esp, 8
test eax, eax
je 0x449f6e
lea esi, [eax + 1]
push 0x2e
push esi
call edi
add esp, 8
test eax, eax
jne 0x449f88
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
jmp 0x449f8c
sub eax, esi
mov edi, eax
lea eax, [edi + 1]
add eax, 3
and al, 0xfc
call fcn.00449d70
mov ebx, esp
test ebx, ebx
jne 0x449fac
call fcn.0044a060
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x100000
mov byte [edi + ebx], 0
call sub.SDL.dll_SDL_Init
add esp, 0x10
test eax, eax
jge 0x449fe7
call sub.SDL.dll_SDL_GetError
push eax
push str.WinMain___error
call fcn.0044a030
add esp, 8
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x44a080
call fcn.00449cd0
push 0x44a446
call fcn.00449cd0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.SDL.dll_SDL_SetModuleHandle
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004175d0
add esp, 0xc
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x44a140
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.DDRAW.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x44a15c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.MSVCRT.dll__getcwd]
push 0x104
push 0x46dcb0
call ebx
mov edi, str._stdout.txt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x46dcb0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, edx
add eax, 0x20
and ecx, 3
push eax
push 0x46da14
rep movsb byte es:[edi], byte [esi]
push 0x46dcb0
call dword [sym.imp.MSVCRT.dll_freopen]
add esp, 0x14
test eax, eax
jne 0x44a1e4
push 0x46da14
push 0x46dcb0
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x44a1e4
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
mov esi, eax
lea edi, [ecx + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x104
push 0x46ddb4
call ebx
mov edi, str._stderr.txt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x46ddb4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, edx
add eax, 0x40
and ecx, 3
push eax
push 0x46da14
rep movsb byte es:[edi], byte [esi]
push 0x46ddb4
call dword [sym.imp.MSVCRT.dll_freopen]
add esp, 0x14
test eax, eax
jne 0x44a266
push 0x46da14
push 0x46ddb4
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x44a266
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
mov esi, eax
lea edi, [ecx + 0x40]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push 0x200
push 0x40
add edx, 0x20
push 0
push edx
call dword [sym.imp.MSVCRT.dll_setvbuf]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_setbuf]
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
add eax, 4
and al, 0xfc
call fcn.00449d70
mov ebx, esp
test ebx, ebx
jne 0x44a2c8
call fcn.0044a060
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044a340
mov edi, eax
add esp, 8
lea eax, [edi*4 + 4]
add eax, 3
and al, 0xfc
call fcn.00449d70
mov esi, esp
test esi, esi
jne 0x44a319
call fcn.0044a060
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push esi
push ebx
call fcn.0044a340
push esi
push edi
call fcn.00449f40
add esp, 0x10
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x44d680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40000]
push edi
jmp 0x44d69a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44d6a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d690
mov eax, 1
add ebx, ebx
jne 0x44d6b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44d6c4
jne 0x44d6e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d6e3
dec eax
add ebx, ebx
jne 0x44d6d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44d6a8
add ebx, ebx
jne 0x44d6df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44d735
xor ecx, ecx
sub eax, 3
jb 0x44d6fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44d76a
sar eax, 1
mov ebp, eax
jmp 0x44d706
add ebx, ebx
jne 0x44d706
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d6d4
inc ecx
add ebx, ebx
jne 0x44d714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d6d4
add ebx, ebx
jne 0x44d721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44d716
jne 0x44d732
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44d716
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44d754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44d746
jmp 0x44d696
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44d754
add edi, ecx
jmp 0x44d696
pop esi
mov edi, esi
mov ecx, 0xd15
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44d772
cmp byte [edi], 0xa
jne 0x44d772
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44d777
lea edi, [esi + 0x4a000]
mov eax, dword [edi]
or eax, eax
je 0x44d7e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x750e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x751a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44d7a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x751ac]
or eax, eax
je 0x44d7e0
mov dword [ebx], eax
add ebx, 4
jmp 0x44d7c1
call dword [esi + 0x751bc]
mov ebp, dword [esi + 0x751b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44d81a
sub esp, 0xffffff80
jmp 0x419790
Function at 0x405f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ed40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46505c]
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.004281df
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00411c57
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 0x407d20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44efcd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46505c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401640
lea ecx, [ebp - 0x28]
call fcn.00408900
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004304fa
add esp, 0x1c
test eax, eax
js 0x407dcb
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x407db2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407da8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407de8
push edx
push ecx
call fcn.0042820f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004281d1
mov esp, ebp
pop ebp
ret
call fcn.00431737
lea ecx, [ebp - 0x54]
push dword [eax]
call fcn.00402890
push 0x463f3c
lea eax, [ebp - 0x54]
push eax
call fcn.004299aa
call fcn.0042c7ff
int3
Function at 0x408d00
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 0x408de6
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 0x408dd5
jg 0x408d40
test edx, edx
je 0x408dd5
nop dword [eax]
call fcn.00404fc0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408d94
jg 0x408d57
test esi, esi
je 0x408d94
cmp ebx, eax
jg 0x408d67
jl 0x408d61
cmp edi, esi
jae 0x408d67
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.00429a20
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 0x408db9
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 0x408dcf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x408d40
jl 0x408dcf
test edi, edi
jne 0x408d40
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 0x408e08
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x408e0a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x408e88
jg 0x408e1d
test esi, esi
je 0x408e88
test eax, eax
jl 0x408e6c
jg 0x408e27
test ebx, ebx
je 0x408e6c
cmp edi, eax
jg 0x408e37
jl 0x408e31
cmp esi, ebx
jae 0x408e37
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00429a20
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 0x408e88
jg 0x408e6f
test esi, esi
je 0x408e88
jmp 0x408e6f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x408e88
push eax
push esi
push 1
push edx
call fcn.00432123
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 0x408ea0
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 0x408ed2
jl 0x408ec5
test ecx, ecx
jne 0x408ed2
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 0x408f92
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00404fe0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408f3e
jg 0x408efd
test esi, esi
je 0x408f3e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x408f15
mov eax, dword [esp + 0x10]
jl 0x408f0f
cmp eax, esi
jae 0x408f15
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00429a20
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 0x408f5f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x408f7b
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 0x408ee4
jl 0x408f7b
test ecx, ecx
jne 0x408ee4
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 0x408fd1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x408fd1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00429a20
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 0x409040
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x408ff7
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 0x409029
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0043271c
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x409054
cmp edi, eax
ja 0x409005
test ecx, ecx
je 0x409040
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0043271c
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