joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
cmp dword [0x848528], 0x400
push esi
push edi
jne 0x4018a9
push 0
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
lea esi, [ebp - 0x24]
call fcn.004019a0
mov ecx, esi
call fcn.004019c0
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffA]
xor esi, esi
cmp esi, 0xa50
jge 0x4018c8
push 0
lea ecx, [ebp - 0x424]
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2af68b
jle 0x4018de
cmp edi, 0x78d9a205
jne 0x4018e7
inc esi
cmp esi, 0x1c5d
jl 0x4018b5
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
xor esi, esi
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call ebx
cmp esi, 0x206d47
jg 0x401914
inc esi
cmp esi, 0x4f6a4
jl 0x4018f5
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
nop
push 0
call edi
cmp esi, 0x2b259d
jle 0x401934
cmp ebx, 0x785074d5
jne 0x40193d
inc esi
cmp esi, 0x11915
jl 0x401920
mov edx, dword [0x42939c]
mov dword [0x848528], edx
call fcn.00401600
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov edi, 0x3078f
pop ebx
lea ebx, [ebx]
cmp dword [0x848528], 0x51f
jne 0x40197c
push 0
lea eax, [ebp - 0x424]
push eax
push str.mucaxokacahocehasupa
call esi
sub edi, 1
jne 0x401960
mov eax, dword [0x847478]
mov dword [0x847abc], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40447b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428218]
jne 0x404485
repz ret
jmp fcn.0040907c
Function at 0x40a7ef
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.004057c5
and dword [ebp - 4], 0
cmp dword [0x42a1e8], 0
mov ebx, eax
jne 0x40a8a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a951
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a951
push eax
call fcn.00405753
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a1e8], eax
call esi
push eax
call fcn.00405753
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a1ec], eax
call esi
push eax
call fcn.00405753
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42a1f0], eax
call esi
push eax
call fcn.00405753
pop ecx
mov dword [0x42a1f8], eax
test eax, eax
je 0x40a8a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405753
pop ecx
mov dword [0x42a1f4], eax
mov eax, dword [0x42a1f4]
cmp eax, ebx
je 0x40a8f8
cmp dword [0x42a1f8], ebx
je 0x40a8f8
push eax
call fcn.004057ce
push dword [0x42a1f8]
mov esi, eax
call fcn.004057ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a8f8
test edi, edi
je 0x40a8f8
call esi
test eax, eax
je 0x40a8ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a8ef
test byte [ebp - 0xc], 1
jne 0x40a8f8
or dword [ebp + 0x10], 0x200000
jmp 0x40a931
mov eax, dword [0x42a1ec]
cmp eax, ebx
je 0x40a931
push eax
call fcn.004057ce
pop ecx
test eax, eax
je 0x40a931
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a931
mov eax, dword [0x42a1f0]
cmp eax, ebx
je 0x40a931
push eax
call fcn.004057ce
pop ecx
test eax, eax
je 0x40a931
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a1e8]
call fcn.004057ce
pop ecx
test eax, eax
je 0x40a951
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a953
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403910
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [eax]
push ebp
xor ebp, ebp
test eax, eax
push edi
je 0x40392f
push 0x66aea8
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x403937
pop edi
mov eax, 0xb
pop ebp
ret
push ebx
push esi
push 0x10000
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40395c
push str.Not_enough_Memory_to_read_file_n
push 4
call fcn.004169a0
add esp, 8
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push edi
push 0x10000
push 1
push esi
call ebx
add esp, 0x10
test eax, eax
jle 0x403996
push eax
push esi
call fcn.00403430
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x403996
push edi
push 0x10000
push 1
push esi
call ebx
add esp, 0x10
test eax, eax
jg 0x403974
push esi
call dword [sym.imp.MSVCR71.dll_free]
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
mov al, byte [esp + 0x1c]
add esp, 8
test al, al
pop esi
pop ebx
je 0x4039b6
call fcn.00403500
pop edi
mov eax, ebp
pop ebp
ret

Function at 0x4039c0
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x403a67
push 0x66aeac
push eax
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
je 0x403a67
mov byte [esp + 4], bl
mov byte [esp + 5], bl
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 4
lea ecx, [esp + 8]
push ecx
push 0xe
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [esp + 4]
cmp al, bl
je 0x403a67
cmp byte [esp + 5], bl
jne 0x403a67
cmp al, 0x2e
je 0x403a67
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403a18
push ebp
sub eax, edx
push esi
mov esi, 1
lea ebp, [eax - 1]
cmp ebp, esi
jle 0x403a65
mov ebx, dword [sym.imp.MSVCR71.dll_isdigit]
movsx edx, byte [esi + edi - 1]
push edx
call ebx
add esp, 4
test eax, eax
je 0x403a60
movsx eax, byte [esi + edi + 1]
push eax
call ebx
add esp, 4
test eax, eax
je 0x403a60
mov cl, byte [esi + edi]
cmp cl, byte [esp + 0xc]
jne 0x403a60
mov byte [esi + edi], 0x2e
inc esi
cmp esi, ebp
jl 0x403a35
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404ae0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x668631
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x6914d0]
push eax
lea ecx, [esp + 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
push 0x690970
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call fcn.00413030
lea ecx, [esp + 4]
mov byte [esp + 0x44], 1
call fcn.004147a0
call fcn.004049f0
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x406de0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406e30
mov ecx, dword [esi + 8]
cmp ecx, 1
push edi
lea edi, [esi + 8]
jbe 0x406e13
push 0
push 0
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
mov eax, dword [esi + 0xc]
push eax
push 4
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x1c
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
mov dword [esi + 0xc], 0
mov ecx, esi
pop esi
jmp method.RenderAntiAlias.virtual_16
pop esi
ret
mov eax, dword [ecx + 4]
test eax, eax
je 0x41705e
mov ecx, eax
mov eax, dword [ecx]
jmp dword [eax + 0x10]
ret
Function at 0x40ac40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x148
push ebp
push edi
push 0x1000
mov edi, ecx
call sub.MFC71.DLL_operator_new_1
add esp, 4
push 0x1000
push eax
push 0
mov dword [edi], eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [edi]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40ac85
inc ebp
jmp 0x40ac87
mov ebp, dword [edi]
mov edx, dword [str.rip.dll]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [0x66bfe4]
mov dword [ecx + 4], eax
mov dl, byte [0x66bfe8]
lea eax, [esp + 0x10]
mov byte [ecx + 8], dl
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x40ad60
push ebx
mov bl, byte [esp + 0x158]
push esi
test bl, bl
je 0x40ace1
lea edx, [esp + 0x44]
push edx
push str.RipFS.dll
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
je 0x40ad3f
lea eax, [esp + 0x44]
mov edx, ebp
mov ecx, eax
sub edx, ecx
jmp 0x40acf0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40acf0
test bl, bl
jne 0x40ad07
call sub.MFC71.DLL_AfxGetModuleState
mov dword [esp + 0x14], eax
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test bl, bl
mov esi, eax
jne 0x40ad20
mov eax, dword [esp + 0x14]
push eax
call sub.MFC71.DLL_AfxSetModuleState
test esi, esi
je 0x40ad3f
push 0x66bfc8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ad3f
call eax
push esi
push eax
mov ecx, edi
call sym.cpsi.exe_public:_void___thiscall_IdentType::AddRip_struct_RipFactory___int_
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40acc6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 0x148
ret 4

Function at 0x40ada0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push ebp
push edi
xor edi, edi
test eax, eax
mov ebp, ecx
je 0x40ae55
push esi
push 0x66aea8
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40ae3b
mov ecx, dword [ebp]
push ebx
push esi
push 0x1000
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
test ebx, ebx
jle 0x40ae43
mov edi, dword [ebp + 4]
test edi, edi
je 0x40ae4c
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [ebp]
push ebx
push eax
call dword [edx + 4]
mov esi, eax
test esi, esi
je 0x40ae2c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp eax, 0x4e415456
jne 0x40ae32
mov al, byte [esp + 0x18]
test al, al
jne 0x40ae32
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov edi, dword [edi]
test edi, edi
jne 0x40adf4
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 8
pop esi
mov eax, edi
pop edi
pop ebp
ret 8
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret 8
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
ret 8
mov eax, edi
pop edi
pop ebp
ret 8
Function at 0x40ae60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push ebp
xor ebp, ebp
test eax, eax
push edi
mov edi, ecx
je 0x40aee7
push esi
push 0x66aea8
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40aedf
mov ecx, dword [edi]
push ebx
push esi
push 0x1000
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
test ebx, ebx
jle 0x40aed6
mov esi, dword [edi + 4]
test esi, esi
je 0x40aed6
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push ebp
push eax
mov eax, dword [edi]
push ebx
push eax
call dword [edx + 4]
test eax, eax
jne 0x40aecf
mov esi, dword [esi]
test esi, esi
jne 0x40aeb3
pop ebx
pop esi
pop edi
pop ebp
ret 8
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8
pop edi
mov eax, ebp
pop ebp
ret 8
Function at 0x40b4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x668898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebx
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
push 0x66c004
push 0x66c000
push ebp
mov dword [esp + 0x3c], ebp
mov dword [ebx + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
je 0x40b608
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
je 0x40b5f3
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
cmp eax, ebp
mov dword [ebx + 0x10], eax
je 0x40b5f3
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x40b5f3
mov ecx, edi
mov edi, dword [ebx + 0x10]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x10]
jmp 0x40b552
xor ebp, ebp
mov cx, word [esi]
add esi, 2
mov eax, esi
mov word [esp + 0x18], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b562
sub eax, edx
mov dword [esp + 0x14], eax
mov al, byte [esi]
xor edi, edi
xor ebx, ebx
test al, al
je 0x40b5a8
push 0x7c
push esi
mov ebx, esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40b5a8
push 0x7c
mov byte [edi], 0
push esi
inc edi
call dword [sym.imp.MSVCR71.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40b5a8
mov byte [ebp], 0
inc ebp
mov edx, dword [esp + 0x14]
mov ax, word [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea esi, [esi + edx + 1]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x2c], ax
call fcn.0040b440
test ebx, ebx
jne 0x40b550
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x413030
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x668d04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.00412980
lea edi, [esi + 0x1c]
mov ecx, edi
mov dword [esp + 0x14], 0
mov dword [esi], vtable.SARIPHTMLLog.0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFile::constructor_void_]
push 0
push str.LOG_FILE_MUTEX
push 0
lea ecx, [esi + 0x30]
mov byte [esp + 0x20], 2
call fcn.006679d4
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x18], ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 3
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [esp + 0x20]
push 0x66cd78
push ecx
mov byte [esp + 0x20], 4
call dword [sym.imp.FSUTIL.dll_public:_class_AString____cdecl_AString::Format_char_const__]
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, 0xb70
jne 0x4130d8
xor eax, eax
jmp 0x4130da
mov eax, dword [eax]
push eax
mov ecx, edi
call dword [0x66a2c4]
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::setFileName_class_AString_const__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 3
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x415f90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x668e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00415c40
cmp al, bl
je 0x415fe3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x415ff4
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x416005
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x416022
push eax
call fcn.004117a0
add esp, 4
jmp 0x416022
cmp byte [ebp + 0xc], bl
je 0x416034
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR71.dll_remove]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4160b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_putc]
push esi
push 1
call edi
push esi
push 1
call edi
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push esi
push 8
lea eax, [esp + 0x28]
push 1
push eax
call edi
push esi
push 8
lea ecx, [esp + 0x40]
push 1
push ecx
call edi
add esp, 0x30
pop edi
pop esi
ret

Function at 0x4160f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_putc]
push esi
push 2
call edi
movsx eax, byte [esp + 0x18]
push esi
push eax
call edi
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push esi
push 8
lea ecx, [esp + 0x2c]
push 1
push ecx
call edi
push esi
push 8
lea edx, [esp + 0x44]
push 1
push edx
call edi
add esp, 0x30
pop edi
pop esi
ret

Function at 0x416130
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_putc]
push esi
push 0x22
call edi
movsx eax, byte [esp + 0x18]
push esi
push eax
call edi
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push esi
push 8
lea ecx, [esp + 0x2c]
push 1
push ecx
call edi
push esi
push 8
lea edx, [esp + 0x44]
push 1
push edx
call edi
push esi
push 8
lea eax, [esp + 0x5c]
push 1
push eax
call edi
add esp, 0x40
push esi
push 8
lea ecx, [esp + 0x34]
push 1
push ecx
call edi
push esi
push 8
lea edx, [esp + 0x4c]
push 1
push edx
call edi
push esi
push 8
lea eax, [esp + 0x64]
push 1
push eax
call edi
push esi
push 8
lea ecx, [esp + 0x7c]
push 1
push ecx
call edi
add esp, 0x40
push esi
push 8
lea edx, [esp + 0x54]
push 1
push edx
call edi
add esp, 0x10
pop edi
pop esi
ret

Function at 0x4161c0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_putc]
push esi
push 9
call edi
push esi
push 0x45
call edi
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push esi
push 4
lea eax, [esp + 0x28]
push 1
push eax
call edi
push esi
push 8
push 1
push 0x66d1c0
call edi
push esi
push 8
push 1
push 0x66d1c0
call edi
add esp, 0x40
push esi
push 8
lea ecx, [esp + 0x1c]
push 1
push ecx
call edi
push esi
push 8
lea edx, [esp + 0x34]
push 1
push edx
call edi
push esi
push 4
lea eax, [esp + 0x4c]
push 1
push eax
call edi
add esp, 0x30
pop edi
pop esi
ret
Function at 0x416250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416274
sub eax, edx
cmp eax, 0x7f
jbe 0x416287
mov eax, 0x7f
mov ecx, eax
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCR71.dll_putc]
push esi
push 0xd
call edi
push esi
push 0x45
call edi
mov ebx, dword [sym.imp.MSVCR71.dll_fwrite]
push esi
push 4
lea ecx, [ebp + 0xc]
push 1
push ecx
call ebx
push esi
push 4
lea edx, [ebp + 0x10]
push 1
push edx
call ebx
push esi
push 0x80
lea eax, [esp + 0x48]
push 1
push eax
call ebx
add esp, 0x40
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, 5
lea esp, [esp]
push esi
push 0x80
lea ecx, [esp + 0x18]
push 1
push ecx
call ebx
add esp, 0x10
dec edi
jne 0x4162f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [esp + 0x410]
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x416414
push ebx
call dword [sym.imp.MSVCR71.dll_ftell]
add esp, 4
test eax, eax
mov dword [esp + 8], eax
je 0x416414
push esi
mov esi, dword [sym.imp.MSVCR71.dll_putc]
push edi
mov edi, dword [esp + 0x418]
push edi
push 0x15
call esi
push edi
push 0x45
call esi
push edi
push 4
lea eax, [esp + 0x28]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push 0
push 0
push ebx
call ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fread]
push ebx
push 0x400
lea ecx, [esp + 0x48]
push 1
push ecx
call ebp
mov esi, eax
add esp, 0x3c
test esi, esi
je 0x416412
jmp 0x4163e0
push edi
push esi
lea edx, [esp + 0x1c]
push 1
push edx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp esi, 0x400
jb 0x416412
push ebx
push 0x400
lea eax, [esp + 0x1c]
push 1
push eax
call ebp
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4163e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x4167d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x668e82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x6914d0]
push esi
push edi
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
push 0x690970
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x178], 0
call fcn.00413030
mov esi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea ecx, [esp + 8]
mov byte [esp + 0x170], 1
call esi
mov eax, dword [esp + 0x178]
lea edx, [esp + 0x17c]
push edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x17c], 2
call dword [sym.imp.FSUTIL.dll_public:_class_AString____cdecl_AString::Format_char_const__]
add esp, 0xc
lea ecx, [esp + 0xc]
call esi
mov esi, dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::LoadStringA_unsigned_int_]
push 0x25
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 3
call esi
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
push str.FF0000
lea ecx, [esp + 0x14]
call edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 4
call fcn.00414670
push 0x26
lea ecx, [esp + 0x10]
call esi
lea ecx, [esp + 0x1c]
call fcn.0040b4b0
lea ecx, [esp + 8]
mov byte [esp + 0x170], 5
call dword [sym.imp.FSUTIL.dll_protected:_struct_AStringData____thiscall_AString::GetData_void_const]
mov eax, dword [eax + 4]
push 0x100
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040b110
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x17c], 6
lea ecx, [esp + 0x3c]
call fcn.00414670
mov esi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 5
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 4
call fcn.0040b620
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 3
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 2
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x170], 1
call esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 0
call fcn.00413120
lea ecx, [esp + 0x18]
mov dword [esp + 0x170], 0xffffffff
call esi
mov ecx, dword [esp + 0x168]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x16c
ret