joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485530
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x485547
jmp 0x485599
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x48557c
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x485599
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547a88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f5618]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push str.ck_getsockname_ipv4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004618a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00426f80
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0xa4], 0xffffffff
je 0x486280
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x486202
cmp dword [ebp - 0x1c], 0
jge 0x48623a
push str.Failed_to_getsockname
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call fcn.00485a30
add esp, 8
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00461950
mov al, byte [ebp - 0x35]
jmp 0x4862b9
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
call fcn.0042ac00
movzx ecx, word [ebp - 0x32]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00461950
mov al, byte [ebp - 0x3d]
jmp 0x4862b9
push 0x59d27c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00461950
mov al, byte [ebp - 0x3e]
jmp 0x4862b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4862e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5f5618]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push str.ck_getsockname_ipv6
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004618a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00426f80
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xa4], 0xffffffff
je 0x4863f4
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x486372
cmp dword [ebp - 0x1c], 0
jge 0x4863ad
push str.Failed_to_getsockname_ipv6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call fcn.00485a30
add esp, 8
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00461950
mov al, byte [ebp - 0x41]
jmp 0x48642d
mov ecx, dword [ebp + 8]
call fcn.00426f80
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
push 0x17
call fcn.00483620
add esp, 0xc
movzx ecx, word [ebp - 0x3e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x42], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00461950
mov al, byte [ebp - 0x42]
jmp 0x48642d
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
mov byte [ebp - 0x43], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00461950
mov al, byte [ebp - 0x43]
jmp 0x48642d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x489a60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5f5618]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x489a89
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0xa0]
test eax, eax
jne 0x489a9e
xor al, al
jmp 0x489c00
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x250
call fcn.00484620
mov dword [ebp - 0x14], 0
jmp 0x489acc
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x258]
jae 0x489af6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 0x25c]
cmp ecx, dword [eax + 0xa4]
jne 0x489af4
jmp 0x489af6
jmp 0x489ac3
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x258]
jne 0x489b3e
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x258], 0x200
jae 0x489b3e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xa4]
mov dword [eax + edx*4 + 0x25c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x258]
add eax, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x258], eax
xor edx, edx
jne 0x489aba
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x258
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 0x489be4
push 2
push 1
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x489ba5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00489c30
xor al, al
jmp 0x489c00
cmp dword [ebp - 0x18], 0xffffffff
jne 0x489bde
mov ecx, dword [ebp + 8]
push ecx
push 0
call fcn.00485a30
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2746
je 0x489bd4
cmp dword [ebp - 0x28], 0x2745
jne 0x489bd8
xor al, al
jmp 0x489c00
mov al, 1
jmp 0x489c00
mov al, 1
jmp 0x489c00
cmp dword [ebp - 4], 0
jge 0x489bfe
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.00485a30
add esp, 8
mov al, 1
jmp 0x489c00
mov al, 1
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret 4
Function at 0x48a170
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.004a91c0
mov ecx, dword [ebp + 8]
call fcn.004a9210
movzx eax, al
test eax, eax
je 0x48a1b0
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 0x48a2f2
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x48a1dc
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 0x48a2f2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x250
call fcn.00484620
mov dword [ebp - 0x14], 0
jmp 0x48a20a
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 0x48a234
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 0x48a232
jmp 0x48a234
jmp 0x48a201
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x258]
jne 0x48a27c
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x258], 0x200
jae 0x48a27c
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 0x48a1f8
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 0x48a2b6
cmp dword [ebp - 4], 0
jge 0x48a2dd
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.0048a120
xor al, al
jmp 0x48a2f2
cmp dword [ebp - 4], 0
jne 0x48a2f0
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 1
xor al, al
jmp 0x48a2f2
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x48ac90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547d2b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5f5618]
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 0x48acd7
xor al, al
jmp 0x48ae8e
cmp dword [ebp + 8], 0
jne 0x48ace4
mov dword [ebp + 8], 0x7530
cmp dword [ebp + 8], 0x927c0
jbe 0x48acf4
mov dword [ebp + 8], 0x927c0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004a8f70
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x48ae7c
call fcn.00460590
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.0048a300
mov byte [ebp - 0xe1], al
movzx eax, byte [ebp - 0xe1]
test eax, eax
jne 0x48ad71
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.004a9020
mov al, byte [ebp - 0xe9]
jmp 0x48ae8e
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 0x48ade1
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x48adbb
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.004a9020
mov al, byte [ebp - 0xea]
jmp 0x48ae8e
cmp dword [ebp - 0xd8], 0xffffffff
je 0x48adf3
cmp dword [ebp - 0xd8], 0
jge 0x48ae14
mov byte [ebp - 0xeb], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.004a9020
mov al, byte [ebp - 0xeb]
jmp 0x48ae8e
call fcn.00460590
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0xdc]
jbe 0x48ae77
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 0x48ae6b
mov byte [ebp - 0xec], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.004a9020
mov al, byte [ebp - 0xec]
jmp 0x48ae8e
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0xe8]
mov dword [ebp + 8], ecx
jmp 0x48ad0a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.004a9020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a7fd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5495f6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f5618]
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.004055a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004055a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004055a0
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 0x4b77f0
Capabilities:
Encrypt data using rc4 prga
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [0x5f7108]
test eax, eax
jne 0x4b7921
movzx ecx, byte [0x5f7109]
test ecx, ecx
jne 0x4b7921
cmp dword [0x5f710c], 0
jne 0x4b7921
mov byte [0x5f7109], 1
push 0x100
call fcn.00421190
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b7843
jmp 0x4b7969
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 0xc], 0
jmp 0x4b785c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xff
ja 0x4b78eb
push 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.004b7990
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 0x4b7895
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jae 0x4b78c9
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 0x4b788c
push 0x20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004b7990
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
jmp 0x4b7853
cmp dword [0x5f710c], 0
jne 0x4b78ff
mov edx, dword [ebp - 8]
mov dword [0x5f710c], edx
jmp 0x4b7911
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 [0x5f7108], 1
mov byte [0x5f7109], 0
jmp 0x4b7969
movzx edx, byte [0x5f7109]
test edx, edx
je 0x4b7969
movzx eax, byte [0x5f7108]
test eax, eax
jne 0x4b7969
mov dword [ebp - 0x14], 0
movzx ecx, byte [0x5f7109]
test ecx, ecx
je 0x4b7969
push 2
call fcn.00460580
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xc8
jbe 0x4b7967
jmp 0x4b7969
jmp 0x4b793e
mov esp, ebp
pop ebp
ret
Function at 0x4c2730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b511
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f5618]
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.004055a0
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.004055a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004055a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004055a0
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 0x4e9eb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x5f5618]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
add ecx, 0x28
call fcn.004a9e20
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e9f7c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x4e9f0e
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 0x4e9f1e
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 0x5b6768
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.0042ac00
jmp 0x4e9f8d
mov ecx, dword [ebp - 0xdc]
add ecx, 0xa0
call fcn.00426ed0
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + 0x114], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret
Function at 0x4eacb0
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 0x4eacd3
push 0
call fcn.00460570
add esp, 4
xor eax, eax
jmp 0x4ead1c
mov ecx, dword [ebp + 8]
call fcn.004a9e20
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 0x4ead0f
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x4eace5
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 0x525380
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 0x5253b3
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jge 0x52542a
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 0x5253aa
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 0x526fd0
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 0x526fea
xor al, al
jmp 0x527168
cmp dword [ebp + 0x10], 0
jne 0x526ff7
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 0x52707c
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 + 0x5c9778]
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 0x527030
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 + 0x5c9778]
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 0x527120
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 + 0x5c9778]
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 0x5270df
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 0x527127
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc