joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011daa0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x14011dafc
mov rdx, rax
call fcn.140134020
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x14011db14
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14011db1a
mov r14, rdi
mov rcx, rdi
lea r13, [rcx + rax]
cmp rdi, r13
je 0x14011dc11
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14011dbb6
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14011db9d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14011db92
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14011dbac
mov rcx, rbx
call fcn.140134170
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14011db60
inc r14
cmp r14, r13
jne 0x14011db30
cmp r15d, 0xfffffffa
jle 0x14011dc11
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14011dc09
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14011dbfe
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14011dc11
mov rcx, rbx
call fcn.140134170
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14011dc59
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14011dc45
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14011dc3d
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x14011dc50
mov r9b, 0x3d
mov rcx, rbx
call fcn.140134170
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14011dc20
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011e6c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14011e714
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14011e6f0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x140122791
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x140122778
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test al, al
jne 0x1401227ac
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x140122859
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x140122807
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1401227e0
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x140122825
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x140122837
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
jmp 0x14011e6c0
Function at 0x14011e740
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14011e7b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14011e780
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140260d10
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14011e7e0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14011e84f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14011e820
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140260d10
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14011e880
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.14011e740
test rax, rax
jne 0x14011e8bc
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260d10
add rsp, 0x30
pop rdi
ret
jns 0x14011e8de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x14011e8de
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260d10
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14011e918
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14011e8f0
mov rsi, qword [rsp + 0x50]
test rbx, rbx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260d10
add rsp, 0x30
pop rdi
ret
Function at 0x14011ef40
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x14011ef78
cmp ax, 0x17
jne 0x14011efed
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14011efed
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14011efd2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14012ed30
mov al, 1
jmp 0x14011efef
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140260d10
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14011f065
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14011ef40
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140260d10
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x14011f010
Function at 0x140122720
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14011e714
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14011e6f0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x140122791
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x140122778
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test al, al
jne 0x1401227ac
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x140122859
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x140122807
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1401227e0
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x140122825
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x140122837
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
jmp 0x14011e6c0
Function at 0x140122880
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x1401228b9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1401228e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1401228c2
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14011f065
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14011ef40
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140260d10
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x14011f010
Function at 0x1401287e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rcx + 0x410]
mov rbp, rcx
mov r14, qword [rdx]
mov rbx, rdx
mov qword [rsp + 0x20], rcx
add rcx, 0x418
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140128833
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rcx, rdi
mov qword [rsp + 0x90], r15
call fcn.140221270
lea rcx, [rbp + 0x418]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rdi, rdi
je 0x14012895a
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r14d
call fcn.1401435e0
xor r9d, r9d
mov rcx, rax
mov r15, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.1401467f0
mov r8, r15
mov rdx, r15
mov rcx, rdi
call fcn.140221aa0
cmp qword [rbp + 0x20], 0x10
lea r9, [rbp + 8]
jb 0x1401288b3
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call fcn.140220490
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1401289b0
cmp al, 1
jne 0x140128908
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 0x66]
call fcn.1401467f0
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
mov qword [rbx + 8], rdi
jmp 0x140128986
mov rcx, rdi
call fcn.140221d70
lea rcx, [rbp + 0x418]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14012892a
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rcx, rdi
call fcn.140220940
lea rcx, [rbp + 0x418]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14012896e
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140128984
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
xor al, al
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140260d10
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140128da0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x140128de4
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140128e00
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140128e24
cmp qword [rsi + 0x18], 0x10
jb 0x140128e0a
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140128e29
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.1401424d0
mov r12, rax
test rax, rax
je 0x140128f12
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.140144130
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x140128f05
nop
test r14b, r14b
jne 0x140128f00
mov edx, ebx
mov rcx, r12
call fcn.140144360
mov rsi, rax
cmp dword [rax], edi
jne 0x140128eea
mov rcx, qword [rax + 8]
call fcn.1400d9a40
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.140142870
movsxd r8, eax
cmp edi, 2
je 0x140128ed9
cmp edi, 7
jne 0x140128eea
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140128ed4
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140128eea
mov r13b, 1
jmp 0x140128eea
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.140128f40
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x140128e70
test r14b, r14b
jne 0x140128f00
test r13b, r13b
je 0x140128f05
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.1401445f0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140260d10
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012e970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14012e9a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14012e990
ret
Function at 0x140130450
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x69], rsi
mov r15, qword [rbp + 0x7f]
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 0x29], 1
cmp qword [rdx + 0x10], r12
je 0x1401304bc
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1401304b2
mov rbx, qword [rdx]
mov qword [rbp - 0x31], 4
jmp 0x1401304d7
cmp qword [rcx + 0x10], rbx
je 0x1401304cf
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1401304cf
mov rbx, qword [rcx]
mov dword [rbp - 0x2d], r9d
mov dword [rbp - 0x31], r12d
mov edx, r8d
lea rcx, [rbp - 0x51]
call fcn.14011d270
nop
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rdx, qword [rbp - 0x51]
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x31]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140130605
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x1401305fb
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140130566
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401305ea
test r14b, r14b
je 0x140130590
mov dword [rbp - 0x59], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1401305a7
mov qword [rbp - 0x59], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1401305cf
mov dword [rbp - 0x59], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.14011ec00
test al, al
jne 0x14013064d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140130520
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.14012f7b0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140130628
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140260d10
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.14012f7b0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14013067b
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x14013062f
Function at 0x140137ac0
Capabilities:
Send icmp echo request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
jb 0x140137af1
mov rbx, qword [rdx]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x232
mov esi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
cmp rdi, 0xffffffffffffffff
jne 0x140137b30
test rax, rax
je 0x140137b6d
mov dword [rsp + 0x38], 0x3e8
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x232
mov r9d, 0x20a
mov qword [rsp + 0x28], rbx
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140260d10
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140139f40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2f]
sub rsp, 0x100
mov rax, qword [0x1403dc468]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp + 0x17], rdx
add rcx, 0x290
call fcn.14012f070
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xor esi, esi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
lea r8d, [rsi + 5]
lea rdx, str.Score
lea rcx, [rbp - 0x31]
call fcn.14011f6d0
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea rcx, [rbx + 0x2b0]
lea rdx, [rbp - 0x31]
call fcn.14012f070
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], rsi
lea r8d, [rsi + 4]
lea rdx, str.Ping
lea rcx, [rbp - 0x51]
call fcn.14011f6d0
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0x2d0]
lea rdx, [rbp - 0x51]
call fcn.14012f070
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x61], rsi
mov qword [rbp - 0x59], rsi
lea r8d, [rsi + 5]
lea rdx, str.Speed
lea rcx, [rbp - 0x71]
call fcn.14011f6d0
lea rax, [rbp - 0x71]
mov qword [rsp + 0x30], rax
lea rcx, [rbx + 0x2f0]
lea rdx, [rbp - 0x71]
call fcn.14012f070
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rbp - 0x79], rsi
lea r8d, [rsi + 0xb]
lea rdx, str.CountryLong
lea rcx, [rsp + 0x40]
call fcn.14011f6d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rbx + 0x310]
lea rdx, [rsp + 0x40]
call fcn.14012f070
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
lea r8d, [rsi + 0xc]
lea rdx, str.CountryShort
lea rcx, [rbp - 0x11]
call fcn.14011f6d0
lea rcx, [rbx + 0x330]
lea rdx, [rbp - 0x11]
call fcn.14012f070
lea rcx, [rbp - 0x11]
call fcn.14012f7b0
nop
lea rcx, [rsp + 0x40]
call fcn.14012f7b0
nop
lea rcx, [rbp - 0x71]
call fcn.14012f7b0
nop
lea rcx, [rbp - 0x51]
call fcn.14012f7b0
nop
lea rcx, [rbp - 0x31]
call fcn.14012f7b0
nop
mov rcx, rdi
call fcn.14012f7b0
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140260d10
mov rbx, qword [rsp + 0x130]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret