joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c4c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
call fcn.0054b390
mov ecx, dword [ebp + 8]
call fcn.0054b3e0
movzx eax, al
test eax, eax
je 0x52c500
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xd], 1
push str.Wait_for_data_on_socket_aborted_by_app
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x52c642
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x52c52c
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xe], 1
xor al, al
jmp 0x52c642
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x250
call fcn.00526fd0
mov dword [ebp - 0x14], 0
jmp 0x52c55a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x258]
jae 0x52c584
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + edx*4 + 0x25c]
cmp edx, dword [ecx + 0xa4]
jne 0x52c582
jmp 0x52c584
jmp 0x52c551
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x258]
jne 0x52c5cc
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x258], 0x200
jae 0x52c5cc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0xa4]
mov dword [ecx + eax*4 + 0x25c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x258]
add ecx, 1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x258], ecx
xor eax, eax
jne 0x52c548
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x18]
add edx, 0x258
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x52c606
cmp dword [ebp - 4], 0
jge 0x52c62d
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xe], 1
push str.The_peer_has_closed_the_socket__TCP__connection
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [ebp - 0x18]
call fcn.0052c470
xor al, al
jmp 0x52c642
cmp dword [ebp - 4], 0
jne 0x52c640
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 1
xor al, al
jmp 0x52c642
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x52cfe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d16bb
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x52d027
xor al, al
jmp 0x52d1de
cmp dword [ebp + 8], 0
jne 0x52d034
mov dword [ebp + 8], 0x7530
cmp dword [ebp + 8], 0x927c0
jbe 0x52d044
mov dword [ebp + 8], 0x927c0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0054b140
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x52d1cc
call fcn.00504690
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.0052c650
mov byte [ebp - 0xe1], al
movzx eax, byte [ebp - 0xe1]
test eax, eax
jne 0x52d0c1
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0054b1f0
mov al, byte [ebp - 0xe9]
jmp 0x52d1de
push 0
push 0x20
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
jne 0x52d131
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x52d10b
push str.TCP_connection_cleanly_closed_by_peer.
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
call eax
mov byte [ebp - 0xea], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0054b1f0
mov al, byte [ebp - 0xea]
jmp 0x52d1de
cmp dword [ebp - 0xd8], 0xffffffff
je 0x52d143
cmp dword [ebp - 0xd8], 0
jge 0x52d164
mov byte [ebp - 0xeb], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0054b1f0
mov al, byte [ebp - 0xeb]
jmp 0x52d1de
call fcn.00504690
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0xdc]
jbe 0x52d1c7
mov edx, dword [ebp - 0xe0]
sub edx, dword [ebp - 0xdc]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp + 8]
jb 0x52d1bb
mov byte [ebp - 0xec], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0054b1f0
mov al, byte [ebp - 0xec]
jmp 0x52d1de
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0xe8]
mov dword [ebp + 8], ecx
jmp 0x52d05a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0054b1f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x54a320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2ee6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6a7c78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.TlsRawRecord.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004b0430
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004b0430
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004b0430
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x68], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x555170
Capabilities:
Encrypt data using rc4 prga
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [0x6bcd10]
test eax, eax
jne 0x5552a1
movzx ecx, byte [0x6bcd11]
test ecx, ecx
jne 0x5552a1
cmp dword [0x6bcd14], 0
jne 0x5552a1
mov byte [0x6bcd11], 1
push 0x100
call fcn.004cbda0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5551c3
jmp 0x5552e9
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 0xc], 0
jmp 0x5551dc
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xff
ja 0x55526b
push 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00555310
add esp, 8
shl eax, 0x18
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0x10], 0
jmp 0x555215
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jae 0x555249
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
shl eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
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 - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
jmp 0x55520c
push 0x20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00555310
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
jmp 0x5551d3
cmp dword [0x6bcd14], 0
jne 0x55527f
mov edx, dword [ebp - 8]
mov dword [0x6bcd14], edx
jmp 0x555291
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [0x6bcd10], 1
mov byte [0x6bcd11], 0
jmp 0x5552e9
movzx edx, byte [0x6bcd11]
test edx, edx
je 0x5552e9
movzx eax, byte [0x6bcd10]
test eax, eax
jne 0x5552e9
mov dword [ebp - 0x14], 0
movzx ecx, byte [0x6bcd11]
test ecx, ecx
je 0x5552e9
push 2
call fcn.00504680
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xc8
jbe 0x5552e7
jmp 0x5552e9
jmp 0x5552be
mov esp, ebp
pop ebp
ret
Function at 0x55b850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4161
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6a7c78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable._ckSymSettings.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x100
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004b0430
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004b0430
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004b0430
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004b0430
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x88], 0x80
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x8c], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x28], 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x48], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x581b00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
add ecx, 0x28
call fcn.004aeda0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x581bcc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x581b5e
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 + 0x118], eax
jmp 0x581b6e
mov ecx, dword [ebp - 0xdc]
mov dword [ecx + 0x118], 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 0x674bc8
lea edx, [ebp - 0xd8]
push edx
call sub.MSVCR90.dll_sprintf
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
add ecx, 0xa0
call fcn.004d52c0
jmp 0x581bdd
mov ecx, dword [ebp - 0xdc]
add ecx, 0xa0
call fcn.004d17f0
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + 0x114], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret
Function at 0x582900
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x6119a407
je 0x582923
push 0
call fcn.00504670
add esp, 4
xor eax, eax
jmp 0x58296c
mov ecx, dword [ebp + 8]
call fcn.004aeda0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x58295f
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x582935
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ecx + 0xc]
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x59dce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x10], 0
je 0x59dcf2
cmp dword [ebp + 0x14], 0
jne 0x59dcf9
mov al, 1
jmp 0x59de4b
mov ecx, dword [ebp + 0x18]
call fcn.004eff70
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.004b0f40
movzx ecx, al
test ecx, ecx
jne 0x59dd3d
push str.Unable_to_allocate_CTR_mode_output_buffer.
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x59de4b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.004aee00
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x488
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x4a8
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x4c8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
test edx, edx
jle 0x59de2e
cmp dword [ebp - 4], 0
jne 0x59ddf6
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x59ddcc
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jl 0x59ddf6
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov cl, byte [eax]
add cl, 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x28]
mov byte [edx], cl
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
movzx ecx, byte [eax]
test ecx, ecx
je 0x59ddf4
jmp 0x59ddf6
jmp 0x59ddc3
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x1c]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor eax, edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], al
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
add eax, 1
xor edx, edx
div dword [ebp - 0x20]
mov dword [ebp - 4], edx
jmp 0x59dd89
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x4c8], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.004b0290
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x5b1a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x43c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x440]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x5b1ab3
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jge 0x5b1b2a
mov eax, dword [ebp - 8]
add eax, 1
movzx ecx, al
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
movzx eax, dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx*4 + 0x3c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x3c], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
movzx edx, cl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx*4 + 0x3c]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
jmp 0x5b1aaa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x43c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 0x440], eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5b36d0
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 0x5b36ea
xor al, al
jmp 0x5b3868
cmp dword [ebp + 0x10], 0
jne 0x5b36f7
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, 0x84
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0xc], 0x80
jae 0x5b377c
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x83]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x84]
add edx, ecx
and edx, 0xff
mov dl, byte [edx + 0x687b70]
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 + 0x84], dl
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0x80
jb 0x5b3730
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 + 0x84]
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 + 0x687b70]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx + 0x84], al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
test ecx, ecx
je 0x5b3820
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 + 0x84]
xor eax, ecx
mov dl, byte [eax + 0x687b70]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [ebp - 1]
mov byte [eax + 0x84], cl
jmp 0x5b37df
mov dword [ebp - 8], 0x3f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx*2 + 0x84]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx*2 + 0x85]
shl edx, 8
add ecx, edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov word [edx + eax*2 + 0x84], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
jne 0x5b3827
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5b8230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x5b824e
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 4
jge 0x5b8272
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov eax, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0x687eb8]
mov dword [ebp - 8], eax
jmp 0x5b8245
mov ecx, dword [ebp - 8]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov byte [edx + 3], cl
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 2], al
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], dl
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
xor eax, eax
jne 0x5b8272
mov esp, ebp
pop ebp
ret

Function at 0x5ba8b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 0
jmp 0x5ba8d8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jae 0x5ba8f2
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x1ac], al
jmp 0x5ba8cf
movzx ecx, byte [ebp - 0x1ac]
and ecx, 0xf8
mov byte [ebp - 0x1ac], cl
movzx edx, byte [ebp - 0x18d]
and edx, 0x7f
mov byte [ebp - 0x18d], dl
movzx eax, byte [ebp - 0x18d]
or eax, 0x40
mov byte [ebp - 0x18d], al
mov dword [ebp - 4], 0
jmp 0x5ba937
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jae 0x5ba952
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x188], eax
jmp 0x5ba92e
lea edx, [ebp - 0x1ac]
push edx
lea eax, [ebp - 0x188]
push eax
call fcn.005bacf0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.005bb3b0
add esp, 8
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.005bab40
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.005ba9f0
add esp, 4
mov dword [ebp - 4], 0
jmp 0x5ba9bc
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jae 0x5ba9d6
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax*4 - 0x88]
mov byte [edx], cl
jmp 0x5ba9b3
xor eax, eax
mov ecx, dword [ebp - 0x18c]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret
Function at 0x5bd270
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
movsx eax, byte [ebp + 8]
cmp eax, 0x41
jne 0x5bd293
mov ecx, dword [ebp + 0xc]
and ecx, 1
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x42
jne 0x5bd2af
mov eax, dword [ebp + 0xc]
and eax, 2
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x43
jne 0x5bd2cb
mov edx, dword [ebp + 0xc]
and edx, 4
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x44
jne 0x5bd2e7
mov ecx, dword [ebp + 0xc]
and ecx, 0x10
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x45
jne 0x5bd303
mov eax, dword [ebp + 0xc]
and eax, 0x20
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x46
jne 0x5bd31f
mov edx, dword [ebp + 0xc]
and edx, 0x40
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x47
jne 0x5bd33e
mov ecx, dword [ebp + 0xc]
and ecx, 0x80
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x48
jne 0x5bd35c
mov eax, dword [ebp + 0xc]
and eax, 0x200
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x49
jne 0x5bd37b
mov edx, dword [ebp + 0xc]
and edx, 0x400
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x4a
jne 0x5bd39a
mov ecx, dword [ebp + 0xc]
and ecx, 0x800
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x4b
jne 0x5bd3b8
mov eax, dword [ebp + 0xc]
and eax, 0x1000
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x4c
jne 0x5bd3d7
mov edx, dword [ebp + 0xc]
and edx, 0x2000
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x4d
jne 0x5bd3f6
mov ecx, dword [ebp + 0xc]
and ecx, 0x8000
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x4e
jne 0x5bd414
mov eax, dword [ebp + 0xc]
and eax, 0x10000
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x4f
jne 0x5bd433
mov edx, dword [ebp + 0xc]
and edx, 0x20000
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x50
jne 0x5bd452
mov ecx, dword [ebp + 0xc]
and ecx, 0x40000
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x51
jne 0x5bd470
mov eax, dword [ebp + 0xc]
and eax, 0x80000
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x52
jne 0x5bd48f
mov edx, dword [ebp + 0xc]
and edx, 0x100000
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x53
jne 0x5bd4a8
mov ecx, dword [ebp + 0xc]
and ecx, 0x400000
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x54
jne 0x5bd4c0
mov eax, dword [ebp + 0xc]
and eax, 0x800000
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x55
jne 0x5bd4d9
mov edx, dword [ebp + 0xc]
and edx, 0x2000000
setne al
jmp 0x5bd523
movsx eax, byte [ebp + 8]
cmp eax, 0x56
jne 0x5bd4f2
mov ecx, dword [ebp + 0xc]
and ecx, 0x20000000
setne al
jmp 0x5bd523
movsx edx, byte [ebp + 8]
cmp edx, 0x57
jne 0x5bd50a
mov eax, dword [ebp + 0xc]
and eax, 0x40000000
setne al
jmp 0x5bd523
movsx ecx, byte [ebp + 8]
cmp ecx, 0x58
jne 0x5bd521
mov edx, dword [ebp + 0xc]
and edx, 0x80000000
setne al
jmp 0x5bd523
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x10af0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10af01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80