joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005020
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 [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180005059
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.18000d070
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.18000d070

Function at 0x180005070
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 [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18000509d
mov r8, qword [rax + 8]
jmp 0x1800050a0
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x1800050c4
test r8, r8
je 0x1800050c4
cmp qword [r8], 0
jne 0x1800050c4
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.18004a660

Function at 0x1800053a0
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 [0x1800a2970], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1800053fd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_8]
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 0x180005430
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x40
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x180005497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.180003050
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x18000559a
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1800054e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.180003050
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1800055ac
xor ecx, ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8, [0x1800055c0]
mov r9, rsi
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x60], ecx
call fcn.18005b33c
mov qword [rbp + 8], rax
test rax, rax
jne 0x180005557
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x180005536
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x180005545
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.180003050
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x180005588
test rdi, rdi
je 0x180005573
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.180002fc0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.180002fc0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.180002fc0
int3
Function at 0x180005cc0
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, 0x70
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x180005d13
call fcn.180005e50
mov dword [rsp + 0x20], ebx
lea rax, [0x18009ed88]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x58]
call fcn.18004bef0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.180006010
test rax, rax
je 0x180005da5
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.180006010
test rax, rax
jne 0x180005d81
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x38]
mov esi, 3
mov rcx, qword [rdi]
test rcx, rcx
je 0x180005dce
call fcn.18004a660
add rdi, 8
sub rsi, 1
jne 0x180005dc1
lea rcx, [rsp + 0x58]
call fcn.18004bf7c
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180006580
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x1800066c6
mov qword [rsp + 0x70], rsi
test r8b, r8b
je 0x1800065eb
movzx eax, byte [rdx]
test al, 8
je 0x1800065eb
or al, 8
mov dword [rsp + 0x60], r15d
mov byte [rdx], al
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1800065eb
call fcn.180003050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x180006602
mov dword [rdi], r15d
jmp 0x18000668f
mov qword [rsp + 0x68], rbx
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
call fcn.180003050
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x180006641
cmp dword [rdi], 0x2733
je 0x18000665c
call fcn.180003050
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1800066c2
cmp dword [rdi], 0x4d5
jne 0x1800066c2
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
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x1800066a3
mov dword [rdi], r15d
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
jmp 0x18000668a
mov rbp, qword [rsp + 0x78]
mov eax, r15d
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1800066e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov edx, dword [rdx]
sub edx, 0x79
je 0x180006727
sub edx, 0x450
je 0x18000671d
sub edx, 6
je 0x180006713
cmp edx, 1
jne 0x180006741
mov dword [rsp + 0x30], 0x2751
jmp 0x18000672f
mov dword [rsp + 0x30], 0x2743
jmp 0x18000672f
mov dword [rsp + 0x30], 0x274d
jmp 0x18000672f
mov dword [rsp + 0x30], 0x274c
call fcn.180003050
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
jne 0x1800067c0
cmp rbx, 0xffffffffffffffff
jne 0x180006771
mov dword [rsp + 0x30], 0x2719
call fcn.180003050
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800067a1
mov dword [rdi], eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x50
xor esi, esi
lea r9, [rax + 0x20]
mov qword [rax - 0x28], rsi
mov qword [rax - 0x30], rsi
mov dword [rax - 0x38], esi
mov dword [rax + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.180003050
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]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x180006838
mov dword [rsp + 0x40], 0x2746
jmp 0x180006848
cmp ecx, 0x4d2
jne 0x18000685a
mov dword [rsp + 0x40], 0x274d
call fcn.180003050
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test edi, edi
je 0x180006873
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, dword [rsp + 0x78]
mov dword [rbx], esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180006f30
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x68]
xor eax, eax
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.180003050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x180006f8e
cmp eax, 0x4d2
jne 0x180006f93
call fcn.180003050
add rsp, 0x58
ret
Function at 0x180007b60
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14, r8
mov rbp, rdx
mov r13, rcx
xor dil, dil
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea rsi, [rcx + 0x68]
mov r15d, 4
xor r12d, r12d
mov rbx, qword [rsp + 0x48]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x180007be5
xor edx, edx
mov rax, rbp
div rcx
shl rdx, 4
mov rcx, qword [rsi + 0x28]
add rcx, rdx
mov rax, qword [rcx]
mov rdx, qword [rsi + 8]
cmp rax, rdx
je 0x180007be9
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx]
cmp rax, rdx
je 0x180007be5
cmp qword [rax + 0x10], rbp
je 0x180007c3a
mov rcx, qword [rax]
mov rax, rcx
cmp rcx, rdx
jne 0x180007bd4
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 8]
je 0x180007d48
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x180007c50
nop dword [rax]
movups xmm0, xmmword [r14]
movups xmmword [rax + 0x38], xmm0
mov r8, qword [rdx + 0x18]
test r8, r8
je 0x180007c26
mov rcx, qword [r8 + 0x20]
mov qword [rdx + 0x18], rcx
test rcx, rcx
jne 0x180007c22
mov qword [rdx + 0x20], r12
mov qword [r8 + 0x20], r12
mov qword [rax + 0x20], r12
mov qword [rsp + 0x48], rax
test rbx, rbx
je 0x180007c3f
mov qword [rbx + 0x20], rax
jmp 0x180007c44
mov rdx, rax
jmp 0x180007be9
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rdx + 0x18]
test rax, rax
jne 0x180007c00
mov rcx, rsi
call fcn.18000b5e0
mov dil, 1
add rsi, 0x38
sub r15, 1
jne 0x180007ba0
lea rdx, [rsp + 0x40]
mov rcx, qword [r13 + 0x28]
call fcn.180003300
test dil, dil
je 0x180007ce8
mov byte [rsp + 0xa0], r12b
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0xb8], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0xb8]
lea r8d, [r15 + 1]
lea rdx, [rsp + 0x50]
mov rcx, qword [r13 + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.180003050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x180007ce2
cmp eax, 0x4d2
jne 0x180007ce8
call fcn.180003050
nop
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
test rdi, rdi
je 0x180007d30
mov rbx, rdx
lea rsi, [0x18009ed88]
nop
mov rax, qword [rdi + 0x20]
mov rdi, rax
mov qword [rbx + 0x20], r12
mov rbx, rax
mov rax, qword [rdx + 0x28]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], rsi
xor r9d, r9d
lea r8, [rsp + 0x50]
xor ecx, ecx
call rax
mov rdx, rbx
test rbx, rbx
jne 0x180007d00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dil, dil
jne 0x180007c58
jmp 0x180007c5b
Function at 0x180007ff0
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x18000802a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.180005f60
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x180008052
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.180005f60
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x1800080d1
cmp eax, 0x3e5
je 0x1800080d1
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.180005f60
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.180005ec0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1800080f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x18000812a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.180005f60
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x180008152
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.180005f60
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1800081ab
mov eax, 0x2746
jmp 0x1800081b8
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x1800081e7
cmp eax, 0x3e5
je 0x1800081e7
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.180005f60
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.180005ec0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x1800103d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12, r9
mov r14, r8
mov r15, rdx
mov r13, rcx
mov ebx, dword [r9]
cmp qword [r8], 0xffffffffffffffff
je 0x180010424
mov dword [rbp - 0x30], 1
call fcn.180003270
mov qword [rbp - 0x28], rax
mov rdi, qword [rbp + 0x50]
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdi], xmm0
jmp 0x180010590
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001047e
mov rdi, qword [rbp + 0x50]
xor eax, eax
mov dword [rdi], eax
cmp ebx, 0x17
jne 0x1800104a5
mov dword [rbp + 0x30], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x30]
lea edx, [rax + 0x29]
lea r8d, [rax + 0x1b]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x1800104a5
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x30], eax
mov qword [rbp - 0x28], rbx
mov rdi, qword [rbp + 0x50]
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdi], xmm0
mov rsi, 0xffffffffffffffff
cmp rsi, 0xffffffffffffffff
jne 0x1800104b6
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x20], xmm0
xor ebx, ebx
jmp 0x180010528
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]
lea r13, [0x18009ed88]
test rax, rax
jne 0x1800104f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.180003050
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], rax
xor ebx, ebx
jmp 0x1800104fa
xor ebx, ebx
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
je 0x180010530
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x28], r13
mov byte [rbp + 0x50], 0
lea r9, [rbp - 0x30]
mov r8b, 1
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.180006580
cmp dword [rbp - 0x20], 0
jne 0x180010590
jmp 0x18001055c
mov qword [rbp + 0x50], 0xffffffffffffffff
mov qword [r14], rsi
mov byte [r14 + 8], select
lea rcx, [r14 + 0x10]
movzx r8d, byte [rbp + 0x50]
call fcn.18000d120
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], r13
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdi], xmm0
mov eax, dword [r12]
mov dword [r14 + 0x38], eax
mov byte [r14 + 0x3c], 0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov qword [rbp - 0x20], 2
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [r14 + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [r14 + 0x50], xmm1
mov dword [r14 + 0x58], ebx
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
mov rax, r15
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180011e90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x180011ed9
lea rcx, [0x180012320]
mov qword [rbp + 0x27], rcx
mov qword [rbp + 0x2f], rdx
lea rdx, [rbp + 0x27]
mov rcx, rsi
call rax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rcx + 0x10]
mov rax, qword [rdx]
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180011efd
lock inc dword [rcx + 8]
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx + 8]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rcx
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x31], rax
mov rax, qword [rdx + 0x20]
mov qword [rbp - 0x29], rax
mov eax, dword [rdx + 0x28]
mov dword [rbp - 0x21], eax
movups xmm0, xmmword [rdx + 0x30]
movups xmmword [rbp - 0x19], xmm0
mov rax, qword [rdx + 0x40]
mov qword [rbp - 9], rax
movups xmm0, xmmword [rdx + 0x48]
movups xmmword [rbp - 1], xmm0
lea rax, [rbp - 0x49]
mov qword [rbp + 0x7f], rax
lea rax, [rbp + 0x67]
mov qword [rbp + 0xf], rax
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x180011f60
mov rdx, qword [rax + 8]
jmp 0x180011f63
mov rdx, rbx
mov r8d, 0x68
call fcn.180012520
mov r8, rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rbx
lea rdx, [rax + 8]
mov rcx, qword [rbp - 0x49]
mov qword [rdx], rcx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], rbx
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x180011f9d
lock inc dword [rax + 8]
mov r8, qword [rbp + 0x17]
mov rax, qword [rbp - 0x41]
mov qword [rdx + 8], rax
mov rax, qword [rbp - 0x39]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp - 0x31]
mov qword [rdx + 0x18], rax
mov rax, qword [rbp - 0x29]
mov qword [rdx + 0x20], rax
mov eax, dword [rbp - 0x21]
mov dword [rdx + 0x28], eax
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rdx + 0x30], xmm0
mov rax, qword [rbp - 9]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rbp - 1]
movups xmmword [rdx + 0x48], xmm0
lea rax, [0x1800125d0]
mov qword [r8], rax
mov qword [rbp + 0x77], r8
mov qword [rbp + 0x17], rbx
lea rcx, [rbp + 0xf]
call fcn.180012260
nop
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x18001202d
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18001202d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18001202d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rbp + 0x77]
mov rcx, rsi
call r14
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x180012049
mov rax, qword [rcx]
xor edx, edx
call rax
nop
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180012260
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x1800122bd
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x1800122b5
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800122b0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1800122b0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180012314
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180012304
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180012304
cmp qword [rcx + 0x10], 0
jne 0x180012304
movzx eax, byte [rbx + 0x68]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.18004a660
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret