joyce8/EMBER2024-capa huggingface dataset:
Function at 0x594470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x8f
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0x7e1ae418
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x5944a0
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0xd
jl 0x594487
xor eax, eax
mov word [edi + 0x1a], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x5944c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0xd2
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0x278cbf8a
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x5944f0
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0x11
jl 0x5944d7
xor eax, eax
mov word [edi + 0x22], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x5946f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0xc7
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0x73407540
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x594720
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0xe
jl 0x594707
xor eax, eax
mov word [edi + 0x1c], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x594740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0xfa
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0x78dc1078
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x594770
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0xe
jl 0x594757
xor eax, eax
mov word [edi + 0x1c], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x594830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x96
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0xa4d9a33a
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x594860
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0xd
jl 0x594847
xor eax, eax
mov word [edi + 0x1a], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x594880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0xf2
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0x4e801ce8
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x5948b0
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0x10
jl 0x594897
xor eax, eax
mov word [edi + 0x20], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x594a00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 6
push esi
push edi
xor esi, esi
mov edi, ecx
add edx, 0xc72d8cc0
mov cx, word [edx]
xor cx, ax
inc eax
mov word [edi + esi*2], cx
and eax, 0x800000ff
jns 0x594a30
dec eax
or eax, 0xffffff00
inc eax
inc esi
add edx, 2
cmp esi, 0xc
jl 0x594a17
xor eax, eax
mov word [edi + 0x18], ax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x5951b0
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 0x595398
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 0x5951d2
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 0x595210
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 + 0x6861f0]
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 0x5952a4
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 0x5951d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x595610
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x6c2da0]
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.005953a0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00595440
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.005bc24d
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x20
jb 0x595701
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 0x59573f
xor ecx, ecx
jmp 0x59574e
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x595745
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.005833a0
cmp dword [ebp + 0x1c], 0x10
jb 0x59576b
push dword [ebp + 8]
call fcn.00598e00
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.005bba53
mov esp, ebp
pop ebp
ret
Function at 0x596700
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov ecx, dword [0x866c48]
sub esp, 0x10
test ecx, ecx
je 0x59671f
cmp dword [0x866c44], 1
jl 0x59671f
test ecx, ecx
je 0x59671f
call fcn.005af540
call fcn.00596bf0
mov eax, dword [0x7ddf0c]
mov ecx, 0x1e
fstp dword [0x6c1be0]
movss xmm2, dword [0x6c1be0]
xorps xmm1, xmm1
subss xmm2, dword [0x7ddf08]
movss dword [eax*4 + 0x7ddf10], xmm2
inc eax
cdq
idiv ecx
movss dword [0x6c1be4], xmm2
mov eax, 0x7ddf14
mov dword [0x7ddf0c], edx
jmp 0x596770
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, 0x7ddf8c
jl 0x596770
mulss xmm1, dword [0x66db94]
movss xmm0, dword [0x66db90]
comiss xmm0, xmm2
movss dword [0x6c1be8], xmm1
jbe 0x5967d2
mov dword [0x6c1be4], 0x3983126f
comiss xmm0, xmm1
jbe 0x5967e1
mov dword [0x6c1be8], 0x3983126f
cmp dword [0x7ddec4], 0
jne 0x59681d
lea eax, [esp]
mov dword [0x7ddec4], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005c3abd
push 0x7ddfe8
movsd qword [0x7ddfe0], 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 [0x7ddfe8]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x7ddfec]
call fcn.005c3abd
divsd xmm0, qword [0x7ddfe0]
movsd xmm1, qword [0x7dded0]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm2
subss xmm0, dword [0x7ddedc]
comiss xmm0, dword [0x66db98]
jbe 0x596897
movd xmm0, dword [0x7dded8]
xor eax, eax
cvtdq2pd xmm0, xmm0
movss dword [0x7ddedc], xmm2
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
movss dword [0x7ddee0], xmm0
jmp 0x59689c
mov eax, dword [0x7dded8]
movss xmm0, dword [0x68c5dc]
inc eax
divss xmm0, dword [0x6c1be4]
mov dword [0x7dded8], eax
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
movsd qword [0x7dded0], xmm0
add esp, 0x10
jmp 0x5a8fd0
push ecx
call fcn.00596bf0
fstp dword [esp]
movss xmm0, dword [esp]
subss xmm0, dword [0x866c18]
comiss xmm0, dword [0x68c5dc]
jbe 0x5a901e
mov eax, dword [0x866bec]
test eax, eax
je 0x5a901e
push eax
push str.Loads_unloads_collapsed:__d_n
call fcn.00596cb0
movss xmm0, dword [esp + 8]
add esp, 8
mov dword [0x866bec], 0
movss dword [0x866c18], xmm0
pop ecx
ret
Function at 0x596bf0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
cmp dword [0x7ddec4], 0
jne 0x596c2f
lea eax, [esp]
mov dword [0x7ddec4], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 4]
mov ecx, dword [esp]
call fcn.005c3abd
push 0x7ddfe8
movsd qword [0x7ddfe0], 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 [0x7ddfe8]
mov edx, dword [esp + 0xc]
sbb edx, dword [0x7ddfec]
call fcn.005c3abd
divsd xmm0, qword [0x7ddfe0]
cvtsd2ss xmm0, xmm0
movss dword [esp], xmm0
fld dword [esp]
add esp, 0x10
ret
Function at 0x597280
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
cmp dword [0x7df5ec], 0
jne 0x5972a5
push 0
push 0x205
push str.SourceWinMain.cpp
push str.hInstance___NULL
call fcn.00597180
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], 0x5974e0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x7df5f4]
test eax, eax
jne 0x5972eb
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 [0x7df554], eax
call esi
push edi
mov dword [0x7df558], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
call ebx
mov ecx, dword [0x6c1bec]
mov esi, dword [0x6c1bf0]
push eax
mov eax, dword [0x7df558]
push 0
sub eax, ecx
push 0
cdq
push ecx
sub eax, edx
push esi
sar eax, 1
push eax
mov eax, dword [0x7df554]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10cf0000
push dword [0x6c1c00]
push dword [0x6c1c08]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x7df5f0], eax
test eax, eax
jne 0x5973d2
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 [0x7df5f0]
call esi
mov esi, dword [0x7df5f0]
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 [0x7df5f0]
push 0xfffffffffffffff0
push esi
call ebx
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push esi
call edi
push 0
push dword [0x7df5f0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [0x7df5f0]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x7df5f0]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x7df5f0]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret

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

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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
test ebx, ebx
jne 0x597ca2
push ebx
push 0x168
push str.SourceFileSystem_r3dFSCompress.cpp
push str.out_crc32
call fcn.00597180
add esp, 0x10
push 0x68c55c
push dword [esp + 0x10]
call fcn.005bc76b
mov esi, eax
add esp, 8
test esi, esi
jne 0x597cbe
pop esi
xor al, al
pop ebx
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005c1d40
push esi
call fcn.005c2169
push 0
push 0
push esi
mov edi, eax
call fcn.005c1d40
lea ecx, [edi + 1]
push 1
push ecx
call fcn.00598da0
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.005c23e6
add esp, 0x34
cmp eax, edi
je 0x597d1f
push esi
call fcn.005bc145
push ebp
call fcn.00598e00
push edi
push dword [esp + 0x20]
push str.failed_to_read__s__d_n
call fcn.005968d0
add esp, 0x14
xor al, al
pop edi
pop ebp
pop esi
pop ebx
ret
push edi
push ebp
call fcn.00597c50
push ebp
mov dword [esp + 0x24], eax
call fcn.00598e00
push esi
call fcn.005bc145
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x597d43
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 0x597dc0
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 0x597e60
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x597de2
mov eax, dword [str.Codex_Development_]
mov dword [ecx], eax
mov eax, dword [0x66e260]
mov dword [ecx + 4], eax
mov eax, dword [0x66e264]
mov dword [ecx + 8], eax
mov eax, dword [0x66e268]
mov dword [ecx + 0xc], eax
mov eax, dword [0x66e26c]
push esi
mov dword [ecx + 0x10], eax
call fcn.005c2d97
add esp, 4
lea ecx, [esi - 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x597e20
mov eax, dword [str.WarZ_Siam_MMO_]
mov dword [ecx], eax
mov eax, dword [0x66e274]
mov dword [ecx + 4], eax
mov eax, dword [0x66e278]
mov dword [ecx + 8], eax
mov ax, word [0x66e27c]
mov word [ecx + 0xc], ax
mov al, byte [0x66e27e]
push esi
mov byte [ecx + 0xe], al
call fcn.005c2d97
add esp, 4
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x598520
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.005bc76b
mov esi, eax
add esp, 8
test esi, esi
jne 0x598562
call fcn.005c3c25
push dword [eax]
call fcn.00597e70
push eax
push edi
push str.__warning____cant_open__s_for_writing_nError:__s__d__n
call fcn.005968d0
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x598570
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x598585
pop edi
mov dword [esp + 0x10], eax
jmp fcn.005c23e6
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 0x5985a3
mov esi, ecx
sub esi, edx
test esi, esi
jne 0x5985ac
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.005bfbf0
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 0x598af0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4048
call fcn.005c0cd0
push ebx
push esi
mov esi, dword [esp + 0x4054]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005c411b
mov ebx, dword [esp + 0x4060]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.005c411b
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp eax, dword [esp + 0x1c]
je 0x598b38
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
push edi
push 0x68c55c
push esi
call fcn.005bc76b
push 0x68c55c
push ebx
mov edi, eax
call fcn.005bc76b
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x598c69
test ebx, ebx
je 0x598c54
push ebp
push edi
mov ebp, 1
call fcn.005c21d5
add esp, 4
test eax, eax
jne 0x598c38
lea ecx, [ecx]
push edi
push 0x2000
lea eax, [esp + 0x60]
push 1
push eax
call fcn.005c23e6
push ebx
push 0x2000
mov esi, eax
lea eax, [esp + 0x2070]
push 1
push eax
call fcn.005c23e6
add esp, 0x20
cmp esi, eax
je 0x598bc9
push 0
push 0x6af
push str.Source_r3dFileMan.cpp
push str.read0__read1
call fcn.00597180
add esp, 0x10
lea ecx, [esp + 0x58]
lea edx, [esp + 0x2058]
sub esi, 4
jb 0x598bf1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x598bf6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x598be0
cmp esi, 0xfffffffc
je 0x598c23
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x598c36
cmp esi, 0xfffffffd
je 0x598c23
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x598c36
cmp esi, 0xfffffffe
je 0x598c23
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x598c36
cmp esi, 0xffffffff
je 0x598c23
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x598c36
push edi
call fcn.005c21d5
add esp, 4
test eax, eax
je 0x598b80
jmp 0x598c38
xor ebp, ebp
push edi
call fcn.005bc145
push ebx
call fcn.005bc145
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
push edi
call fcn.005bc145
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
test ebx, ebx
je 0x598c76
push ebx
call fcn.005bc145
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
Function at 0x59a130
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp eax, 0x8876017c
jne 0x59a182
mov ecx, dword [0x85e7e8]
push 1
call fcn.005b02d0
mov eax, dword [0x85e784]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x59a16e
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0059f080
push 0x1010
push str.Error
push str.Out_of_video_memory_
jmp 0x59a217
cmp eax, 0x8007000e
jne 0x59a22c
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.00598f20
add esp, 0xc
mov ecx, esi
push 0
call fcn.0059c920
mov eax, dword [esi + 0x480]
test eax, eax
je 0x59a1e5
push 1
push eax
mov ecx, esi
call fcn.005a9020
mov eax, dword [esi + 0x480]
test eax, eax
jne 0x59a1d1
mov eax, dword [0x85e784]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x59a208
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0059f080
push 0x1010
push str.Error
push str.Out_of_system_memory_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [0x7ddf9c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret 4
Function at 0x59c090
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ed0e8
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 0x59c16d
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, SysReAllocString
test edi, edi
js 0x59c0ec
shr eax, 1
test edi, eax
je 0x59c0e6
add eax, eax
lea ecx, [esp + 0x10]
push eax
call fcn.005a0b40
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x59c11f
mov ecx, ebp
sub ebx, ebp
lea esp, [esp]
test ecx, ecx
je 0x59c119
mov eax, dword [ebx + ecx]
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x59c110
mov eax, dword [esi + 4]
lea ecx, [eax*4]
add ecx, ebp
je 0x59c135
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.00598f20
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 0x59c184
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