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

Disassembly:
jmp 0x1800385b0
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x160
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x170], ebx
xor ecx, ecx
call fcn.18000144c
test al, al
je 0x18003860a
xor r9d, r9d
lea r8d, [rbx + 0x5e]
lea rdx, str.F:Demoipc_sdk_fix_srcp2p_netevent_loop.cc
lea rcx, [rsp + 0x50]
call fcn.180003c9c
nop
mov ebx, 1
mov dword [rsp + 0x170], ebx
lea rcx, [rax + 8]
lea rdx, str._p2p_loop__EventLoop_start
call fcn.1800014ce
nop
test bl, 1
je 0x180038619
lea rcx, [rsp + 0x50]
call fcn.180001aa0
lea rcx, [rdi + 0x200]
call fcn.180002847
movzx edx, byte [rax]
nop
test dl, dl
jne 0x180038704
mov byte [rsp + 0x170], 1
lea rcx, [rdi + 0x200]
call fcn.180003db9
mov rbx, rax
lea rcx, [rsp + 0x170]
call fcn.180002aea
xchg byte [rbx], al
mov qword [rsp + 0x170], rdi
lea rax, [0x180001db1]
mov qword [rsp + 0x178], rax
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x180]
call fcn.180003643
mov rbx, qword [rax]
mov qword [rax], 0
mov qword [rsp + 0x170], rbx
mov rcx, qword [rsp + 0x180]
test rcx, rcx
je 0x1800386b4
mov edx, select
call fcn.1800038d7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180002577]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18003871d
cmp dword [rsp + 0x38], 0
je 0x180038730
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x180038715
mov rbx, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x18008fea0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, rdx
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18008fee4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x30
pop rbx
ret
cmp dword [rsp + 0x50], 0
je 0x18008ff0f
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18008fed8
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x18008ff40
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, rdx
mov dword [rsp + 0x20], 4
mov edx, 6
lea r9, [rsp + 0x50]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18008ff78
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x180090040
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180090040
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1800900c5
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x180090140
mov ecx, eax
btr ecx, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], ecx
jne 0x18009009a
test cl, 1
jne 0x18009009a
test al, 0x40
je 0x18009009a
and eax, 0xfffff7bf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x18009009a
mov rax, qword [rdx + 8]
dec dword [rax + 8]
cmp qword [rdx + 0x100], 0
je 0x180090140
mov ecx, dword [r8 + 0x40]
call fcn.180004205
mov ecx, eax
call fcn.180001f37
mov edx, eax
mov rcx, rbx
call qword [rbx + 0x100]
jmp 0x180090140
cmp dword [r8 + 0x40], 0
jl 0x18009011a
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18009011a
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x180090140
xor edx, edx
mov rcx, rbx
call rax
jmp 0x180090140
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x180090140
mov rdx, rdi
mov rcx, rbx
call fcn.180091920
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x180090169
test ecx, ecx
jne 0x180090169
test al, 8
jne 0x180090169
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800901d0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800901d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
sub dword [rdx + 0x7c], 1
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
jne 0x18009020f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x18009020f
test al, 0x40
je 0x18009020f
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x18009020f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov rcx, qword [r8 + 0x18]
xor edi, edi
mov rax, qword [r8 + 0x10]
mov qword [rcx], rax
mov rcx, qword [r8 + 0x10]
mov rax, qword [r8 + 0x18]
mov qword [rcx + 8], rax
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x1800902a1
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], edi
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x180090299
mov qword [rbx + 0xc0], rdi
or dword [rbx + 0x58], 0x19000
mov dword [rbx + 0x100], edi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], 0xffffffffffffffff
mov dword [rbx + 0x88], select
mov qword [rbx + 0x80], rbx
mov qword [rbx + 0x108], rdi
inc dword [rbp + 0xa8]
jmp 0x1800902a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1800902a6
call fcn.180004205
mov edi, eax
mov ecx, edi
call fcn.180001f37
mov edx, eax
mov rcx, rsi
call qword [rsi + reloc.WS2_32.dll_WSASetLastError]
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x1800902e0
test ecx, ecx
jne 0x1800902e0
test al, 8
jne 0x1800902e0
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rbp + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rbp + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800910c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1800910c0
sub rsp, 0x28
mov rax, qword [rcx + 0x110]
cmp rax, 0xffffffffffffffff
jne 0x1800910db
mov eax, 0xfffff019
add rsp, 0x28
ret
mov ecx, dword [rcx + 0x118]
test ecx, ecx
jne 0x1800910fa
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180091103
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.180001f37
xor eax, eax
add rsp, 0x28
ret
Function at 0x180091c90
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, 0x50
xorps xmm0, xmm0
lea rbx, [rdx + 0x80]
movups xmmword [rbx + 0x40], xmm0
lea r14, [rbx + 0x40]
xor ebp, ebp
movups xmmword [r14 + 0x10], xmm0
or dword [rdx + 0x58], 0x80000
lea rax, [0x18012d4f6]
movups xmmword [r14], xmm0
mov rdi, rdx
mov rsi, rcx
movups xmmword [r14 + 0x10], xmm0
test dword [rdx + 0x58], 0x100000
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ebp
je 0x180091cf6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x180091d81
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x180091de9
bts eax, 0x11
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x180091d74
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x180091e5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x180091e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180091de9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x180091da0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180091dae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x180091ddc
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x180091e5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x180091e5f
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x180091e5f
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x180091e5f
mov rdx, qword [rbx + 0x70]
lea r8, [0x18008fd80]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x180091e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180091e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180091e4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.180090000
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180091fd0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x38], 1
mov rbx, rdx
mov rbp, rcx
je 0x18009200c
mov eax, 0xfffff00e
jmp 0x180092111
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x18009202f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180092111
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x18009204e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180092111
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x180092073
cmp dword [rsp + 0x50], eax
je 0x180092043
or dword [rbx + 0x58], 0x100000
mov eax, dword [0x18012e084]
cmp esi, 0x17
mov r8, qword [0x18012e0f8]
cmove eax, dword [0x18012e080]
test r8, r8
je 0x1800920bc
test dword [rbx + 0x58], 0x100000
jne 0x1800920bc
test eax, eax
jne 0x1800920bc
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x1800920b1
or dword [rbx + 0x58], 0x40000
jmp 0x1800920bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x180092043
test dword [rbx + 0x58], 0x2000000
je 0x1800920da
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.18008ff40
test eax, eax
jne 0x180092111
test dword [rbx + 0x58], 0x4000000
je 0x1800920fc
mov r9d, 0x3c
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 - 0x3b]
call fcn.18008fea0
test eax, eax
jne 0x180092111
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x18009210f
or dword [rbx + 0x58], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800921e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov r15d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x180092278
test sil, 1
je 0x180092224
cmp word [rdx], 0x17
je 0x180092224
mov eax, 0x57
jmp 0x1800922dc
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x180092248
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1800922dc
movzx r9d, word [rdi]
mov r8, rbp
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.180091fd0
mov r14d, eax
test eax, eax
je 0x180092278
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x1800922dc
cmp word [rdi], 0x17
jne 0x1800922a8
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x50]
mov edx, 0x29
mov dword [rsp + 0x20], 4
and esi, 1
mov dword [rsp + 0x50], esi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800922d3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1800922dc
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x200
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180092eb0
Capabilities:
Get common file path
Get session user name

Disassembly:
jmp 0x180092eb0
push rbx
sub rsp, 0x460
mov rax, qword [0x180118258]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
test rcx, rcx
jne 0x180092edd
mov eax, 0xfffff019
jmp 0x180093007
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180092f0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180001f37
jmp 0x180093007
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x240]
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x180092f54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x180092f8a
mov ecx, ebx
call fcn.180001f37
jmp 0x180093007
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x202
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x180092f91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180092f00
mov eax, 0xfffff027
jmp 0x180093007
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x480], rdi
lea rcx, [rsp + 0x240]
mov qword [rbx + 0x18], 0
call fcn.1800029d2
test eax, eax
jne 0x180092fff
mov rdx, rbx
mov qword [rsp + 0x478], rsi
lea rcx, [rsp + 0x30]
mov qword [rbx], 0
call fcn.1800029d2
mov esi, eax
test eax, eax
je 0x180092fe5
mov rcx, qword [rbx + 0x18]
call fcn.180003bf2
mov eax, esi
jmp 0x180092ff7
mov qword [rbx + 0x10], 0
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x478]
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180002752
add rsp, 0x460
pop rbx
ret
Function at 0x1800949b0
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1800949b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180118258]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rsi + 3]
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180094a24
cmp dword [rsp + 0x28], edi
je 0x180094a20
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180094a07
jmp 0x180094a24
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180002752
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180096ef0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180096ef0
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov edx, 0xfffff027
cmp eax, 0xffffffff
mov dword [rbx], eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x180096fa0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180096fa0
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180096fb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
add rsp, 0x28
ret

Function at 0x1800974b0
Capabilities:
Create thread
Resume thread

Disassembly:
jmp 0x1800974b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov ecx, 0x18
mov rbp, rdx
call fcn.180001aeb
mov rsi, rax
test rax, rax
jne 0x1800974e6
mov eax, 0xfffff027
jmp 0x180097562
mov qword [rax + 8], rdi
lea r8, [0x180096740]
xor edi, edi
mov qword [rax], rbp
mov qword [rsp + 0x28], rdi
mov r9, rsi
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x180097550
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rsi
mov ebx, dword [rax]
call fcn.180003bf2
test ebx, ebx
je 0x180097560
cmp ebx, 0xb
je 0x180097549
cmp ebx, 0xd
je 0x180097542
cmp ebx, 0x16
setne dil
lea eax, [rdi - 0xfe7]
jmp 0x180097562
mov eax, 0xfffff004
jmp 0x180097562
mov eax, 0xfffff008
jmp 0x180097562
mov qword [rbx], rax
mov rcx, rax
mov qword [rsi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180097e50
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rdx + 8]
lea r10, [rcx + 0x40]
mov rax, qword [rsp + 0xa0]
mov rbx, rdx
mov qword [rcx + 0x78], rax
xorps xmm0, xmm0
mov eax, dword [rsp + 0x98]
mov ebp, r9d
mov qword [rcx + 0x70], rdx
lea r9, [r11 + 0x38]
mov dword [rcx + 8], 5
mov r14, r8
movups xmmword [r10], xmm0
xor r15d, r15d
mov rdi, rcx
mov qword [r11 - 0x28], r15
mov r8d, ebp
mov qword [r11 - 0x30], r10
mov rdx, r14
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x90]
movups xmmword [r10 + 0x10], xmm0
mov rcx, qword [rbx + 0x70]
mov qword [r11 - 0x40], rax
mov dword [r11 - 0x48], r15d
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x180097f6d
test dword [rbx + 0x58], 0x40000
je 0x180097f82
mov qword [rdi + 0x60], r15
mov ecx, dword [rbx + 0x7c]
inc dword [rbx + 0x78]
mov rax, qword [rdi + 0x60]
add qword [rbx + 0x60], rax
inc qword [rbx + 0x68]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x180097f26
mov eax, dword [rbx + 0x58]
test al, 0x40
jne 0x180097f26
or eax, 0x40
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x180097f26
mov rax, qword [rbx + 8]
inc dword [rax + 8]
lea rcx, [rdi + 0x10]
lea rax, [rsi + 0x20]
mov qword [rcx], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x18], rax
mov qword [rax], rcx
mov qword [rsi + 0x28], rcx
mov qword [rdi + 0x68], r15
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x180097f63
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x180097fde
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x180097fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180097f82
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180097fe0
mov edx, ebp
mov rcx, r14
call fcn.18000391d
mov qword [rdi + 0x60], rax
mov ecx, dword [rbx + 0x7c]
inc dword [rbx + 0x78]
mov rax, qword [rdi + 0x60]
add qword [rbx + 0x60], rax
inc qword [rbx + 0x68]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x180097fc4
mov eax, dword [rbx + 0x58]
test al, 0x40
jne 0x180097fc4
or eax, 0x40
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x180097fc4
mov rax, qword [rbx + 8]
inc dword [rax + 8]
lea rcx, [rdi + 0x10]
lea rax, [rsi + 0x20]
mov qword [rcx], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x18], rax
mov qword [rax], rcx
mov qword [rsi + 0x28], rcx
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x1800982d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
test dword [rcx + 0x58], 0x1000000
mov ebx, r9d
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
jne 0x180098394
mov r9d, 4
lea rdx, [0x18012e070]
lea r8d, [r9 + 0xc]
call fcn.180098c30
test eax, eax
jne 0x180098387
mov qword [rsp + 0x40], 0
test rdi, rdi
je 0x18009833b
lea r8, [rsp + 0x44]
mov rdx, rdi
lea ecx, [rax + 2]
call fcn.180003ab2
test eax, eax
je 0x180098347
jmp 0x180098399
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x40], eax
test ebx, ebx
je 0x18009835d
cmp ebx, 1
jne 0x180098394
lea r8d, [rbx + 0xb]
jmp 0x180098363
mov r8d, reloc.WS2_32.dll_listen
mov rcx, qword [rsi + 0x70]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180098390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180001f37
jmp 0x180098399
xor eax, eax
jmp 0x180098399
mov eax, 0xfffff019
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1800983f0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800983f0
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180118258]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rcx + 0x58]
mov ebx, r9d
and eax, 0x1000200
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
cmp eax, 0x200
je 0x1800984c0
mov r9d, 4
lea rdx, [0x18012e040]
lea r8d, [r9 + 0x18]
call fcn.180098c30
test eax, eax
jne 0x1800984b3
test rdi, rdi
je 0x180098466
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call fcn.180001645
test eax, eax
jne 0x1800984c0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x40], eax
jmp 0x18009846e
mov dword [rsp + 0x40], 0
movups xmm0, xmmword [rbp + 8]
movups xmmword [rsp + 0x30], xmm0
test ebx, ebx
je 0x180098486
cmp ebx, 1
jne 0x1800984c0
lea r8d, [rbx + 0xb]
jmp 0x18009848c
mov r8d, reloc.WS2_32.dll_listen
mov rcx, qword [rsi + 0x70]
lea r9, [rsp + 0x30]
mov edx, 0x29
mov dword [rsp + 0x20], socket
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1800984bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180001f37
jmp 0x1800984c5
xor eax, eax
jmp 0x1800984c5
mov eax, 0xfffff019
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180002752
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret