joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aaa20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 8]
mov rax, qword [rcx + 0x50]
mov rbx, rcx
lea rdx, [rax + r8*8]
mov byte [r8 + rbx], 0x80
inc r8
rol rdx, 0x20
mov rsi, r9
mov rdi, rdx
mov rax, rdx
shl rdx, 0x10
shl rax, 0x10
shr rdi, 0x10
xor rdi, rax
movabs rax, 0xffff0000ffff
and rdi, rax
xor rdi, rdx
mov rcx, rdi
mov rax, rdi
shl rdi, 8
shr rcx, 8
shl rax, 8
xor rcx, rax
movabs rax, 0xff00ff00ff00ff
and rcx, rax
xor rcx, rdi
mov qword [rsp + 0x30], rcx
cmp r8, 8
jae 0x1400aaab2
mov ecx, 8
lea rdi, [r8 + rbx]
sub rcx, r8
xor eax, eax
rep stosb byte [rdi], al
mov r8d, 1
mov rdx, rbx
mov rcx, rbx
call fcn.1400a1ec0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400a4f60
xor eax, eax
lea r8, [rbx + 0x10]
nop word [rax + rax]
mov edi, dword [r8]
inc rax
lea r8, [r8 + 4]
rol edi, 0x10
mov edx, edi
mov ecx, edi
shl edi, 8
shr edx, 8
shl ecx, 8
xor edx, ecx
and edx, 0xff00ff
xor edx, edi
mov dword [rsi + rax*4 - 4], edx
cmp rax, 0x10
jb 0x1400aaae0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ac730
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x80]
xor edx, edx
and ecx, 0x3f
mov byte [rcx + rbx], 0x80
inc ecx
cmp ecx, 0x20
jbe 0x1400ac77f
mov r8d, 0x40
sub r8d, ecx
add rcx, rbx
call sub.MSVCR120.dll_memset
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.1400aabf0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
jmp 0x1400ac790
mov r8d, 0x20
sub r8d, ecx
add rcx, rbx
call sub.MSVCR120.dll_memset
xor eax, eax
movabs r10, 0xffff0000ffff
movabs r9, 0xff00ff00ff00ff
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov r8, qword [rbx + 0x80]
mov rcx, r8
shr rcx, 0x3d
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shl rdx, 8
shr rcx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
mov qword [rbx + 0x30], rcx
lea rcx, [r8*8]
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shl rdx, 8
shr rcx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x38], rcx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400aabf0
Function at 0x1400ac9c0
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x80]
xor edx, edx
and ecx, 0x3f
mov byte [rcx + rbx], 0x80
inc ecx
cmp ecx, 0x20
jbe 0x1400aca0f
mov r8d, 0x40
sub r8d, ecx
add rcx, rbx
call sub.MSVCR120.dll_memset
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.1400ab8e0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
jmp 0x1400aca20
mov r8d, 0x20
sub r8d, ecx
add rcx, rbx
call sub.MSVCR120.dll_memset
xor eax, eax
movabs r10, 0xffff0000ffff
movabs r9, 0xff00ff00ff00ff
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov r8, qword [rbx + 0x80]
mov rcx, r8
shr rcx, 0x3d
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shl rdx, 8
shr rcx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
mov qword [rbx + 0x30], rcx
lea rcx, [r8*8]
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shl rdx, 8
shr rcx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x38], rcx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ab8e0

Function at 0x1400acd40
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140264330]
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 0x1400acda1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400acd9b
shr ax, 8
cmp al, 2
jne 0x1400acd9b
call fcn.1400bd020
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401bb2c0
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.1401bb2c0
add rsp, 0x1d8
ret
Function at 0x1400acfd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov qword [rsp + 0x58], rbp
mov rsi, rcx
mov edi, r15d
mov ebx, r15d
mov qword [rsp + 0x60], r14
test edi, edi
jne 0x1400ad158
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ebp, edx
shr ebp, 6
imul eax, ebp, 0x3e8
sub ecx, eax
imul r14d, ecx, 0x3e8
test rsi, rsi
je 0x1400ad147
lea rcx, [rsp + 0x24]
mov rdx, rsi
call fcn.1400adc60
mov edi, eax
test eax, eax
jne 0x1400acff3
mov eax, dword [rsp + 0x24]
cmp eax, 0xffffffff
je 0x1400ad151
test eax, eax
jne 0x1400ad0ec
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
mov r9d, edx
shr r9d, 6
mov dword [rsp + 0x28], r9d
imul ecx, r9d, 0x3e8
sub r8d, ecx
sub r9d, ebp
imul eax, r8d, 0x3e8
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x28]
mov eax, 0x10624dd3
shr rcx, 0x20
sub ecx, r14d
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, r9d, 0x3e8
add edx, eax
cmp edx, 0xa
jg 0x1400ad0ec
inc ebx
cmp ebx, 2
jle 0x1400ad0ef
cmp ebx, 0xa
jge 0x1400ad0dd
lea ecx, [rbx - 1]
mov eax, 1
shl eax, cl
test eax, eax
je 0x1400ad0ef
jns 0x1400ad0e2
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x1400ad0ef
mov eax, 0x3e8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ad0ef
mov ebx, r15d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400af050
mov edi, eax
test eax, eax
jne 0x1400acff3
cmp dword [rsp + 0x20], r15d
jne 0x1400acff3
cmp dword [rsi], 0xbab1e
jne 0x1400acff3
mov rcx, qword [rsi + 0x20]
cmp qword [rcx + 0x18], r15
je 0x1400acff3
mov rdx, qword [rcx]
xor r8d, r8d
mov rbp, qword [rdx]
call fcn.1400c1910
test rbp, rbp
je 0x1400acff3
mov eax, dword [rbp + 0x10]
jmp 0x1400ad168
mov edi, 1
jmp 0x1400acff3
mov eax, 0x38
jmp 0x1400ad168
mov eax, 0x2b
mov ecx, 0x1b
cmp edi, 3
cmove eax, ecx
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1400b5290
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r9d, dword [rcx + 0x338]
xor edi, edi
mov rbx, rdx
test r9d, r9d
mov rbp, rcx
mov ecx, dword [rcx + 0x33c]
mov edx, edi
mov r15d, 1
mov r14, r8
cmovg edx, r15d
mov esi, 0x493e0
test ecx, ecx
jle 0x1400b52db
or edx, 2
dec edx
je 0x1400b52f6
dec edx
je 0x1400b52f2
dec edx
jne 0x1400b52f9
mov esi, ecx
cmp r9d, ecx
cmovl esi, r9d
jmp 0x1400b52f9
mov esi, ecx
jmp 0x1400b52f9
mov esi, r9d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov r9d, edx
shr r9d, 6
mov dword [rsp + 0x40], r9d
imul eax, r9d, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov rcx, qword [rbp + 0x7d0]
mov dword [rsp + 0x44], eax
mov r8, qword [rsp + 0x40]
mov rax, rcx
shr rax, 0x20
shr r8, 0x20
sub ecx, r9d
sub r8d, eax
mov eax, 0x10624dd3
imul r8d
imul r8d, ecx, 0x3e8
mov rcx, 0xffffffffffffffff
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub r8d, edx
add esi, r8d
cmove esi, ecx
cmp dword [rbx + 0x2ac], edi
je 0x1400b537d
mov dword [r14], edi
jmp 0x1400b54ba
mov rax, qword [rbx + 0xb8]
mov qword [rbx + 0xc0], rax
nop dword [rax + rax]
cmp byte [rax + rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1400b5390
cmp byte [rax + rcx - 1], 0x2e
jne 0x1400b53a7
mov byte [rax + rcx - 1], dil
mov rcx, qword [rbx + 0xb8]
movzx eax, byte [rcx]
test al, al
je 0x1400b53d5
lea rcx, [rcx + 1]
and al, 0x80
jne 0x1400b53c6
movzx eax, byte [rcx]
test al, al
jne 0x1400b53b5
jmp 0x1400b53d5
lea rdx, str.IDN_support_not_present__cant_parse_Unicode_domains_n
mov rcx, rbp
call fcn.1400b99e0
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400b5453
cmp byte [rax], dil
je 0x1400b5453
lea r8, [rbx + 0xc8]
mov rcx, rbp
call fcn.1400b35f0
mov qword [rsp + 0x40], rdi
test esi, esi
js 0x1400b54ac
mov r8d, dword [rbx + 0xe8]
mov rdx, qword [rbx + 0xd8]
lea r9, [rsp + 0x40]
mov rcx, rbx
call fcn.1400b83e0
cmp eax, r15d
jne 0x1400b542a
mov dword [r14], r15d
jmp 0x1400b54b1
cmp eax, 0xfffffffe
je 0x1400b54ac
cmp qword [rsp + 0x40], rdi
jne 0x1400b54b1
mov r8, qword [rbx + 0xe0]
lea rdx, str.Couldnt_resolve_proxy__s
mov rcx, rbp
call fcn.1400b9ac0
mov edi, 5
jmp 0x1400b54b1
mov r8d, dword [rbx + 0xec]
mov qword [rsp + 0x40], rdi
mov dword [rbx + 0xe8], r8d
test esi, esi
js 0x1400b54ac
mov rdx, qword [rbx + 0xb8]
lea r9, [rsp + 0x40]
mov rcx, rbx
call fcn.1400b83e0
cmp eax, r15d
je 0x1400b5422
cmp eax, 0xfffffffe
je 0x1400b54ac
cmp qword [rsp + 0x40], rdi
jne 0x1400b54b1
mov r8, qword [rbx + 0xc0]
lea rdx, str.Couldnt_resolve_host__s
mov rcx, rbp
call fcn.1400b9ac0
mov edi, 6
jmp 0x1400b54b1
mov edi, 0x1c
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x50], rax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400b6020
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
mov dword [rsp + 0x30], edx
imul r8d, edx, 0x3e8
mov rdx, qword [rdi + 0x7d0]
sub r9d, r8d
imul eax, r9d, 0x3e8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400ba310
movsd qword [rdi + 0x798], xmm0
mov rax, qword [rbx + 0x320]
test byte [rax + 0x78], 0x10
je 0x1400b60a3
mov dword [rsi], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rbp
xor ebp, ebp
mov dword [rsi], ebp
mov dword [rbx + 0x300], ebp
cmp qword [rdi + 0x618], rbp
je 0x1400b60fd
mov rcx, qword [rbx + 0x350]
test rcx, rcx
je 0x1400b60d4
call qword [sub.MSVCR120.dll_free]
mov qword [rbx + 0x350], rbp
mov rdx, qword [rdi + 0x618]
lea rcx, str.User_Agent:__s_r_n
call fcn.1400be5e0
mov qword [rbx + 0x350], rax
test rax, rax
jne 0x1400b60fd
mov eax, 0x1b
jmp 0x1400b624f
mov dword [rdi + 0xc0], ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x194], rax
cmp qword [rbx + 0x1a8], 0xffffffffffffffff
jne 0x1400b6164
mov dword [rbx + 0x2cc], ebp
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
call fcn.1400b7be0
test eax, eax
je 0x1400b6215
jmp 0x1400b624f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
mov rdx, qword [rdi + 0x7d0]
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400ba310
movsd qword [rdi + 0x7a0], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
mov rdx, qword [rdi + 0x7d0]
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400ba310
mov rcx, rbx
movsd qword [rdi + 0x7a8], xmm0
mov dword [rbx + 0x2cc], 1
mov dword [rsi], 1
mov rdx, qword [rbx + 0x1a8]
call fcn.1400b7020
mov rcx, rbx
call fcn.1400b34d0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x194], rax
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b64c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
xor edi, edi
mov dword [rcx + 0x2f8], edi
mov dword [rcx + 0x2c8], edi
mov dword [rbx + 0x8ac8], edi
cmp dword [rbx + 0x4e4], edi
je 0x1400b64f5
mov dword [rbx + 0x3f0], 5
jmp 0x1400b6508
cmp dword [rbx + 0x3f0], 5
jne 0x1400b6508
mov dword [rbx + 0x3f0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xd8], 1
mov qword [rbx + 0xb0], rdi
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x30], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0xc8], rax
mov qword [rbx + 0xd0], rax
lea rax, [rbx + 0x880]
mov qword [rbx + 0x1b0], rax
lea rax, [rbx + 0x4881]
mov qword [rbx + 0x1b8], rax
mov rax, qword [rbx + 0x870]
mov dword [rbx + 0x1d0], edi
mov qword [rbx + 0xe8], rax
xor eax, eax
mov qword [rbx + 0x85c], rax
mov qword [rbx + 0x760], rdi
mov qword [rbx + 0x758], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b6640
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140264330]
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 + 0x6e4], 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 0x1400b66af
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.1400b99e0
jmp 0x1400b6738
mov eax, dword [rbx + 0x6e8]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
btr eax, 0x1f
lea r8, [rsp + 0x58]
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x98000004
mov dword [rsp + 0x58], 1
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov eax, dword [rbx + 0x6ec]
btr eax, 0x1f
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
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 0x1400b6738
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.1400b99e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401bb2c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400b7020
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 [0x140264330]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x1400b71ce
cmp dword [rcx + 0x2ac], 0
jne 0x1400b71c6
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400b70b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400cb800
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400b9ac0
jmp 0x1400b71ce
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400b7100
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400cb800
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400b9ac0
jmp 0x1400b71ce
lea rbx, [rdi + 0xf0]
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1400b6f70
test eax, eax
jne 0x1400b714b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400cb800
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400b9ac0
jmp 0x1400b71ce
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
movups xmm1, xmmword [rbx + 0x10]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
lea rcx, [rsp + 0xb0]
movups xmmword [rdi + 0x70], xmm0
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.1400b6f70
test eax, eax
jne 0x1400b71c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1400cb800
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400b9ac0
jmp 0x1400b71ce
mov rcx, rdi
call fcn.1400b6eb0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401bb2c0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400b76d0
Capabilities:
Set socket configuration

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

Function at 0x1400b7760
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1402ead00]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x1400b7801
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x9c
call sub.MSVCR120.dll_memset
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]
lea rcx, [rsp + 0x40]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1400b77f5
mov dword [0x1402ead00], 2
jmp 0x1400b7858
mov dword [0x1402ead00], 1
jmp 0x1400b7806
cmp eax, 2
je 0x1400b7858
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 0x1400b7837
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x1400b7858
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.1401bb2c0
add rsp, 0xf0
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x868]
mov rdi, rcx
test rbx, rbx
je 0x1400b7e1e
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x1400b7e1e
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x60]
lea r8, [0x1400b7da0]
lea rdx, [rsp + 0x20]
call fcn.1400c2050
cmp dword [rsp + 0x28], 0
jne 0x1400b7e2d
mov qword [rdi + 0x868], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x1400b7e58
mov rcx, rbx
call fcn.1400ccd90
test eax, eax
jne 0x1400b7e74
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r9d, 2
lea rdx, [rsp + 0x48]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400b7e1e
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b8c60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rbx, rcx
lea ecx, [rdx - 0x6f]
mov r12, r9
mov r15d, r8d
call qword [sub.MSVCR120.dll_calloc]
mov esi, 8
mov r14, rax
mov qword [rbx + 0x680], rax
test rax, rax
je 0x1400b8d49
xor edi, edi
mov dword [rbx + 0x668], r15d
mov r9, r12
mov qword [rbx + 0x678], rdi
mov qword [rbx + 0x670], rdi
mov r8d, r15d
mov rdx, rbp
mov rcx, rax
mov qword [rax], rdi
call fcn.1400b8a20
test eax, eax
je 0x1400b8d49
mov rcx, qword [rbx + 0x660]
test rcx, rcx
je 0x1400b8cf8
call qword [sub.MSVCR120.dll_free]
mov qword [rbx + 0x660], rdi
mov rcx, rbp
call qword [case.0x1400bb044.0]
mov qword [rbx + 0x660], rax
test rax, rax
je 0x1400b8d49
lea r9, [r14 + 0x10]
lea r8, [0x1400b8ae0]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.MSVCR120.dll__beginthreadex]
mov rcx, rax
dec rax
cmp rax, 0xfffffffffffffffd
cmovbe rdi, rcx
mov qword [r14], rdi
test rdi, rdi
jne 0x1400b8d7e
call qword [sym.imp.MSVCR120.dll__errno]
mov esi, dword [rax]
lea rcx, [rbx + 0x660]
call fcn.1400b8bc0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov eax, 1
jmp 0x1400b8d5f
Function at 0x1400b9bc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
mov rcx, qword [rcx + rax*8 + 0x1a8]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x1400b9c6c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400b9c3b
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.1400cb800
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400b9ac0
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x88d4], ebx
mov dword [r14], 0x37
jmp 0x1400b9c25
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x1400ba0d0
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 + 0x2c8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400ba113
mov rax, qword [rcx + 0x218]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x1400ba158
mov r9, qword [rbx + 0x210]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1402235f0]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.MSVCR120.dll_fwrite]
mov r9, qword [rbx + 0x210]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret