joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400122b0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movdqa xmm0, xmmword [rcx]
mov rbx, qword [rsp + 0x28]
mov edi, dword [rsp + 0x30]
mov r10, rdx
mov r11, rcx
movdqa xmm2, xmmword [rbx]
pxor xmm0, xmm2
movdqa xmmword [rcx], xmm0
movdqa xmm1, xmmword [rdx]
pxor xmm1, xmm2
movdqa xmmword [rdx], xmm1
movdqa xmm0, xmmword [r8]
pxor xmm0, xmm2
movdqa xmmword [r8], xmm0
movdqa xmm1, xmmword [r9]
pxor xmm1, xmm2
movdqa xmmword [r9], xmm1
cmp edi, 1
jbe 0x140012359
lea rcx, [rbx + 0x10]
lea edx, [rdi - 1]
nop dword [rax]
movdqa xmm2, xmmword [rcx]
movdqa xmm0, xmmword [r11]
add rcx, 0x10
dec rdx
aesenc xmm0, xmm2
movdqa xmmword [r11], xmm0
movdqa xmm1, xmmword [r10]
aesenc xmm1, xmm2
movdqa xmmword [r10], xmm1
movdqa xmm0, xmmword [r8]
aesenc xmm0, xmm2
movdqa xmmword [r8], xmm0
movdqa xmm1, xmmword [r9]
aesenc xmm1, xmm2
movdqa xmmword [r9], xmm1
jne 0x140012310
movdqa xmm0, xmmword [r11]
mov rax, rdi
mov rdi, qword [rsp + 0x10]
add rax, rax
movdqa xmm2, xmmword [rbx + rax*8]
mov rbx, qword [rsp + 8]
aesenclast xmm0, xmm2
movdqa xmmword [r11], xmm0
movdqa xmm1, xmmword [r10]
aesenclast xmm1, xmm2
movdqa xmmword [r10], xmm1
movdqa xmm0, xmmword [r8]
aesenclast xmm0, xmm2
movdqa xmmword [r8], xmm0
movdqa xmm1, xmmword [r9]
aesenclast xmm1, xmm2
movdqa xmmword [r9], xmm1
ret

Function at 0x140016940
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400169a1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14001699b
shr ax, 8
cmp al, 2
jne 0x14001699b
call fcn.140017370
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x1d8
ret
Function at 0x14001ade0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov rdi, rcx
lea r8, [rsp + 0x50]
mov rcx, qword [rsi + 0xb8]
lea rdx, str.__45_0123456789abcdefABCDEF:.__c
call fcn.140055290
xor ebp, ebp
cmp eax, 1
jne 0x14001ae5d
cmp byte [rsp + 0x50], 0x5d
jne 0x14001ae5d
inc qword [rsi + 0xb8]
mov rcx, qword [rsi + 0xb8]
lea edx, [rbp + 0x5d]
mov dword [rsi + 0x384], eax
call fcn.1400525e8
mov rbx, rax
test rax, rax
je 0x14001aea4
inc rbx
mov byte [rax], bpl
cmp byte [rbx], 0x3a
je 0x14001aea4
mov ebx, ebp
jmp 0x14001aea4
mov rdx, qword [rsi + 0xb8]
lea r8, [rsp + 0x58]
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_pton
test eax, eax
jle 0x14001ae90
lea rdx, str.IPv6_numerical_address_used_in_URL_without_brackets
mov rcx, rdi
call fcn.1400231d0
mov eax, 3
jmp 0x14001aff8
mov rcx, qword [rsi + 0xb8]
mov edx, 0x3a
call fcn.140053da4
mov rbx, rax
cmp dword [rdi + 0x1f0], ebp
je 0x14001b018
cmp dword [rdi + 0x88d0], ebp
je 0x14001b018
movzx eax, word [rdi + 0x1f0]
mov dword [rsi + 0xec], eax
test rbx, rbx
je 0x14001aed1
mov byte [rbx], bpl
cmp dword [rsi + 0x378], ebp
je 0x14001aff6
xor eax, eax
mov byte [rsp + 0x68], bpl
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
cmp dword [rsi + 0x3c8], eax
je 0x14001af33
cmp dword [rdi + 0x464], eax
je 0x14001af08
lea r9d, [rax + 0x41]
jmp 0x14001af1d
cmp dword [rdi + 0x46c], ebp
mov eax, 0x44
mov r9d, 0x49
cmovne r9d, eax
lea r8, str._type_c
lea rcx, [rsp + 0x68]
mov edx, recv
call sym.apple.exe_curl_msnprintf
cmp dword [rdi + 0x8a78], ebp
mov eax, dword [rsi + 0x384]
lea r8, [0x14007fc66]
mov r9, r8
lea rcx, [0x14007fc64]
lea rdx, [0x140071c5c]
cmovne r9, rcx
test eax, eax
mov rcx, r8
cmovne rcx, rdx
lea rax, [rsp + 0x68]
lea rdx, [0x140071c58]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x8a70]
cmovne r8, rdx
mov rdx, qword [rsi + 0x3e8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsi + 0xec]
mov rdx, qword [rdx]
mov qword [rsp + 0x30], r9
mov r9, qword [rsi + 0xb8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea rcx, str._s:___s_s_s:_hu_s_s_s
call sym.apple.exe_curl_maprintf
mov rbx, rax
test rax, rax
jne 0x14001afc3
lea eax, [rbx + 0x1b]
jmp 0x14001aff8
cmp dword [rdi + 0x708], ebp
je 0x14001afe5
mov rcx, qword [rdi + 0x700]
call qword [case.0x1400292fb.0]
mov qword [rdi + 0x700], rbp
mov dword [rdi + 0x708], ebp
mov qword [rdi + 0x700], rbx
mov dword [rdi + 0x708], 1
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140051c70
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x14001aff6
lea rbp, [rbx + 1]
lea rdx, [rsp + 0x68]
mov r8d, 0xa
mov rcx, rbp
call fcn.140055748
cmp eax, 0xffff
ja 0x14001b059
mov byte [rbx], 0
cmp qword [rsp + 0x68], rbp
je 0x14001aff6
mov ecx, eax
call fcn.1400276a0
movzx r11d, ax
mov dword [rsi + 0xec], r11d
jmp 0x14001aff6
lea rdx, str.Port_number_out_of_range
mov rcx, rdi
call fcn.1400231d0
mov eax, 3
jmp 0x14001aff8
Function at 0x140022d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
movsxd rcx, ecx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140022d9e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140022f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x140022f63
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x140022faa
cmp edx, 2
jg 0x140022faa
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140072630]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.140054720
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.140054720
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140022fc0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xe0
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [rcx + 0x458], 0
mov rax, qword [rsp + 0x130]
mov r12, r9
mov rbp, r8
mov esi, edx
mov rbx, rcx
je 0x1400230ee
test rax, rax
je 0x1400230ee
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1400230ee
mov ecx, esi
lea r9, str.Data
dec ecx
je 0x140023047
dec ecx
je 0x140023037
dec ecx
je 0x14002304e
dec ecx
je 0x14002303e
jmp 0x1400230ee
lea r9, str.Header
lea rax, [0x14007265c]
jmp 0x140023055
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
lea rcx, [rsp + 0x30]
mov edx, 0xa0
mov qword [rsp + 0x20], rax
call sym.apple.exe_curl_msnprintf
mov r10, qword [rbx + 0x268]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
test r10, r10
je 0x1400230b8
mov rax, qword [rbx + 0x1b8]
lea r9, [rcx - 1]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x1400230ee
jmp 0x1400230fe
mov r9, qword [rbx + 0x1b0]
mov edx, 2
lea rcx, [0x140072630]
lea r8d, [rdx - 1]
call fcn.140054720
mov r9, qword [rbx + 0x1b0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.140054720
mov r9, r12
mov r8, rbp
mov edx, esi
mov rcx, rbx
call fcn.140022f20
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140051c70
add rsp, 0xe0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400233c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rsi, rcx
movsxd rcx, dword [rcx + rax*8 + 0x1a8]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_send]
mov rbp, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rbp], 0
cmp rdi, 0xffffffffffffffff
jne 0x14002346b
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140023439
mov dword [rbp], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, eax
mov rcx, rsi
call fcn.1400472c0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400231d0
mov r11, qword [rsi]
mov rax, rdi
mov dword [r11 + 0x88cc], ebx
mov dword [rbp], gethostname
jmp 0x140023424
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140024530
Capabilities:
Convert ip address from string

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rdx, rcx
lea r8, [rsp + 0x20]
mov ecx, 2
call sub.WS2_32.dll_inet_pton
test eax, eax
jne 0x140024585
lea r8, [rsp + 0x28]
lea ecx, [rax + 0x17]
mov rdx, rbx
call sub.WS2_32.dll_inet_pton
test eax, eax
jne 0x140024585
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x40
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x40
pop rbx
ret

Function at 0x140025d40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x6c4], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140025daf
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.140023120
jmp 0x140025e3e
mov ecx, dword [rbx + 0x6c8]
mov dword [rsp + 0x58], 1
call fcn.1400276c0
mov ecx, dword [rbx + 0x6cc]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.1400276c0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, recv
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140025e3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.140023120
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140051c70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400265f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x1400267d4
cmp dword [rcx + 0x370], 0
jne 0x1400267cc
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140026685
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400472c0
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400231d0
jmp 0x1400267d4
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.140054b20
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400266e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400472c0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400231d0
jmp 0x1400267d4
lea r8, [rdi + 0x120]
lea rdx, [rdi + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.140026560
test eax, eax
jne 0x14002672d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400472c0
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400231d0
jmp 0x1400267d4
mov rax, qword [rdi + 0xf0]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0xf8]
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x78], rax
mov rax, qword [rdi + 0x100]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x108]
mov qword [rdi + 0x88], rax
mov rax, qword [rdi + 0x110]
mov qword [rdi + 0x90], rax
mov eax, dword [rdi + 0x118]
mov dword [rdi + 0x98], eax
movzx eax, word [rdi + 0x11c]
mov word [rdi + 0x9c], ax
call fcn.140026560
test eax, eax
jne 0x1400267cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400472c0
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400231d0
jmp 0x1400267d4
mov rcx, rdi
call fcn.140026470
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140051c70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140026800
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002686b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.1400472c0
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.140023120
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140023120
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140026890
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1400945b8]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x140026968
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x9c
call fcn.140054b20
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x40], 0x9c
mov dword [rsp + 0x44], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x40]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x14002695c
mov dword [0x1400945b8], 2
jmp 0x1400269bf
mov dword [0x1400945b8], 1
jmp 0x14002696d
cmp eax, 2
je 0x1400269bf
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14002699e
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x1400269bf
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140051c70
add rsp, 0xf0
pop rbx
ret
Function at 0x140026a00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x860]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140026a7c
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140026a33
cmp qword [rcx + 0x78], rax
je 0x140026a7c
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
test rax, rax
je 0x140026a4e
lea rcx, [rax + 0xc0]
jmp 0x140026a59
mov rcx, qword [rcx + 0x78]
add rcx, 0xc0
lea r8, [0x1400269e0]
lea rdx, [rsp + 0x20]
call fcn.140045cb0
cmp dword [rsp + 0x28], 0
jne 0x140026a90
mov qword [rdi + 0x860], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x140026a98
mov qword [rsi], rbx
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140026ab6
mov rcx, rbx
call fcn.140018a30
test eax, eax
jne 0x140026ad8
jmp 0x140026a7c
cmp rdi, 0xffffffffffffffff
je 0x140026ad8
mov r9d, 2
lea rdx, [rsp + 0x40]
movsxd rcx, edi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140026a7c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1400276f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14005de5c
cdqe
add rsp, 0x28
ret
Function at 0x140029360
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400293bc
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400293cc
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14002cc00
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r14, r9
mov qword [r9], r15
lea r9, [rsp + 0x68]
mov edi, r15d
mov r13d, r15d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14002cdc3
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14002cda9
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov eax, dword [rbx + 4]
cmp eax, 2
jne 0x14002cc5d
lea ebp, [rax + 0xe]
jmp 0x14002cc69
cmp eax, 0x17
jne 0x14002cd11
lea ebp, [rax + 5]
cmp qword [rbx + 0x20], r15
je 0x14002cd11
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14002cd11
cmp rax, rbp
jb 0x14002cd11
mov ecx, 0x30
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14002cd4c
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x28], r15
call qword [section..data]
mov qword [rsi + 0x20], rax
test rax, rax
je 0x14002cd3b
mov rdx, qword [rbx + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140052090
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002ccfe
call qword [case.0x14002440c.0]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x14002cd20
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x14002cd0e
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14002cc50
jmp 0x14002cd52
mov rcx, qword [rsi + 0x20]
mov r12d, 8
call qword [case.0x1400292fb.0]
mov rcx, rsi
call qword [case.0x1400292fb.0]
jmp 0x14002cd52
mov rcx, rsi
mov r12d, 8
call qword [case.0x1400292fb.0]
jmp 0x14002cd52
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14002cd6c
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14002cda4
test rdi, rdi
je 0x14002cd9f
mov rcx, qword [rdi + 0x20]
call qword [case.0x1400292fb.0]
mov rcx, qword [rdi + 0x18]
call qword [case.0x1400292fb.0]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [case.0x1400292fb.0]
mov rdi, rbx
test rbx, rbx
jne 0x14002cd76
mov rdi, r15
jmp 0x14002cdb8
test rdi, rdi
jne 0x14002cdb8
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov qword [r14], rdi
mov eax, r12d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002cf90
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, edx
mov rbx, rcx
mov rdx, rcx
mov r12d, 2
lea r8, [rsp + 0x20]
mov ecx, r12d
call sub.WS2_32.dll_inet_pton
test eax, eax
jle 0x14002d05b
lea ecx, [r12 + 0x3e]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002d001
mov rcx, rbx
call qword [case.0x14002440c.0]
mov rsi, rax
test rax, rax
jne 0x14002d00a
mov rcx, rdi
call qword [case.0x1400292fb.0]
xor ebx, ebx
mov eax, ebx
jmp 0x14002d0c4
mov eax, dword [rsp + 0x20]
lea rcx, [rdi + 0x20]
mov dword [rcx], eax
mov dword [rdi + 0x10], 0x40002
lea rax, [rdi + 0x30]
xor ebx, ebx
mov edx, ebp
mov qword [rdi + 8], rbx
mov qword [rdi], rsi
mov qword [rdi + 0x18], rax
mov qword [rax], rcx
mov rax, qword [rdi + 0x18]
mov rcx, rdi
mov qword [rax + 8], rbx
call fcn.14002cde0
mov rcx, rsi
mov rbx, rax
call qword [case.0x1400292fb.0]
mov rcx, rdi
call qword [case.0x1400292fb.0]
mov rax, rbx
jmp 0x14002d0c4
mov r12d, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x28]
mov rdx, rbx
mov ecx, r12d
call sub.WS2_32.dll_inet_pton
test eax, eax
jle 0x14002d0c2
lea ecx, [r12 + 0x29]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002d001
mov rcx, rbx
call qword [case.0x14002440c.0]
mov rsi, rax
test rax, rax
je 0x14002cff8
mov rax, qword [rsp + 0x28]
lea rcx, [rdi + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov dword [rdi + 0x10], 0x100017
jmp 0x14002d01b
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140051c70
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x14002d180
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x108
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r13, qword [rcx]
xor ebp, ebp
mov rsi, rdx
mov dword [r9], ebp
mov edx, dword [rcx + 0x3f0]
mov edi, r8d
dec edx
mov r12, rcx
je 0x14002d1d7
dec edx
mov ebx, ebp
jne 0x14002d1c6
lea ebx, [rbp + 0x17]
call fcn.14002d0f0
mov ecx, 2
test eax, eax
cmove ebx, ecx
jmp 0x14002d1de
mov ecx, 2
mov ebx, ecx
xor eax, eax
lea r8, [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, dword [r12 + 0xa4]
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x30], eax
call sub.WS2_32.dll_inet_pton
cmp eax, 1
je 0x14002d237
lea r8, [rsp + 0x70]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_pton
cmp eax, 1
jne 0x14002d23f
mov dword [rsp + 0x28], 4
test edi, edi
je 0x14002d261
lea r8, [0x140073f64]
lea rcx, [rsp + 0x58]
mov r9d, edi
mov edx, recv
call sym.apple.exe_curl_msnprintf
lea rbp, [rsp + 0x58]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, rbp
mov rcx, rsi
call fcn.14002cc00
test eax, eax
je 0x14002d293
lea rdx, str.getaddrinfo_3__failed_for__s:_d_n
mov r9d, edi
mov r8, rsi
mov rcx, r13
call fcn.140023120
xor eax, eax
jmp 0x14002d298
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x108
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret