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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov rax, qword [rcx + 8]
xor ebx, ebx
test al, 1
jne 0x140027aa3
and rax, 0xfffffffffffffffc
mov rax, qword [rax + 0x10]
lea rsi, [rax + 0x28]
test rax, rax
cmove rsi, rbx
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027aa3
cmp qword [rax], rsi
je 0x140027aca
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140027a95
lea rax, [r14 + 1]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027bbf
mov rdx, qword [rax + 8]
jmp 0x140027bc2
cmp qword [rax + 8], rbx
je 0x140027aa3
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rdi + 0x18], rbx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140027e90
nop
mov rax, qword [rsp + 0x40]
and rax, 0xfffffffffffffffc
mov ebx, 0xffffffff
je 0x140027b38
mov rcx, qword [rax + 0x10]
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x140027b38
call fcn.14002c360
nop
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140027b69
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140027b69
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140027b69
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140027c44
mov rdx, rbx
mov r8d, 0x60
call fcn.140029460
mov rdx, rax
mov qword [rax + 0x20], rbx
lea rax, [0x140027d30]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], rbx
mov dword [rdx + 0x30], ebx
mov qword [rdx + 0x38], rbx
mov qword [rdx + 0x40], rbx
mov rcx, qword [rdi]
mov qword [rdx + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rdx + 0x40], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov rax, qword [rdi + 0x18]
mov qword [rdx + 0x50], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [r14 + 8]
and rcx, 0xfffffffffffffffc
mov rcx, qword [rcx + 0x10]
call fcn.140028d40
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x28]
call fcn.140027c80
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x140027c80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140027ca7
add rcx, 0x38
call fcn.140027820
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140027cf2
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027ce2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140027ce2
xor ecx, ecx
xor eax, eax
nop
cmp qword [rdx + rax*8], 0
je 0x140027cfd
inc ecx
inc rax
cmp rax, 2
jl 0x140027cd0
mov rcx, rbx
call fcn.140036b60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x60]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140027f80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test byte [rdx + 8], 1
jne 0x140027fce
mov rbx, qword [rcx]
mov ecx, dword [0x140095b00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027fce
cmp qword [rax], rbx
je 0x140027fec
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140027fc0
mov qword [rsp + 0x20], r14
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x140028027
mov rdx, qword [rax + 8]
jmp 0x14002802a
cmp qword [rax + 8], 0
je 0x140027fce
mov rax, qword [rsi]
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov qword [rsi], rbx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140029000
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140028022
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x140028123
mov rdx, rbx
mov r8d, 0x28
call fcn.140029460
mov rdx, rax
mov qword [rsp + 0x28], rax
mov qword [rax], rbx
lea rax, [0x140028a00]
mov qword [rdx + 8], rax
mov dword [rdx + 0x10], ebx
mov rax, qword [rsi]
mov qword [rdx + 0x18], rax
mov qword [rsi], rbx
mov qword [rsp + 0x30], rdx
mov rcx, rdi
call fcn.140028910
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
test al, al
je 0x140028119
mov rax, qword [rdi + 8]
test rax, rax
je 0x140028084
lock inc dword [rax + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x50], rax
and rax, 0xfffffffffffffffc
je 0x1400280ac
mov rax, qword [rax + 0x10]
lock inc dword [rax + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.140027a40
nop
mov rcx, qword [rsp + 0x50]
mov edi, 0xffffffff
and rcx, 0xfffffffffffffffc
je 0x1400280e0
mov rcx, qword [rcx + 0x10]
mov eax, edi
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x1400280e0
call fcn.14002c360
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140028119
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140028119
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140028119
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x20]
call fcn.140028ae0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140028140
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r9
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
test byte [rdx + 8], 1
jne 0x14002818e
mov rbx, qword [rcx]
mov ecx, dword [0x140095b00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002818e
cmp qword [rax], rbx
je 0x1400281ac
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140028180
mov qword [rsp + 0x40], r14
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x1400281d9
mov rdx, qword [rax + 8]
jmp 0x1400281dc
cmp qword [rax + 8], 0
je 0x14002818e
lea rcx, [0x140026360]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbp
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140026370
nop
jmp 0x1400282da
mov rdx, rbx
mov r8d, 0x30
call fcn.140029460
mov qword [rsp + 0x48], rax
mov qword [rax], rbx
lea rcx, [0x140027980]
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ebx
lea rcx, [0x140026360]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rbp
mov qword [rsp + 0x50], rax
mov rdx, rax
mov rcx, rdi
call fcn.140028910
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
test al, al
je 0x1400282d0
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002823b
lock inc dword [rax + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 8]
mov qword [rsp + 0x38], rax
and rax, 0xfffffffffffffffc
je 0x140028263
mov rax, qword [rax + 0x10]
lock inc dword [rax + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140027a40
nop
mov rcx, qword [rsp + 0x38]
mov edi, 0xffffffff
and rcx, 0xfffffffffffffffc
je 0x140028297
mov rcx, qword [rcx + 0x10]
mov eax, edi
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x140028297
call fcn.14002c360
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400282d0
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400282d0
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400282d0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x40]
call fcn.1400278f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400283f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov rax, qword [rcx + 8]
xor ebx, ebx
test al, 1
jne 0x140028453
and rax, 0xfffffffffffffffc
mov rax, qword [rax + 0x10]
lea rsi, [rax + 0x28]
test rax, rax
cmove rsi, rbx
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140028453
cmp qword [rax], rsi
je 0x14002847a
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140028445
lea rax, [r14 + 1]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002856f
mov rdx, qword [rax + 8]
jmp 0x140028572
cmp qword [rax + 8], rbx
je 0x140028453
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rdi + 0x18], rbx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140027d20
nop
mov rax, qword [rsp + 0x40]
and rax, 0xfffffffffffffffc
mov ebx, 0xffffffff
je 0x1400284e8
mov rcx, qword [rax + 0x10]
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x1400284e8
call fcn.14002c360
nop
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140028519
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140028519
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140028519
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400285f4
mov rdx, rbx
mov r8d, 0x60
call fcn.140029460
mov rdx, rax
mov qword [rax + 0x20], rbx
lea rax, [0x140028620]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], rbx
mov dword [rdx + 0x30], ebx
mov qword [rdx + 0x38], rbx
mov qword [rdx + 0x40], rbx
mov rcx, qword [rdi]
mov qword [rdx + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rdx + 0x40], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov rax, qword [rdi + 0x18]
mov qword [rdx + 0x50], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [r14 + 8]
and rcx, 0xfffffffffffffffc
mov rcx, qword [rcx + 0x10]
call fcn.140028d40
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x28]
call fcn.140027c80
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x140028820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140095b00]
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 [0x140095b00]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
xor edi, edi
mov qword [rsp + 0x38], rdi
lea rax, [0x140091f48]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx]
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x1400288d9
nop
mov r8, qword [rax + 0x20]
test r8, r8
je 0x1400288bc
mov rcx, qword [r8]
mov qword [rax + 0x20], rcx
test rcx, rcx
jne 0x1400288b9
mov qword [rax + 0x28], rdi
mov qword [r8], rdi
mov rax, qword [rdx + 8]
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rcx, qword [rbx]
call rax
mov rax, qword [rbx]
mov rdx, qword [rax + 0x20]
test rdx, rdx
jne 0x1400288a0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140095b00]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140028ae0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140028b0f
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140028b07
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140028b58
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140028b48
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140028b48
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140028b63
inc ecx
inc rax
cmp rax, 2
jl 0x140028b36
mov rcx, rbx
call fcn.140036b60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x28]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140028ba0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140028c39
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140095ac0], ecx
jle 0x140028c20
lea rcx, [0x140095ac0]
call fcn.140036ebc
cmp dword [0x140095ac0], 0xffffffff
jne 0x140028c20
lea rcx, [0x140055390]
call fcn.140036dd0
lea rcx, [0x140095ac0]
call fcn.140036e50
lea rax, [0x140091e30]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x140028c4e
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x40
pop rbx
ret
lea rdx, [0x1400825d8]
lea rcx, [rsp + 0x20]
call fcn.14002c310
int3

Function at 0x140028ec0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140095af8]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140028ff5
cmp qword [rax], rbx
je 0x140028efc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140028ee8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140028ff5
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140028fb9
cmp ecx, 1
jne 0x140028ff5
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.140036064
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call fcn.140036064
lea rcx, [rsp + 0x30]
call fcn.140036144
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400360b8
lea r8, [0x14008e648]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003608c
lea rcx, [rsp + 0x58]
call fcn.140036144
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.140038c4c
jmp 0x140028fdd
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400360b8
lea rcx, [rsp + 0x20]
call fcn.1400360c4
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call fcn.14003605c
lea rcx, [rsp + 0x20]
call fcn.140036144
add rsp, 0x70
pop rbx
ret
Function at 0x1400293e0
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 [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140029410
mov r9, qword [rax + 8]
jmp 0x140029413
mov r9, r8
cmp rdi, 0x3fc
ja 0x140029437
test r9, r9
je 0x140029437
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140029445
inc r8d
inc rax
cmp rax, 2
jl 0x140029424
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140036b60
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140029530
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 [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029569
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140029460
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140029460
Function at 0x140029580
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
xor r14d, r14d
mov rbx, rcx
mov qword [rdx], r14
mov rsi, rdx
mov qword [rdx + 8], r14
mov rbp, r8
mov edx, r14d
mov rcx, qword [rax]
mov r9d, r14d
test rcx, rcx
je 0x1400295e7
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r9, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsi], r9
mov qword [rsi + 8], rdx
mov qword [rax], r14
cmp rbp, rdx
jbe 0x140029704
mov ebx, 6
test r9, r9
je 0x140029649
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029611
mov rdx, qword [rax + 8]
jmp 0x140029614
mov rdx, r14
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
cmp r9, 0x3fc
ja 0x140029641
test rdx, rdx
je 0x140029641
mov ecx, ebx
mov rax, rbx
nop
cmp qword [rdx + rax*8], r14
je 0x1400296aa
inc ecx
inc rax
cmp rax, 8
jl 0x140029630
mov rcx, r8
call fcn.140036b60
mov ecx, dword [0x140095af8]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdi, [rbp + 3]
shr rdi, 2
test rax, rax
je 0x1400296d6
mov r9, qword [rax + 8]
test r9, r9
je 0x1400296d6
mov ecx, ebx
lea r8, [r9 + 0x30]
mov rdx, qword [r8]
test rdx, rdx
je 0x140029686
movzx eax, byte [rdx]
cmp rax, rdi
jae 0x1400296bb
inc ecx
add r8, 8
cmp ecx, 8
jl 0x140029676
mov rax, rbx
mov rcx, qword [r9 + rax*8]
test rcx, rcx
jne 0x1400296ca
inc ebx
inc rax
cmp rax, 8
jl 0x140029694
jmp 0x1400296d6
movzx eax, byte [r8 + r9]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
jmp 0x140029649
movsxd rax, ecx
mov qword [r9 + rax*8], r14
movzx eax, byte [rdx]
mov byte [rdx + rbp], al
jmp 0x1400296f8
movsxd rax, ebx
mov qword [r9 + rax*8], r14
call fcn.140036b60
lea rcx, [rdi*4 + 1]
call fcn.140036e14
cmp rdi, 0xff
movzx ecx, dil
mov rdx, rax
cmova ecx, r14d
mov byte [rax + rbp], cl
mov rdi, qword [rsp + 0x50]
mov qword [rsi], rdx
mov qword [rsi + 8], rbp
mov rax, rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140029b10
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, qword [rsp + 0xe0]
mov rbp, r9
mov rdi, qword [rsp + 0xd0]
mov esi, r8d
mov r15, rdx
mov r14, rcx
cmp dword [rbx], 0x40
jne 0x140029b5a
mov edx, 0x2745
mov rcx, rbx
call fcn.14002d150
cmp dword [rbx], 0
jne 0x140029ca6
mov qword [rsp + 0x70], r12
xor r12d, r12d
test rbp, rbp
je 0x140029bee
test rdi, rdi
je 0x140029bee
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], rax
mov r9d, esi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x54], r12d
mov qword [rsp + 0x30], rax
mov r8d, esi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], r12d
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
movsxd rsi, dword [rsp + 0x50]
cmp rsi, qword [rdi]
jbe 0x140029bdb
mov edx, 0x2726
mov rcx, rbx
call fcn.14002d150
jmp 0x140029bee
mov rdx, qword [rsp + 0x40]
mov r8, rsi
mov rcx, rbp
call fcn.140052470
mov qword [rdi], rsi
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x58], r14
cmp rcx, 0xffffffffffffffff
jne 0x140029c13
mov edx, 0x2719
mov rcx, rbx
call fcn.14002d150
jmp 0x140029ca1
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140029c3a
mov dword [rbx], r12d
jmp 0x140029ca1
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140095ac0], eax
jle 0x140029c83
lea rcx, [0x140095ac0]
call fcn.140036ebc
cmp dword [0x140095ac0], 0xffffffff
jne 0x140029c83
lea rcx, [0x140055390]
call fcn.140036dd0
lea rcx, [0x140095ac0]
call fcn.140036e50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x58], eax
lea rax, [0x140091e30]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
mov r12, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002a530
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002a5a7
mov dword [rdi], 0
cmp esi, 0x17
jne 0x14002a5a2
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
jmp 0x14002a615
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140095ac0], eax
jle 0x14002a5f0
lea rcx, [0x140095ac0]
call fcn.140036ebc
cmp dword [0x140095ac0], 0xffffffff
jne 0x14002a5f0
lea rcx, [0x140055390]
call fcn.140036dd0
lea rcx, [0x140095ac0]
call fcn.140036e50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x140091e30]
mov qword [rsp + 0x38], rax
mov rax, 0xffffffffffffffff
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret