joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140cac450
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x3c8], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140cac4ce
call fcn.140ca7310
mov rdx, qword [rbx + 0x3c8]
mov ecx, 0x1c
mov r8d, reloc.WS2_32.dll_recv
test eax, eax
je 0x140cac4a5
cmp word [rdx + 0x1c], 2
lea rax, [rdx + 0x1c]
cmove ecx, r8d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
jmp 0x140cac4b6
cmp word [rdx], 2
cmove ecx, r8d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov rcx, qword [rbx + 0x4b0]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x140cac4f8
mov rax, qword [rcx + 0x3a8]
test byte [rax + 0x2e], 1
je 0x140cac4e8
mov ecx, dword [rcx + 0x4b0]
call fcn.140d01f58
jmp 0x140cac4f8
mov rcx, qword [rcx + 0x4b0]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140cac551
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140cac538
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140cac538
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140cac538
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140cac54c
or dword [rbx + 0x4dc], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x448], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x140caf556
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140cac450
call fcn.140cf5204
mov dword [rax], 0
call fcn.140af15f0
mov rcx, qword [rbx + 0x448]
mov r8d, edi
mov rdx, rsi
call fcn.140d18c80
test eax, eax
jg 0x140caf634
mov rcx, qword [rbx + 0x448]
test rcx, rcx
jne 0x140caf593
mov edi, 0x63
jmp 0x140caf5b0
mov edx, eax
call fcn.140d17710
mov edi, eax
cmp eax, 1
jne 0x140caf5a6
call fcn.140caf960
cmp edi, 5
je 0x140caf620
cmp edi, 2
je 0x140caf5f3
mov rcx, qword [rbx + 0x448]
call fcn.140d18c40
cmp eax, 3
je 0x140caf5f3
cmp edi, 3
je 0x140caf5d7
mov rcx, qword [rbx + 0x448]
call fcn.140d18c40
cmp eax, 2
jne 0x140caf620
or dword [rbx + 0x4dc], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_ssl_capable_write
mov ecx, 4
lea rdx, str._s:_want_read_n
call fcn.140ca84f0
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140caf960
or dword [rbx + 0x4d4], 0x1000
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140caf520
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x3c8], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140cac4ce
call fcn.140ca7310
mov rdx, qword [rbx + 0x3c8]
mov ecx, 0x1c
mov r8d, reloc.WS2_32.dll_recv
test eax, eax
je 0x140cac4a5
cmp word [rdx + 0x1c], 2
lea rax, [rdx + 0x1c]
cmove ecx, r8d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
jmp 0x140cac4b6
cmp word [rdx], 2
cmove ecx, r8d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov rcx, qword [rbx + 0x4b0]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x140cac4f8
mov rax, qword [rcx + 0x3a8]
test byte [rax + 0x2e], 1
je 0x140cac4e8
mov ecx, dword [rcx + 0x4b0]
call fcn.140d01f58
jmp 0x140cac4f8
mov rcx, qword [rcx + 0x4b0]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140cac551
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140cac538
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140cac538
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140cac538
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140cac54c
or dword [rbx + 0x4dc], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x448], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x140caf556
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140cac450
call fcn.140cf5204
mov dword [rax], 0
call fcn.140af15f0
mov rcx, qword [rbx + 0x448]
mov r8d, edi
mov rdx, rsi
call fcn.140d18c80
test eax, eax
jg 0x140caf634
mov rcx, qword [rbx + 0x448]
test rcx, rcx
jne 0x140caf593
mov edi, 0x63
jmp 0x140caf5b0
mov edx, eax
call fcn.140d17710
mov edi, eax
cmp eax, 1
jne 0x140caf5a6
call fcn.140caf960
cmp edi, 5
je 0x140caf620
cmp edi, 2
je 0x140caf5f3
mov rcx, qword [rbx + 0x448]
call fcn.140d18c40
cmp eax, 3
je 0x140caf5f3
cmp edi, 3
je 0x140caf5d7
mov rcx, qword [rbx + 0x448]
call fcn.140d18c40
cmp eax, 2
jne 0x140caf620
or dword [rbx + 0x4dc], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_ssl_capable_write
mov ecx, 4
lea rdx, str._s:_want_read_n
call fcn.140ca84f0
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140caf960
or dword [rbx + 0x4d4], 0x1000
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140cb4b20
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
test byte [rdx + 0x1a8], 4
mov rbx, rcx
jne 0x140cb4b5b
mov edx, 0x5f
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140cb4b5b
mov r8d, 0x60
lea rdx, str.unknown
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140ca64b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x4ed]
mov esi, 2
xor r8d, r8d
mov edx, esi
lea rbx, [rax + rax*2]
shl rbx, 7
add rbx, qword [rcx]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x320], rax
cmp rax, 0xffffffffffffffff
je 0x140cb4de3
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x328], rax
cmp rax, 0xffffffffffffffff
je 0x140cb4de3
mov ecx, 0x7f000001
mov word [rbx + 0x2d8], si
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 0x2dc], eax
mov r8d, reloc.WS2_32.dll_recv
xor eax, eax
lea rdx, [rbx + 0x2d8]
mov word [rbx + 0x2da], ax
mov rcx, qword [rbx + 0x320]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140cb4de3
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x320]
lea rdx, [rbx + 0x2d8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140cb4de3
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_plat_pipe_create
mov ecx, 1
lea rdx, str._s:_failed_n
call fcn.140ca84f0
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140cb4e10
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
movsxd rax, edx
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov r8d, 1
mov byte [rsp + 0x48], 0
lea rdx, [rax + rax*2]
shl rdx, 7
add rcx, rdx
lea rdx, [rsp + 0x48]
lea rax, [rcx + 0x2d8]
mov rcx, qword [rcx + 0x328]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x140cb4e70
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140cb4eb5
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x1d8
ret
mov r8d, eax
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 1
call fcn.140ca84f0
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x1d8
ret
Function at 0x140cb8040
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov r14, r9
mov r15, r8
mov r12, rdx
test rdx, rdx
je 0x140cb8153
lea rdx, [0x140ec2834]
mov rcx, r12
mov ebx, esi
call fcn.140ceb420
mov rdi, rax
test rax, rax
jne 0x140cb8095
mov ebx, 1
mov eax, ebx
jmp 0x140cb8243
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.140ce3bec
test eax, eax
je 0x140cb80b3
mov ebx, 1
jmp 0x140cb813b
mov rcx, rdi
call fcn.140ce309c
movsxd rbp, eax
cmp rbp, 0xffffffffffffffff
jne 0x140cb80cb
mov ebx, 1
jmp 0x140cb813b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140ce3bec
test eax, eax
je 0x140cb80e3
mov ebx, 1
jmp 0x140cb813b
lea rdx, [rbp + 1]
xor ecx, ecx
lea r8, str.alloc_file
call fcn.140cae160
mov rsi, rax
test rax, rax
jne 0x140cb8104
mov ebx, 2
jmp 0x140cb813b
mov r9, rdi
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call fcn.140ceb6a4
cmp rax, 1
je 0x140cb8136
lea r8, str.lws_free
xor edx, edx
mov rcx, rsi
call fcn.140cae160
mov ebx, 1
jmp 0x140cb813b
mov qword [rsp + 0x58], rbp
mov r13, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140ce3838
test ebx, ebx
je 0x140cb8159
mov eax, ebx
jmp 0x140cb8243
mov rsi, r15
mov r13, r14
mov r8d, 5
lea rdx, [0x140e7b0bc]
mov rcx, rsi
lea rdi, [rsi + r13]
mov rbx, rsi
mov rbp, rsi
call fcn.140da20d0
test eax, eax
je 0x140cb81ba
lea r8, str.alloc_der
mov rdx, r14
xor ecx, ecx
call fcn.140cae160
mov rbx, rax
test rax, rax
je 0x140cb81ee
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.140da1510
mov rax, qword [rsp + 0x70]
mov qword [rax], rbx
mov rax, qword [rsp + 0x78]
mov qword [rax], r14
xor eax, eax
jmp 0x140cb8243
test r12, r12
jne 0x140cb81f5
lea rdx, [r14 + r14*2]
xor ecx, ecx
shr rdx, 2
lea r8, str.alloc_der
call fcn.140cae160
mov rsi, rax
test rax, rax
jne 0x140cb81f5
lea rdx, [0x140e7b0d4]
mov ecx, 1
call fcn.140ca84f0
mov eax, 1
jmp 0x140cb8243
add rbx, 5
cmp rbx, rdi
jae 0x140cb8213
nop
movzx eax, byte [rbx]
cmp al, 0xa
je 0x140cb8213
cmp al, 0x2d
je 0x140cb8218
inc rbx
cmp rbx, rdi
jb 0x140cb8200
cmp byte [rbx], 0x2d
jne 0x140cb822d
cmp rbx, rdi
jae 0x140cb822d
nop dword [rax]
cmp byte [rbx], 0xa
je 0x140cb8260
inc rbx
cmp rbx, rdi
jb 0x140cb8220
lea r8, str.lws_free
xor edx, edx
mov rcx, rsi
call fcn.140cae160
mov eax, 4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp rbx, rdi
jae 0x140cb822d
inc rbx
lea rdx, [rdi - 2]
cmp rdx, rbp
jbe 0x140cb827e
cmp byte [rdx], 0xa
je 0x140cb8283
dec rdx
cmp rdx, rbp
ja 0x140cb8271
cmp byte [rdx], 0xa
jne 0x140cb822d
test r12, r12
je 0x140cb828b
mov byte [rdx], 0
sub edx, ebx
cmp edx, 0xffffffff
je 0x140cb822d
mov r9d, r13d
mov r8, rsi
mov rcx, rbx
call fcn.140cc6ee0
mov ecx, eax
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov qword [rax], rsi
xor eax, eax
jmp 0x140cb8243
Function at 0x140cc5d30
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
test ecx, ecx
je 0x140cc5d64
add r8, 8
mov ecx, reloc.WS2_32.dll_socket
call fcn.140cc5fd0
cmp eax, 1
jne 0x140cc5d64
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov eax, eax
mov esi, 0xffffffff
cmp rax, rsi
jne 0x140cc5daf
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140cc5d9a
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
cmp rax, rsi
jne 0x140cc5daf
mov rsi, qword [rsp + 0x30]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov dword [rdi + 4], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140cc6230
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x140cc6273
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140ca84f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140cc6280
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x348], ebx
je 0x140cc6393
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140cc6306
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140ca84f0
mov eax, 1
jmp 0x140cc644c
imul eax, dword [rsi + 0x348], 0x3e8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x38], rbx
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], eax
imul eax, dword [rsi + 0x350], 0x3e8
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140cc6393
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x68]
lea rdx, str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
mov r8d, dword [rsp + 0x64]
mov ecx, 1
mov dword [rsp + 0x20], eax
call fcn.140ca84f0
mov eax, 1
jmp 0x140cc644c
lea rcx, [0x140e7cf8c]
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_getprotobyname]
test rax, rax
jne 0x140cc63ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getprotobyname__TCP___failed_with_error__falling_back_to_6__d_n
mov ecx, 2
mov r8d, eax
call fcn.140ca84f0
mov edx, 6
jmp 0x140cc63d2
movsx edx, word [rax + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140cc640c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.setsockopt_TCP_NODELAY_1_failed_with_error__d_n
mov ecx, 2
mov r8d, eax
call fcn.140ca84f0
lea r8, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
setne bl
test eax, eax
je 0x140cc644a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140ca84f0
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140cd9320
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140cc6800
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x268
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rax
inc ecx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x268
ret
Function at 0x140cc6b80
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebp, dword [rsp + 0x50]
xor edi, edi
mov rsi, rcx
test r8d, r8d
je 0x140cc6c78
mov ebx, 4
nop dword [rax + rax]
xor r10d, r10d
xor eax, eax
test r8d, r8d
je 0x140cc6bc8
movzx ecx, byte [rdx]
inc r10d
inc rdx
dec r8d
jmp 0x140cc6bd4
cmp rax, 3
jae 0x140cc6ca1
xor cl, cl
mov byte [rsp + rax + 0x40], cl
inc rax
cmp rax, 3
jl 0x140cc6bb5
cmp ebx, ebp
jge 0x140cc6c7f
movzx ecx, byte [rsp + 0x40]
movzx r11d, byte [rsp + 0x41]
mov eax, ecx
shr rax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [rax + rsi]
mov byte [r9], al
mov eax, r11d
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 1], al
cmp r10d, 1
jle 0x140cc6c58
and r11d, 0xf
shl r11d, 2
mov ecx, r11d
movzx r11d, byte [rsp + 0x42]
mov eax, r11d
shr rax, 6
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 2], al
add r9, 3
cmp r10d, 2
jle 0x140cc6c61
mov eax, r11d
and eax, 0x3f
movzx ecx, byte [rax + rsi]
jmp 0x140cc6c63
mov byte [r9 + 2], 0x3d
add r9, 3
mov cl, 0x3d
mov byte [r9], cl
add edi, 4
inc r9
add ebx, 4
test r8d, r8d
jne 0x140cc6bb0
lea eax, [rdi + 1]
cmp eax, ebp
jl 0x140cc6c86
mov eax, 0xffffffff
jmp 0x140cc6c8c
mov byte [r9], 0
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call fcn.140cd9448
int3
Function at 0x140cc7980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov r9, qword [rcx + 0x10]
xor r10d, r10d
mov rax, qword [rdx]
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov ebp, r10d
mov r8, qword [r9 + 0x18]
test r8, r8
jne 0x140cc79bb
mov rcx, qword [rcx]
mov r8d, dword [rcx + 0x89c]
mov rsi, qword [rbx + 0xf8]
mov ecx, r8d
mov rdx, qword [rsi + 0x130]
cmp rcx, rdx
cmovbe edx, r8d
mov ecx, edx
cmp rcx, rdi
cmovbe edi, edx
test edi, edi
jne 0x140cc79e6
xor eax, eax
jmp 0x140cc7bab
test byte [rsi + 0x124], 4
mov qword [rsp + 0x58], r14
mov r14, rax
jne 0x140cc7aad
movzx edx, byte [rsi + 0x141]
mov ecx, edx
and ecx, 3
movzx r8d, byte [rcx + rsi + 0x128]
lea rcx, [rdx + 1]
and ecx, 3
mov byte [rsp + 0x50], r8b
movzx r9d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 2]
and ecx, 3
mov byte [rsp + 0x51], r9b
movzx r11d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 1]
and ecx, 3
mov byte [rsp + 0x52], r11b
movzx edx, byte [rcx + rsi + 0x128]
mov ecx, edi
shr ecx, 2
mov byte [rsp + 0x53], dl
test ecx, ecx
je 0x140cc7a77
nop dword [rax + rax]
xor byte [rax], r8b
xor byte [rax + 1], r9b
xor byte [rax + 2], r11b
xor byte [rax + 3], dl
add rax, 4
sub ecx, 1
jne 0x140cc7a60
mov edx, edi
and edx, 3
je 0x140cc7a94
mov ebp, edx
movzx ecx, byte [rsp + r10 + 0x50]
inc r10
xor byte [rax], cl
lea rax, [rax + 1]
cmp r10, rdx
jl 0x140cc7a80
mov rcx, qword [rbx + 0xf8]
movzx eax, dil
add al, byte [rcx + 0x141]
and al, 3
mov byte [rcx + 0x141], al
mov esi, edi
add qword [r15], rsi
mov rax, qword [rbx + 0xf8]
sub qword [rax + 0x130], rsi
mov rcx, qword [rbx + 0xf8]
mov eax, dword [rcx + 0x124]
bt eax, 0xa
jae 0x140cc7b5a
bt eax, 0xb
jb 0x140cc7b5a
add rcx, 0x146
mov r8d, esi
mov rdx, r14
call fcn.140ca5ed0
test eax, eax
je 0x140cc7b02
lea r8, str.bad_utf8
mov r9d, 8
jmp 0x140cc7b36
mov rax, qword [rbx + 0xf8]
cmp qword [rax + 0x130], 0
jne 0x140cc7b5a
test byte [rax + 0x124], 1
je 0x140cc7b5a
cmp byte [rax + 0x146], 0
je 0x140cc7b5a
test ebp, ebp
jne 0x140cc7b5a
lea r8, str.partial_utf8
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x3ef
mov rcx, rbx
call fcn.140cc37a0
movsxd r8, edi
mov rdx, r14
mov ecx, 8
call fcn.140ca8650
mov eax, 0xffffffff
jmp 0x140cc7ba6
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140cc7b93
cmp dword [rbx + 0x4bc], 0
jne 0x140cc7b93
mov r9, qword [rbx + 0x428]
mov r8d, 6
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.140ca7dd0
test eax, eax
jne 0x140cc7b53
mov rax, qword [rbx + 0xf8]
and dword [rax + 0x124], 0xffffbfff
mov eax, edi
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x140ccee90
Capabilities:
Hash data using sha1

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rbp + 0x27], rax
xorps xmm0, xmm0
mov dword [rbp - 0x49], 0x67452301
xor eax, eax
mov dword [rbp - 0x45], 0xefcdab89
xor ebx, ebx
mov dword [rbp + 0x1b], eax
mov dword [rbp - 0x41], 0x98badcfe
mov r15, r8
mov dword [rbp - 0x3d], 0x10325476
mov rsi, rdx
mov dword [rbp - 0x39], 0xc3d2e1f0
mov r14, rcx
movups xmmword [rbp - 0x35], xmm0
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
test rdx, rdx
je 0x140ccef76
mov qword [rsp + 0xf8], rdi
nop dword [rax]
movzx ecx, byte [rbp + 0x17]
lea rdx, [rbx + r14]
and ecx, 0x3f
mov edi, 0x40
sub rdi, rcx
mov rax, rsi
sub rax, rbx
cmp rdi, rax
cmovae rdi, rax
lea rax, [rbp - 0x29]
add rcx, rax
mov r8, rdi
call fcn.140da1510
mov rax, qword [rbp - 0x31]
movzx edx, dil
add dl, byte [rbp + 0x17]
and dl, 0x3f
mov byte [rbp + 0x17], dl
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x31], rcx
test dl, 0x3f
jne 0x140ccef66
lea rcx, [rbp - 0x49]
call fcn.140ccf210
add rbx, rdi
cmp rbx, rsi
jb 0x140ccef10
mov rdi, qword [rsp + 0xf8]
lea rcx, [rbp - 0x49]
call fcn.140ccf040
movzx eax, byte [rbp - 0x3d]
movzx ecx, byte [rbp - 0x47]
mov byte [rbp - 0x4a], al
movzx eax, byte [rbp - 0x3c]
mov byte [rbp - 0x4b], al
movzx eax, byte [rbp - 0x3b]
mov byte [rbp - 0x4c], al
movzx eax, byte [rbp - 0x3a]
mov byte [rbp - 0x4d], al
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x4e], al
movzx eax, byte [rbp - 0x40]
mov byte [rbp - 0x4f], al
movzx eax, byte [rbp - 0x3f]
mov byte [rbp - 0x50], al
movzx eax, byte [rbp - 0x3e]
mov byte [rbp - 0x51], al
movzx eax, byte [rbp - 0x45]
mov byte [rbp - 0x52], al
movzx eax, byte [rbp - 0x44]
mov byte [rbp - 0x53], al
movzx eax, byte [rbp - 0x43]
mov byte [rbp - 0x58], cl
movzx ecx, byte [rbp - 0x46]
mov byte [rbp - 0x54], al
movzx eax, byte [rbp - 0x42]
mov byte [rbp - 0x59], cl
movzx ecx, byte [rbp - 0x36]
mov byte [rbp - 0x55], al
movzx eax, byte [rbp - 0x49]
mov byte [r15 + 0x10], cl
movzx ecx, byte [rbp - 0x37]
mov byte [rbp - 0x56], al
movzx eax, byte [rbp - 0x48]
mov byte [r15 + 0x11], cl
movzx ecx, byte [rbp - 0x38]
mov byte [rbp - 0x57], al
mov rax, r15
movdqa xmm0, xmmword [rbp - 0x59]
mov byte [r15 + 0x12], cl
movzx ecx, byte [rbp - 0x39]
movdqu xmmword [r15], xmm0
mov byte [r15 + 0x13], cl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0xb0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x140cd9af4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140cd9b3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140cd9b3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140cd9b3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140cd9b3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140cd9b3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140cd9b40
xor al, al
add rsp, 0x28
ret

Function at 0x140cda3b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140cda3ee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140cda3f3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140cda43c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140cda43c
dec r8
sub rdx, 1
jne 0x140cda422
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret