joyce8/EMBER2024-capa huggingface dataset:
Function at 0x589550
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov ecx, dword [0x758fb4]
sub esp, 0x10
test ecx, ecx
je 0x58956f
cmp dword [0x758fb0], 1
jl 0x58956f
test ecx, ecx
je 0x58956f
call fcn.005a2850
call fcn.00589a40
mov eax, dword [0x6d028c]
mov ecx, 0x1e
fstp dword [0x6a0be0]
movss xmm2, dword [0x6a0be0]
xorps xmm1, xmm1
subss xmm2, dword [0x6d0288]
movss dword [eax*4 + 0x6d0290], xmm2
inc eax
cdq
idiv ecx
movss dword [0x6a0be4], xmm2
mov eax, 0x6d0294
mov dword [0x6d028c], edx
jmp 0x5895c0
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, 0x6d030c
jl 0x5895c0
mulss xmm1, dword [0x65cac0]
movss xmm0, dword [0x65cabc]
comiss xmm0, xmm2
movss dword [0x6a0be8], xmm1
jbe 0x589622
mov dword [0x6a0be4], 0x3983126f
comiss xmm0, xmm1
jbe 0x589631
mov dword [0x6a0be8], 0x3983126f
cmp dword [0x6d024c], 0
jne 0x58966d
lea eax, [esp]
mov dword [0x6d024c], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005b6e4f
push 0x6d0368
movsd qword [0x6d0360], 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 [0x6d0368]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x6d036c]
call fcn.005b6e4f
divsd xmm0, qword [0x6d0360]
movsd xmm1, qword [0x6d0250]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm2
subss xmm0, dword [0x6d025c]
comiss xmm0, dword [0x65cac4]
jbe 0x5896e7
movd xmm0, dword [0x6d0258]
xor eax, eax
cvtdq2pd xmm0, xmm0
movss dword [0x6d025c], xmm2
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
movss dword [0x6d0260], xmm0
jmp 0x5896ec
mov eax, dword [0x6d0258]
movss xmm0, dword [0x676af0]
inc eax
divss xmm0, dword [0x6a0be4]
mov dword [0x6d0258], eax
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
movsd qword [0x6d0250], xmm0
add esp, 0x10
jmp 0x59c080
push ecx
call fcn.00589a40
fstp dword [esp]
movss xmm0, dword [esp]
subss xmm0, dword [0x758f98]
comiss xmm0, dword [0x676af0]
jbe 0x59c0ce
mov eax, dword [0x758f6c]
test eax, eax
je 0x59c0ce
push eax
push str.Loads_unloads_collapsed:__d_n
call fcn.00589b00
movss xmm0, dword [esp + 8]
add esp, 8
mov dword [0x758f6c], 0
movss dword [0x758f98], xmm0
pop ecx
ret
Function at 0x589a40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
cmp dword [0x6d024c], 0
jne 0x589a7f
lea eax, [esp]
mov dword [0x6d024c], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005b6e4f
push 0x6d0368
movsd qword [0x6d0360], 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 [0x6d0368]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x6d036c]
call fcn.005b6e4f
divsd xmm0, qword [0x6d0360]
cvtsd2ss xmm0, xmm0
movss dword [esp], xmm0
fld dword [esp]
add esp, 0x10
ret
Function at 0x58a0d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
cmp dword [0x6d196c], 0
jne 0x58a0f5
push 0
push 0x205
push str.SourceWinMain.cpp
push str.hInstance___NULL
call fcn.00589fd0
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], 0x58a500
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x6d1974]
test eax, eax
jne 0x58a13b
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 [0x6d18d4], eax
call esi
push edi
mov dword [0x6d18d8], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
call ebx
mov ecx, dword [0x6a0bf0]
mov esi, dword [0x6a0bf4]
push eax
mov eax, dword [0x6d18d8]
push 0
sub eax, ecx
push 0
cdq
push ecx
sub eax, edx
push esi
sar eax, 1
push eax
mov eax, dword [0x6d18d4]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10cf0000
push dword [0x6c8c08]
push dword [0x6c8c10]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x6d1970], eax
test eax, eax
jne 0x58a222
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 [0x6d1970]
call esi
mov esi, dword [0x6d1970]
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 [0x6d1970]
push 0xfffffffffffffff0
push esi
call ebx
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push esi
call edi
push 0
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x58a2d0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Terminate process
Use process replacement

Disassembly:
sub esp, 0x460
push esi
push edi
mov edi, dword [esp + 0x46c]
lea eax, [esp + 0x68]
push 0x400
push eax
push 0
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x2c], 0
add esi, edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi], 0x4550
jne 0x58a48a
push 0x44
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [esp + 0x18], xmm0
call fcn.005b2ef0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x58a48a
push ebp
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
mov dword [ebp], 0x10007
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x58a489
push 0
push 4
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0xa4]
add eax, 8
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x58a3d9
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x58a436
push ebx
xor ebx, ebx
xor ebp, ebp
mov ecx, dword [edi + 0x3c]
add ecx, ebx
push 0
push dword [ecx + edi + 0x108]
mov eax, dword [ecx + edi + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + edi + 0x104]
add eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [esi + 6]
inc ebp
add ebx, 0x28
cmp ebp, eax
jl 0x58a3f7
mov ebp, dword [esp + 0x24]
pop ebx
push 0
push 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xa4]
add eax, 8
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0xc]
push ebp
mov dword [ebp + 0xb0], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
xor eax, eax
pop ebp
pop edi
pop esi
add esp, 0x460
ret

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

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x58acac
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 + 0x6c8c18]
dec edx
jne 0x58ac90
pop esi
not eax
ret
Function at 0x58acb0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
test ebx, ebx
jne 0x58acd2
push ebx
push 0x168
push str.SourceFileSystem_r3dFSCompress.cpp
push str.out_crc32
call fcn.00589fd0
add esp, 0x10
push 0x65cc5c
push dword [esp + 0x10]
call fcn.005afafb
mov esi, eax
add esp, 8
test esi, esi
jne 0x58acee
pop esi
xor al, al
pop ebx
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005b50d0
push esi
call fcn.005b54f9
push 0
push 0
push esi
mov edi, eax
call fcn.005b50d0
lea ecx, [edi + 1]
push 1
push ecx
call fcn.0058bdf0
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.005b5776
add esp, 0x34
cmp eax, edi
je 0x58ad4f
push esi
call fcn.005af4d5
push ebp
call fcn.0058be30
push edi
push dword [esp + 0x20]
push str.failed_to_read__s__d_n
call fcn.00589720
add esp, 0x14
xor al, al
pop edi
pop ebp
pop esi
pop ebx
ret
push edi
push ebp
call fcn.0058ac80
push ebp
mov dword [esp + 0x24], eax
call fcn.0058be30
push esi
call fcn.005af4d5
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x58ad73
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 0x58adf0
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 0x58ae90
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x58ae12
mov eax, dword [str.Codex_Development_]
mov dword [ecx], eax
mov eax, dword [0x65d1e0]
mov dword [ecx + 4], eax
mov eax, dword [0x65d1e4]
mov dword [ecx + 8], eax
mov eax, dword [0x65d1e8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x65d1ec]
push esi
mov dword [ecx + 0x10], eax
call fcn.005b6127
add esp, 4
lea ecx, [esi - 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x58ae50
mov eax, dword [str.WarZ_Siam_MMO_]
mov dword [ecx], eax
mov eax, dword [0x65d1f4]
mov dword [ecx + 4], eax
mov eax, dword [0x65d1f8]
mov dword [ecx + 8], eax
mov ax, word [0x65d1fc]
mov word [ecx + 0xc], ax
mov al, byte [0x65d1fe]
push esi
mov byte [ecx + 0xe], al
call fcn.005b6127
add esp, 4
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x58b550
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.005afafb
mov esi, eax
add esp, 8
test esi, esi
jne 0x58b592
call fcn.005b6fb7
push dword [eax]
call fcn.0058aea0
push eax
push edi
push str.__warning____cant_open__s_for_writing_nError:__s__d__n
call fcn.00589720
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x58b5a0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x58b5b5
pop edi
mov dword [esp + 0x10], eax
jmp fcn.005b5776
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 0x58b5d3
mov esi, ecx
sub esi, edx
test esi, esi
jne 0x58b5dc
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.005b2f80
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 0x58bb20
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4048
call fcn.005b4060
push ebx
push esi
mov esi, dword [esp + 0x4054]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005b74ad
mov ebx, dword [esp + 0x4060]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.005b74ad
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp eax, dword [esp + 0x1c]
je 0x58bb68
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
push edi
push 0x65cc5c
push esi
call fcn.005afafb
push 0x65cc5c
push ebx
mov edi, eax
call fcn.005afafb
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x58bc99
test ebx, ebx
je 0x58bc84
push ebp
push edi
mov ebp, 1
call fcn.005b5565
add esp, 4
test eax, eax
jne 0x58bc68
lea ecx, [ecx]
push edi
push 0x2000
lea eax, [esp + 0x60]
push 1
push eax
call fcn.005b5776
push ebx
push 0x2000
mov esi, eax
lea eax, [esp + 0x2070]
push 1
push eax
call fcn.005b5776
add esp, 0x20
cmp esi, eax
je 0x58bbf9
push 0
push 0x6ae
push str.Source_r3dFileMan.cpp
push str.read0__read1
call fcn.00589fd0
add esp, 0x10
lea ecx, [esp + 0x58]
lea edx, [esp + 0x2058]
sub esi, 4
jb 0x58bc21
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x58bc26
add ecx, 4
add edx, 4
sub esi, 4
jae 0x58bc10
cmp esi, 0xfffffffc
je 0x58bc53
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x58bc66
cmp esi, 0xfffffffd
je 0x58bc53
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x58bc66
cmp esi, 0xfffffffe
je 0x58bc53
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x58bc66
cmp esi, 0xffffffff
je 0x58bc53
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x58bc66
push edi
call fcn.005b5565
add esp, 4
test eax, eax
je 0x58bbb0
jmp 0x58bc68
xor ebp, ebp
push edi
call fcn.005af4d5
push ebx
call fcn.005af4d5
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
push edi
call fcn.005af4d5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
test ebx, ebx
je 0x58bca6
push ebx
call fcn.005af4d5
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
Function at 0x58d160
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp eax, 0x8876017c
jne 0x58d1b2
mov ecx, dword [0x750b78]
push 1
call fcn.005a39a0
mov eax, dword [0x750b14]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x58d19e
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00592020
push 0x1010
push str.Error
push str.Out_of_video_memory_
jmp 0x58d247
cmp eax, 0x8007000e
jne 0x58d25c
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.0058bf50
add esp, 0xc
mov ecx, esi
push 0
call fcn.0058f950
mov eax, dword [esi + 0x480]
test eax, eax
je 0x58d215
push 1
push eax
mov ecx, esi
call fcn.0059c0d0
mov eax, dword [esi + 0x480]
test eax, eax
jne 0x58d201
mov eax, dword [0x750b14]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x58d238
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00592020
push 0x1010
push str.Error
push str.Out_of_system_memory_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [0x6d031c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret 4
Function at 0x58f0c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5dbb18
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x58f19d
push ebx
push ebp
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
lea edi, [ecx + 1]
mov dword [esp + 0x24], 0
mov eax, bind
test edi, edi
js 0x58f11c
shr eax, 1
test edi, eax
je 0x58f116
add eax, eax
lea ecx, [esp + 0x10]
push eax
call fcn.00593ae0
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x58f14f
mov ecx, ebp
sub ebx, ebp
lea esp, [esp]
test ecx, ecx
je 0x58f149
mov eax, dword [ebx + ecx]
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x58f140
mov eax, dword [esi + 4]
lea ecx, [eax*4]
add ecx, ebp
je 0x58f165
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
push 1
mov dword [esi], ebp
push 1
mov dword [esi + 4], edi
push ecx
mov dword [esi + 8], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0058bf50
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [esi]
lea edx, [eax + ecx*4]
lea eax, [ecx + 1]
mov dword [esi + 4], eax
test edx, edx
je 0x58f1b4
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [edx], eax
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x5934f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x5c], 0
jne 0x593520
push 0
push 0xeb
push str.Sourced3dFont.cpp
push str.glyphTexture
call fcn.00589fd0
add esp, 0x10
push str.DataFonts
call fcn.005b6127
push dword [esi + 0x58]
lea edi, [esi + 4]
push dword [esi + 0x54]
lea eax, [esp + 0x44]
push edi
push str.DataFonts_s__d__x.tga
push eax
call fcn.0057de30
mov ebx, dword [esi + 0x5c]
add esp, 0x18
mov eax, dword [ebx + 0x3c]
cmp dword [eax], 0
jne 0x593567
push 0
push 0x4d
push str.c:warz2_srceternityinclude_r3dTex.h
push str.m_TexArray_0_.Valid__
call fcn.00589fd0
add esp, 0x10
mov ecx, dword [ebx + 0x3c]
call fcn.0058cfa0
lea edx, [esp + 0x34]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
push 0
push 0
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push 2
push eax
call sub.d3dx9_43.dll_D3DXSaveSurfaceToFileA
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [esi + 0x58]
lea eax, [esp + 0x3c]
push dword [esi + 0x54]
push edi
push str.DataFonts_s__d__x.dat
push eax
call fcn.0057de30
lea eax, [esp + 0x4c]
push 0x674698
push eax
call fcn.0058b550
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x5935e7
push eax
push 0xfc
push str.Sourced3dFont.cpp
push 0x65f24c
call fcn.00589fd0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm0, dword [esi + 0x60]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x65f21c
push ebx
call fcn.005af357
add esp, 0x10
mov edi, 0x5f
add esi, 0x6c
lea ecx, [ecx]
movss xmm0, dword [esi + 4]
sub esp, 0x20
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi - 4]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi - 8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str._1.8f__1.8f__1.8f__1.8f_n
push ebx
call fcn.005af357
add esp, 0x28
lea esi, [esi + 0x10]
dec edi
jne 0x593610
push ebx
call fcn.005af4d5
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x599240
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db98b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
push 0x758f44
call fcn.0058bfd0
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x128], 0
push eax
push esi
mov ecx, edi
call fcn.005996c0
push esi
push dword [esp + 0x134]
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.0057de30
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea eax, [esp + 0x18]
push 0x674a2c
push eax
call fcn.005afafb
mov edi, eax
add esp, 8
test edi, edi
jne 0x5992ee
push dword [esp + 0xc]
call fcn.0058be30
lea eax, [esp + 0x1c]
push eax
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.00589b00
add esp, 0xc
xor bl, bl
jmp 0x599310
mov esi, dword [esp + 0xc]
push edi
push dword [esp + 0x14]
push 1
push esi
call fcn.005b0d13
push edi
call fcn.005af4d5
push esi
call fcn.0058be30
add esp, 0x18
mov bl, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.0057e940
mov ecx, dword [esp + 0x11c]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 8
Function at 0x599de0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db906
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 0xc]
push 0x758f44
call fcn.0058bfd0
lea eax, [esp + 0x14]
mov dword [esp + 0x120], 0
push 0x758f44
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
call fcn.0058bfd0
cmp byte [ebp], 0
mov byte [esp + 0x120], 1
jne 0x599e55
push 0
push 0x133
push str.SourceFileSystem_r3dFileSystem.cpp
push str.baseName__0____0
call fcn.00589fd0
add esp, 0x10
push 0
push ebp
lea eax, [esp + 0x18]
push str._s__02d.info
push eax
call fcn.00582730
add esp, 0x10
mov byte [esp + 0x120], 0
lea ecx, [esp + 8]
call fcn.0057e940
lea eax, [esp + 0x14]
push 0x65cc5c
push eax
call fcn.005afafb
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x599ea9
lea eax, [esp + 0x14]
push eax
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.00589b00
add esp, 8
xor bl, bl
jmp 0x599f06
push esi
push edi
push 2
push 0
push ebx
call fcn.005b50d0
push ebx
call fcn.005b54f9
push 0
push 0
push ebx
mov edi, eax
call fcn.005b50d0
lea ecx, [edi + 1]
push 1
push ecx
call fcn.0058bdf0
push ebx
push 1
mov esi, eax
push edi
push esi
call fcn.005b5776
push ebx
call fcn.005af4d5
add esp, 0x38
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x104]
push eax
push edi
push esi
call fcn.00598f70
push esi
mov bl, al
call fcn.0058be30
add esp, 4
pop edi
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call fcn.0057e940
mov ecx, dword [esp + 0x118]
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x59a260
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x112]
mov ebp, ecx
add edi, 4
mov dword [esp + 0x14], ebp
push 1
lea eax, [edi + 1]
push eax
call fcn.0058bdf0
movzx ecx, byte [ebx + 0x105]
add esp, 8
mov esi, eax
mov ebp, dword [ebp + ecx*4 + 0x338]
cmp ebp, 0xffffffff
jne 0x59a2b6
push 0
push 0x31c
push str.SourceFileSystem_r3dFileSystem.cpp
push str.h___INVALID_HANDLE_VALUE
call fcn.00589fd0
add esp, 0x10
push 0
push 0
push dword [ebx + 0x10a]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], edi
je 0x59a30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RelocateFile_read_failed__d_n
call fcn.00589b00
push esi
call fcn.0058be30
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0x10a], eax
movzx eax, cl
mov byte [ebx + 0x105], cl
mov ebp, dword [ebp + eax*4 + 0x338]
cmp ebp, 0xffffffff
jne 0x59a34b
push 0
push 0x32d
push str.SourceFileSystem_r3dFileSystem.cpp
push str.h___INVALID_HANDLE_VALUE
call fcn.00589fd0
add esp, 0x10
push 0
push 0
push dword [ebx + 0x10a]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], edi
je 0x59a38b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RelocateFile_write_failed__d_n
jmp 0x59a2f1
push esi
call fcn.0058be30
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc