joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58e980
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x58e9b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
test ebx, ebx
jne 0x58e9d2
push ebx
push 0x168
push str.SourceFileSystem_r3dFSCompress.cpp
push str.out_crc32
call fcn.0058e630
add esp, 0x10
push 0x66242c
push dword [esp + 0x10]
call fcn.005b3f18
mov esi, eax
add esp, 8
test esi, esi
jne 0x58e9ee
pop esi
xor al, al
pop ebx
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005b8fb0
push esi
call fcn.005b93d9
push 0
push 0
push esi
mov edi, eax
call fcn.005b8fb0
lea ecx, [edi + 1]
push 1
push ecx
call fcn.0058fab0
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.005b9656
add esp, 0x34
cmp eax, edi
je 0x58ea4f
push esi
call fcn.005b3095
push ebp
call fcn.0058fad0
push edi
push dword [esp + 0x20]
push str.failed_to_read__s__d_n
call fcn.0058dd80
add esp, 0x14
xor al, al
pop edi
pop ebp
pop esi
pop ebx
ret
push edi
push ebp
call fcn.0058e980
push ebp
mov dword [esp + 0x24], eax
call fcn.0058fad0
push esi
call fcn.005b3095
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x58ea73
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 0x58eaf0
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 0x58eb6b
lea ecx, [esi - 1]
mov edi, edi
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x58eb10
mov eax, dword [str.InfectZMMO_]
mov dword [ecx], eax
mov eax, dword [0x6629b0]
mov dword [ecx + 4], eax
mov eax, dword [0x6629b4]
mov dword [ecx + 8], eax
mov al, byte [0x6629b8]
push esi
mov byte [ecx + 0xc], al
call fcn.005ba008
add esp, 4
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x58eb45
mov eax, dword [str.Config_]
mov dword [ecx], eax
mov eax, dword [0x6629c0]
push esi
mov dword [ecx + 4], eax
call fcn.005ba008
add esp, 4
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x58f230
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.005b3f18
mov esi, eax
add esp, 8
test esi, esi
jne 0x58f272
call fcn.005bae95
push dword [eax]
call fcn.0058eb70
push eax
push edi
push str.__warning____cant_open__s_for_writing_nError:__s__d__n
call fcn.0058dd80
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x58f280
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x58f295
pop edi
mov dword [esp + 0x10], eax
jmp fcn.005b9656
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 0x58f2b3
mov esi, ecx
sub esi, edx
test esi, esi
jne 0x58f2bc
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.005b6e60
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 0x58f800
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4048
call fcn.005b7f40
push ebx
push esi
mov esi, dword [esp + 0x4054]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005bb38b
mov ebx, dword [esp + 0x4060]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.005bb38b
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp eax, dword [esp + 0x1c]
je 0x58f848
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
push edi
push 0x66242c
push esi
call fcn.005b3f18
push 0x66242c
push ebx
mov edi, eax
call fcn.005b3f18
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x58f979
test ebx, ebx
je 0x58f964
push ebp
push edi
mov ebp, 1
call fcn.005b9445
add esp, 4
test eax, eax
jne 0x58f948
lea ecx, [ecx]
push edi
push 0x2000
lea eax, [esp + 0x60]
push 1
push eax
call fcn.005b9656
push ebx
push 0x2000
mov esi, eax
lea eax, [esp + 0x2070]
push 1
push eax
call fcn.005b9656
add esp, 0x20
cmp esi, eax
je 0x58f8d9
push 0
push 0x6ae
push str.Source_r3dFileMan.cpp
push str.read0__read1
call fcn.0058e630
add esp, 0x10
lea ecx, [esp + 0x58]
lea edx, [esp + 0x2058]
sub esi, 4
jb 0x58f901
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x58f906
add ecx, 4
add edx, 4
sub esi, 4
jae 0x58f8f0
cmp esi, 0xfffffffc
je 0x58f933
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x58f946
cmp esi, 0xfffffffd
je 0x58f933
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x58f946
cmp esi, 0xfffffffe
je 0x58f933
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x58f946
cmp esi, 0xffffffff
je 0x58f933
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x58f946
push edi
call fcn.005b9445
add esp, 4
test eax, eax
je 0x58f890
jmp 0x58f948
xor ebp, ebp
push edi
call fcn.005b3095
push ebx
call fcn.005b3095
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
push edi
call fcn.005b3095
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4048
ret
test ebx, ebx
je 0x58f986
push ebx
call fcn.005b3095
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4048
ret
Function at 0x590e10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp eax, 0x8876017c
jne 0x590e62
mov ecx, dword [0x73fb8c]
push 1
call fcn.005a7f10
mov eax, dword [0x73fb54]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x590e4e
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00595e00
push 0x1010
push str.Error
push str.Out_of_video_memory_
jmp 0x590ef7
cmp eax, 0x8007000e
jne 0x590f0c
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.0058fc10
add esp, 0xc
mov ecx, esi
push 0
call fcn.00593680
mov eax, dword [esi + 0x480]
test eax, eax
je 0x590ec5
push 1
push eax
mov ecx, esi
call fcn.0059c230
mov eax, dword [esi + 0x480]
test eax, eax
jne 0x590eb1
mov eax, dword [0x73fb54]
mov ecx, dword [esi + 8]
mov esi, ecx
cmp dword [eax + 0x184], 0
je 0x590ee8
push 6
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00595e00
push 0x1010
push str.Error
push str.Out_of_system_memory_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [0x6bfb44]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret 4
Function at 0x592d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e0db8
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 0x592e4d
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 0x592dcc
shr eax, 1
test edi, eax
je 0x592dc6
add eax, eax
lea ecx, [esp + 0x10]
push eax
call fcn.00593040
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x592dff
mov ecx, ebp
sub ebx, ebp
lea esp, [esp]
test ecx, ecx
je 0x592df9
mov eax, dword [ebx + ecx]
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x592df0
mov eax, dword [esi + 4]
lea ecx, [eax*4]
add ecx, ebp
je 0x592e15
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.0058fc10
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 0x592e64
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 0x597310
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 0x597340
push 0
push 0xeb
push str.Sourced3dFont.cpp
push str.glyphTexture
call fcn.0058e630
add esp, 0x10
push str.DataFonts
call fcn.005ba008
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 0x597387
push 0
push 0x4d
push str.c:infectzmmo_srceternityinclude_r3dTex.h
push str.m_TexArray_0_.Valid__
call fcn.0058e630
add esp, 0x10
mov ecx, dword [ebx + 0x3c]
call fcn.00590c50
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 0x679ef4
push eax
call fcn.0058f230
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x597407
push eax
push 0xfc
push str.Sourced3dFont.cpp
push 0x664a28
call fcn.0058e630
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 0x6649f8
push ebx
call fcn.005b2f17
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.005b2f17
add esp, 0x28
lea esi, [esi + 0x10]
dec edi
jne 0x597430
push ebx
call fcn.005b3095
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a0e80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e0bab
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 0x747fb4
call fcn.0058fc70
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.005a1300
push esi
push dword [esp + 0x134]
lea eax, [esp + 0x20]
push 0x67c338
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 0x67a34c
push eax
call fcn.005b3f18
mov edi, eax
add esp, 8
test edi, edi
jne 0x5a0f2e
push dword [esp + 0xc]
call fcn.0058fad0
lea eax, [esp + 0x1c]
push eax
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.0058e160
add esp, 0xc
xor bl, bl
jmp 0x5a0f50
mov esi, dword [esp + 0xc]
push edi
push dword [esp + 0x14]
push 1
push esi
call fcn.005b4ae2
push edi
call fcn.005b3095
push esi
call fcn.0058fad0
add esp, 0x18
mov bl, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.0057f010
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 0x5a1a20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e0c36
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 0x747fb4
call fcn.0058fc70
lea eax, [esp + 0x14]
mov dword [esp + 0x120], 0
push 0x747fb4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
call fcn.0058fc70
cmp byte [ebp], 0
mov byte [esp + 0x120], 1
jne 0x5a1a95
push 0
push 0x133
push str.SourceFileSystem_r3dFileSystem.cpp
push str.baseName__0____0
call fcn.0058e630
add esp, 0x10
push 0
push ebp
lea eax, [esp + 0x18]
push str._s__02d.bin
push eax
call fcn.00583c90
add esp, 0x10
mov byte [esp + 0x120], 0
lea ecx, [esp + 8]
call fcn.0057f010
lea eax, [esp + 0x14]
push 0x66242c
push eax
call fcn.005b3f18
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5a1ae9
lea eax, [esp + 0x14]
push eax
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.0058e160
add esp, 8
xor bl, bl
jmp 0x5a1b46
push esi
push edi
push 2
push 0
push ebx
call fcn.005b8fb0
push ebx
call fcn.005b93d9
push 0
push 0
push ebx
mov edi, eax
call fcn.005b8fb0
lea ecx, [edi + 1]
push 1
push ecx
call fcn.0058fab0
push ebx
push 1
mov esi, eax
push edi
push esi
call fcn.005b9656
push ebx
call fcn.005b3095
add esp, 0x38
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x104]
push eax
push edi
push esi
call fcn.005a0ba0
push esi
mov bl, al
call fcn.0058fad0
add esp, 4
pop edi
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call fcn.0057f010
mov ecx, dword [esp + 0x118]
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x5a1ea0
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 + 0x10e]
mov ebp, ecx
add edi, 4
mov dword [esp + 0x14], ebp
push 1
lea eax, [edi + 1]
push eax
call fcn.0058fab0
movzx ecx, byte [ebx + 0x105]
add esp, 8
mov esi, eax
mov ebp, dword [ebp + ecx*4 + 0x338]
cmp ebp, 0xffffffff
jne 0x5a1ef6
push 0
push 0x31e
push str.SourceFileSystem_r3dFileSystem.cpp
push str.h___INVALID_HANDLE_VALUE
call fcn.0058e630
add esp, 0x10
push 0
push 0
push dword [ebx + 0x106]
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 0x5a1f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RelocateFile_read_failed__d_n
call fcn.0058e160
push esi
call fcn.0058fad0
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 + 0x106], eax
movzx eax, cl
mov byte [ebx + 0x105], cl
mov ebp, dword [ebp + eax*4 + 0x338]
cmp ebp, 0xffffffff
jne 0x5a1f8b
push 0
push 0x32f
push str.SourceFileSystem_r3dFileSystem.cpp
push str.h___INVALID_HANDLE_VALUE
call fcn.0058e630
add esp, 0x10
push 0
push 0
push dword [ebx + 0x106]
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 0x5a1fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RelocateFile_write_failed__d_n
jmp 0x5a1f31
push esi
call fcn.0058fad0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x5a2a30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e0bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x18]
push 0x747fb4
call fcn.0058fc70
mov esi, dword [esp + 0x130]
mov dword [esp + 0x128], 0
cmp byte [esi], 0
je 0x5a2aa3
cmp byte [esi + 0x104], 0
je 0x5a2aa3
cmp byte [esi + 0x105], 0xff
je 0x5a2aa3
cmp dword [esi + 0x106], 0xffffffff
je 0x5a2aa3
cmp dword [esi + 0x10a], 0xffffffff
je 0x5a2aa3
cmp dword [esi + 0x10e], 0xffffffff
jne 0x5a2abc
push 0
push 0x1b8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.IsValid__
call fcn.0058e630
add esp, 0x10
mov ebx, dword [esp + 0x138]
cmp dword [esi + 0x10e], ebx
je 0x5a2ae4
push 0
push 0x1b9
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.csize__csize
call fcn.0058e630
add esp, 0x10
movzx eax, byte [esi + 0x105]
mov edi, dword [ebp + eax*4 + 0x338]
cmp edi, 0xffffffff
jne 0x5a2b57
inc eax
mov ecx, ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005a1530
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a2b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
push str.cant_open__s_for_writing___d_n
call fcn.0058dd80
add esp, 0xc
xor bl, bl
jmp 0x5a2bef
movzx eax, byte [esi + 0x105]
mov dword [ebp + eax*4 + 0x338], edi
push 0
push 0
push dword [esi + 0x106]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, dword [esi + 0x106]
je 0x5a2b86
call ebp
push eax
push str.SetFilePointer_failed__d
call fcn.0058dd80
add esp, 8
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x64667261
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5a2bbf
call ebp
push eax
push str.WriteFile_failed__d
call fcn.0058dd80
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x140]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5a2bed
push ebx
push eax
push esi
push str.failed_to_write__s__d_vs__d_n
call fcn.0058dd80
add esp, 0x10
mov bl, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0xffffffff
call fcn.0057f010
mov ecx, dword [esp + 0x120]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0xc
Function at 0x5a2c20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e0cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ecx, [esp + 0x24]
push 0x747fb4
call fcn.0058fc70
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x48], 0
test eax, eax
jne 0x5a2c79
push eax
push 0xf8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.IsValid__
call fcn.0058e630
add esp, 0x10
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x5a2c99
push ebp
push 0xf9
push str.SourceFileSystem_r3dFileSystem.cpp
push 0x664a28
call fcn.0058e630
add esp, 0x10
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
imul edi, eax, 0x128
push 1
mov dword [esp + 0x2c], 0x6c667261
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], edi
lea eax, [edi + 1]
push eax
call fcn.0058fab0
mov ecx, dword [ebx + 8]
add esp, 8
sub ecx, dword [ebx + 4]
mov esi, eax
sar ecx, 2
xor edx, edx
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x5a2d10
mov ebp, esi
mov esi, dword [ebx + 4]
mov edi, ebp
mov ecx, 0x4a
add ebp, 0x128
mov esi, dword [esi + edx*4]
inc edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
cmp edx, eax
jb 0x5a2ce1
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x13]
call fcn.0058e670
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
lea ecx, [esp + 0x23]
call fcn.0058e680
test eax, eax
jne 0x5a2d3f
push str.failed_to_compres_file_list_n
call fcn.0058dd80
add esp, 4
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push edi
push esi
mov dword [esp + 0x40], eax
call fcn.0058e980
push ebp
push 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push 1
push eax
call fcn.005b4ae2
push ebp
push 0x10
lea eax, [esp + 0x50]
push 1
push eax
call fcn.005b4ae2
push ebp
push 1
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.005b4ae2
push esi
call fcn.0058fad0
push dword [esp + 0x54]
call fcn.0058fad0
add esp, 0x40
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0057f010
mov ecx, dword [esp + 0x40]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x5a6190
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a61b1
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x224
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5a620b
jmp 0x5a61d0
lea eax, [esp + 0x28]
push 0x6693b4
push eax
call fcn.005a6c70
add esp, 8
test eax, eax
jne 0x5a6207
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5a61d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5aa370
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x5ab997
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5ab997
cmp dword [ecx + 0xc], 0
je 0x5ab997
cmp dword [ecx], 0
jne 0x5aa3a8
cmp dword [ecx + 4], 0
jne 0x5ab997
cmp dword [edi], 0xb
jne 0x5aa3b3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x5aad18
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x5aa400
jmp dword [eax*4 + 0x5ab9a4]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret

Function at 0x5ac4f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5ac524
mov al, byte [ecx]
test al, al
je 0x5ac524
mov edx, 0x811c9dc5
movsx eax, al
lea ecx, [ecx + 1]
or eax, 0x20
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x5ac503
xor edx, 0x2a
imul eax, edx, 0x1000193
ret
xor eax, eax
ret