joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0048c890
movzx eax, al
test eax, eax
jne 0x48d077
cmp dword [ebp + 0x18], 0
je 0x48d070
push str.Failed_to_write_because_file_is_not_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x48d1d0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x48d093
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ebp - 8], 0x989680
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x48d1ce
mov ecx, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x48d0cb
jg 0x48d0c3
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x20]
jbe 0x48d0cb
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jmp 0x48d0d1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x48d145
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48d10d
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
je 0x48d143
cmp dword [ebp + 0x18], 0
je 0x48d13c
push 1
push str.WriteFileError
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x24]
call edx
mov ecx, dword [ebp + 0x18]
call fcn.00483750
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
xor al, al
jmp 0x48d1d0
jmp 0x48d18e
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x48d18e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005d179e
add esp, 0x10
cmp eax, 1
je 0x48d188
cmp dword [ebp + 0x18], 0
je 0x48d184
push str.fwrite_failed.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x48d1d0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x48d1c9
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 0x14]
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, edx
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x48d09a
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x48d1e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612608
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6f6dfc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0xffffffff
je 0x48d282
push 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x48d27d
cmp dword [ebp + 8], 0
je 0x48d27d
lea ecx, [ebp - 0x3c]
call fcn.0046b8b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0046eb60
lea ecx, [ebp - 0x3c]
call fcn.00534670
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
push str.Failed_to_get_file_size__32_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0046bc80
mov eax, dword [ebp - 0x10]
jmp 0x48d2aa
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x48d2a7
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.005db113
add esp, 4
push eax
call fcn.005d6354
add esp, 4
jmp 0x48d2aa
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x48d2c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6f6dfc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], 0xffffffff
je 0x48d390
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x48d372
cmp dword [ebp + 8], 0
je 0x48d36a
lea ecx, [ebp - 0x4c]
call fcn.0046b8b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0046eb60
lea ecx, [ebp - 0x4c]
call fcn.00534670
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
push str.Failed_to_get_file_size__64_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0046bc80
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x48d3bb
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048d3f0
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x48d3bb
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0
je 0x48d3b5
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
push edx
call fcn.005db113
add esp, 4
push eax
call fcn.005d6453
add esp, 4
jmp 0x48d3bb
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e19a0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [0x6fbb0c]
test eax, eax
jne 0x4e1a8e
push 0x400
call fcn.005abf40
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [0x6fbb10], ecx
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 8], 0
jmp 0x4e19e7
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xff
ja 0x4e1a87
push 8
mov eax, dword [ebp - 8]
push eax
call fcn.004e1ac0
add esp, 8
shl eax, 0x18
mov ecx, dword [ebp - 8]
mov edx, dword [0x6fbb10]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0xc], 0
jmp 0x4e1a23
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jae 0x4e1a60
mov ecx, dword [ebp - 8]
mov edx, dword [0x6fbb10]
mov eax, dword [edx + ecx*4]
shl eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [0x6fbb10]
mov ecx, dword [edx + ecx*4]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 4]
xor eax, ecx
mov edx, dword [ebp - 8]
mov ecx, dword [0x6fbb10]
mov dword [ecx + edx*4], eax
jmp 0x4e1a1a
push 0x20
mov edx, dword [ebp - 8]
mov eax, dword [0x6fbb10]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004e1ac0
add esp, 8
mov edx, dword [ebp - 8]
mov ecx, dword [0x6fbb10]
mov dword [ecx + edx*4], eax
jmp 0x4e19de
mov byte [0x6fbb0c], 1
mov esp, ebp
pop ebp
ret

Function at 0x4fcb30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x617561
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6f6dfc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [eax], vtable.AesCrypt.0
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.0046b8b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.004517a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.004517a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x70], 0x80
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x78], 0
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call fcn.005d3b30
add esp, 0xc
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00453cd0
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00453cd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d0167
mov esp, ebp
pop ebp
ret
Function at 0x502c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x502c7e
or eax, 0xffffffff
jmp 0x502cbc
cmp dword [ebp + 0x10], 0
jne 0x502c89
or eax, 0xffffffff
jmp 0x502cbc
mov eax, dword [ebp + 0x10]
push eax
call fcn.005d38c0
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x502cb9
xor eax, eax
jmp 0x502cbc
or eax, 0xffffffff
pop ebp
ret
Function at 0x511b70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6f6dfc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
call fcn.004697a0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x511c26
mov dword [ebp - 8], 0x10
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x511bd2
cmp dword [ebp - 4], 0
jge 0x511bf4
push str.Failed_to_getsockname
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00511440
add esp, 4
xor al, al
jmp 0x511c3a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
call fcn.0046e3f0
movzx ecx, word [ebp - 0x1a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
jmp 0x511c3a
push 0x67ba28
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005d0167
mov esp, ebp
pop ebp
ret 0xc

Function at 0x511c50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6f6dfc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
call fcn.004697a0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x511d07
mov dword [ebp - 8], 0x1c
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x511cb2
cmp dword [ebp - 4], 0
jge 0x511cd4
push str.Failed_to_getsockname_ipv6
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00511440
add esp, 4
xor al, al
jmp 0x511d1b
mov ecx, dword [ebp + 8]
call fcn.004697a0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x17
call fcn.0050f880
add esp, 0xc
movzx ecx, word [ebp - 0x26]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
jmp 0x511d1b
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005d0167
mov esp, ebp
pop ebp
ret 0xc
Function at 0x516490
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6f6dfc]
xor eax, ebp
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x134], ecx
mov eax, dword [ebp - 0x134]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x5164c8
mov ecx, dword [ebp - 0x134]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 0x134]
movzx eax, byte [edx + 0xa0]
test eax, eax
jne 0x5164e0
xor al, al
jmp 0x516698
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
jmp 0x516519
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x110]
jae 0x516546
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp + eax*4 - 0x10c]
cmp edx, dword [ecx + 0xa4]
jne 0x516544
jmp 0x516546
jmp 0x51650a
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x110]
jne 0x516585
cmp dword [ebp - 0x110], 0x40
jae 0x516585
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xa4]
mov dword [ebp + ecx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x5164fe
mov dword [ebp - 8], 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x51667e
push 2
push 1
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x516635
push 2
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0xa4], 0xffffffff
mov edx, dword [ebp - 0x134]
mov byte [edx + 0xa0], 0
xor al, al
jmp 0x516698
cmp dword [ebp - 0x120], 0xffffffff
jne 0x516678
mov eax, dword [ebp + 8]
push eax
call fcn.00511440
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x2746
je 0x51666e
cmp dword [ebp - 0x130], 0x2745
jne 0x516672
xor al, al
jmp 0x516698
mov al, 1
jmp 0x516698
mov al, 1
jmp 0x516698
cmp dword [ebp - 4], 0
jge 0x516696
mov ecx, dword [ebp + 8]
push ecx
call fcn.00511440
add esp, 4
mov al, 1
jmp 0x516698
mov al, 1
mov ecx, dword [ebp - 0x124]
xor ecx, ebp
call fcn.005d0167
mov esp, ebp
pop ebp
ret 4
Function at 0x56feb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x6f6dfc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
add ecx, 8
call fcn.00534670
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x56ff73
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x56ff0b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xdc]
mov eax, dword [ecx]
mov dword [edx + 0x64], eax
jmp 0x56ff18
mov ecx, dword [ebp - 0xdc]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 3]
push ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
push ecx
push 0x6968b8
lea edx, [ebp - 0xd8]
push edx
call fcn.005d0869
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
add ecx, 0x38
call fcn.0046e3f0
jmp 0x56ff81
mov ecx, dword [ebp - 0xdc]
add ecx, 0x38
call fcn.004697a0
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + 0x60], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d0167
mov esp, ebp
pop ebp
ret
Function at 0x5929b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x80
jbe 0x5929ca
xor al, al
jmp 0x592b27
cmp dword [ebp + 0x10], 0
jne 0x5929d7
mov dword [ebp + 0x10], 0x400
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.005d3bb0
add esp, 0xc
cmp dword [ebp + 0xc], 0x80
jae 0x592a50
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov cl, byte [eax + 3]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
add edx, ecx
and edx, 0xff
mov dl, byte [edx + 0x69ee08]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 1]
mov byte [ecx + 4], dl
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0x80
jb 0x592a0a
mov ecx, dword [ebp + 0x10]
add ecx, 7
shr ecx, 3
mov dword [ebp + 0xc], ecx
mov edx, 0x80
sub edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movzx esi, byte [eax + 4]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 8
div ecx
mov eax, 8
sub eax, edx
xor edx, edx
mov ecx, 8
div ecx
mov eax, 0xff
mov ecx, edx
sar eax, cl
and esi, eax
mov cl, byte [esi + 0x69ee08]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx + 4], al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
test ecx, ecx
je 0x592ae8
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
movzx ecx, byte [edx + ecx + 4]
xor eax, ecx
mov dl, byte [eax + 0x69ee08]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [ebp - 1]
mov byte [eax + 4], cl
jmp 0x592aad
mov dword [ebp - 8], 0x3f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx*2 + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx*2 + 5]
shl edx, 8
add ecx, edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov word [edx + eax*2 + 4], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
jne 0x592aef
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5a9c50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
cmp dword [0x6fe054], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x5a9c89
lea eax, [esp + 0xc]
push eax
mov dword [0x6fe054], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 0xc]
push 0x6fdf50
fstp qword [0x6fdf58]
call esi
lea ecx, [esp + 4]
push ecx
call esi
mov edx, dword [esp + 4]
sub edx, dword [0x6fdf50]
mov eax, dword [esp + 8]
sbb eax, dword [0x6fdf54]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
fild qword [esp + 4]
pop esi
fdiv qword [0x6fdf58]
add esp, 0x10
ret

Function at 0x5a9f90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61e42b
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.005d4a00
cmp dword [0x6fdfb0], 0
jne 0x5a9fd7
push 0xfa0
push 0x6fe0a4
mov dword [0x6fdfb0], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
call fcn.005a9a70
push esi
push edi
push 0x6fe0a4
mov dword [esp + 0xc], 0x6fe0a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6f5bf4]
imul esi, dword [0x6fdfc0]
cmp esi, 0x1f4
mov dword [esp + 0x1014], 0
jl 0x5aa03c
push 0x164
push str..Source_r3d.cpp
push str.ioff___500
push str.____r3d_assert__s_at__s_line__d_n
call fcn.005a9f90
push 0x164
push str..Source_r3d.cpp
push str.ioff___500
call fcn.005d6baa
add esp, 0x1c
test esi, esi
jle 0x5aa050
push esi
lea eax, [esp + 0x10]
push 0x20
push eax
call fcn.005d3b30
add esp, 0xc
mov eax, 0x1000
sub eax, esi
lea edi, [esp + esi + 0xc]
je 0x5aa08f
cmp eax, 0x7fffffff
ja 0x5aa08f
mov edx, dword [esp + 0x101c]
lea ecx, [esp + 0x1020]
push ecx
push edx
lea esi, [eax - 1]
push esi
push edi
call fcn.005d18d3
add esp, 0x10
test eax, eax
jl 0x5aa08b
cmp eax, esi
ja 0x5aa08b
jne 0x5aa08f
mov byte [esi + edi], 0
cmp dword [0x6fdfb8], 0
pop edi
pop esi
jne 0x5aa0bb
push 0x6a09e8
push str.r3dlog.txt
mov dword [0x6fdfb8], 1
call fcn.005d0d30
add esp, 8
mov dword [0x6fdfbc], eax
cmp dword [0x6fdfbc], 0
je 0x5aa10c
lea eax, [esp + 4]
push eax
call fcn.005a9c50
fmul dword [0x6a09e4]
call fcn.005d51a0
cdq
mov ecx, 0x3e8
idiv ecx
push edx
call fcn.005a9c50
call fcn.005d51a0
mov edx, dword [0x6fdfbc]
push eax
push 0x6a09d4
push edx
call fcn.005d045d
mov eax, dword [0x6fdfbc]
push eax
call fcn.005d6b4e
add esp, 0x18
cmp dword [0x6f5bf0], 0
je 0x5aa120
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x6fdfa8], 0
je 0x5aa136
lea edx, [esp + 4]
push edx
call fcn.005d1b51
add esp, 4
push 0x6fe0a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1004]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x1010
ret

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

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x5aa9bc
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6f5c10]
dec ecx
inc edx
test ecx, ecx
jne 0x5aa9a0
pop esi
not eax
ret
Function at 0x5aace0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
jne 0x5aad00
push 0
push 0x181
push str..SourceFileSystem_r3dFSCompress.cpp
push str.out_crc32
call fcn.005aa2a0
add esp, 0x10
push ebp
mov ebp, dword [esp + 8]
push esi
push 0x6a0c88
push ebp
call fcn.005d0d30
mov esi, eax
add esp, 8
test esi, esi
jne 0x5aad1f
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.005d5d87
push esi
call fcn.005d5fc1
push 0
push 0
push esi
mov edi, eax
call fcn.005d5d87
lea eax, [edi + 1]
push 1
push eax
call fcn.005abf00
push esi
push edi
mov ebx, eax
push 1
push ebx
call fcn.005d6337
add esp, 0x34
cmp eax, edi
je 0x5aad7d
push esi
call fcn.005d05f0
push ebx
call fcn.005abf60
push edi
push ebp
push str.failed_to_read__s__d_n
call fcn.005aa160
add esp, 0x14
pop edi
pop ebx
pop esi
xor al, al
pop ebp
ret
push edi
push ebx
call fcn.005aa990
push ebx
mov ebp, eax
call fcn.005abf60
push esi
call fcn.005d05f0
mov eax, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x5aad9f
mov dword [eax], edi
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ecx], ebp
mov al, 1
pop ebp
ret

Function at 0x5aae90
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x5aaea5
pop edi
mov dword [esp + 0x10], eax
jmp fcn.005d6337
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x114]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ebx
imul esi, dword [esp + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jb 0x5aaec6
sub eax, ecx
mov esi, eax
test esi, esi
jne 0x5aaed0
pop esi
pop ebx
xor eax, eax
pop edi
ret
mov eax, dword [edi + 4]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.005d3bb0
add dword [edi + 8], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop edi
ret

Function at 0x5ab1f0
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]
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.005d0d30
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ab234
call fcn.005d727f
mov ecx, dword [eax]
push ecx
call fcn.005aaff0
push eax
push edi
push str.__warning____cant_open__s_for_writing_nError:__s__d__n
call fcn.005aa160
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret