joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cce40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x4d], dil
jne 0x1400ccf70
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400cce66
call fcn.140106380
mov word [rsp + 0x4e], di
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Connecting...]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140130478]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x14013047c]
mov byte [rsp + 0x4c], al
mov byte [rsp + 0x4d], dil
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400c9370
xor r8d, r8d
lea rdx, [0x1401181e2]
lea rcx, [0x140153c08]
call fcn.140067380
mov dword [rbx + 0x30], edi
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov dword [rbx + 0x4d], 0x1000000
mov dword [rbx + 0x24], edi
mov dword [rbx + 0x28], 0xbf800000
mov word [rbx + 0x51], 1
mov byte [rbx + 0x4c], dil
lea rcx, [rbx + 0x58]
xor r8d, r8d
lea rdx, [0x1401181e2]
call fcn.140067380
movabs rax, 0xc08f380000000000
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov ecx, 8
call fcn.14010abe0
mov qword [rax], rbx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400cd470]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ccf87
cmp dword [rsp + 0x38], 0
je 0x1400ccf7b
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400ccf7b
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400cd4a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov edi, 2
mov edx, edi
mov ecx, edi
lea r8d, [rdi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cd51f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rdx, eax
xorps xmm0, xmm0
lea rax, str.socket_failed:
mov r8, rbx
add rdx, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
nop
inc r8
cmp byte [rdx + r8], al
jne 0x1400cd4f0
lea rcx, [rbp - 0x20]
call fcn.1400a3d80
lea rdx, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400c9370
mov rax, 0xffffffffffffffff
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
lea r9, [rbp + 0x20]
mov dword [rbp + 0x20], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400cd5ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rdx, eax
xorps xmm0, xmm0
lea rax, str.setsockopt_failed:
mov r8, 0xffffffffffffffff
add rdx, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
inc r8
cmp byte [rdx + r8], al
jne 0x1400cd576
lea rcx, [rbp - 0x20]
call fcn.1400a3d80
lea rdx, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400c9370
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
lea r9, [rbp + 0x28]
mov dword [rbp + 0x28], 0x3e8
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0xc000
mov word [rbp - 0x30], di
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rbp - 0x2e], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov dword [rbp - 0x2c], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400cd644
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rdx, eax
xorps xmm0, xmm0
lea rax, str.bind_failed:
mov r8, 0xffffffffffffffff
add rdx, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
inc r8
cmp byte [rdx + r8], al
jne 0x1400cd636
jmp 0x1400cd57f
mov rax, rbx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400ce840
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x3e], di
mov qword [rsp + 0x40], recv
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Connecting...]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x140130478]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x14013047c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], dil
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0xf]
call fcn.1400c9370
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400ce92e
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
lea ecx, [rdi + 0x20]
call fcn.14010abe0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], reloc.WS2_32.dll_recvfrom
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [str.WSAStartup_failed]
movups xmmword [rax], xmm0
movzx edx, byte [0x140130490]
mov byte [rax + 0x10], dl
mov byte [rax + 0x11], dil
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0xf]
call fcn.1400c9370
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov eax, edi
xchg byte [rbx + 0x10], al
mov ecx, 8
call fcn.14010abe0
mov qword [rax], rbx
mov qword [rbp + 0x108], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400cec30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ce9c2
cmp dword [rbx + 8], 0
jne 0x1400ce9bb
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx], xmm1
cmp dword [rbx + 8], 0
je 0x1400ce9af
movaps xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400ce9af
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
jmp 0x1400ce919
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400dde00
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [rcx]
lea rdi, [r11 + 0x18]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [r11 + 0x18], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [r11 + 0x1c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400ddecb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400dded1
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400ddea1
test ebx, ebx
je 0x1400ddef1
jmp 0x1400dded8
cmp ebx, 0xffffffff
je 0x1400ddf14
jmp 0x1400ddecb
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.1400ddc90
lea rdx, [0x14014db30]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400ddc30
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.Failed_to_select_socket
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400dd940
lea rdx, [0x14014d9f8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e1cc0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x140156a58]
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400e1dcf
sub edx, 1
je 0x1400e1d03
cmp edx, 1
jne 0x1400e1dc9
mov rcx, qword [0x140156ae8]
call fcn.1400ce9e0
mov rcx, qword [0x140156ae8]
add rsp, 0x30
pop rbx
jmp fcn.1400ce840
mov rbx, qword [0x140156af8]
lea rdx, [0x1401181e2]
xor r8d, r8d
lea rcx, [rbx + 0x80]
call fcn.140067380
mov rcx, qword [0x140156af8]
xor eax, eax
mov dword [rbx + 8], eax
mov qword [rbx + 0xd], rax
mov dword [rbx + 0x15], eax
mov qword [rbx + 0x1c], rax
mov qword [rbx + 0x24], rax
mov qword [rbx + 0x2c], rax
mov qword [rbx + 0x34], rax
mov qword [rbx + 0x3c], rax
mov qword [rbx + 0x44], rax
mov qword [rbx + 0x4c], rax
mov qword [rbx + 0x54], rax
mov qword [rbx + 0x5c], rax
mov qword [rbx + 0x64], rax
mov qword [rbx + 0x6c], rax
mov qword [rbx + 0x74], rax
mov qword [rbx], 4
call fcn.1400ffe00
mov rbx, qword [0x140156ae8]
mov eax, 1
xchg byte [rbx + 0x10], al
cmp dword [rbx + 8], 0
je 0x1400e1db6
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1400e1e1f
movups xmm0, xmmword [rbx]
xor edx, edx
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x1400e1e48
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [0x140156e80]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140156af0]
cmp byte [rcx + 0x4d], 0
jne 0x1400e1de3
call fcn.1400cce40
jmp 0x1400e1dff
mov rcx, qword [rcx]
lea r8, str.AircraftLoaded
xor edx, edx
call fcn.140106900
mov rax, qword [0x140156af0]
mov byte [rax + 0x4c], 1
mov rbx, qword [0x140156ae8]
mov eax, 1
xchg byte [rbx + 0x10], al
cmp dword [rbx + 8], 0
je 0x1400e1db6
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
jne 0x1400e1e2b
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rbx]
xor edx, edx
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400e1db0
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
add byte [rax], al
add byte [rax], al
add byte [rax + rax], 0
add al, 0
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x1400ec140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov edi, ecx
and edi, 7
je 0x1400ec173
cmp ecx, edi
jge 0x1400ec163
mov rcx, rbx
call fcn.1400eb970
mov eax, dword [rbx + 0x14]
mov ecx, edi
shr eax, cl
sub dword [rbx + 0x10], edi
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor edi, edi
mov eax, ecx
test ecx, ecx
jle 0x1400ec1ad
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r8d, cl
nop word [rax + rax]
shr ecx, 8
inc edi
mov byte [rdx], r8b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r8d, cl
test eax, eax
jg 0x1400ec190
mov dword [rbx + 0x10], eax
test eax, eax
je 0x1400ec1cb
mov r8d, 0x10a8
lea rdx, str.E:ReposSimHapticlibsimgui_stb_image.h
lea rcx, str.a__num_bits__0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rcx, edi
cmp rcx, 4
jge 0x1400ec1fa
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400ec1e4
xor dl, dl
jmp 0x1400ec1ed
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400ec1d8
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x1400ec250
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400ec288
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1400ec2a2
mov rcx, rbx
call fcn.1400ebb10
test eax, eax
je 0x1400ec243
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f7ff0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, 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
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.1400a55b0
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400f805c
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400f8062
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1400f8161
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x1400f8106
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 0x1400f80ed
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f80e2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f80fc
mov rcx, rbx
call fcn.1400a3ed0
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x1400f80b0
inc r14
cmp r14, r13
jne 0x1400f8080
cmp r15d, 0xfffffffa
jle 0x1400f8161
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
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 0x1400f8159
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f814e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f8161
mov rcx, rbx
call fcn.1400a3ed0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400f81a9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f8195
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f818d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400f81a0
mov r9b, 0x3d
mov rcx, rbx
call fcn.1400a3ed0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400f8170
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400f8a80
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 0x1400f8ad4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f8ab0
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

Function at 0x1400f8b00
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x240
mov qword [rsp + 0x38], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x30], 1
mov dword [rax + 0x10], edx
mov dword [rax + 0x14], r8d
nop word [rax + rax]
lea rax, [rsp + 0x258]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400f8b62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f8b30
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1400f8b00
test rax, rax
jne 0x1400f8ba0
mov al, 1
add rsp, 0x20
pop rdi
ret
jns 0x1400f8bb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400f8bb5
xor al, al
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
lea rsi, [rsp + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400f8bf7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f8bd0
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setg al
add rsp, 0x20
pop rdi
ret
Function at 0x1400f9080
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x1400f90b1
cmp ax, 0x17
jne 0x1400f912b
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 0x1400f912b
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400f9110
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140067380
mov al, 1
jmp 0x1400f912d
xor al, al
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400f9c50
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x38], rax
lea esi, [rax + 1]
mov dword [rsp + 0x30], 1
mov dword [r11 + 8], edx
mov dword [r11 + 0xc], r8d
nop word [rax + rax]
lea rax, [rsp + 0x250]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400f9cc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9c90
test ebx, ebx
jle 0x1400f9cd5
mov rcx, qword [rdi + 8]
call fcn.1400f8b80
test al, al
je 0x1400f9cd5
mov al, 1
jmp 0x1400f9cd7
xor al, al
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400f9cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x1400f9d69
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, rbp
cmp rsi, rdi
ja 0x1400f9d4d
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
jne 0x1400f9d87
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
mov qword [rsp + 0x40], r14
mov r14, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x1400f9e0f
mov qword [rsp + 0x48], r15
mov r15, qword [rbx + 0x30]
nop dword [rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x1400f9dd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9db0
mov r15, qword [rsp + 0x48]
test rdi, rdi
jle 0x1400f9df5
mov rdx, qword [rbx + 0x30]
mov rcx, rbp
cmp rdi, rsi
jg 0x1400f9dfa
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
jmp 0x1400f9e20
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
jmp 0x1400f9e20
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.1400f8a80
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], 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 0x1400f9e79
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x30], 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 0x1400f9ea6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9e82
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rcx, qword [rcx + 8]
mov rbx, r8
mov rdi, rdx
mov dword [rax + 8], 0x80
lea r8, [rax + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400f9f6a
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8, rdi
call fcn.1400f9080
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x1400ffe00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov ecx, 8
call fcn.14010abe0
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140105ae0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ffe7e
cmp dword [rsp + 0x38], 0
je 0x1400ffe72
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400ffe72
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3