joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e3e0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xorps xmm0, xmm0
xor edx, edx
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14001e445
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140001b30
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140076f70
add rsp, 0x50
pop rdi
ret
mov r8d, gethostname
mov qword [rsp + 0x60], rbx
lea rdx, str.KCFloatingServer
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001e484
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140001b30
mov rcx, rdi
jmp 0x14001e5d1
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001e525
lea rdx, str.KCFloatingServer
lea rcx, str.Stopping__s.
call fcn.140001b30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001e502
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14001e506
lea rcx, [0x1400ce484]
call fcn.140001b30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001e4d0
mov eax, dword [rsp + 0x24]
lea rdx, str.KCFloatingServer
lea rcx, [0x1400ce488]
cmp eax, 1
je 0x14001e520
lea rcx, str._n_s_failed_to_stop._n
call fcn.140001b30
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14001e5c5
lea rdx, str.KCFloatingServer
lea rcx, str.Starting__s.
call fcn.140001b30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001e5a2
nop dword [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 2
jne 0x14001e5a6
lea rcx, [0x1400ce484]
call fcn.140001b30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001e570
mov eax, dword [rsp + 0x24]
lea rdx, str.KCFloatingServer
lea rcx, str._n_s_is_started._n
cmp eax, 4
je 0x14001e5c0
lea rcx, str._n_s_failed_to_start._n
call fcn.140001b30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140076f70
add rsp, 0x50
pop rdi
ret
Function at 0x14001e6b8
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.Kubotek
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14001e735
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140011600
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x14003c720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14003c762
movzx eax, r14w
jmp 0x14003c887
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14003c792
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rcx + r8*2]
cmp rcx, rdx
jae 0x14003c792
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], si
movzx eax, si
jmp 0x14003c887
cmp qword [rbx + 0x80], r14
je 0x14003c884
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003c7d0
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14003c7fa
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x14003c884
movzx edi, si
jmp 0x14003c884
lea rax, [rbp - 0x38]
mov word [rbp - 0x40], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003c848
sub eax, 1
je 0x14003c848
cmp eax, 2
jne 0x14003c884
movzx ecx, word [rbp - 0x40]
jmp 0x14003c7dc
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14003c873
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14003c884
lea rax, [rbp - 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rbp - 0x30], rax
movzx eax, si
jne 0x14003c887
movzx eax, di
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140076f70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14003ce4c
Capabilities:
Hash data using murmur3

Disassembly:
mov rcx, qword [rcx + 0xc8]
jmp fcn.14006b5b0

Function at 0x14003d02c
Capabilities:
Hash data using sha1

Disassembly:
mov rcx, qword [rcx + 0xc8]
jmp fcn.14006a39c
Function at 0x14003e48c
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, rcx
xor r8d, r8d
mov qword [rcx + 8], r8
lea rax, [rcx + 0x10]
mov qword [rsp + 0x38], rax
movabs rdx, 0x3fffffffffffffff
mov qword [rax + 0x48], rdx
lea ecx, [r8 + 0x10]
mov qword [rax + 0x50], rcx
mov byte [rax + 0x41], 1
mov qword [rax + 0x58], rax
lea rax, [rbx + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rax + 0x48], rdx
mov qword [rax + 0x50], rcx
mov byte [rax + 0x41], 1
mov qword [rax + 0x58], rax
lea r8d, [rcx + 0x10]
lea rdx, [0x1400d38a0]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
lea rax, vtable.CryptoPP::SHA256.0
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14003eefc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003ef6f
cmp byte [rcx + 0x72], 0
je 0x14003ef6f
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + Ordinal_26]
cmp di, ax
je 0x14003efc4
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003ef89
sub eax, 1
je 0x14003ef8d
cmp eax, 2
jne 0x14003efc4
mov byte [rbx + 0x72], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003efbb
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14003efc4
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14003ef71
xor al, al
jmp 0x14003ef71
Function at 0x14004514c
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x5b90]
mov eax, 0x5c90
call fcn.1400b5fe0
sub rsp, rax
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x5b80], rax
mov rdi, rcx
call fcn.14003cbb0
mov dword [rsp + 0x50], 0x5800
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
xor esi, esi
test eax, eax
jne 0x140045301
lea rbx, [rbp - 0x80]
lea r14d, [rsi + 7]
cmp dword [rbx + 0x1a4], 0x18
je 0x1400452f5
movzx eax, byte [rbx + 0x19d]
movzx ecx, byte [rbx + 0x19c]
movzx edx, byte [rbx + 0x19b]
movzx r8d, byte [rbx + 0x19a]
movzx r10d, byte [rbx + 0x199]
movzx r9d, byte [rbx + 0x198]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
lea r8, str._.2x_.2x_.2x_.2x_.2x_.2x
mov edx, 0x200
lea rcx, [rbp + 0x5780]
call fcn.1400429c0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
mov word [rsp + 0x58], si
lea rax, [rbp + 0x5780]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140045242
lea rdx, [rbp + 0x5780]
lea rcx, [rsp + 0x58]
call fcn.140011600
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14004529a
mov qword [rdx], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
mov word [rsp + 0x58], si
add qword [rdi + 8], 0x20
jmp 0x1400452a8
lea r8, [rsp + 0x58]
mov rcx, rdi
call fcn.140045490
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400452e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400452e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045328
call fcn.14007721c
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
mov word [rsp + 0x58], si
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400451b1
mov rcx, qword [rbp + 0x5b80]
xor rcx, rsp
call fcn.140076f70
lea r11, [rsp + 0x5c90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140045330
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
lea r8d, [rdi + 9]
lea rdx, str.some_mach
call fcn.140011600
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400453a2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140011600
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400453d8
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rdx], rdi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], 7
mov word [rdx], di
lea r8d, [rdi + 9]
lea rdx, str.some_user
mov rcx, rbx
call fcn.140011600
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 0x101
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140045453
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140011600
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x14004746c
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
or 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 [0x140128a88], eax
test eax, eax
je 0x1400474c3
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400474e4
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140004c70]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x140047ff8
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x140048134
test r8b, r8b
je 0x140048070
mov al, byte [rdx]
test al, 8
je 0x140048070
or al, 8
mov dword [r11 + 8], r15d
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_setsockopt]
call fcn.140046f9c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.140046f9c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
test esi, esi
je 0x140048134
call fcn.140046f9c
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400480c6
cmp dword [rdi], 0x2733
je 0x1400480e1
call fcn.140046f9c
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x14004814e
cmp dword [rdi], 0x4d5
jne 0x14004814e
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.140046f9c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
test esi, esi
jne 0x14004814e
lea rax, str.___r_
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14004816c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x78]
and dword [rsp + 0x78], 0
mov r8d, ebx
and dword [rsp + 0x70], 0
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.140046f9c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
cmp dword [rbx], 0x40
jne 0x1400481fe
mov dword [rsp + 0x40], 0x2746
jmp 0x14004820e
cmp dword [rbx], 0x4d2
jne 0x140048223
mov dword [rsp + 0x40], 0x274d
call fcn.140046f9c
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
jmp 0x140048236
cmp dword [rbx], 0x2738
je 0x140048233
cmp dword [rbx], 0xea
jne 0x140048236
and dword [rbx], 0
test edi, edi
je 0x14004823f
or eax, 0xffffffff
jmp 0x14004825d
and dword [rsp + 0x40], 0
lea rax, str.___r_
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x78]
movdqu xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x78]
and qword [rsp + 0x28], 0
mov r8d, ebx
and dword [rsp + 0x20], 0
mov rdx, rdi
and dword [rsp + 0x78], 0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.140046f9c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
cmp dword [rbx], 0x40
jne 0x1400482f8
mov dword [rsp + 0x40], 0x2746
jmp 0x140048308
cmp dword [rbx], 0x4d2
jne 0x14004831b
mov dword [rsp + 0x40], 0x274d
call fcn.140046f9c
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
test edi, edi
je 0x140048324
or eax, 0xffffffff
jmp 0x140048342
and dword [rsp + 0x40], 0
lea rax, str.___r_
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x78]
movdqu xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14004d47c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rsi, rcx
mov qword [r11 - 0x48], rcx
mov qword [r11 - 0x30], rdx
and dword [rsp + 0x30], 0
lea rax, vtable.LicThread.0
mov qword [rcx], rax
lea rax, vtable.LicThreadBoost.0
mov qword [rcx], rax
mov ecx, 0x40
call fcn.140076f90
mov rbp, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
and qword [rax + 0x38], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14004d4fb
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax]
mov qword [rbp + 0x38], rax
mov qword [rsp + 0x38], rbp
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea r14, [rsi + 0x10]
mov qword [rsp + 0x28], r14
and dword [rsp + 0x20], 0
mov r9, rbp
lea r8, [0x140051580]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi + 8], rax
test rax, rax
je 0x14004d581
and qword [rsp + 0x38], 0
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14004d55c
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + reloc.WLDAP32.dll_Ordinal_32]
and qword [rdi + 0x38], 0
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140076f70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
and dword [r14], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14004e7b4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dil, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x140128aa8], eax
inc eax
cmp eax, 1
jne 0x14004e801
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140128aac], eax
test dil, dil
je 0x14004e814
xor eax, eax
lock xadd dword [0x140128aac], eax
test eax, eax
jne 0x14004e838
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.140046f9c
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140046f10
int3
Function at 0x14004ee98
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov r14, r8
mov r12, rdx
mov r13, rcx
mov r15d, dword [r9]
xor ebx, ebx
cmp qword [r8], 0xffffffffffffffff
je 0x14004eee3
lea edx, [rbx + 1]
mov rdi, qword [rbp + 0x60]
mov rcx, rdi
call fcn.14004f97c
mov eax, dword [rdi]
jmp 0x14004efff
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
call fcn.140046f9c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x30], eax
mov qword [rbp - 0x28], rbx
movups xmm0, xmmword [rbp - 0x30]
mov rdi, qword [rbp + 0x60]
movdqu xmmword [rdi], xmm0
cmp rsi, 0xffffffffffffffff
jne 0x14004ef43
or rsi, rsi
xor ebx, ebx
lea r15, str.___r_
jmp 0x14004ef80
xor ebx, ebx
cmp r15d, 0x17
jne 0x14004ef6a
mov dword [rbp + 0x40], ebx
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x40]
lea edx, [rbx + 0x29]
lea r8d, [rbx + 0x1b]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp - 0x30], ebx
lea r15, str.___r_
mov qword [rbp - 0x28], r15
movups xmm0, xmmword [rbp - 0x30]
movdqu xmmword [rdi], xmm0
mov qword [rbp + 0x60], rsi
cmp rsi, 0xffffffffffffffff
jne 0x14004ef93
movups xmm0, xmmword [rdi]
movd eax, xmm0
jmp 0x14004efff
mov rdx, qword [r13 + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x14004efc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140046f9c
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], rax
xor ebx, ebx
jmp 0x14004efce
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], r15
movups xmm0, xmmword [rbp - 0x30]
movdqu xmmword [rdi], xmm0
cmp dword [rdi], 0
je 0x14004f005
movups xmm6, xmm0
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], r15
mov byte [rbp + 0x60], bl
lea r9, [rbp - 0x30]
mov r8b, 1
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.140047ff8
movd eax, xmm6
test eax, eax
jne 0x14004f063
jmp 0x14004f02e
or qword [rbp + 0x60], 0xffffffffffffffff
mov qword [r14], rsi
mov byte [r14 + 8], reloc.WS2_32.dll_recv
lea rcx, [r14 + 0x10]
mov r8b, byte [rbp + 0x60]
call fcn.14004fa20
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], r15
movups xmm0, xmmword [rbp - 0x30]
movdqu xmmword [rdi], xmm0
mov rax, qword [rbp + 0x58]
mov eax, dword [rax]
mov dword [r14 + 0x38], eax
mov byte [r14 + 0x3c], bl
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x30], 2
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [r14 + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [r14 + 0x50], xmm1
mov dword [r14 + 0x58], ebx
movups xmm0, xmmword [rdi]
movdqu xmmword [r12], xmm0
mov rax, r12
mov rbx, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret