joyce8/EMBER2024-capa huggingface dataset:
Function at 0x87f850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x37f000]
push edi
jmp 0x87f86a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x87f871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87f860
mov eax, 1
add ebx, ebx
jne 0x87f883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x87f894
jne 0x87f8b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87f8b3
dec eax
add ebx, ebx
jne 0x87f8a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x87f878
add ebx, ebx
jne 0x87f8af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x87f905
xor ecx, ecx
sub eax, 3
jb 0x87f8cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x87f93a
sar eax, 1
mov ebp, eax
jmp 0x87f8d6
add ebx, ebx
jne 0x87f8d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87f8a4
inc ecx
add ebx, ebx
jne 0x87f8e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87f8a4
add ebx, ebx
jne 0x87f8f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x87f8e6
jne 0x87f902
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x87f8e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x87f924
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x87f916
jmp 0x87f866
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x87f924
add edi, ecx
jmp 0x87f866
pop esi
mov edi, esi
mov ecx, 0x1ffe0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x87f942
cmp byte [edi], 0x3f
jne 0x87f942
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 0x87f947
lea edi, [esi + 0x47c000]
mov eax, dword [edi]
or eax, eax
je 0x87f9bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x485abc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x485bec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x87f974
mov ecx, edi
jns 0x87f9a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x485bf4]
or eax, eax
je 0x87f9b9
mov dword [ebx], eax
add ebx, 4
jmp 0x87f991
call dword [esi + 0x485bf0]
mov ebp, dword [esi + 0x485bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x87f9f3
sub esp, 0xffffff80
jmp 0x623d0a
Function at 0x405243
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x40b0e8]
xor eax, eax
cmp byte [ecx + 0x7c], al
jne 0x405297
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push 0x405169
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x405297
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._E___gui__Could_not_create_thread:__u
call fcn.00404212
push esi
mov ecx, str.Could_not_create_thread:
mov edi, str.Create_thread_error
call fcn.00404393
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x405299
Capabilities:
Link many functions at runtime

Disassembly:
push 8
mov eax, 0x40679e
call fcn.00405dcb
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4052c3
cmp byte [eax + 0x24], bl
je 0x4052c3
push str._I___loadMsi__Loading_msi.dll
call fcn.00404212
pop ecx
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x405302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._E___loadMsi__Could_not_load_msi.dll:__u
call fcn.00404212
mov ecx, str.Error_loading_msi.dll._You_must_have_MSI_installed._Get_it_from_http:__www.microsoft.com_downloads_details.aspx_FamilyIDcebbacd8_c094_4255_b702_de3bb768148f_n_n
push esi
mov edi, str.Load_msi.dll_error
call fcn.00404393
add esp, 0xc
xor al, al
call fcn.00405e70
ret
push str.MsiSetInternalUI
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x40b0f0], eax
push str.MsiInstallProductA
push edi
call esi
mov dword [0x40b0c8], eax
push str.MsiEnableLogA
push edi
call esi
mov dword [0x40b0d0], eax
push str.MsiOpenDatabaseA
push edi
call esi
mov dword [0x40b0e4], eax
push str.MsiCloseHandle
push edi
call esi
mov dword [0x40b0d4], eax
push str.MsiDatabaseOpenViewA
push edi
call esi
mov dword [0x40b0f8], eax
push str.MsiViewExecute
push edi
call esi
mov dword [0x40b0e0], eax
push str.MsiViewFetch
push edi
call esi
mov dword [0x40b0dc], eax
push str.MsiRecordGetStringA
push edi
call esi
mov dword [0x40b0d8], eax
push str.MsiGetProductInfoA
push edi
call esi
mov dword [0x40b0ec], eax
cmp dword [0x40b0f0], ebx
je 0x4053dd
cmp dword [0x40b0c8], ebx
je 0x4053dd
cmp dword [0x40b0d0], ebx
je 0x4053dd
cmp dword [0x40b0e4], ebx
je 0x4053dd
cmp dword [0x40b0d4], ebx
je 0x4053dd
cmp dword [0x40b0f8], ebx
je 0x4053dd
cmp dword [0x40b0e0], ebx
je 0x4053dd
cmp dword [0x40b0dc], ebx
je 0x4053dd
cmp dword [0x40b0d8], ebx
je 0x4053dd
cmp eax, ebx
je 0x4053dd
mov al, 1
jmp 0x4052fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._E___loadMsi__Could_not_get_msi_functions:__u
call fcn.00404212
mov ecx, str.Missing_MSI_functions._You_must_have_MSI_installed._Get_it_from_http:__www.microsoft.com_downloads_details.aspx_FamilyIDcebbacd8_c094_4255_b702_de3bb768148f_n_n
jmp 0x4052ec

Function at 0x405a42
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b038]
jne 0x405a4c
repz ret
jmp fcn.00405ee7
Function at 0x403f80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
push esi
push edi
xor edx, eax
mov edi, ecx
imul ecx, edx, 0x1000193
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
xor ecx, eax
mov dword [ebp - 4], edi
imul ecx, ecx, 0x1000193
mov eax, ebx
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x18]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp edi, esi
jne 0x403fea
mov ecx, esi
jmp 0x403fef
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x403ffc
cmp dword [eax + 8], ebx
je 0x403ffe
mov eax, dword [eax]
jmp 0x403fe2
mov eax, esi
cmp eax, esi
jne 0x404059
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
lea eax, [ebp - 0xc]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00407180
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x404078
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.error_command_table_add__08X
push 0x4ba500
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.0046cbfa
int3
Function at 0x405560
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x4055d3
cmp eax, edi
jne 0x4055cb
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4055db
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4055db
cmp eax, edi
jne 0x4055de
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0x10
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.0046ccee
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x408620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push 4
lea eax, [esi + 0xc94]
mov dword [ebp - 0xc], edi
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc98]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xca0]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc9c]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea eax, [esi + 0xca4]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xcb0]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
add esi, 0xcb4
push eax
push 4
push esi
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 4
add eax, 0xcbc
push eax
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 4
add edi, 0xcb8
push edi
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 0xc
add ebx, 0xcc0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xc
add eax, 0xe2c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xb34
add eax, 0xe38
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 8
add eax, 0x196c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xcb0]
imul eax, dword [ecx + 0xc94]
push eax
call dword [sym.imp.PAL.dll_PalSoundSetPrimaryVolume]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov esi, dword [sym.imp.PAL.dll_PalSoundSetVolume]
push 3
imul eax, dword [ecx + 0xc98]
push eax
call esi
mov eax, dword [ebp - 8]
push 1
mov eax, dword [eax + 0xc9c]
imul eax, dword [edi]
push eax
call esi
mov edi, dword [ebp - 8]
push 4
mov eax, dword [edi + 0xcc4]
imul eax, dword [edi + 0xca8]
push eax
call esi
mov eax, dword [edi + 0xcc8]
imul eax, dword [edi + 0xcac]
push 6
push eax
call esi
mov eax, dword [ebx]
imul eax, dword [edi + 0xca4]
push 5
push eax
call esi
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408a30
Capabilities:
Print debug messages

Disassembly:
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
lea edi, [eax + 0x338]
mov ecx, edi
call fcn.004089c0
cmp eax, 0xffffffff
je 0x408aaa
push ebx
imul ebx, eax, 0x2c
add ebx, edi
cmp dword [ebx + 0x262cc], 0
mov dword [ebx + 0x262c8], 0
je 0x408aa9
push esi
mov dword [ebx + 0x262c8], 1
mov edx, 2
push 2
push dword [edi + 0x55e58]
mov ecx, edi
call fcn.00466120
mov eax, dword [edi + 0x55e5c]
lea ecx, [edi + 0x55e50]
add esp, 8
add eax, dword [ebx + 0x262cc]
mov dword [edi + 0x55e58], eax
pop esi
pop ebx
pop edi
jmp fcn.00464d50
pop ebx
pop edi
ret
Function at 0x408ab0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
xor esi, esi
lea ebx, [eax + 0x338]
lea edi, [ebx + 0x25acc]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x408ae4
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayIs]
add esp, 4
test eax, eax
jne 0x408b51
inc esi
add edi, 0x44
cmp esi, 8
jl 0x408ad0
mov ecx, ebx
call fcn.004089c0
cmp eax, 0xffffffff
je 0x408b51
imul edi, eax, 0x2c
add edi, ebx
cmp dword [edi + 0x262c8], 0
je 0x408b51
cmp dword [edi + 0x262d0], 0
mov dword [edi + 0x262c8], 0
je 0x408b51
push 2
push dword [ebx + 0x55e58]
mov edx, 2
mov ecx, ebx
call fcn.00466120
mov eax, dword [ebx + 0x55e5c]
lea ecx, [ebx + 0x55e50]
add esp, 8
add eax, dword [edi + 0x262d0]
mov dword [ebx + 0x55e58], eax
pop edi
pop esi
pop ebx
jmp fcn.00464d50
pop edi
pop esi
pop ebx
ret

Function at 0x40c200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 5
lea eax, [ebp - 0x310]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x40c2db
mov eax, dword [esi + 4]
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esi + 4]
lea ecx, [edi + 0x410]
lea edx, [edi + 0x104]
push ecx
test eax, eax
je 0x40c27b
lea eax, [edi + 0x208]
push eax
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40c298
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, esi
mov edx, eax
sub ecx, edx
pop edi
lea edx, [ecx + 8]
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40c2b0
mov dword [esi + 0x214], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
Function at 0x40c2f0
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x24
push eax
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
js 0x40c34a
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477984
add esp, 0xc
test eax, eax
je 0x40c495
push 0
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c37f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477984
add esp, 0xc
test eax, eax
je 0x40c495
push 0x4c0f44
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c464
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40c464
cmp dword [ebp - 0x210], 0
je 0x40c464
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046ed60
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0x208
push eax
push str.ProgramFiles_x86_
call ebx
test eax, eax
je 0x40c41d
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477984
add esp, 0xc
test eax, eax
je 0x40c495
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046ed60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.ProgramW6432
call ebx
test eax, eax
jne 0x40c477
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret 4
push 0
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c44f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00477984
add esp, 0xc
test eax, eax
jne 0x40c44f
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ccad
mov esp, ebp
pop ebp
ret 4
Function at 0x40c4b0
Capabilities:
Get common file path
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
mov eax, dword [0x4cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea eax, [ebp - 0x218]
push esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x210], 0xffffffff
push str._s_save
push eax
mov dword [ebx + 0x214], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edi, [ebx + 8]
mov eax, ecx
mov edx, edi
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c503
mov eax, dword [ebx + 4]
cmp byte [eax + 0x514], 0
jne 0x40c648
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0046ed60
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
test eax, eax
jns 0x40c566
push 0
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
call esi
test eax, eax
js 0x40c648
mov ecx, dword [ebx + 4]
lea eax, [ecx + 0x30c]
push eax
lea eax, [ecx + 0x104]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x768]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40c648
mov esi, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x40c648
push 0x208
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.0046ed60
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x4ba500
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x628]
mov eax, ecx
sub edi, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x40c620
mov dword [ebx + 0x214], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c650
sub ecx, edx
cmp ecx, 2
jl 0x40c670
cmp byte [edi], 0x5c
jne 0x40c670
cmp byte [edi + 1], 0x5c
jne 0x40c670
mov eax, 4
jmp 0x40c6a5
cmp ecx, 3
jge 0x40c67c
mov eax, 1
jmp 0x40c6a5
push 3
lea eax, [ebp - 0x76c]
mov dword [ebp - 0x76c], 0
push edi
push eax
call fcn.00477860
add esp, 0xc
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebx + 0x210], eax
test eax, eax
je 0x40c6e3
cmp eax, 1
je 0x40c6e3
cmp eax, 5
je 0x40c6dc
push dword [ebx + 4]
call fcn.0040c2f0
test eax, eax
jne 0x40c6dc
mov dword [ebx + 0x214], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0040c200
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
Function at 0x40ca70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.PAL.dll_PalGetFilePath]
push eax
lea eax, [ebp - 0x110]
push str._s_setting.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x250]
xor ebx, ebx
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40cad1
mov esi, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
setne bl
inc ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x110]
push eax
push 1
push str.History
push str.DebugWindow
call edi
mov esi, dword [sym.imp.PAL.dll_PalDebugWindowCreate]
test eax, eax
je 0x40cb04
push 1
push 0x4ba6d8
push 0xa
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.UserMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40cb2b
push 3
push 0x4ba6ec
push 0xb
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.SystemMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40cb52
push 3
push 0x4ba70c
push 0xc
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.TempMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40cb79
push 3
push 0x4ba728
push 0xd
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push 0x4ba73c
push str.DebugWindow
call edi
test eax, eax
je 0x40cba0
push 3
push 0x4ba740
push 0xe
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push 0x4ba750
push str.DebugWindow
call edi
test eax, eax
je 0x40cbc7
push 3
push 0x4ba754
push 0xf
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.Output
push str.DebugWindow
call edi
test eax, eax
je 0x40cbee
push 1
push str.output
push 0x10
call esi
add esp, 0xc
cmp ebx, 1
je 0x40cc2a
mov esi, dword [sym.imp.PAL.dll_int___cdecl_PalDebugWindowToggleControl_unsigned_int_]
push 0xa
call esi
add esp, 4
push 0xb
call esi
add esp, 4
push 0xc
call esi
add esp, 4
push 0xd
call esi
add esp, 4
push 0xe
call esi
add esp, 4
push 0xf
call esi
add esp, 4
push 0x10
call esi
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
Function at 0x4207b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x6d2144
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x208], edx
cmp edx, 0xffffffff
je 0x4208f3
mov ecx, dword [0x631140]
xor eax, eax
mov dword [ebp - 0x20c], eax
push esi
push edi
test ecx, ecx
jle 0x4208bc
mov edi, 0x631247
nop
mov esi, dword [edi - 0x103]
test esi, esi
js 0x4208a1
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0046ed60
push edi
lea eax, [edi + 0xff]
push eax
lea eax, [edi - 0xff]
push eax
movsx eax, byte [edi + 0x17f]
push eax
push esi
lea eax, [ebp - 0x204]
push str._06d__1d___s____s____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x204]
add esp, 0x28
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x420867
push 0
lea eax, [ebp - 0x210]
sub esi, ecx
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x210]
jne 0x4208d5
mov ecx, dword [0x631140]
mov eax, dword [ebp - 0x20c]
inc eax
add edi, 0x284
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jl 0x420810
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0046ccad
mov esp, ebp
pop ebp
ret