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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rax, [r8 - 1]
mov r13, r9
mov rbp, rax
mov qword [rsp + 0x50], rax
sar rbp, 1
mov r15, r8
mov rbx, rdx
mov rsi, rcx
mov r12, rdx
mov r14, rdx
cmp rdx, rbp
jge 0x140054890
nop dword [rax]
nop word [rax + rax]
lea rdi, [r14 + r14]
mov rax, rdi
lea rdx, [rsi + 0x60]
shl rax, 6
lea rcx, [rsi + 0xa0]
add rdx, rax
add rcx, rax
call fcn.14000dd90
lea r14, [rdi + 1]
movzx eax, al
xor rax, 1
shl rbx, 6
add r14, rax
add rbx, rsi
mov rdi, r14
mov rcx, rbx
shl rdi, 6
add rdi, rsi
mov rdx, rdi
call fcn.140012ed0
lea rdx, [rdi + 0x20]
lea rcx, [rbx + 0x20]
call fcn.140012ed0
mov rbx, r14
cmp r14, rbp
jl 0x140054830
cmp r14, rbp
jne 0x1400548c8
test r15b, 1
jne 0x1400548c8
shl r15, 6
shl rbx, 6
add rbx, rsi
mov rcx, rbx
lea rdi, [r15 + rsi]
lea rdx, [rdi - 0x40]
call fcn.140012ed0
lea rdx, [rdi - 0x20]
lea rcx, [rbx + 0x20]
call fcn.140012ed0
mov rbx, qword [rsp + 0x50]
cmp r12, rbx
jge 0x140054919
nop dword [rax]
lea rdi, [rbx - 1]
sar rdi, 1
lea rdx, [r13 + 0x20]
mov rbp, rdi
shl rbp, 6
add rbp, rsi
lea rcx, [rbp + 0x20]
call fcn.14000dd90
test al, al
je 0x140054919
shl rbx, 6
mov rdx, rbp
add rbx, rsi
mov rcx, rbx
call fcn.140012ed0
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x20]
call fcn.140012ed0
mov rbx, rdi
cmp r12, rdi
jl 0x1400548d0
shl rbx, 6
mov rdx, r13
add rbx, rsi
mov rcx, rbx
call fcn.140012ed0
lea rdx, [r13 + 0x20]
lea rcx, [rbx + 0x20]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140012ed0

Function at 0x140055f90
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x13e0
call fcn.14028c750
sub rsp, rax
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rsp + 0x13d8], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov ecx, 1
mov qword [rsp + 0x38], rdx
movabs r8, 0x5851f42d4c957f2d
movabs rax, 0x5555555555555555
mov qword [rsp + 0x13b8], rax
nop word [rax + rax]
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, r8
add rdx, rcx
mov qword [rsp + rcx*8 + 0x38], rdx
inc rcx
cmp rcx, 0x138
jb 0x140055ff0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x138
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140056830
mov r9, rax
lea r8, str._16llX
mov edx, shutdown
lea rcx, [rsp + 0x13c0]
call fcn.140055f30
xorps xmm0, xmm0
lea rax, [rsp + 0x13c0]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140056070
lea rdx, [rsp + 0x13c0]
mov rcx, rbx
call fcn.140009000
mov rax, rbx
mov rcx, qword [rsp + 0x13d8]
xor rcx, rsp
call fcn.14028bc60
add rsp, 0x13e0
pop rbx
ret
Function at 0x140056830
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, qword [rcx]
mov r9d, 0x138
mov ecx, dword [r10]
cmp ecx, r9d
jne 0x140056898
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140056853
mov ecx, dword [r10]
jmp 0x1400569aa
cmp ecx, 0x270
jb 0x1400569aa
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov r9, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx + 0x4e0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x1400568d0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140056922
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret

Function at 0x1400788a0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140078946
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
movabs rcx, 0x8fafd21e25c5e09b
mov dword [rsp + 0x24], 0
mov ebx, eax
lea rsi, [0x14048a960]
mov rax, qword [0x14048a968]
cmp rax, rcx
je 0x140078912
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140078912
mov rcx, qword [0x14048a960]
mov edx, ebx
mov r8, qword [rcx + 0x30]
mov rcx, rsi
call r8
jmp 0x140078917
test ebx, ebx
setne al
movzx eax, al
add eax, 2
mov qword [rsp + 0x28], rsi
mov rsi, qword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], ebx
cmp eax, 1
jne 0x14007893b
test ebx, ebx
setne al
jmp 0x14007893d
and al, 1
mov rbx, qword [rsp + 0x50]
test al, al
jne 0x14007894e
mov eax, edi
add rsp, 0x40
pop rdi
ret
lea rdx, [0x140404e20]
lea rcx, [rsp + 0x20]
call fcn.1400786b0
int3
Function at 0x1400789f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140e34fa4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140078a29
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d6db0
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d6db0

Function at 0x140078a40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x140e34fa4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140078a70
mov r9, qword [rax + 8]
jmp 0x140078a73
mov r9, r8
cmp rdi, 0x3fc
ja 0x140078a97
test r9, r9
je 0x140078a97
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140078aa7
inc r8d
inc rax
cmp rax, 2
jl 0x140078a84
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140078e20
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140e34f24], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140078e7d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140009110]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x1400798d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x140079916
call fcn.140079a90
xorps xmm0, xmm0
mov dword [rsp + 0x30], ebx
movups xmmword [rsi], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rsi + 0x10], xmm0
xor eax, eax
jmp 0x140079a19
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140e34fa4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140e34fa4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140079e00
test rax, rax
je 0x1400799d4
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140079e00
test rax, rax
jne 0x1400799b0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140e34fa4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400799fe
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rdi, 8
sub rsi, 1
jne 0x1400799f0
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rax, rbx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140079b70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140e34fa4]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079cb0
cmp qword [rax], rbx
je 0x140079bac
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140079b98
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140079cb0
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140079c70
cmp ecx, 1
jne 0x140079cb0
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
xorps xmm0, xmm0
lea rax, vtable.boost::asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x1404605b0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x140079c96
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret
Function at 0x14007abc0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r12d, r12d
mov r15, r9
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x14007adb6
mov qword [rsp + 0x98], rbx
test r8b, r8b
je 0x14007ac38
movzx eax, byte [rdx]
test al, 8
je 0x14007ac38
or al, 8
mov dword [rbp + 0x30], r12d
mov byte [rdx], al
lea r9, [rbp + 0x30]
xorps xmm0, xmm0
mov dword [rbp - 0x20], r12d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rbp - 0x30]
setne dl
call fcn.14007aad0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.14007aad0
test ebx, ebx
je 0x14007adb2
mov qword [rsp + 0xa0], rdi
movabs rcx, 0x8fafd21e25c5e09b
mov rdi, qword [0x14048a968]
movabs rax, 0xb2ab117a257edf0d
mov qword [rsp + 0xa8], r13
lea r13, [0x14048a960]
mov dword [rbp - 0x2c], r12d
cmp rdi, rcx
je 0x14007acb3
cmp rdi, rax
je 0x14007acb3
mov rax, qword [0x14048a960]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov rdi, qword [0x14048a968]
jmp 0x14007acb5
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x18]
add eax, 2
mov dword [rbp - 0x30], 0x2733
mov dword [rbp - 0x20], eax
mov rcx, r15
movsd xmm1, qword [rbp - 0x20]
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rbp - 0x30]
movsd qword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
call fcn.140077fc0
test al, al
jne 0x14007ad59
movabs rax, 0x8fafd21e25c5e09b
mov dword [rbp - 0x2c], r12d
cmp rdi, rax
je 0x14007ad21
movabs rax, 0xb2ab117a257edf0d
cmp rdi, rax
je 0x14007ad21
mov rax, qword [0x14048a960]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x14007ad23
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x18]
add eax, 2
mov dword [rbp - 0x30], 0x4d5
mov dword [rbp - 0x20], eax
mov rcx, r15
movsd xmm1, qword [rbp - 0x20]
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rbp - 0x30]
movsd qword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
call fcn.140077fc0
test al, al
je 0x14007ad8b
lea r8, [rbp + 0x30]
mov dword [rbp + 0x30], r12d
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.14007aad0
mov rdi, qword [rsp + 0xa0]
mov eax, ebx
mov r13, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
mov eax, ebx
jmp 0x14007ad9d
mov eax, r12d
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x14007add0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x14007ae6b
mov rax, qword [0x14048a968]
lea rbx, [0x14048a960]
movabs rcx, 0x8fafd21e25c5e09b
mov dword [rsp + 0x24], 0
cmp rax, rcx
je 0x14007ae2f
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x14007ae2f
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007ae31
mov al, 1
movzx eax, al
add eax, 2
mov dword [rsp + 0x20], 0x2719
mov dword [rsp + 0x30], eax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14007aad0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007ae90
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, r9
mov rsi, rcx
call fcn.14007add0
mov rbx, qword [0x14048a968]
lea r14, [0x14048a960]
xor r15d, r15d
movabs r13, 0x8fafd21e25c5e09b
mov dword [rsp + 0x34], r15d
movabs r12, 0xb2ab117a257edf0d
cmp rbx, r13
je 0x14007af17
cmp rbx, r12
je 0x14007af17
mov rax, qword [0x14048a960]
mov edx, 0x2734
mov rcx, r14
call qword [rax + 0x30]
mov rbx, qword [0x14048a968]
jmp 0x14007af19
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x50]
add eax, 2
mov dword [rsp + 0x30], 0x2734
mov dword [rsp + 0x40], eax
mov rcx, rdi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x50], xmm0
call fcn.140077fc0
test al, al
jne 0x14007afc5
mov dword [rsp + 0x34], r15d
cmp rbx, r13
je 0x14007af81
cmp rbx, r12
je 0x14007af81
mov rax, qword [0x14048a960]
mov edx, 0x2733
mov rcx, r14
call qword [rax + 0x30]
mov rbx, qword [0x14048a968]
jmp 0x14007af83
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x50]
add eax, 2
mov dword [rsp + 0x30], 0x2733
mov dword [rsp + 0x40], eax
mov rcx, rdi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x50], xmm0
call fcn.140077fc0
test al, al
je 0x14007b0f3
cmp rsi, 0xffffffffffffffff
jne 0x14007b008
mov dword [rsp + 0x34], r15d
cmp rbx, r13
je 0x14007aff9
cmp rbx, r12
je 0x14007aff9
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
mov dword [rsp + 0x30], 0x2719
jmp 0x14007b0d1
mov al, 1
mov dword [rsp + 0x30], 0x2719
jmp 0x14007b0d1
lea ecx, [rsi + 1]
mov qword [rbp + 0x188], rsi
lea r9, [rsp + 0x70]
mov dword [rbp + 0x180], 1
lea r8, [rbp + 0x180]
mov qword [rsp + 0x78], rsi
xor edx, edx
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
mov edx, eax
mov rcx, rdi
shr edx, 0x1f
mov ebx, eax
call fcn.14007aad0
test ebx, ebx
js 0x14007b0f3
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x48], r15d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x4c], 4
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14007aad0
cmp ebx, 0xffffffff
je 0x14007b0f3
mov rax, qword [0x14048a968]
mov ebx, dword [rsp + 0x48]
mov dword [rsp + 0x34], r15d
cmp rax, r13
je 0x14007b0c8
cmp rax, r12
je 0x14007b0c8
mov rax, qword [0x14048a960]
mov edx, ebx
mov rcx, r14
call qword [rax + 0x30]
jmp 0x14007b0cd
test ebx, ebx
setne al
mov dword [rsp + 0x30], ebx
movzx eax, al
mov qword [rsp + 0x38], r14
add eax, 2
movups xmm0, xmmword [rsp + 0x30]
mov dword [rsp + 0x40], eax
movsd xmm1, qword [rsp + 0x40]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14028bc60
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14007b900
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x20], r9d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, qword [rsp + 0xb0]
lea r9, [rax + 0x20]
xor r14d, r14d
mov qword [rax - 0x58], r14
mov qword [rax - 0x60], r14
mov dword [rax - 0x68], r14d
mov dword [rax + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebp, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x14048a968]
lea rdi, [0x14048a960]
movabs r12, 0x8fafd21e25c5e09b
mov dword [rsp + 0x44], r14d
mov esi, eax
movabs r15, 0xb2ab117a257edf0d
cmp rcx, r12
je 0x14007b98f
cmp rcx, r15
je 0x14007b98f
mov rcx, qword [0x14048a960]
mov edx, esi
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call rax
jmp 0x14007b994
test esi, esi
setne al
movzx eax, al
movabs r10, 0x4800144005b3
add eax, 2
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
mov dword [rsp + 0x50], eax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9d, dword [rbx + 0x10]
cmp r9d, 1
je 0x14007b9d5
mov eax, dword [rbx]
mov r8d, eax
jmp 0x14007ba05
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x14007ba62
mov rax, qword [0x14048a968]
mov dword [rsp + 0x44], r14d
cmp rax, r12
je 0x14007ba34
cmp rax, r15
je 0x14007ba34
mov rax, qword [0x14048a960]
mov edx, 0x2746
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x14007ba36
mov al, 1
movzx eax, al
mov dword [rsp + 0x40], 0x2746
add eax, 2
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
mov dword [rsp + 0x50], eax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x14007baab
cmp r9d, 1
jne 0x14007ba95
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x14007baab
mov edx, 0x274d
mov rcx, rbx
call fcn.1400d6f40
test ebp, ebp
je 0x14007bab6
mov eax, 0xffffffff
jmp 0x14007badf
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x14007bacd
lea rdi, [0x14048a978]
cmp eax, 1
je 0x14007bacd
mov rdi, qword [rbx + 8]
mov r8, rdi
mov rcx, rbx
call fcn.140077ec0
mov eax, dword [rsp + 0xa8]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14007bec0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rax
sete dl
call fcn.14007aad0
cmp rdi, 0xffffffffffffffff
jne 0x14007bf18
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp esi, 0x17
jne 0x14007bf42
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14007bf60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rsi, r9
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14007c003
mov rax, qword [0x14048a968]
lea rbx, [0x14048a960]
movabs rcx, 0x8fafd21e25c5e09b
mov dword [rsp + 0x24], 0
cmp rax, rcx
je 0x14007bfc2
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x14007bfc2
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007bfc4
mov al, 1
movzx eax, al
add eax, 2
mov dword [rsp + 0x20], 0x2719
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8, rsi
mov qword [rsp + 0x50], rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x70]
mov edx, eax
shr edx, 0x1f
mov edi, eax
call fcn.14007aad0
test edi, edi
js 0x14007c03b
cmp dword [rsi], 0
movzx eax, byte [rbx]
je 0x14007c037
or al, 1
jmp 0x14007c039
and al, 0xfc
mov byte [rbx], al
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
Function at 0x14007d9f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x14007da2f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.14007d000
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.14007c4d0
add rsp, 0x28
ret