joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010f560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x1403b9868]
xor rax, rsp
mov qword [rbp + 0x698], rax
mov rbx, rcx
lea rcx, [rsp + 0x70]
call fcn.14010a5b0
nop
lea rdi, [rbx + 8]
mov rsi, qword [rbx]
mov rbx, qword [rdi]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010f5c9
cmp qword [rax], rbx
je 0x14010f6ec
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14010f5b7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x60]
mov ecx, 0x368
call fcn.140062870
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400e1b10]
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
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x70]
call fcn.14010a5b0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140156110
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
test al, al
je 0x14010f6b0
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
call fcn.14018e9e0
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsi + 0x28]
call fcn.1400e1b10
nop
lea rcx, [rsp + 0x38]
call fcn.1400c5a90
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x228]
call fcn.1400c11c0
lea rcx, [rbp + 0x60]
call fcn.1400c11c0
mov rcx, qword [rbp + 0x698]
xor rcx, rsp
call fcn.1402806f0
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14010f5c9
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x2b0]
call fcn.1400bb7d0
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x360]
call fcn.14010a5b0
nop
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp]
call fcn.1400f62f0
nop
lea rcx, [rbp + 0x618]
call fcn.1400c11c0
lea rcx, [rbp + 0x450]
call fcn.1400c11c0
lea rcx, [rbp + 0x300]
call fcn.1400c11c0
nop
nop
jmp 0x14010f6b0
Function at 0x14010ff90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rbx, rcx
mov rax, qword [rdx]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x80], rax
xor r14d, r14d
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], r14
add rdx, 0x18
lea rcx, [rbp - 0x78]
call fcn.1400bc480
nop
lea rdi, [rbx + 8]
mov rsi, qword [rbx]
mov rbx, qword [rdi]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140110016
cmp qword [rax], rbx
je 0x140110180
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140110004
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
mov ecx, 0x1d8
call fcn.140062870
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [fcn.14014d4b0]
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 [rsp + 0x70]
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x48], rax
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
lea rcx, [rbx + 0x50]
lea rdx, [rbp - 0x78]
call fcn.1400bc480
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140156110
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
test al, al
je 0x140110125
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
call fcn.14018e9e0
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsi + 0x28]
call fcn.14014d4b0
nop
lea rcx, [rsp + 0x38]
call fcn.1400c5a90
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp - 0x78]
call fcn.1400c4bd0
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140110163
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140110163
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140110163
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140110016
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400e24b0
nop
nop
jmp 0x140110125
Function at 0x140111030
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
movsxd r8, dword [rcx + 0x28]
lea rdx, [rcx + 0x30]
add rsp, 0x28
jmp 0x140111030
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rcx, qword [rax + 0x28]
mov rbx, qword [rcx + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140111064
cmp qword [rax], rbx
je 0x1401110ab
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140111056
lea rdx, [rsp + 0x38]
mov ecx, 0x40
call fcn.140062870
xor edx, edx
lea rcx, [0x14013c400]
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov dword [rax + 0x30], edx
lock inc dword [rbx + 0x30]
mov rdx, rax
mov rcx, rbx
call fcn.140064ee0
add rsp, 0x20
pop rbx
ret
cmp qword [rax + 8], 0
je 0x140111064
lea rdx, [rsp + 0x38]
nop
lea rcx, [rsp + 0x38]
call fcn.14009aea0
nop
add rsp, 0x20
pop rbx
ret

Function at 0x140118d40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x9c0], 0x270
mov rbx, rcx
jne 0x140118d5b
call fcn.140169000
mov rax, qword [rbx + 0x9c0]
mov edx, dword [rbx + rax*4]
inc rax
mov qword [rbx + 0x9c0], rax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x1401248f0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp qword [rcx + 0x18], 0x10
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov rbx, rcx
jb 0x14012491e
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x80]
xor r15d, r15d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov edx, 0x40000001
mov dword [rsp + 0x28], eax
lea r9d, [r15 + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140124971
call fcn.1400636f0
mov rcx, qword [rsp + 0x88]
mov dword [rcx], 0x20
mov qword [rcx + 8], rax
jmp 0x140124a04
cmp qword [rbx + 0x18], 0x10
jb 0x14012497b
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r15
mov r9, rsi
mov dword [rsp + 0x28], 0x40000080
xor r8d, r8d
mov edx, 0x100002
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x1401249e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov r9, rbp
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1401249fb
call fcn.1400636f0
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 8], rax
mov dword [rcx], 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401290f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov rdi, rcx
add rcx, 0xc9d8
call fcn.14025a74c
test eax, eax
jne 0x140129324
mov eax, dword [rdi + 0xca24]
cmp eax, 0x7fffffff
je 0x140129311
cmp byte [rdi + 0xca28], 0
lea rcx, [rdi + 0xc9d8]
je 0x14012913a
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.14025a770
mov qword [rsp + 0x20], r15
mov byte [rdi + 0xca28], 1
call fcn.14025a770
call fcn.14018e9e0
mov rbx, qword [rdi + 0x20]
cmp rbx, 0xffffffffffffffff
je 0x140129181
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov ebx, eax
call fcn.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140129186
call fcn.14018e9e0
call fcn.14018e9e0
xor r15d, r15d
cmp qword [rdi + 0x20], 0xffffffffffffffff
je 0x140129279
mov rcx, qword [rdi + 0x80]
xor eax, eax
mov qword [rsp + 0x50], rsi
lock cmpxchg qword [rcx + 0x38], r15
je 0x1401291c2
mov rdx, qword [rdi + 0x20]
lea r8, [rdi + 0x40]
mov r9b, 1
mov rcx, rax
call fcn.140134830
mov rsi, qword [rdi + 0x20]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], r14
cmp rsi, 0xffffffffffffffff
je 0x140129263
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.14018e9e0
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
test ebx, ebx
je 0x140129263
call fcn.14018e9e0
cmp r14, rax
jne 0x140129213
cmp ebp, 0x2733
je 0x140129225
call fcn.14018e9e0
cmp r14, rax
jne 0x140129268
cmp ebp, 0x4d5
jne 0x140129268
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rdi + 0x28], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140129268
call fcn.14018e9e0
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
jmp 0x14012927e
call fcn.14018e9e0
mov byte [rdi + 0x28], r15b
mov qword [rdi + 0x20], 0xffffffffffffffff
mov rbx, qword [rdi + 0x38]
mov qword [rdi + 0x30], r15
mov qword [rdi + 0x38], r15
mov r15, qword [rsp + 0x20]
test rbx, rbx
je 0x1401292cf
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401292cf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401292cf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.14018e9e0
cmp byte [rdi + 0xc8d0], 0
mov rcx, qword [rdi + 0xc8c0]
je 0x140129306
lea rdx, [rcx + 0x28]
mov r9, 0xffffffffffffffff
mov rcx, qword [rcx + 0x58]
lea r8, [rdi + 0xc8d8]
call fcn.1400ac250
mov byte [rdi + 0xc8d0], 0
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.14018e9e0
dec eax
mov ecx, 6
mov dword [rdi + 0xca24], eax
call fcn.14025a9e4
int3
mov ecx, 5
call fcn.14025a9e4
int3
Function at 0x14012c240
Capabilities:
Get thread local storage value

Disassembly:
lea rdx, [rcx + 0x38]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x28]
jmp 0x1400ae4b0

Function at 0x14012c5b0
Capabilities:
Get thread local storage value

Disassembly:
lea rdx, [rcx + 0x38]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x28]
jmp 0x1400ae680

Function at 0x14012c600
Capabilities:
Get thread local storage value

Disassembly:
mov r8, qword [r8]
add rcx, 0x18
sub r8, 0xc
jmp 0x140111030
Function at 0x1401327f0
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, 0x40
xor r15d, r15d
mov rsi, r9
mov rbp, rdx
mov r14, rcx
mov edi, r15d
cmp rcx, 0xffffffffffffffff
je 0x140132926
test r8b, r8b
je 0x140132878
test byte [rdx], 8
je 0x140132878
mov dword [rsp + 0x60], r15d
call fcn.14018e9e0
or byte [rbp], 8
xor ecx, ecx
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, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140132878
call fcn.14018e9e0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.14018e9e0
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 [rsi], xmm0
test edi, edi
je 0x140132926
call fcn.14018e9e0
cmp qword [rsi + 8], rax
jne 0x1401328c1
cmp dword [rsi], 0x2733
je 0x1401328d4
call fcn.14018e9e0
cmp qword [rsi + 8], rax
jne 0x14013293d
cmp dword [rsi], 0x4d5
jne 0x14013293d
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.14018e9e0
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 [rsi], xmm0
test edi, edi
jne 0x14013293d
mov dword [rsp + 0x30], r15d
call fcn.14018e9e0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rbx, qword [rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140132cf0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.14018e9e0
mov rdi, qword [rsi]
cmp rdi, 0xffffffffffffffff
je 0x140132da8
xor ecx, ecx
mov qword [rsp + 0x48], r14
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.14018e9e0
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
test ebx, ebx
je 0x140132d9e
call fcn.14018e9e0
cmp r14, rax
jne 0x140132d4f
cmp ebp, 0x2733
je 0x140132d61
call fcn.14018e9e0
cmp r14, rax
jne 0x140132da3
cmp ebp, 0x4d5
jne 0x140132da3
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
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.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140132da3
call fcn.14018e9e0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsi + 8]
cmp rdi, 0xffffffffffffffff
je 0x140132e43
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.14018e9e0
mov rbp, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test ebx, ebx
je 0x140132e3e
call fcn.14018e9e0
cmp rbp, rax
jne 0x140132def
cmp esi, 0x2733
je 0x140132e01
call fcn.14018e9e0
cmp rbp, rax
jne 0x140132e43
cmp esi, 0x4d5
jne 0x140132e43
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
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.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140132e43
call fcn.14018e9e0
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140133450
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov edx, dword [rdx]
sub edx, 0x79
je 0x140133497
sub edx, 0x450
je 0x14013348d
sub edx, 6
je 0x140133483
cmp edx, 1
jne 0x1401334b1
mov dword [rsp + 0x30], 0x2751
jmp 0x14013349f
mov dword [rsp + 0x30], 0x2743
jmp 0x14013349f
mov dword [rsp + 0x30], 0x274d
jmp 0x14013349f
mov dword [rsp + 0x30], 0x274c
call fcn.14018e9e0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp dword [rsi], 0
jne 0x14013353a
cmp rbx, 0xffffffffffffffff
jne 0x1401334ca
mov dword [rsp + 0x30], 0x2719
jmp 0x140133528
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
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]
mov edi, eax
call fcn.14018e9e0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
test edi, edi
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jne 0x14013353a
mov dword [rsp + 0x30], 0
call fcn.14018e9e0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret

Function at 0x140133610
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140133654
mov dword [rsp + 0x20], 0x2719
call fcn.14018e9e0
mov qword [rsp + 0x28], rax
mov eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x1401336a8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.14018e9e0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x1401336a6
mov dword [rsp + 0x20], esi
call fcn.14018e9e0
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140156110
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 [0x1403e78ac]
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140156150
cmp qword [rax], rbx
je 0x14015617d
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140156142
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi]
cmp byte [rax + 0x60], 0
je 0x1401561c8
mov qword [rdi + 0x20], 0
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x1401561b1
mov qword [rcx + 0x20], rdi
jmp 0x1401561b5
mov rcx, qword [rsi]
mov rbx, qword [rax + 8]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x14015615d
mov rax, qword [rsi]
cmp byte [rax + 0x60], 0
jne 0x14015615d
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x140156213
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 0x140156211
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 0x1401561f6
mov qword [rcx + 0x20], rdi
jmp 0x1401561fa
mov qword [rax + 0x78], rdi
mov qword [rax + 0x80], rdi
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x28]
lock inc dword [rcx + 0x30]
call fcn.140064ee0
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 0x140159380
Capabilities:
Act as tcp client
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x1401593bf
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.140132cf0
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.14015cf20
add rsp, 0x28
ret

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

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x60]
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x40], 1
call fcn.14018e9e0
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14015bf85
cmp eax, 0x4d2
jne 0x14015bf8a
call fcn.14018e9e0
test ebx, ebx
jne 0x14015bf93
call fcn.14018e9e0
add rsp, 0x50
pop rbx
ret