joyce8/EMBER2024-capa huggingface dataset:
Function at 0x568f30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe251
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push esi
mov eax, dword [0x6e8da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareArktos_Entertainment_GroupWarZ
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x568fb0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x568f87
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.username
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareHouse_of_Warrior_InteractiveWarZ
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x568fd8
mov ecx, esi
call fcn.005692c0
jmp 0x569005
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x32
push eax
lea eax, [esi + 0x100]
push eax
push 0
push 0
push str.hardwareid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc0]
call fcn.00401d80
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0
call fcn.00401430
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401000
push str.api_Login.aspx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.005685a0
push esi
push str.username
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 3
call fcn.004017d0
lea eax, [esi + 0x80]
push eax
push str.password
lea ecx, [ebp - 0x7c]
call fcn.004017d0
lea eax, [esi + 0x100]
push eax
push str.computerid
lea ecx, [ebp - 0x7c]
call fcn.004017d0
lea ecx, [ebp - 0xc4]
call fcn.00568970
test al, al
jne 0x5690a7
push dword [ebp - 0x38]
push str.Login_FAILED__code:__d_n
call fcn.005b6df0
add esp, 8
mov dword [esi + 0x140], 3
jmp 0x5690b5
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.00568e00
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x5690d0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.004010b0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00401510
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.00401e40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5692c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x6e8da0]
xor eax, esp
mov dword [esp + 0x1d0], eax
push esi
push 0
lea eax, [esp + 8]
mov esi, ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHouse_of_Warrior_InteractiveWarZ
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x56936d
push 0x1c8
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005dfe60
add esp, 0xc
lea ecx, [esp + 8]
call fcn.0055c370
push dword [esp + 0x1c]
add esi, 0x100
push dword [esp + 0x1c]
push str.0x_I64x
push esi
call fcn.00569490
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x569342
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.hardwareid
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1d4]
pop esi
xor ecx, esp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret

Function at 0x569c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x8a920f], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x569cd9
jmp 0x569cbd
push 0
push 0
push 0
push 0x569c10
push 0
push 0
mov byte [0x8a920f], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x569d3f
mov esi, dword [ebp + 0x10]
mov edx, 0xa
mov ecx, esi
call fcn.00569b90
mov ecx, eax
call fcn.00569710
shr eax, 0x10
mov ecx, esi
mov dl, al
call fcn.00569970
xor byte [ebx], al
jmp 0x569dc9
mov edx, 0x14
mov ecx, esi
call fcn.00569b90
mov ecx, eax
call fcn.00569710
mov dl, al
mov ecx, esi
call fcn.00569970
mov ecx, dword [ebp + 8]
xor byte [ecx], al
jmp 0x569e50
mov edx, 0x1e
mov ecx, esi
call fcn.00569b90
mov ecx, eax
call fcn.00569710
shr eax, 8
mov ecx, esi
mov dl, al
call fcn.00569970
xor byte [edi], al
jmp 0x569ed7
mov edx, 0x28
mov ecx, esi
call fcn.00569b90
mov ecx, eax
call fcn.00569710
shr eax, 0x18
mov ecx, esi
mov dl, al
call fcn.00569970
mov ecx, dword [ebp + 0xc]
xor byte [ecx], al
jmp 0x569f61
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x574fb0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x24], ecx
jle 0x575198
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 2
push edi
nop
xor esi, esi
movzx edx, byte [eax - 2]
movzx ecx, byte [eax - 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
add eax, 4
or edx, ecx
mov dword [ebp + esi*4 - 0x12c], edx
inc esi
cmp esi, 0x10
jl 0x574fd2
mov dword [ebp - 0x2c], eax
lea ebx, [ebp - 0xf4]
mov eax, 0x30
mov edi, edi
mov edx, dword [ebx]
lea ebx, [ebx + 4]
mov esi, dword [ebx - 0x38]
mov edi, edx
mov ecx, edx
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [ebx - 0x3c]
add edi, dword [ebx - 0x18]
mov dword [ebx + 4], edi
dec eax
jne 0x575010
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov eax, dword [ebx + 0x88]
mov esi, eax
mov ecx, dword [ebx + 0x8c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x90]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x94]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x98]
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], ecx
mov edi, ebx
ror esi, 0xd
ror edi, 0xb
mov ecx, ebx
rol ecx, 7
mov edx, ebx
xor edi, ecx
not edx
and edx, dword [ebp - 0xc]
mov ecx, ebx
ror ecx, 6
xor edi, ecx
mov ecx, dword [ebp - 4]
and ecx, ebx
xor edx, ecx
mov ecx, dword [ebp - 0x20]
add edi, edx
add edi, dword [ecx + 0x6a7170]
add edi, dword [ebp + ecx - 0x12c]
mov ecx, dword [ebp - 8]
add edi, dword [ebp - 0x14]
rol ecx, 0xa
xor esi, ecx
mov ecx, dword [ebp - 8]
ror ecx, 2
xor esi, ecx
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
and ecx, dword [ebp + 8]
xor edx, dword [ebp + 8]
and edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
add esi, edx
mov ecx, dword [ebp - 4]
add esi, edi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
add ebx, edi
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], ecx
cmp ecx, 0x100
jl 0x5750a4
mov ecx, dword [ebp - 0x28]
add ecx, esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x24]
mov dword [ebx + 0x88], ecx
mov ecx, dword [ebp + 8]
add dword [ebx + 0x90], ecx
mov ecx, dword [ebp - 0x10]
add dword [ebx + 0x94], ecx
mov ecx, dword [ebp - 0x18]
add dword [ebx + 0x98], ecx
mov ecx, dword [ebp - 4]
add dword [ebx + 0x9c], ecx
mov ecx, dword [ebp - 0xc]
add dword [ebx + 0xa0], ecx
mov ecx, dword [ebp - 0x14]
add dword [ebx + 0x8c], edx
add dword [ebx + 0xa4], ecx
dec dword [ebp + 0xc]
jne 0x574fd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x575410
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe988
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x1cc]
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp - 0x11c]
push dword [ebp + 0x18]
mov ecx, 0x2a
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x94], 0x6a09e667
movdqu xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x90], 0xbb67ae85
movdqu xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x8c], 0x3c6ef372
mov dword [ebp - 0x88], 0xa54ff53a
mov dword [ebp - 0x84], 0x510e527f
mov dword [ebp - 0x80], 0x9b05688c
mov dword [ebp - 0x7c], 0x1f83d9ab
mov dword [ebp - 0x78], 0x5be0cd19
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
call fcn.005751a0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00575240
mov byte [ebp - 0x34], 0
lea edi, [ebp - 0x74]
xor esi, esi
movzx eax, byte [ebp + esi - 0x30]
push eax
push str._02x
push edi
call fcn.005dc59d
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x20
jb 0x575501
mov esi, dword [ebp - 0x120]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x74], 0
jne 0x57553f
xor ecx, ecx
jmp 0x57554e
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x575545
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.005628a0
cmp dword [ebp + 0x1c], 0x10
jb 0x57556b
push dword [ebp + 8]
call fcn.005b9080
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x5b6840
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov ecx, dword [0x88c54c]
sub esp, 0x10
test ecx, ecx
je 0x5b685f
cmp dword [0x88c548], 1
jl 0x5b685f
test ecx, ecx
je 0x5b685f
call fcn.005cf870
call fcn.005b6d30
mov eax, dword [0x803d2c]
mov ecx, 0x1e
fstp dword [0x6e7be8]
movss xmm2, dword [0x6e7be8]
xorps xmm1, xmm1
subss xmm2, dword [0x803d28]
movss dword [eax*4 + 0x803d30], xmm2
inc eax
cdq
idiv ecx
movss dword [0x6e7bec], xmm2
mov eax, 0x803d34
mov dword [0x803d2c], edx
jmp 0x5b68b0
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, 0x803dac
jl 0x5b68b0
mulss xmm1, dword [0x68ebac]
movss xmm0, dword [0x68eba8]
comiss xmm0, xmm2
movss dword [0x6e7bf0], xmm1
jbe 0x5b6912
mov dword [0x6e7bec], 0x3983126f
comiss xmm0, xmm1
jbe 0x5b6921
mov dword [0x6e7bf0], 0x3983126f
cmp dword [0x803cdc], 0
jne 0x5b695d
lea eax, [esp]
mov dword [0x803cdc], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005e3d6d
push 0x803df8
movsd qword [0x803df0], 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 [0x803df8]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x803dfc]
call fcn.005e3d6d
divsd xmm0, qword [0x803df0]
movsd xmm1, qword [0x803ce0]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm2
subss xmm0, dword [0x803cec]
comiss xmm0, dword [0x68ebb0]
jbe 0x5b69d7
movd xmm0, dword [0x803ce8]
xor eax, eax
cvtdq2pd xmm0, xmm0
movss dword [0x803cec], xmm2
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
movss dword [0x803cf0], xmm0
jmp 0x5b69dc
mov eax, dword [0x803ce8]
movss xmm0, dword [0x6b1d44]
inc eax
divss xmm0, dword [0x6e7bec]
mov dword [0x803ce8], eax
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
movsd qword [0x803ce0], xmm0
add esp, 0x10
jmp 0x5c9260
push ecx
call fcn.005b6d30
fstp dword [esp]
movss xmm0, dword [esp]
subss xmm0, dword [0x88c530]
comiss xmm0, dword [0x6b1d44]
jbe 0x5c92ae
mov eax, dword [0x88c4f4]
test eax, eax
je 0x5c92ae
push eax
push str.Loads_unloads_collapsed:__d_n
call fcn.005b6df0
movss xmm0, dword [esp + 8]
add esp, 8
mov dword [0x88c4f4], 0
movss dword [0x88c530], xmm0
pop ecx
ret
Function at 0x5b6d30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
cmp dword [0x803cdc], 0
jne 0x5b6d6f
lea eax, [esp]
mov dword [0x803cdc], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005e3d6d
push 0x803df8
movsd qword [0x803df0], 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 [0x803df8]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x803dfc]
call fcn.005e3d6d
divsd xmm0, qword [0x803df0]
cvtsd2ss xmm0, xmm0
movss dword [esp], xmm0
fld dword [esp]
add esp, 0x10
ret
Function at 0x5b7ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x5b7f1c
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 + 0x6e7c10]
dec edx
jne 0x5b7f00
pop esi
not eax
ret

Function at 0x5b7f20
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
test ebx, ebx
jne 0x5b7f42
push ebx
push 0x181
push str.SourceFileSystem_r3dFSCompress.cpp
push str.out_crc32
call fcn.005b72c0
add esp, 0x10
push 0x6b1cac
push dword [esp + 0x10]
call fcn.005dcabb
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b7f5e
pop esi
xor al, al
pop ebx
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005e2040
push esi
call fcn.005e2469
push 0
push 0
push esi
mov edi, eax
call fcn.005e2040
lea ecx, [edi + 1]
push 1
push ecx
call fcn.005b9060
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.005e26e6
add esp, 0x34
cmp eax, edi
je 0x5b7fbf
push esi
call fcn.005dc495
push ebp
call fcn.005b9080
push edi
push dword [esp + 0x20]
push str.failed_to_read__s__d_n
call fcn.005b6a10
add esp, 0x14
xor al, al
pop edi
pop ebp
pop esi
pop ebx
ret
push edi
push ebp
call fcn.005b7ef0
push ebp
mov dword [esp + 0x24], eax
call fcn.005b9080
push esi
call fcn.005dc495
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x5b7fe3
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 0x5b8060
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 0x5b80d8
lea ecx, [esi - 1]
mov edi, edi
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x5b8080
mov eax, dword [str.Arktos_]
mov dword [ecx], eax
mov eax, dword [0x68f2d0]
mov dword [ecx + 4], eax
mov al, byte [0x68f2d4]
push esi
mov byte [ecx + 8], al
call fcn.005e3054
add esp, 4
lea ecx, [esi - 1]
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x5b80b0
mov eax, dword [str.WarZ_]
mov dword [ecx], eax
mov ax, word [0x68f2dc]
push esi
mov word [ecx + 4], ax
call fcn.005e3054
add esp, 4
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x5b8790
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.005dcabb
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b87d2
call fcn.005e3f67
push dword [eax]
call fcn.005b80e0
push eax
push edi
push str.__warning____cant_open__s_for_writing_nError:__s__d__n
call fcn.005b6a10
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x5b87e0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x5b87f5
pop edi
mov dword [esp + 0x10], eax
jmp fcn.005e26e6
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 0x5b8813
mov esi, ecx
sub esi, edx
test esi, esi
jne 0x5b881c
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.005dfef0
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 0x5b8d70
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4048
call fcn.005e0fd0
push ebx
push esi
mov esi, dword [esp + 0x4054]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005e445d
mov ebx, dword [esp + 0x4060]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.005e445d
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp eax, dword [esp + 0x1c]
je 0x5b8db8
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
push edi
push 0x6b1cac
push esi
call fcn.005dcabb
push 0x6b1cac
push ebx
mov edi, eax
call fcn.005dcabb
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x5b8ee9
test ebx, ebx
je 0x5b8ed4
push ebp
push edi
mov ebp, 1
call fcn.005e24d5
add esp, 4
test eax, eax
jne 0x5b8eb8
lea ecx, [ecx]
push edi
push 0x2000
lea eax, [esp + 0x60]
push 1
push eax
call fcn.005e26e6
push ebx
push 0x2000
mov esi, eax
lea eax, [esp + 0x2070]
push 1
push eax
call fcn.005e26e6
add esp, 0x20
cmp esi, eax
je 0x5b8e49
push 0
push 0x6ec
push str.Source_r3dFileMan.cpp
push str.read0__read1
call fcn.005b72c0
add esp, 0x10
lea ecx, [esp + 0x58]
lea edx, [esp + 0x2058]
sub esi, 4
jb 0x5b8e71
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5b8e76
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5b8e60
cmp esi, 0xfffffffc
je 0x5b8ea3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5b8eb6
cmp esi, 0xfffffffd
je 0x5b8ea3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5b8eb6
cmp esi, 0xfffffffe
je 0x5b8ea3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5b8eb6
cmp esi, 0xffffffff
je 0x5b8ea3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x5b8eb6
push edi
call fcn.005e24d5
add esp, 4
test eax, eax
je 0x5b8e00
jmp 0x5b8eb8
xor ebp, ebp
push edi
call fcn.005dc495
push ebx
call fcn.005dc495
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
push edi
call fcn.005dc495
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
test ebx, ebx
je 0x5b8ef6
push ebx
call fcn.005dc495
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
Function at 0x5bc310
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60d4d8
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 0x5bc3ed
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 0x5bc36c
shr eax, 1
test edi, eax
je 0x5bc366
add eax, eax
lea ecx, [esp + 0x10]
push eax
call fcn.005c0e00
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x5bc39f
mov ecx, ebp
sub ebx, ebp
lea esp, [esp]
test ecx, ecx
je 0x5bc399
mov eax, dword [ebx + ecx]
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x5bc390
mov eax, dword [esi + 4]
lea ecx, [eax*4]
add ecx, ebp
je 0x5bc3b5
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.005b91a0
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 0x5bc404
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 0x5c0810
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 0x5c0840
push 0
push 0xeb
push str.Sourced3dFont.cpp
push str.glyphTexture
call fcn.005b72c0
add esp, 0x10
push str.DataFonts
call fcn.005e3054
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.0055d610
mov ebx, dword [esi + 0x5c]
add esp, 0x18
mov eax, dword [ebx + 0x3c]
cmp dword [eax], 0
jne 0x5c0887
push 0
push 0x4d
push str.c:warz_srceternityinclude_r3dTex.h
push str.m_TexArray_0_.Valid__
call fcn.005b72c0
add esp, 0x10
mov ecx, dword [ebx + 0x3c]
call fcn.005ba1f0
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.0055d610
lea eax, [esp + 0x4c]
push 0x6a69cc
push eax
call fcn.005b8790
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x5c0907
push eax
push 0xfc
push str.Sourced3dFont.cpp
push 0x691378
call fcn.005b72c0
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 0x691348
push ebx
call fcn.005dc317
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.005dc317
add esp, 0x28
lea esi, [esi + 0x10]
dec edi
jne 0x5c0930
push ebx
call fcn.005dc495
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c6570
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60d26b
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 0x88c4dc
call fcn.005b9220
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.005c69f0
push esi
push dword [esp + 0x134]
lea eax, [esp + 0x20]
push 0x6b14a0
push eax
call fcn.0055d610
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea eax, [esp + 0x18]
push 0x6a6d8c
push eax
call fcn.005dcabb
mov edi, eax
add esp, 8
test edi, edi
jne 0x5c661e
push dword [esp + 0xc]
call fcn.005b9080
lea eax, [esp + 0x1c]
push eax
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.005b6df0
add esp, 0xc
xor bl, bl
jmp 0x5c6640
mov esi, dword [esp + 0xc]
push edi
push dword [esp + 0x14]
push 1
push esi
call fcn.005ddcd3
push edi
call fcn.005dc495
push esi
call fcn.005b9080
add esp, 0x18
mov bl, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.0055e0d0
mov ecx, dword [esp + 0x11c]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 8