joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180039aa0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, ebx
mov dword [rsp + 0x20], 0
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.180038c70
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]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x180039b14
mov rax, rdi
jmp 0x180039b5e
cmp esi, 0x17
jne 0x180039b3e
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 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]
lea rax, [0x18005fc98]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18003eb30
Capabilities:
Receive data
Receive data on socket

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, 0x90
mov r15, qword [rsp + 0xe0]
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x78], r15
mov ecx, 0x90
mov r12d, r9d
mov rbp, r8
lea rdx, [r15 + 0x10]
call fcn.180037650
xor r13d, r13d
mov rbx, rax
mov rax, qword [rsi + 0x18]
mov edx, r13d
mov r8d, r13d
test rax, rax
je 0x18003eb96
mov r8, qword [rsi + 0x10]
mov rdx, rax
lock inc dword [rax + 0xc]
movzx eax, byte [rsi + 8]
lea rcx, [0x180042c00]
mov qword [rbx + 0x28], rcx
mov byte [rbx + 0x38], al
mov qword [rbx + 0x20], r13
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov dword [rbx + 0x30], r13d
mov qword [rbx + 0x40], r13
mov qword [rbx + 0x48], r13
test rdx, rdx
je 0x18003ebd8
mov qword [rbx + 0x40], r8
mov qword [rbx + 0x48], rdx
lock inc dword [rdx + 0xc]
movups xmm0, xmmword [rbp]
movups xmmword [rbx + 0x50], xmm0
movups xmm0, xmmword [r15]
movups xmmword [rbx + 0x60], xmm0
mov rax, qword [r15 + 0x10]
mov qword [rbx + 0x78], r13
mov qword [rbx + 0x80], r13
mov qword [rbx + 0x70], rax
mov rax, qword [r15 + 0x18]
mov qword [rbx + 0x78], rax
mov rax, qword [r15 + 0x20]
mov qword [rbx + 0x80], rax
mov qword [r15 + 0x18], r13
mov qword [r15 + 0x20], r13
mov rax, qword [r15 + 0x28]
mov qword [rbx + 0x88], rax
test rdx, rdx
je 0x18003ec3e
mov eax, 0xffffffff
lock xadd dword [rdx + 0xc], eax
cmp eax, 1
jne 0x18003ec3e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + htons]
test byte [rsi + 8], 0x10
movups xmm0, xmmword [rbp]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x50], xmm0
movq qword [rsp + 0x68], xmm0
movq xmm0, qword [rbp + 8]
movd dword [rsp + 0x60], xmm0
je 0x18003ec8b
test rax, rax
jne 0x18003ec8b
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.1800391c0
jmp 0x18003ed47
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x18003ecb6
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
call fcn.1800391c0
jmp 0x18003ed47
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0xe0]
mov r8d, 1
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0xe0], r13d
mov dword [rsp + 0xc0], r12d
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x18003ed0a
mov eax, 0x2746
jmp 0x18003ed17
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x18003ed3b
cmp eax, 0x3e5
je 0x18003ed3b
mov r9d, dword [rsp + 0xe0]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.1800391c0
jmp 0x18003ed47
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.180039270
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r13
call fcn.180044950
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18003ed90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov r14, qword [rsp + 0xc0]
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x68], r14
mov ecx, 0xa8
mov ebp, r9d
mov r15, r8
lea rdx, [r14 + 0x38]
call fcn.180037650
xor r12d, r12d
mov rdi, rax
mov rax, qword [rbx + 0x18]
mov edx, r12d
mov r8d, r12d
test rax, rax
je 0x18003edf8
mov r8, qword [rbx + 0x10]
mov rdx, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], r12
lea rax, [0x180042e90]
mov qword [rdi + 0x28], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x30], r12d
mov qword [rdi + 0x38], r12
mov qword [rdi + 0x40], r12
test rdx, rdx
je 0x18003ee33
mov qword [rdi + 0x38], r8
mov qword [rdi + 0x40], rdx
lock inc dword [rdx + 0xc]
movups xmm0, xmmword [r15]
movups xmmword [rdi + 0x48], xmm0
mov rax, qword [r14]
mov qword [rdi + 0x58], rax
movups xmm0, xmmword [r14 + 8]
movups xmmword [rdi + 0x60], xmm0
mov eax, dword [r14 + 0x18]
mov dword [rdi + 0x70], eax
mov rax, qword [r14 + 0x20]
mov qword [rdi + 0x78], rax
movups xmm0, xmmword [r14 + 0x28]
movups xmmword [rdi + 0x80], xmm0
mov rax, qword [r14 + 0x38]
mov qword [rdi + 0x98], r12
mov qword [rdi + 0xa0], r12
mov qword [rdi + 0x90], rax
mov rax, qword [r14 + 0x40]
mov qword [rdi + 0x98], rax
mov rax, qword [r14 + 0x48]
mov qword [rdi + 0xa0], rax
mov qword [r14 + 0x40], r12
mov qword [r14 + 0x48], r12
test rdx, rdx
je 0x18003eeba
mov eax, 0xffffffff
lock xadd dword [rdx + 0xc], eax
cmp eax, 1
jne 0x18003eeba
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + htons]
test byte [rbx + 8], 0x10
mov rcx, qword [r15 + 8]
mov rax, qword [r15]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x60], rcx
je 0x18003eef9
test rcx, rcx
jne 0x18003eef9
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [rsi + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.1800391c0
jmp 0x18003ef95
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x18003ef21
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.1800391c0
jmp 0x18003ef95
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x50]
mov r8d, 1
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0xc0], r12d
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
je 0x18003ef89
cmp eax, 0x3e5
je 0x18003ef89
mov r9d, dword [rsp + 0xc0]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.1800391c0
jmp 0x18003ef95
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.180039270
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r12
call fcn.180044a10
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x18003f050
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov rbx, rcx
mov rdi, qword [rax + 0x10]
cmp rdi, 0xffffffffffffffff
jne 0x18003f08c
call fcn.180038c70
mov rcx, qword [rbx]
add rcx, 0x10
add rsp, 0x28
pop rdi
pop rbx
jmp 0x180041950
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
call fcn.180038c70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
add rcx, 0x10
add rsp, 0x28
pop rdi
pop rbx
jmp 0x180041950
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r15
xor r15d, r15d
cmp qword [rcx], 0xffffffffffffffff
je 0x180041994
mov rdx, qword [rcx + 0x60]
xor eax, eax
lock cmpxchg qword [rdx + 0x38], r15
je 0x180041994
mov rdx, qword [rcx]
lea r8, [rcx + 0x20]
mov rcx, rax
mov r9b, 1
call fcn.180037fd0
mov rdi, qword [rsi]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x38], r14
cmp rdi, 0xffffffffffffffff
je 0x180041a6d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.180038c70
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], r14
mov ebp, eax
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
je 0x180041a6d
call fcn.180038c70
mov rcx, qword [rax + 8]
cmp qword [r14 + 8], rcx
jne 0x180041a01
cmp ebp, 0x2733
je 0x180041a18
call fcn.180038c70
mov rcx, qword [rax + 8]
cmp qword [r14 + 8], rcx
jne 0x180041a89
cmp ebp, 0x4d5
jne 0x180041a89
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rsi + 8], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.180038c70
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x180041a89
mov dword [rsp + 0x20], r15d
lea rax, [0x18005fc98]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rsp + 0x38]
mov rdi, 0xffffffffffffffff
mov rbp, qword [rsp + 0x60]
mov byte [rsi + 8], r15b
mov qword [rsi], rdi
mov rbx, qword [rsi + 0x18]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
test rbx, rbx
je 0x180041ae3
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180041ae3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180041ae3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
cmp dword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jne 0x180041af9
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.180038a80
int3
Function at 0x18003fb40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003fb92
nop word [rax + rax]
cmp qword [rax], rbx
je 0x18003fcfa
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18003fb80
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0xa0
call fcn.180037650
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.180042850]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rdi]
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x48], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x78], r14
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x70], rax
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x78], rax
mov qword [rdi + 0x38], r14
mov qword [rdi + 0x40], r14
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
movups xmm0, xmmword [rdi + 0x50]
movups xmmword [rbx + 0x88], xmm0
mov rax, qword [rdi + 0x60]
mov qword [rbx + 0x98], rax
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.180043160
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x18003fcdc
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.180042850
nop
lea rcx, [rsp + 0x20]
call fcn.180040a70
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x18003fb92
lock or dword [rsp], 0
mov rdx, rdi
mov rcx, rdi
call fcn.18003f420
nop
lock or dword [rsp], 0
jmp 0x18003fcdc
Function at 0x18003fd20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003fd72
nop word [rax + rax]
cmp qword [rax], rbx
je 0x18003fef4
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18003fd60
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0xb8
call fcn.180037650
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.180042a20]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rdi]
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x48], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
mov eax, dword [rdi + 0x30]
mov dword [rbx + 0x68], eax
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x70], rax
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rbx + 0x78], xmm0
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x98], r14
mov rax, qword [rdi + 0x58]
mov qword [rbx + 0x90], rax
mov rax, qword [rdi + 0x60]
mov qword [rbx + 0x98], rax
mov qword [rdi + 0x58], r14
mov qword [rdi + 0x60], r14
movups xmm0, xmmword [rdi + 0x68]
movups xmmword [rbx + 0xa0], xmm0
mov rax, qword [rdi + 0x78]
mov qword [rbx + 0xb0], rax
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.180043160
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x18003fed6
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.180042a20
nop
lea rcx, [rsp + 0x20]
call fcn.180040a70
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x18003fd72
lock or dword [rsp], 0
mov rdx, rdi
mov rcx, rdi
call fcn.18003f510
nop
lock or dword [rsp], 0
jmp 0x18003fed6
Function at 0x180041950
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov rbx, rcx
mov rdi, qword [rax + 0x10]
cmp rdi, 0xffffffffffffffff
jne 0x18003f08c
call fcn.180038c70
mov rcx, qword [rbx]
add rcx, 0x10
add rsp, 0x28
pop rdi
pop rbx
jmp 0x180041950
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
call fcn.180038c70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
add rcx, 0x10
add rsp, 0x28
pop rdi
pop rbx
jmp 0x180041950
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r15
xor r15d, r15d
cmp qword [rcx], 0xffffffffffffffff
je 0x180041994
mov rdx, qword [rcx + 0x60]
xor eax, eax
lock cmpxchg qword [rdx + 0x38], r15
je 0x180041994
mov rdx, qword [rcx]
lea r8, [rcx + 0x20]
mov rcx, rax
mov r9b, 1
call fcn.180037fd0
mov rdi, qword [rsi]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x38], r14
cmp rdi, 0xffffffffffffffff
je 0x180041a6d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.180038c70
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], r14
mov ebp, eax
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
je 0x180041a6d
call fcn.180038c70
mov rcx, qword [rax + 8]
cmp qword [r14 + 8], rcx
jne 0x180041a01
cmp ebp, 0x2733
je 0x180041a18
call fcn.180038c70
mov rcx, qword [rax + 8]
cmp qword [r14 + 8], rcx
jne 0x180041a89
cmp ebp, 0x4d5
jne 0x180041a89
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rsi + 8], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.180038c70
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x180041a89
mov dword [rsp + 0x20], r15d
lea rax, [0x18005fc98]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rsp + 0x38]
mov rdi, 0xffffffffffffffff
mov rbp, qword [rsp + 0x60]
mov byte [rsi + 8], r15b
mov qword [rsi], rdi
mov rbx, qword [rsi + 0x18]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
test rbx, rbx
je 0x180041ae3
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180041ae3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180041ae3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
cmp dword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jne 0x180041af9
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.180038a80
int3
Function at 0x180043160
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x28]
mov rbp, rcx
mov ecx, dword [0x180067f70]
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800431a0
cmp qword [rax], rbx
je 0x1800431cd
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180043192
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi]
cmp byte [rax + 0x60], 0
je 0x180043218
mov qword [rdi + 0x20], 0
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x180043201
mov qword [rcx + 0x20], rdi
jmp 0x180043205
mov rcx, qword [rsi]
mov rbx, qword [rax + 8]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x1800431ad
mov rax, qword [rsi]
cmp byte [rax + 0x60], 0
jne 0x1800431ad
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x180043262
mov qword [rax + 0x68], rdi
mov qword [rax + 0x70], rdi
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180043260
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsi]
mov qword [rdi + 0x20], 0
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x180043246
mov qword [rcx + 0x20], rdi
jmp 0x18004324a
mov qword [rax + 0x78], rdi
mov qword [rax + 0x80], rdi
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x28]
call fcn.1800445b0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180044e04
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180044e88
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18004dd40]
cmp byte [rcx + rax], 0
je 0x180044e88
dec r8
sub rdx, 1
jne 0x180044e6e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180075540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18007556d
xor al, al
jmp 0x1800756cf
mov rax, qword [0x1800956c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1800956c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1800956d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800956d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1800956e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1800956e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800956f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800956f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x180095700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1800756c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x180075619
mov r11d, 2
jmp 0x18007563d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x180075633
mov r11d, 1
jmp 0x18007563d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1800756e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x180075682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18007569a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1800756aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1800756b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x180075600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1800756ca