joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016bef0
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x14016403e
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, Ordinal_41
call fcn.140487b8c
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x14016404a
cmp rbx, rbp
jne 0x140163ff0
cmp qword [rsp + 0x68], r14
jne 0x14016401d
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x140164059
mov qword [r15], r12
mov rax, r12
jmp 0x14016405c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14016401d
nop word [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, Ordinal_41
call fcn.140487b8c
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x1401640f6
cmp rbx, rbp
jne 0x1401640d0
jmp 0x14016401a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140164070
jmp 0x14016401d
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14016bf9c
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14016bf2a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x140163f40
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14016bf6a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, Ordinal_41
call fcn.140487b8c
mov rcx, rbx
test rbx, rbx
jne 0x14016bf50
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.140140d40
add rsp, 0x20
pop rdi
ret
Function at 0x14016bfb0
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x14016420e
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x40
call fcn.140487b8c
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x14016421a
cmp rbx, rbp
jne 0x1401641c0
cmp qword [rsp + 0x68], r14
jne 0x1401641ed
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x140164229
mov qword [r15], r12
mov rax, r12
jmp 0x14016422c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x1401641ed
nop word [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x40
call fcn.140487b8c
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x1401642c6
cmp rbx, rbp
jne 0x1401642a0
jmp 0x1401641ea
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140164240
jmp 0x1401641ed
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14016c05c
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14016bfea
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x140164110
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14016c02a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x40
call fcn.140487b8c
mov rcx, rbx
test rbx, rbx
jne 0x14016c010
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.140140d40
add rsp, 0x20
pop rdi
ret
Function at 0x140170c80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140170cb4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140170ca0
ret

Function at 0x140170e70
Capabilities:
Hash data using fnv

Disassembly:
mov r9, rcx
mov dword [rsp + 0x10], edx
movabs rcx, 0x100000001b3
movzx r8d, dl
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rsp + 0x11]
imul r8, rcx
xor r8, rax
movzx eax, byte [rsp + 0x12]
imul r8, rcx
xor r8, rax
movzx eax, byte [rsp + 0x13]
imul r8, rcx
xor r8, rax
imul r8, rcx
mov rcx, qword [r9 + 0x38]
and rcx, r8
mov r8, qword [r9 + 0x10]
shl rcx, 4
add rcx, qword [r9 + 0x20]
mov rax, qword [rcx + 8]
cmp rax, r8
je 0x140170efc
mov rcx, qword [rcx]
cmp edx, dword [rax + 0x10]
je 0x140170efe
nop
cmp rax, rcx
je 0x140170efc
mov rax, qword [rax + 8]
cmp edx, dword [rax + 0x10]
jne 0x140170ee0
test rax, rax
cmove rax, r8
cmp rax, r8
setne al
ret
xor eax, eax
test rax, rax
cmove rax, r8
cmp rax, r8
setne al
ret
Function at 0x1401c6700
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.140170e70
test al, al
je 0x1401c67c3
mov rdx, qword [rdi + 0x10]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
movzx r8d, bl
xor r8, rax
movzx eax, byte [rsp + 0x39]
imul r8, rcx
xor r8, rax
movzx eax, byte [rsp + 0x3a]
imul r8, rcx
xor r8, rax
movzx eax, byte [rsp + 0x3b]
imul r8, rcx
xor r8, rax
imul r8, rcx
mov rcx, qword [rdi + 0x38]
and rcx, r8
shl rcx, 4
add rcx, qword [rdi + 0x20]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x1401c67ab
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x1401c67ad
cmp rax, rcx
je 0x1401c67ab
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x1401c6787
test rax, rax
cmove rax, rdx
movzx eax, byte [rax + 0x16]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
test rax, rax
cmove rax, rdx
movzx eax, byte [rax + 0x16]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1401c9970
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1405e3440]
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 0x1401c99a8
cmp ax, 0x17
jne 0x1401c9a1d
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 0x1401c9a1d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1401c9a02
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140165210
mov al, 1
jmp 0x1401c9a1f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401cbc10
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x1401cbc1a
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.1401cbc10
Function at 0x1401cf090
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1401cf201
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x88], 0
mov rcx, qword [rbx + 0x3b8]
test rcx, rcx
je 0x1401cf0fc
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xd0], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.14012ae30
movzx ecx, byte [rbx + 0x37c]
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x38], al
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], cl
mov dword [rsp + 0x20], ebp
mov r9d, dword [rbx + 0x378]
mov r8d, edi
lea rdx, [0x1404b8e09]
mov rcx, rsi
call fcn.140140500
mov rsi, rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1401cf190
mov r8, qword [rcx]
lea rax, [rsp + 0x50]
cmp rcx, rax
setne dl
call qword [r8 + reloc.WLDAP32.dll_Ordinal_32]
mov qword [rsp + 0x88], 0
xchg qword [rbx + 0x48], rsi
mov rax, qword [rbx + 0x48]
nop
cmp rax, 0xffffffffffffffff
je 0x1401cf201
test edi, edi
jne 0x1401cf1ef
mov dword [rsp + 0x48], 0x80
mov rcx, qword [rbx + 0x48]
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401cf201
movzx eax, word [rsp + 0xe0]
cmp ax, 2
je 0x1401cf1dc
cmp ax, 0x17
jne 0x1401cf201
movzx ecx, word [rsp + 0xe2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
test edi, edi
js 0x1401cf201
mov rcx, rbx
call fcn.1401cf220
test al, al
je 0x1401cf201
mov al, 1
jmp 0x1401cf203
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x178
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401d9580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1401d95ad
xor eax, eax
jmp 0x1401d9716
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1401d95ed
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1401d95ed
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1401d970e
cmp qword [rdi + 0x80], 0
je 0x1401d9709
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1401d9627
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1401d9652
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1401d970e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1401d96c1
sub eax, 1
je 0x1401d96c1
cmp eax, 2
jne 0x1401d9709
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1401d970e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1401d96ef
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1401d9709
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1401d970e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140487ca0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1401ded10
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, qword [rcx + 0x3d0]
lea rbx, [rcx + 0x3d8]
mov r14, rcx
mov rdi, rdx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1401def42
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1401def4d
mov rcx, rsi
mov qword [rsp + 0xd8], r15
call fcn.1403adbc0
mov rcx, rbx
mov rsi, rax
call sub.MSVCP140.dll__Mtx_unlock
test rsi, rsi
je 0x1401dee11
lea r8, [rbp + 0x67]
mov dword [rbp + 0x67], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, edi
call fcn.140213c60
xor r9d, r9d
mov rcx, rax
mov r15, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.140211d50
mov r8, r15
mov rdx, r15
mov rcx, rsi
call fcn.1403ae040
mov rax, qword [r14 + 0x68]
lea r8, [0x1403ad080]
mov r9, qword [r14 + 0x60]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1401472c0
cmp al, 1
jne 0x1401deee6
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 0x66]
call fcn.140211d50
lea r8, [rbp + 0x77]
mov dword [rbp + 0x77], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor r15b, r15b
test rsi, rsi
je 0x1401deeb5
mov rax, qword [r14 + 0x78]
lea rcx, [r14 + 0x48]
mov r9, qword [r14 + 0x58]
mov rdx, rdi
mov r8, qword [r14 + 0x50]
mov qword [rbp - 0x29], rax
mov rax, qword [r14 + 0x70]
mov qword [rbp - 0x31], rax
mov rax, qword [r14 + 0x68]
mov qword [rbp - 0x39], rax
mov rax, qword [r14 + 0x60]
mov qword [rbp + 0x7f], rax
lea rax, [rbp + 0x67]
mov qword [rbp - 9], rax
lea rax, [rbp + 0x77]
mov qword [rbp - 1], rax
lea rax, [rbp + 0x7f]
mov qword [rbp + 7], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 0x31]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x27], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x67], rdi
mov qword [rbp + 0x77], rsi
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], rsi
call fcn.140144d70
movzx r8d, al
mov rdx, rsi
mov rcx, rbx
movzx r15d, al
call fcn.1401f08c0
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, r15b
mov r15, qword [rsp + 0xd8]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rsi
call fcn.1403ae5d0
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1401def5d
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1401def32
mov rcx, rsi
call fcn.1403ad4f0
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rbp + 0x7f]
mov dword [rbp + 0x7f], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor r15b, r15b
jmp 0x1401deeb5
dec eax
mov ecx, 6
mov dword [rbx + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
dec eax
mov ecx, 6
mov dword [rbx + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1401e71b0
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 0x1401e7204
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1401e71e0
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 0x1401ebf50
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
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
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1401ebfbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1401ebf90
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140487ca0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1401ebff0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
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 r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1401ec05e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1401ec030
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140487ca0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140203e90
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 [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], rcx
cmp qword [rcx + 0x20], 0xf
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jbe 0x140203ed4
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 0x140203ef0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140203f14
cmp qword [rsi + 0x18], 0xf
jbe 0x140203efa
mov rsi, qword [rsi]
lea r8, [rsp + 0x24]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140203f19
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.14021a230
mov r12, rax
test rax, rax
je 0x140204002
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.1402114d0
mov dword [rsp + 0x28], eax
test eax, eax
jle 0x140203ff5
nop
test r14b, r14b
jne 0x140203ff0
mov edx, ebx
mov rcx, r12
call fcn.1402117d0
mov rsi, rax
cmp dword [rax], edi
jne 0x140203fda
mov rcx, qword [rax + 8]
call fcn.140163f30
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.1402141b0
movsxd r8, eax
cmp edi, 2
je 0x140203fc9
cmp edi, 7
jne 0x140203fda
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140203fc4
mov r8, r15
lea rcx, [rsp + 0x24]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140203fda
mov r13b, 1
jmp 0x140203fda
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call fcn.14016bcf0
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x28]
jl 0x140203f60
test r14b, r14b
jne 0x140203ff0
test r13b, r13b
je 0x140203ff5
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.14021a280
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140207070
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 0x1402070a9
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 0x1402070d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1402070b2
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret