joyce8/EMBER2024-capa huggingface dataset:
Function at 0x585b80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str.Making_sure_extracted_files_exists_n
mov edi, ecx
call fcn.00589970
add esp, 4
lea ecx, [edi + 0x4c0]
push 1
push 1
call fcn.00599a50
mov eax, dword [edi + 0x5cc]
xor ebx, ebx
sub eax, dword [edi + 0x5c8]
sar eax, 2
test eax, eax
je 0x585c63
push esi
lea ecx, [ecx]
mov eax, dword [edi + 0x5c8]
mov esi, dword [eax + ebx*4]
test byte [esi + 0x116], 1
je 0x585c4a
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.0058a940
add esp, 0xc
test al, al
je 0x585c19
mov eax, dword [ebp - 0x40c]
cmp eax, dword [esi + 0x10e]
jne 0x585c19
mov eax, dword [ebp - 0x408]
cmp eax, dword [esi + 0x106]
je 0x585c4a
push esi
push str.restoring__s_n
call fcn.00589970
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x6758b4
push esi
lea ecx, [edi + 0x4c0]
call fcn.00599030
test al, al
je 0x585c8b
mov eax, dword [edi + 0x5cc]
inc ebx
sub eax, dword [edi + 0x5c8]
sar eax, 2
cmp ebx, eax
jb 0x585bd0
pop esi
lea ecx, [edi + 0x4c0]
call fcn.00598d30
push str.Making_sure_extracted_files_exists___finished_n
call fcn.00589970
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop ebx
call fcn.005aeae3
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x404]
push str.Cant_extract_file__s_nPlease_delete_this_file_manually
push eax
call fcn.0057dea0
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.00584700
int3
Function at 0x5862e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6a1da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x20d84], 0
je 0x586339
push 0
push 0x33b
push str.Updater.cpp
push str.status___STATUS_Checking
call fcn.00589e40
add esp, 0x10
mov ecx, esi
call fcn.00584760
mov ecx, esi
call fcn.00584980
test al, al
je 0x586364
mov ecx, esi
call fcn.005849f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esi + 0x84], 1
cmp dword [esi + 0x20d84], 5
push 0x674dac
sete al
lea eax, [eax*2 + 3]
mov dword [esi + 0x20d84], eax
lea eax, [esi + 0x20d8d]
push eax
call fcn.0057dea0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
mov edi, edi
cmp dword [esi + 0x20d84], 5
jne 0x58644f
mov eax, dword [esi + 0x216d0]
mov dword [0x74e2a0], eax
mov eax, dword [esi + 0x216d4]
mov dword [0x74e2a4], eax
mov eax, dword [0x74e2b0]
or eax, dword [0x74e2b4]
je 0x5863f8
call fcn.0057e8f0
test al, al
je 0x5863f8
push 0
push 0
push 0x74e2a0
push 0x57e510
push 0
push 0
call fcn.005af46e
add esp, 0x18
mov dword [0x74e468], eax
mov ecx, esi
call fcn.00584ca0
mov ecx, esi
call fcn.00584e50
push dword [esi + 0x18]
push dword [esi + 0x5c4]
push str.current_build_version_d__updater_data_version_d_n
call fcn.00589970
mov eax, dword [esi + 0x5c4]
add esp, 0xc
mov ecx, esi
cmp eax, dword [esi + 0x18]
jne 0x58642e
call fcn.00586210
call fcn.005850b0
mov ecx, esi
call fcn.00585850
mov ecx, esi
call fcn.00586170
mov ecx, esi
call fcn.00586110
mov ecx, esi
call fcn.00586210
push 0x32
call edi
jmp 0x5863a0

Function at 0x5870a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x215d0]
call fcn.00583be0
push 0
push 0
push esi
push 0x586d00
push 0
push 0
call fcn.005af46e
add esp, 0x18
mov dword [esi + 0x215c8], eax
pop esi
ret

Function at 0x587220
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
lea edx, [edi + 0x218e8]
mov esi, edx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x587230
sub esi, ecx
cmp esi, 0x13
je 0x587266
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x587241
sub edx, ecx
cmp edx, 0x1d
je 0x587266
push 0
push str.Create_Account
push str.Please_enter_Serial_Key_in_following_format:_nXXXX_XXXX_XXXX_XXXX_or_XXXXX_XXXXX_XXXXX_XXXXX_XXXXX
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret
push 0
push 0
push edi
push 0x5870d0
push 0
push 0
call fcn.005af46e
add esp, 0x18
mov dword [edi + 0x215c8], eax
pop edi
pop esi
ret
Function at 0x5875e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x216e4]
mov edx, ecx
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x5875f0
sub edx, edi
cmp edx, 4
jae 0x58761f
push 0
push str.Create_Account
push str.email_address_is_too_short
push 0
mov dword [esi + 0x216e0], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret
call fcn.005872b0
test eax, eax
jne 0x587643
push eax
push str.Create_Account
push str.email_address_is_not_valid
push eax
mov dword [esi + 0x216e0], eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret
lea ecx, [esi + 0x217e4]
lea eax, [esi + 0x21764]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x587670
test dl, dl
je 0x58766c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x587670
add eax, 2
add ecx, 2
test dl, dl
jne 0x587650
xor eax, eax
jmp 0x587675
sbb eax, eax
or eax, 1
push 0
test eax, eax
je 0x58769a
push str.Create_Account
push str.Passwords_do_not_match
push 0
mov dword [esi + 0x216e0], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret
push 0
push esi
push 0x587290
push 0
push 0
call fcn.005af46e
add esp, 0x18
mov dword [esi + 0x215c8], eax
pop edi
pop esi
ret

Function at 0x5878b0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x215b0], 0
je 0x5878d5
push 0
push 0x5b9
push str.Updater.cpp
push str.mainThread___NULL
call fcn.00589e40
add esp, 0x10
cmp dword [esi + 0x215c8], 0
je 0x5878f7
push 0
push 0x5ba
push str.Updater.cpp
push str.loginThread___NULL
call fcn.00589e40
add esp, 0x10
push 0
push 0
push esi
push 0x586510
push 0
push 0
call fcn.005af46e
push 0
push 0
push esi
push 0x586cc0
push 0
push 0
mov dword [esi + 0x215b0], eax
call fcn.005af46e
push 0
push 0
push esi
push 0x586ce0
push 0
push 0
mov dword [esi + 0x21be0], eax
call fcn.005af46e
add esp, 0x48
mov dword [esi + 0x215c0], eax
pop esi
ret

Function at 0x5879d0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
push str.CUpdater::Stop___n
mov ebx, ecx
call fcn.00589970
add esp, 4
cmp byte [ebx + 0x20d8c], 0
jne 0x5879f1
mov eax, dword [ebx + 0x215b8]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x730f24
call edi
lea esi, [ebx + 0x20d6c]
push esi
call edi
mov ecx, dword [ebx + 0x215b0]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
test ecx, ecx
je 0x587a32
push 0
push ecx
call edi
push dword [ebx + 0x215b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x215b0], 0
mov eax, dword [ebx + 0x21be0]
test eax, eax
je 0x587a57
push 0
push eax
call edi
push dword [ebx + 0x21be0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x21be0], 0
mov eax, dword [ebx + 0x215c8]
test eax, eax
je 0x587a7c
push 0
push eax
call edi
push dword [ebx + 0x215c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x215c8], 0
mov eax, dword [ebx + 0x215c0]
test eax, eax
je 0x587aa1
push 0
push eax
call edi
push dword [ebx + 0x215c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x215c0], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
push 0x730f24
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x588a10
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0x11
mov dword [ebp - 4], 4
call fcn.005b0b5c
mov ebx, eax
push 0x288
mov dword [ebp - 8], ebx
call fcn.005b0b5c
mov esi, eax
add esp, 8
test esi, esi
jne 0x588a4b
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.005b0c03
add esp, 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x588a79
push dword [ebp - 4]
call fcn.005b0b5c
mov esi, eax
add esp, 4
test esi, esi
jne 0x588a79
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.005b0c03
add esp, 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x588ae3
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 8]
push str._02X:_02X:_02X:_02X:_02X:_02X
push eax
call fcn.00582790
push ebx
lea eax, [esi + 0x1b0]
push eax
push str.Address:__s__mac:__s_n
call fcn.005b0c03
add esp, 0x2c
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.005b0cb2
add esp, 4
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x588c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareCodex_Development_GroupWarZ_Siam_MMO
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x588ccc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x588ca3
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.username
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x588ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.AppEventsEventLabelsSystemFool
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x588d3f
sub esi, 0xffffff80
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x588d16
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.password
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5893c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov ecx, dword [0x730f94]
sub esp, 0x10
test ecx, ecx
je 0x5893df
cmp dword [0x730f90], 1
jl 0x5893df
test ecx, ecx
je 0x5893df
call fcn.005a2660
call fcn.005898b0
mov eax, dword [0x6a826c]
mov ecx, 0x1e
fstp dword [0x6a0be0]
movss xmm2, dword [0x6a0be0]
xorps xmm1, xmm1
subss xmm2, dword [0x6a8268]
movss dword [eax*4 + 0x6a8270], xmm2
inc eax
cdq
idiv ecx
movss dword [0x6a0be4], xmm2
mov eax, 0x6a8274
mov dword [0x6a826c], edx
jmp 0x589430
addss xmm1, dword [eax - 4]
addss xmm1, dword [eax]
addss xmm1, dword [eax + 4]
addss xmm1, dword [eax + 8]
addss xmm1, dword [eax + 0xc]
addss xmm1, dword [eax + 0x10]
addss xmm1, dword [eax + 0x14]
addss xmm1, dword [eax + 0x18]
addss xmm1, dword [eax + 0x1c]
addss xmm1, dword [eax + 0x20]
add eax, 0x28
cmp eax, 0x6a82ec
jl 0x589430
mulss xmm1, dword [0x65caa0]
movss xmm0, dword [0x65ca9c]
comiss xmm0, xmm2
movss dword [0x6a0be8], xmm1
jbe 0x589492
mov dword [0x6a0be4], 0x3983126f
comiss xmm0, xmm1
jbe 0x5894a1
mov dword [0x6a0be8], 0x3983126f
cmp dword [0x6a822c], 0
jne 0x5894dd
lea eax, [esp]
mov dword [0x6a822c], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005b6b4f
push 0x6a8348
movsd qword [0x6a8340], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 8]
sub ecx, dword [0x6a8348]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x6a834c]
call fcn.005b6b4f
divsd xmm0, qword [0x6a8340]
movsd xmm1, qword [0x6a8230]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm2
subss xmm0, dword [0x6a823c]
comiss xmm0, dword [0x65caa4]
jbe 0x589557
movd xmm0, dword [0x6a8238]
xor eax, eax
cvtdq2pd xmm0, xmm0
movss dword [0x6a823c], xmm2
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
movss dword [0x6a8240], xmm0
jmp 0x58955c
mov eax, dword [0x6a8238]
movss xmm0, dword [0x676974]
inc eax
divss xmm0, dword [0x6a0be4]
mov dword [0x6a8238], eax
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
movsd qword [0x6a8230], xmm0
add esp, 0x10
jmp 0x59be30
push ecx
call fcn.005898b0
fstp dword [esp]
movss xmm0, dword [esp]
subss xmm0, dword [0x730f78]
comiss xmm0, dword [0x676974]
jbe 0x59be7e
mov eax, dword [0x730f4c]
test eax, eax
je 0x59be7e
push eax
push str.Loads_unloads_collapsed:__d_n
call fcn.00589970
movss xmm0, dword [esp + 8]
add esp, 8
mov dword [0x730f4c], 0
movss dword [0x730f78], xmm0
pop ecx
ret
Function at 0x5898b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
cmp dword [0x6a822c], 0
jne 0x5898ef
lea eax, [esp]
mov dword [0x6a822c], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005b6b4f
push 0x6a8348
movsd qword [0x6a8340], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 8]
sub ecx, dword [0x6a8348]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x6a834c]
call fcn.005b6b4f
divsd xmm0, qword [0x6a8340]
cvtsd2ss xmm0, xmm0
movss dword [esp], xmm0
fld dword [esp]
add esp, 0x10
ret
Function at 0x589f40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
cmp dword [0x6a994c], 0
jne 0x589f65
push 0
push 0x205
push str.SourceWinMain.cpp
push str.hInstance___NULL
call fcn.00589e40
add esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
push 0
mov dword [esp + 0x10], 0x4008
mov dword [esp + 0x14], 0x58a1a0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x6a9954]
test eax, eax
jne 0x589fab
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x28], eax
mov eax, dword [str.r3dWin]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICA]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [0x6a98b4], eax
call esi
push edi
mov dword [0x6a98b8], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
call ebx
mov ecx, dword [0x6a0bec]
mov esi, dword [0x6a0bf0]
push eax
mov eax, dword [0x6a98b8]
push 0
sub eax, ecx
push 0
cdq
push ecx
sub eax, edx
push esi
sar eax, 1
push eax
mov eax, dword [0x6a98b4]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10cf0000
push dword [0x6a0c00]
push dword [0x6a0c08]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x6a9950], eax
test eax, eax
jne 0x58a092
push eax
push str.Error
push str.Window_Creation_Failed
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
push dword [esp + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push eax
call esi
push dword [esp + 0x20]
push 0
push 0x80
push dword [0x6a9950]
call esi
mov esi, dword [0x6a9950]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
and eax, 0xfffbffff
push eax
push 0xfffffffffffffff0
push esi
call edi
mov esi, dword [0x6a9950]
push 0xfffffffffffffff0
push esi
call ebx
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push esi
call edi
push 0
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret

Function at 0x58a910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x58a93c
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6a0c10]
dec edx
jne 0x58a920
pop esi
not eax
ret
Function at 0x58a940
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
test ebx, ebx
jne 0x58a962
push ebx
push 0x168
push str.SourceFileSystem_r3dFSCompress.cpp
push str.out_crc32
call fcn.00589e40
add esp, 0x10
push 0x65cc3c
push dword [esp + 0x10]
call fcn.005af7fb
mov esi, eax
add esp, 8
test esi, esi
jne 0x58a97e
pop esi
xor al, al
pop ebx
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005b4dd0
push esi
call fcn.005b51f9
push 0
push 0
push esi
mov edi, eax
call fcn.005b4dd0
lea ecx, [edi + 1]
push 1
push ecx
call fcn.0058bab0
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.005b5476
add esp, 0x34
cmp eax, edi
je 0x58a9df
push esi
call fcn.005af1d5
push ebp
call fcn.0058ba70
push edi
push dword [esp + 0x20]
push str.failed_to_read__s__d_n
call fcn.00589590
add esp, 0x14
xor al, al
pop edi
pop ebp
pop esi
pop ebx
ret
push edi
push ebp
call fcn.0058a910
push ebp
mov dword [esp + 0x24], eax
call fcn.0058ba70
push esi
call fcn.005af1d5
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x58aa03
mov dword [ecx], edi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
ret

Function at 0x58aa80
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x58ab20
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x58aaa2
mov eax, dword [str.Codex_Development_]
mov dword [ecx], eax
mov eax, dword [0x65d170]
mov dword [ecx + 4], eax
mov eax, dword [0x65d174]
mov dword [ecx + 8], eax
mov eax, dword [0x65d178]
mov dword [ecx + 0xc], eax
mov eax, dword [0x65d17c]
push esi
mov dword [ecx + 0x10], eax
call fcn.005b5e27
add esp, 4
lea ecx, [esi - 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x58aae0
mov eax, dword [str.WarZ_Siam_MMO_]
mov dword [ecx], eax
mov eax, dword [0x65d184]
mov dword [ecx + 4], eax
mov eax, dword [0x65d188]
mov dword [ecx + 8], eax
mov ax, word [0x65d18c]
mov word [ecx + 0xc], ax
mov al, byte [0x65d18e]
push esi
mov byte [ecx + 0xe], al
call fcn.005b5e27
add esp, 4
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x58b1f0
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 0x10]
push edi
call fcn.005af7fb
mov esi, eax
add esp, 8
test esi, esi
jne 0x58b232
call fcn.005b6cb7
push dword [eax]
call fcn.0058ab30
push eax
push edi
push str.__warning____cant_open__s_for_writing_nError:__s__d__n
call fcn.00589590
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x58b240
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x58b255
pop edi
mov dword [esp + 0x10], eax
jmp fcn.005b5476
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x114]
push esi
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jb 0x58b273
mov esi, ecx
sub esi, edx
test esi, esi
jne 0x58b27c
pop esi
xor eax, eax
pop edi
ret
mov ecx, dword [edi + 4]
push esi
add ecx, edx
push ecx
push dword [esp + 0x14]
call fcn.005b2c80
add dword [edi + 8], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [esp + 0x10]
pop esi
pop edi
ret

Function at 0x58b7c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4048
call fcn.005b3d60
push ebx
push esi
mov esi, dword [esp + 0x4054]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005b71ad
mov ebx, dword [esp + 0x4060]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.005b71ad
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp eax, dword [esp + 0x1c]
je 0x58b808
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
push edi
push 0x65cc3c
push esi
call fcn.005af7fb
push 0x65cc3c
push ebx
mov edi, eax
call fcn.005af7fb
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x58b939
test ebx, ebx
je 0x58b924
push ebp
push edi
mov ebp, 1
call fcn.005b5265
add esp, 4
test eax, eax
jne 0x58b908
lea ecx, [ecx]
push edi
push 0x2000
lea eax, [esp + 0x60]
push 1
push eax
call fcn.005b5476
push ebx
push 0x2000
mov esi, eax
lea eax, [esp + 0x2070]
push 1
push eax
call fcn.005b5476
add esp, 0x20
cmp esi, eax
je 0x58b899
push 0
push 0x6af
push str.Source_r3dFileMan.cpp
push str.read0__read1
call fcn.00589e40
add esp, 0x10
lea ecx, [esp + 0x58]
lea edx, [esp + 0x2058]
sub esi, 4
jb 0x58b8c1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x58b8c6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x58b8b0
cmp esi, 0xfffffffc
je 0x58b8f3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x58b906
cmp esi, 0xfffffffd
je 0x58b8f3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x58b906
cmp esi, 0xfffffffe
je 0x58b8f3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x58b906
cmp esi, 0xffffffff
je 0x58b8f3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x58b906
push edi
call fcn.005b5265
add esp, 4
test eax, eax
je 0x58b850
jmp 0x58b908
xor ebp, ebp
push edi
call fcn.005af1d5
push ebx
call fcn.005af1d5
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
push edi
call fcn.005af1d5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
test ebx, ebx
je 0x58b946
push ebx
call fcn.005af1d5
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
Function at 0x58ce50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp eax, 0x8876017c
jne 0x58cea2
mov ecx, dword [0x728b58]
push 1
call fcn.005a36f0
mov eax, dword [0x728af4]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x58ce8e
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00591e10
push 0x1010
push str.Error
push str.Out_of_video_memory_
jmp 0x58cf37
cmp eax, 0x8007000e
jne 0x58cf4c
mov eax, dword [esi + 0x1025e0]
push 1
mov dword [esi + 0x1025e0], 0
push 1
mov dword [esi + 0x1025e4], 0
push eax
mov dword [esi + 0x1025e8], 0
call fcn.0058bbd0
add esp, 0xc
mov ecx, esi
push 0
call fcn.0058f6b0
mov eax, dword [esi + 0x480]
test eax, eax
je 0x58cf05
push 1
push eax
mov ecx, esi
call fcn.0059be80
mov eax, dword [esi + 0x480]
test eax, eax
jne 0x58cef1
mov eax, dword [0x728af4]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x58cf28
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00591e10
push 0x1010
push str.Error
push str.Out_of_system_memory_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [0x6a82fc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret 4