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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r9
mov rsi, r8
mov rbp, rcx
mov dword [rsp + 0x34], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x180009dbc
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x30], al
xor edx, edx
mov eax, 2
cmp r8, 0x7e
cmovae edx, eax
mov ecx, 8
cmp r8, 0x10000
cmovae eax, ecx
add rdx, rax
movzx eax, byte [rbp + 0x5c]
neg al
sbb rcx, rcx
and ecx, 4
add rdx, rcx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18000a340
mov rdi, qword [rsp + 0x38]
mov byte [rdi], 0x82
movzx edx, byte [rbp + 0x5c]
cmp rsi, 0x7e
jae 0x180009c5f
neg dl
sbb al, al
and al, 0x80
or al, sil
mov byte [rdi + 1], al
cmp byte [rbp + 0x5c], 0
je 0x180009cfd
mov dword [rdi + 2], 0x78563412
jmp 0x180009cfd
mov rcx, rsi
shr rcx, 8
cmp rsi, 0x10000
jae 0x180009c99
mov eax, 0x7e
mov r8d, 0xfe
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov byte [rdi + 2], cl
mov byte [rdi + 3], sil
cmp byte [rbp + 0x5c], 0
je 0x180009cfd
mov dword [rdi + 4], 0x78563412
jmp 0x180009cfd
mov eax, 0x7f
mov r8d, 0xff
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov rax, rsi
shr rax, 0x38
mov byte [rdi + 2], al
mov rax, rsi
shr rax, 0x30
mov byte [rdi + 3], al
mov rax, rsi
shr rax, 0x28
mov byte [rdi + 4], al
mov rax, rsi
shr rax, 0x20
mov byte [rdi + 5], al
mov rax, rsi
shr rax, 0x18
mov byte [rdi + 6], al
mov rax, rsi
shr rax, 0x10
mov byte [rdi + 7], al
mov byte [rdi + 8], cl
mov byte [rdi + 9], sil
cmp byte [rbp + 0x5c], 0
je 0x180009cfd
mov dword [rdi + 0xa], 0x78563412
mov r9, qword [rsp + 0x40]
mov r8, rdi
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x20]
call fcn.18000a8a0
mov r9, qword [rsp + 0xa0]
mov r8, rbx
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x20]
call fcn.18000ba40
cmp byte [rbp + 0x5c], 0
je 0x180009d72
mov r9, qword [rbp + 0x28]
sub r9, qword [rbp + 0x20]
sub r9, rsi
xor r8d, r8d
test rsi, rsi
je 0x180009d72
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbp + 0x20]
add rdx, r8
movzx ecx, byte [rdx + r9]
mov rax, r8
and eax, 3
xor cl, byte [rsp + rax + 0x34]
mov byte [rdx + r9], cl
inc r8
cmp r8, rsi
jne 0x180009d50
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x180009da2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009da2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.18009d5c8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18000ce60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov rsi, r8
mov r8, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r9
mov r10, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18000ce9e
mov rdx, qword [rdx]
movabs r9, 0xcbf29ce484222325
xor r14d, r14d
mov ecx, r14d
test r10, r10
je 0x18000ced3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x18000cec0
lea rdx, [rsp + 0x28]
call fcn.180015130
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18000cfb2
cmp rcx, qword [0x1800e3378]
je 0x18000cfb2
mov ebx, dword [rcx + 0x30]
lea rcx, [rbp + 0x40]
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180010d00
mov rcx, qword [rax]
add rcx, 0x18
mov rdx, rsi
call fcn.18000d020
lea rcx, [rbp + 0x80]
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180010d00
mov rcx, qword [rax]
add rcx, 0x18
mov rdx, rdi
call fcn.18000d020
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1800112b0
mov rcx, qword [rax]
mov byte [rcx + 0x14], r14b
cmp byte [rsi + 0x40], 0
je 0x18000cf8a
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18000cf8a
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r14
cmp byte [rdi + 0x40], 0
je 0x18000cfae
mov qword [rsp + 0x40], rdi
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x18000cfae
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r14
mov al, 1
jmp 0x18000cffc
cmp byte [rsi + 0x40], 0
je 0x18000cfd6
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18000cfd6
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r14
cmp byte [rdi + 0x40], 0
je 0x18000cffa
mov qword [rsp + 0x40], rdi
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x18000cffa
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r14
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18009ce50
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000d120
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov rsi, r8
mov r8, rdx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r9
mov r10, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18000d15c
mov rdx, qword [rdx]
xor ebp, ebp
movabs r9, 0xcbf29ce484222325
mov ecx, ebp
test r10, r10
je 0x18000d193
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x18000d180
lea rdx, [rsp + 0x28]
call fcn.180015130
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18000d279
cmp rcx, qword [0x1800e3378]
je 0x18000d279
mov ebx, dword [rcx + 0x30]
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [0x1800e3bf0]
call fcn.180010d00
mov rcx, qword [rax]
add rcx, 0x18
mov rdx, rsi
call fcn.18000d020
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [0x1800e3c30]
call fcn.180010d00
mov rcx, qword [rax]
add rcx, 0x18
mov rdx, rdi
call fcn.18000d020
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [0x1800e3bb0]
call fcn.1800112b0
mov rcx, qword [rax]
mov byte [rcx + 0x14], bpl
cmp byte [rsi + 0x40], 0
je 0x18000d251
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18000d251
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], rbp
cmp byte [rdi + 0x40], 0
je 0x18000d275
mov qword [rsp + 0x40], rdi
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x18000d275
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbp
mov al, 1
jmp 0x18000d2c3
cmp byte [rsi + 0x40], 0
je 0x18000d29d
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18000d29d
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], rbp
cmp byte [rdi + 0x40], 0
je 0x18000d2c1
mov qword [rsp + 0x40], rdi
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x18000d2c1
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbp
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18009ce50
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180010720
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov qword [rsp + 0x70], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rdx + 0x40], sil
je 0x180010848
cmp qword [rdx + 0x38], rsi
je 0x180010848
mov qword [rsp + 0x78], rsi
lea ecx, [rsi + 0x40]
call fcn.18009d58c
mov rdi, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], rax
mov qword [rax + 0x38], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800107a1
mov rdx, qword [rcx]
mov rax, qword [rdx]
mov rdx, rdi
call rax
mov qword [rdi + 0x38], rax
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x180015aa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180010838
mov qword [rsp + 0x78], rsi
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x48], 0
jne 0x1800107fe
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x180010821
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
cmp dword [rsp + 0x48], 0
je 0x180010848
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp byte [rbx + 0x40], 0
je 0x18001086c
mov qword [rsp + 0x50], rbx
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18001086c
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180023180
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
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.18000b250
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x1800231e1
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1800231e7
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1800232e1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x180023286
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 0x18002326d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180023262
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18002327c
mov rcx, rbx
call fcn.18000c100
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x180023230
inc r14
cmp r14, r13
jne 0x180023200
cmp r15d, 0xfffffffa
jle 0x1800232e1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1800232d9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800232ce
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800232e1
mov rcx, rbx
call fcn.18000c100
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x180023329
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180023315
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18002330d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x180023320
mov r9b, 0x3d
mov rcx, rbx
call fcn.18000c100
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1800232f0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180023dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x180023ec5
mov qword [rsp + 0x50], r12
movabs r12, 0x7ffffffffffffc17
mov qword [rsp + 0x58], r15
movabs r15, 0x7fffffffffffffff
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x180023ea5
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x180023e49
imul rax, rax, 0x64
jmp 0x180023e67
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r12
jge 0x180023e79
add rax, 0x3e8
mov qword [rsp + 0x20], rax
jmp 0x180023e7e
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x20]
call fcn.180012e20
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
js 0x180023e20
mov r12, qword [rsp + 0x50]
mov rax, rbx
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, rbx
jmp 0x180023eb2

Function at 0x180024070
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea edi, [rcx + 1]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], r8d
lea rdx, [rsp + 0x40]
mov ecx, edi
mov dword [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1800241bc
mov qword [rsp + 0x270], rbp
movabs rbp, 0x7ffffffffffffc17
mov qword [rsp + 0x278], rsi
movabs rsi, 0x7fffffffffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x180024188
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x180024121
imul rax, rax, 0x64
jmp 0x18002413f
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rbp
jge 0x180024151
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x180024156
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.180012e20
lea rax, [rsp + 0x38]
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
js 0x1800240f4
mov rbp, qword [rsp + 0x270]
mov rax, rbx
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18009ce50
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
mov rax, rbx
jmp 0x18002419b
Function at 0x180025090
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1800df010]
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 0x1800250c8
cmp ax, 0x17
jne 0x18002513d
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 0x18002513d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180025122
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180009130
mov al, 1
jmp 0x18002513f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18009ce50
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180026f50
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov rax, qword [rcx + 0x20]
xor r9d, r9d
mov r8, qword [rcx + 0x28]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
lea edi, [rdx + 1]
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x3c], r8d
mov ecx, edi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 1
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
jns 0x180027073
movabs rbp, 0x7fffffffffffffff
movabs r14, 0x7ffffffffffffc17
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x180027089
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18002700d
imul rax, rax, 0x64
jmp 0x18002702b
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r14
jge 0x18002703d
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x180027042
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
call fcn.180012e20
lea rax, [rsp + 0x38]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x180026fe0
test rcx, rcx
je 0x180027089
mov rcx, qword [rsi + 8]
call fcn.1800246d0
test al, al
je 0x180027089
mov al, 1
jmp 0x18002708b
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800271f0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, qword [rcx + 0x20]
mov rbp, rdx
mov rdx, qword [rcx + 8]
mov r14, r8
mov r9, qword [rcx + 0x28]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov rsi, rcx
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x40]
lea edi, [rdx + 1]
mov dword [rsp + 0x44], r9d
mov ecx, edi
mov dword [rsp + 0x50], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
movabs r12, 0x7ffffffffffffc17
movabs r15, 0x7fffffffffffffff
test eax, eax
jns 0x180027317
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x1800273dc
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1800272b1
imul rax, rax, 0x64
jmp 0x1800272cf
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r12
jge 0x1800272e1
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x1800272e6
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.180012e20
lea rax, [rsp + 0x40]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x180027284
test rcx, rcx
je 0x1800273dc
mov rcx, qword [rsi + 8]
call fcn.1800246d0
test al, al
je 0x1800273dc
mov rdi, qword [rsi + 8]
xor r9d, r9d
mov rcx, rdi
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1800273d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x1800273d7
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18002737b
imul rax, rax, 0x64
jmp 0x180027399
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r12
jge 0x1800273ab
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x1800273b0
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.180012e20
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
js 0x180027352
mov rax, rbx
jmp 0x1800273e3
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180027490
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1800274e9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.180025090
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18009ce50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x180033370
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor esi, esi
mov dword [rsp + 0x30], esi
lea rdi, [0x1800e3aa0]
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1800333bc
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movzx eax, byte [0x1800e3a89]
test al, al
jne 0x1800334e0
mov eax, esi
xchg byte [0x1800e3a88], al
mov ebx, 1
mov eax, ebx
xchg byte [0x1800e3a89], al
lea rax, [0x1800e3a80]
mov qword [rsp + 0x50], rax
lea rax, [0x180033810]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0xa0], rsi
lea ecx, [rbx + 0xf]
call fcn.18009d58c
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
lea rdx, [rax + 8]
mov qword [rsp + 0x70], rdx
mov rcx, qword [rsp + 0x58]
mov qword [rdx], rcx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18007af20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800334c9
mov qword [rsp + 0xa0], rsi
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x180033485
mov edx, reloc.WS2_32.dll_recv
call fcn.18009d5c8
nop
cmp dword [0x1800e3a98], 0
je 0x180033494
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
xorps xmm1, xmm1
movaps xmmword [rsp + 0x80], xmm1
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x40], xmm1
movaps xmmword [0x1800e3a90], xmm0
cmp dword [rsp + 0x48], 0
je 0x1800334c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
jmp 0x1800334e0
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdi, [0x1800e3aa0]
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret