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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.004959e0
xor eax, eax
mov word [0x124bc40], ax
mov dword [0x7d12b0], 0
call fcn.00478a10
call fcn.004964d0
call fcn.0059fd60
call fcn.0046d480
mov cl, byte [0xca992e]
mov byte [ebp - 1], cl
mov byte [0xca992e], 0
mov dword [0x124bc98], 0
call fcn.005a0c00
mov dl, byte [ebp - 1]
mov byte [0xca992e], dl
push 0x10
push 0
mov eax, dword [0x6ba8fc]
mov ecx, dword [eax + 0xc]
push ecx
push 0
push 0
mov edx, dword [0x124bc9c]
mov eax, dword [edx]
mov ecx, dword [0x124bc9c]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov dword [0x124bc98], 1
xor eax, eax
mov word [0x124bc40], ax
mov dword [0x7d12b0], 0
call fcn.00478a10
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x59b1f0
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 8], edx
jmp 0x59b1f9
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
fild qword [ebp - 0x10]
fstp qword [0x7d12b8]
mov esp, ebp
pop ebp
ret

Function at 0x59f0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e44b0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1018
call fcn.005cef50
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1024], 1
mov ecx, 0x100
mov esi, 0x121f7c0
lea edi, [ebp - 0x1020]
rep movsd dword es:[edi], dword [esi]
push 0x33
push 0
lea eax, [ebp - 0xfe9]
push eax
call fcn.005cbc50
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0xc18]
push edx
push 0
push 0x400
lea eax, [ebp - 0x1020]
push eax
call fcn.005b1770
add esp, 0x18
push 0x5f7a6c
mov ecx, dword [0x129029c]
mov edx, dword [ecx*4 + 0x1290274]
shl edx, 8
add edx, 0x128d040
push edx
push 0x5f7a78
lea eax, [ebp - 0x418]
push eax
call fcn.005cc4f5
add esp, 0x10
mov dword [ebp - 4], 0
push 0x5f7a80
lea ecx, [ebp - 0x418]
push ecx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc1c], 0
jne 0x59f194
mov dword [ebp - 0x1024], 0
jmp 0x59f1c5
mov edx, dword [ebp - 0xc1c]
push edx
mov eax, dword [ebp - 0x1028]
push eax
push 1
lea ecx, [ebp - 0xc18]
push ecx
call fcn.005cdb90
add esp, 0x10
cmp eax, dword [ebp - 0x1028]
jae 0x59f1c5
mov dword [ebp - 0x1024], 0
cmp dword [ebp - 0xc1c], 0
je 0x59f1dd
mov edx, dword [ebp - 0xc1c]
push edx
call fcn.005cd459
add esp, 4
jmp 0x59f20e
mov dword [ebp - 4], 0xffffffff
call fcn.005c93d0
mov eax, dword [ebp - 0x1024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret
Function at 0x59f500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x400
push 0
lea eax, [ebp - 0xc10]
push eax
call fcn.005cbc50
add esp, 0xc
mov dword [ebp - 0xc10], 0x7002
mov cl, byte [0x63114c]
mov byte [ebp - 0xb73], cl
mov dl, byte [0x631150]
mov byte [ebp - 0xb72], dl
mov al, byte [0x631154]
mov byte [ebp - 0xb71], al
mov dword [ebp - 4], 0
jmp 0x59f568
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x59f583
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x1276e4c]
mov byte [ebp + edx - 0xb70], cl
jmp 0x59f55f
mov byte [ebp - 0xb60], 0
mov byte [ebp - 0xb5f], 0
mov dl, byte [0x600f84]
mov byte [ebp - 0x8f6], dl
mov dword [ebp - 4], 0
jmp 0x59f5af
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jge 0x59f5d8
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x904], 8
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x902], 5
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x900], 1
jmp 0x59f5a6
mov dword [ebp - 4], 0
jmp 0x59f5ea
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x18
jge 0x59f600
mov edx, dword [ebp - 4]
imul edx, edx, 0x19
mov byte [ebp + edx - 0xb5e], 0
jmp 0x59f5e1
mov byte [ebp - 0x8fe], 0
mov byte [ebp - 0x8fd], 0
mov byte [ebp - 0x8fc], 0
push 0x800
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0x808]
push ecx
push 0
push 0x400
lea edx, [ebp - 0xc10]
push edx
call fcn.005b1770
add esp, 0x18
push 0x5f7af4
push 0x121fbc0
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x59f663
xor eax, eax
jmp 0x59f6a2
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp - 0xc14]
push ecx
push 1
lea edx, [ebp - 0x808]
push edx
call fcn.005cdb90
add esp, 0x10
cmp eax, dword [ebp - 0xc14]
jae 0x59f68e
xor eax, eax
jmp 0x59f6a2
mov eax, dword [ebp - 0x80c]
push eax
call fcn.005cd459
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret
Function at 0x5a26c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0xffff
movsx eax, dx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
and edx, 0xffff
movsx eax, dx
mov dword [ebp - 8], eax
mov cl, 0x10
mov eax, dword [ebp - 0x20]
sar eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
sar eax, cl
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0x20000000
je 0x5a273f
mov edx, dword [ebp + 0xc]
and edx, 0xffff
mov dword [ebp - 4], edx
push 0
movzx eax, word [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0046d9f0
add esp, 0xc
jmp 0x5a27a0
mov edx, dword [ebp + 0xc]
and edx, 0x10000000
je 0x5a2770
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
push 1
movzx edx, word [ebp - 4]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0046d9f0
add esp, 0xc
jmp 0x5a27a0
mov ecx, dword [ebp + 0xc]
and ecx, 0x40000000
je 0x5a27a0
mov edx, dword [ebp + 0xc]
and edx, 0xffff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push 2
movzx ecx, word [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0046d9f0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x5a5b80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x9cef68]
and eax, 0x20
je 0x5a5b9b
mov dword [0x1276de8], 1
xor eax, eax
jmp 0x5a5c0e
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x5a5bbc
mov dword [0x1276de8], 1
xor eax, eax
jmp 0x5a5c0e
push str._tinitDSound___Start
call fcn.00462e10
add esp, 4
call fcn.005a5c10
test eax, eax
jne 0x5a5be0
mov dword [0x1276de8], 1
xor eax, eax
jmp 0x5a5c0e
push str._tmusic_init___Start
call fcn.00462e10
add esp, 4
call fcn.005ae4e0
mov dword [0x1276de8], 0
push str.t_music_init_OK
call fcn.00462e10
add esp, 4
mov eax, 1
pop ebp
ret
Function at 0x5b6780
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jbe 0x5b682e
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x14]
xor eax, ecx
mov edx, dword [ebp - 0x18]
shr edx, 5
add edx, dword [ebp - 0x10]
xor eax, edx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x14]
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 5
add edx, dword [ebp - 0x1c]
xor eax, edx
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x5b67cf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x5b6850
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xc6ef3720
mov dword [ebp - 0x24], 0x9e3779b9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jbe 0x5b6902
mov edx, dword [ebp - 8]
shl edx, 4
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 5
add ecx, dword [ebp - 0x1c]
xor edx, ecx
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
xor ecx, edx
mov eax, dword [ebp - 0x18]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x5b689f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5b8a60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
pop ebp
ret
Function at 0x5ba020
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x813c
call fcn.005cef50
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x8130]
push eax
call fcn.005b8a60
add esp, 4
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x8138], eax
cmp dword [ebp - 0x8138], 0xffffffff
jne 0x5ba078
xor al, al
jmp 0x5ba152
mov dword [ebp - 0x8134], 0
lea edx, [ebp - 0x8134]
push edx
mov eax, dword [ebp - 0x8138]
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x813c], eax
mov ecx, dword [ebp - 0x813c]
mov dword [ebp - 0x8090], ecx
mov dword [ebp - 0x808c], 0
mov dl, byte [0x5f9480]
mov byte [ebp - 0x8088], dl
push 0x807f
push 0
lea eax, [ebp - 0x8087]
push eax
call fcn.005cbc50
add esp, 0xc
push 0
lea ecx, [ebp - 0x808c]
push ecx
push 0x8000
lea edx, [ebp - 0x8088]
push edx
mov eax, dword [ebp - 0x8138]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [ebp - 0x8130]
push ecx
mov edx, dword [ebp - 0x808c]
push edx
lea eax, [ebp - 0x8088]
push eax
call fcn.005b8d70
add esp, 0xc
mov ecx, dword [ebp - 0x8090]
sub ecx, dword [ebp - 0x808c]
mov dword [ebp - 0x8090], ecx
jne 0x5ba0d4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x8130]
push eax
call fcn.005b8af0
add esp, 8
cmp dword [ebp - 0x8138], 0xffffffff
je 0x5ba150
mov ecx, dword [ebp - 0x8138]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret
Function at 0x5bad40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1285c04]
add eax, 1
mov dword [0x1285c04], eax
cmp dword [0x1285c04], 0x564
jge 0x5bad66
xor al, al
jmp 0x5bae9d
mov dword [0x1285c04], 0
movsx ecx, byte [0xfd576c]
cmp ecx, 1
jne 0x5badcb
fld qword [0x5ec058]
fcomp qword [0x604ab8]
fnstsw ax
test ah, 0x44
jp 0x5bada2
fld qword [0x604ab8]
fcomp qword [0x604ac0]
fnstsw ax
test ah, 0x41
jne 0x5badcb
push 3
mov edx, dword [0xfd5768]
push edx
call fcn.00587db0
add esp, 8
fld qword [0x5ec058]
fstp qword [0x604ab8]
fld qword [0x604ab8]
fstp qword [0x604ac0]
cmp dword [0x1285bc8], 0
je 0x5bae20
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x1285bc8]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx]
test eax, eax
je 0x5bae20
mov dword [ebp - 0x10], 0
jmp 0x5bae04
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xa
jge 0x5bae20
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0xe9
jne 0x5bae1e
mov al, 1
jmp 0x5bae9d
jmp 0x5badfb
push 0x9cef78
push 0
push 0x1f0001
call dword [sym.imp.kernel32.dll_OpenMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5bae41
mov al, 1
jmp 0x5bae9d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [ebp - 5], 0
movsx edx, byte [0xfd576c]
cmp edx, 1
jne 0x5bae9a
mov dword [ebp - 0x14], 0
call fcn.005bb2f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x5bae84
push str.Scan_Error_2
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov dword [ebp - 0x14], 0
jmp 0x5bae9a
cmp dword [ebp - 0x14], 3
jne 0x5bae9a
push 2
mov eax, dword [0xfd5768]
push eax
call fcn.00587db0
add esp, 8
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x5bb3f0
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [0x127b678]
add eax, 1
mov dword [0x127b678], eax
cmp dword [0x127b678], 0x3fc
jge 0x5bb41a
xor eax, eax
jmp 0x5bb494
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x5bb43b
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 8], edx
jmp 0x5bb444
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.005cbcca
add esp, 4
call fcn.005cbcdc
cdq
mov ecx, 0x12c
idiv ecx
mov dword [0x127b678], edx
push 0
push 0x5bb4a0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x127b67c], 0
jle 0x5bb491
mov edx, dword [0x127b67c]
mov dword [ebp - 4], edx
mov dword [0x127b67c], 0
mov eax, dword [ebp - 4]
jmp 0x5bb494
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5bb680
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x6a09e667
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xbb67ae85
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x3c6ef372
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xa54ff53a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x510e527f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0x9b05688c
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0x1f83d9ab
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret

Function at 0x5c8900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [0x121f7b8], 0
push 0x5f9cb0
mov eax, dword [ebp + 8]
shl eax, 8
add eax, 0x128d040
push eax
push 0x5f9cbc
lea ecx, [ebp - 0x408]
push ecx
call fcn.005cc4f5
add esp, 0x10
push 0x5f9cc4
lea edx, [ebp - 0x408]
push edx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x5c8969
xor eax, eax
jmp 0x5c8a17
mov eax, dword [ebp - 0x40c]
push eax
push 0x800
push 1
lea ecx, [ebp - 0xc18]
push ecx
call fcn.005cdfc1
add esp, 0x10
mov dword [ebp - 0x410], eax
mov edx, dword [ebp - 0x40c]
push edx
call fcn.005ce984
add esp, 4
test eax, eax
je 0x5c89b2
mov eax, dword [ebp - 0x40c]
push eax
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x5c8a17
mov ecx, dword [ebp - 0x40c]
push ecx
call fcn.005cd459
add esp, 4
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp + 8]
shl eax, 0xa
add eax, 0x128da40
push eax
push 0
mov ecx, dword [ebp - 0x410]
push ecx
lea edx, [ebp - 0xc18]
push edx
call fcn.005b1920
add esp, 0x14
cmp dword [ebp - 0x414], 0x400
je 0x5c89fc
xor eax, eax
jmp 0x5c8a17
mov eax, dword [ebp + 8]
shl eax, 0xa
cmp dword [eax + 0x128da40], 0x7002
je 0x5c8a12
xor eax, eax
jmp 0x5c8a17
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret
Function at 0x5c8a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x400
push 0
lea eax, [ebp - 0xc10]
push eax
call fcn.005cbc50
add esp, 0xc
mov dword [ebp - 0xc10], 0x7002
mov cl, byte [0x5f9c71]
mov byte [ebp - 0xba6], cl
mov dl, byte [0x5f9c72]
mov byte [ebp - 0xbd9], dl
mov al, byte [0x5f9c73]
mov byte [ebp - 0xc0c], al
mov cl, byte [0x63114c]
mov byte [ebp - 0xb73], cl
mov dl, byte [0x631150]
mov byte [ebp - 0xb72], dl
mov al, byte [0x631154]
mov byte [ebp - 0xb71], al
mov dword [ebp - 4], 0
jmp 0x5c8abb
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x5c8ad6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x1276e4c]
mov byte [ebp + edx - 0xb70], cl
jmp 0x5c8ab2
mov byte [ebp - 0xb60], 0
mov byte [ebp - 0xb5f], 0
mov dl, byte [0x600f84]
mov byte [ebp - 0x8f6], dl
mov dword [ebp - 4], 0
jmp 0x5c8b02
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jge 0x5c8b2b
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x904], 8
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x902], 5
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x900], 1
jmp 0x5c8af9
mov dword [ebp - 4], 0
jmp 0x5c8b3d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x18
jge 0x5c8b53
mov edx, dword [ebp - 4]
imul edx, edx, 0x19
mov byte [ebp + edx - 0xb5e], 0
jmp 0x5c8b34
mov byte [ebp - 0x8fe], 0
mov byte [ebp - 0x8fd], 0
mov byte [ebp - 0x8fc], 0
push 0x800
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0x808]
push ecx
push 0
push 0x400
lea edx, [ebp - 0xc10]
push edx
call fcn.005b1770
add esp, 0x18
push 0x5f9d34
mov eax, dword [ebp + 8]
push eax
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x5c8bb5
xor eax, eax
jmp 0x5c8bf4
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0xc14]
push edx
push 1
lea eax, [ebp - 0x808]
push eax
call fcn.005cdb90
add esp, 0x10
cmp eax, dword [ebp - 0xc14]
jae 0x5c8be0
xor eax, eax
jmp 0x5c8bf4
mov ecx, dword [ebp - 0x80c]
push ecx
call fcn.005cd459
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret
Function at 0x5c9400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.005cef50
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0xc0c], 0
jmp 0x5c9434
mov eax, dword [ebp - 0xc0c]
add eax, 1
mov dword [ebp - 0xc0c], eax
cmp dword [ebp - 0xc0c], 0xa
jge 0x5c957e
mov ecx, dword [ebp - 0xc0c]
cmp dword [ecx*4 + 0x1290240], 1
jne 0x5c9579
mov edx, dword [ebp - 0xc0c]
shl edx, 0xa
movzx eax, byte [edx + 0x128daaa]
test eax, eax
je 0x5c9579
mov ecx, dword [ebp - 0xc0c]
shl ecx, 0xa
movzx edx, byte [ecx + 0x128da77]
test edx, edx
je 0x5c9579
mov esi, dword [ebp - 0xc0c]
shl esi, 0xa
add esi, 0x128da40
mov ecx, 0x100
lea edi, [ebp - 0x1010]
rep movsd dword es:[edi], dword [esi]
push 0x33
push 0
lea eax, [ebp - 0xfd9]
push eax
call fcn.005cbc50
add esp, 0xc
mov byte [ebp - 0xfd9], 0
push 0x800
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0xc08]
push edx
push 0
push 0x400
lea eax, [ebp - 0x1010]
push eax
call fcn.005b1770
add esp, 0x18
push 0x5f9d48
mov ecx, dword [ebp - 0xc0c]
shl ecx, 8
add ecx, 0x128d040
push ecx
push 0x5f9d54
lea edx, [ebp - 0x408]
push edx
call fcn.005cc4f5
add esp, 0x10
push 0x5f9d5c
lea eax, [ebp - 0x408]
push eax
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0xc10], eax
cmp dword [ebp - 0xc10], 0
jne 0x5c9532
jmp 0x5c957e
mov ecx, dword [ebp - 0xc10]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
push 1
lea eax, [ebp - 0xc08]
push eax
call fcn.005cdb90
add esp, 0x10
cmp eax, dword [ebp - 0x1014]
jae 0x5c956a
mov ecx, dword [ebp - 0xc10]
push ecx
call fcn.005cd459
add esp, 4
jmp 0x5c957e
mov edx, dword [ebp - 0xc10]
push edx
call fcn.005cd459
add esp, 4
jmp 0x5c9425
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret

Function at 0x5c9590
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 4], eax
push str.save.dat
mov eax, dword [ebp + 8]
shl eax, 8
add eax, 0x128d040
push eax
push 0x5f9d6c
lea ecx, [ebp - 0x408]
push ecx
call fcn.005cc4f5
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
push str.mail.dat
mov eax, dword [ebp + 8]
shl eax, 8
add eax, 0x128d040
push eax
push 0x5f9d80
lea ecx, [ebp - 0x408]
push ecx
call fcn.005cc4f5
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
push str.guildmail.dat
mov eax, dword [ebp + 8]
shl eax, 8
add eax, 0x128d040
push eax
push 0x5f9d98
lea ecx, [ebp - 0x408]
push ecx
call fcn.005cc4f5
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret