joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002bf60
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 0x18002bfbd
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x18002bfb5
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18002bfb0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x18002bfb0
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 0x18002c012
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18002c002
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18002c002
cmp qword [rcx], 0
jne 0x18002c002
movzx eax, byte [rbx + 0x50]
mov byte [rbx], al
mov qword [rcx], 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

Function at 0x18002c720
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18002c74f
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x18002c747
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18002c7a4
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18002c794
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18002c794
cmp qword [rcx], 0
jne 0x18002c794
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.18004a660
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18002cbe0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x220
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov ecx, 0x38
call fcn.18004a198
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1800051a0
mov ebx, eax
call fcn.180003050
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rax
test ebx, ebx
jne 0x18002cdbb
mov qword [rdi + 0x28], r14
xor ebx, ebx
mov qword [rdi + 0x30], rbx
mov qword [r14], rdi
mov eax, 1
lock xadd dword [0x1800a2948], eax
inc eax
cmp eax, 1
jne 0x18002cc7c
lea ecx, [rbx + 2]
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800a294c], eax
lock xadd dword [0x1800a294c], ebx
test ebx, ebx
jne 0x18002cdcd
mov ecx, 0xb0
call fcn.18004a198
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rdx, r14
mov rcx, rax
call fcn.180005710
mov r15, rax
mov qword [rsp + 0x30], rax
mov rbp, qword [r14]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18000eb40
mov rcx, qword [r15 + 0x18]
cmp qword [rbp + 0x28], rcx
jne 0x18002cd93
mov qword [rsp + 0x40], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x18002cd3f
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
nop dword [rax]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18002cd17
test rdi, rdi
je 0x18002cd17
cmp rax, rdi
je 0x18002cda7
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18002cd36
test rsi, rsi
je 0x18002cd36
lea rdx, [rsi + 8]
add rcx, 8
call fcn.18005143c
test eax, eax
je 0x18002cda7
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x18002cd00
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r15 + 8], xmm0
mov rdx, qword [rbp + 0x30]
mov qword [r15 + 0x20], rdx
mov qword [rbp + 0x30], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov qword [r14 + 0x10], r15
mov rax, r14
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.180049ee0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.18002cbc0
nop
mov rcx, rax
call fcn.18002e050
nop
lea rcx, [rsp + 0x60]
call fcn.18002cba0
nop
mov rcx, rax
call fcn.18002e080
nop
lea rdx, str.mutex
lea rcx, [rsp + 0x20]
call fcn.180002fc0
nop
call fcn.180003050
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rax
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
call fcn.180002fc0
int3
Function at 0x18002d280
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rdi, rcx
lea rdx, str.Creating_overlay_thread._FromThreadId:
lea rcx, [0x1800a1160]
call fcn.18000d1b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov rcx, rbx
call fcn.180023230
mov rcx, rax
call fcn.18000d4c0
movzx eax, byte [rdi + 0xc8]
mov ebx, 1
lea rbp, [0x18002d090]
xor esi, esi
test al, al
jne 0x18002d396
cmp dword [rdi + 0xb0], esi
je 0x18002d325
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi + 0xb0], eax
je 0x18002d478
movups xmm0, xmmword [rdi + 0xa8]
movaps xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18004f958
test eax, eax
jne 0x18002d498
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rdi + 0xa8], xmm0
mov eax, ebx
xchg byte [rdi + 0xc8], al
mov ecx, select
call fcn.18004a198
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18002e620]
xor edx, edx
xor ecx, ecx
call fcn.18005b33c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18002d489
cmp dword [rdi + 0xb0], 0
jne 0x18002d483
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rdi + 0xa8], xmm0
movzx eax, byte [rdi + 0xc9]
test al, al
jne 0x18002d450
cmp dword [rdi + 0xc0], 0
je 0x18002d3f1
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi + 0xc0], eax
je 0x18002d478
movups xmm0, xmmword [rdi + 0xb8]
movaps xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.18004f958
test eax, eax
jne 0x18002d498
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rdi + 0xb8], xmm0
xchg byte [rdi + 0xc9], bl
mov ecx, select
call fcn.18004a198
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18002e620]
xor edx, edx
xor ecx, ecx
call fcn.18005b33c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18002d469
cmp dword [rdi + 0xc0], 0
jne 0x18002d463
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 0xb8], xmm0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call fcn.180018e60
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call fcn.18004db7c
nop
mov ecx, 5
call fcn.18004db7c
int3
call fcn.180018e60
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.18004db7c
nop
mov ecx, 2
call fcn.18004db7c
int3
Function at 0x18002f0e0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x21], rcx
mov qword [rbp - 0x21], rdx
lea rcx, [rbp - 0x41]
call fcn.180003df0
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.1800297f0
nop
lea r8, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae r8, qword [rbp - 0x19]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r15, rax
xor ebx, ebx
test rax, rax
jne 0x18002f23a
mov qword [rsi], rbx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
xor r8d, r8d
lea rdx, [0x18008d4a8]
mov rcx, rsi
call fcn.1800040b0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x18002f1b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002f1b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002f2f1
call fcn.18004a624
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x18002f205
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18002f200
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18002f2eb
mov rcx, r8
call fcn.18004a624
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov rax, rsi
mov word [rdi], bx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180049ee0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
mov qword [rbp + 7], rbx
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], 7
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x18002f270
mov rdx, r14
lea rcx, [rbp + 7]
call fcn.1800040b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 7]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rsi + 0x10], xmm1
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x18002f1b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002f1b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002f2f1
jmp 0x18002f1b1
call fcn.180055d94
nop
call fcn.180055d94
int3
Function at 0x180031a50
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x280
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, qword [rcx + 0x110]
lea r14, [rcx + 0x2d17c]
xor ebp, ebp
mov qword [rsp + 0x48], r14
lea rax, [0x18009ed88]
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rax
movzx esi, byte [rbx + 0x10]
mov rbx, qword [rbx + 8]
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x50], 4
cmp rbx, 0xffffffffffffffff
jne 0x180031ad8
mov dword [rsp + 0x30], 0x2719
call fcn.180003050
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x180031bd2
lea rax, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.1800067d0
test eax, eax
jns 0x180031bd2
and sil, 1
mov qword [rsp + 0x2a8], rdi
nop dword [rax]
test sil, sil
jne 0x180031bca
call fcn.180003050
mov rdi, qword [rsp + 0x38]
mov rax, qword [rax + 8]
cmp qword [rdi + 8], rax
jne 0x180031b37
cmp dword [rsp + 0x30], 0x2733
je 0x180031b54
call fcn.180003050
mov rcx, qword [rax + 8]
cmp qword [rdi + 8], rcx
jne 0x180031bca
cmp dword [rsp + 0x30], 0x4d5
jne 0x180031bca
lea ecx, [rbx + 1]
mov qword [rsp + 0x68], rbx
xor r9d, r9d
mov dword [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x180031ba8
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebp
mov r8d, 1
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800067d0
test eax, eax
js 0x180031b10
jmp 0x180031bca
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x2a8]
lea rdx, str.Wrote_format_index:
lea rcx, [0x1800a1160]
call fcn.18000d1b0
mov rcx, rax
lea rdx, str.index_
call fcn.18000d1b0
mov edx, dword [r14]
mov rcx, rax
call fcn.180023230
mov rcx, rax
lea rdx, [0x18008e92c]
call fcn.18000d1b0
mov rcx, rax
lea rdx, str.error_
call fcn.18000d1b0
mov rcx, qword [rsp + 0x38]
mov rbx, rax
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
mov rdx, rax
mov rcx, rbx
call fcn.18000d1b0
mov rcx, rax
call fcn.1800339c0
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.180009bd0
lea rdx, [0x18008e898]
mov rcx, rax
call fcn.18000d1b0
mov rcx, rax
call fcn.18000d4c0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180049ee0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r14
pop rsi
pop rbp
ret
Function at 0x1800356e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
mov r9, qword [rcx + 0x18]
test r9, r9
je 0x180035724
lock inc dword [r9 + 8]
mov r9, qword [rcx + 0x18]
mov rax, qword [rcx + 0x10]
mov qword [rbp - 9], rax
mov qword [rbp - 1], r9
movzx eax, byte [rcx + 0x20]
mov byte [rbp + 7], al
movups xmm0, xmmword [rdx]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [r8]
movups xmmword [rbp + 0x1f], xmm1
movsd xmm0, qword [r8 + 0x10]
movsd qword [rbp + 0x2f], xmm0
mov eax, dword [r8 + 0x18]
mov dword [rbp + 0x37], eax
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a2b60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180035785
cmp qword [rax], rbx
je 0x180035886
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180035773
lea rax, [rbp - 9]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 9]
mov ecx, 0x88
call fcn.180005020
mov r8, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x1800371b0]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
mov qword [r8 + 0x38], rcx
mov qword [r8 + 0x40], rcx
mov rax, qword [rbp - 9]
mov qword [r8 + 0x38], rax
mov rax, qword [rbp - 1]
mov qword [r8 + 0x40], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movzx eax, byte [rbp + 7]
mov byte [r8 + 0x48], al
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [r8 + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x1f]
movups xmmword [r8 + 0x60], xmm0
movsd xmm1, qword [rbp + 0x2f]
movsd qword [r8 + 0x70], xmm1
mov eax, dword [rbp + 0x37]
mov dword [r8 + 0x78], eax
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x21], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.180008740
nop
lea rcx, [rbp - 0x29]
call fcn.180037120
nop
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x180035861
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180035861
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180035861
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180049ee0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x180035785
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1800379d0
nop
jmp 0x18003582c
Function at 0x1800358b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r9, qword [rcx + 0x18]
test r9, r9
je 0x1800358da
lock inc dword [r9 + 8]
mov r9, qword [rcx + 0x18]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r9
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x48], xmm0
mov rax, qword [r8]
mov qword [rsp + 0x58], rax
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a2b60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180035925
cmp qword [rax], rbx
je 0x180035a04
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180035913
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x68
call fcn.180005020
mov r8, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x180037030]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
mov qword [r8 + 0x38], rcx
mov qword [r8 + 0x40], rcx
mov rax, qword [rsp + 0x38]
mov qword [r8 + 0x38], rax
mov rax, qword [rsp + 0x40]
mov qword [r8 + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r8 + 0x48], xmm0
mov rax, qword [rsp + 0x58]
mov qword [r8 + 0x58], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.180008740
nop
lea rcx, [rsp + 0x20]
call fcn.180036fa0
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1800359f2
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800359f2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800359f2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x180035925
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1800379f0
nop
jmp 0x1800359bc
Function at 0x180035a30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x50
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
test byte [rcx + 0xc], 1
jne 0x180035a8e
mov rax, qword [rcx]
mov r8, qword [rax + 0x10]
lea rdi, [r8 + 0x28]
test r8, r8
cmove rdi, rbx
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180035a8e
nop dword [rax + rax]
cmp qword [rax], rdi
je 0x180035ab5
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180035a80
lea rax, [r14 + 8]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180035b5e
mov rdx, qword [rax + 8]
jmp 0x180035b61
cmp qword [rax + 8], rbx
je 0x180035a8e
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
mov rax, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.180035ed0
nop
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x180035b19
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x180035b19
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x180035b19
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180035bd2
mov rdx, rbx
mov r8d, 0x50
call fcn.18000d070
mov rdx, rax
mov qword [rax + 0x20], rbx
lea rax, [0x180035da0]
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 [rsi]
mov qword [rdx + 0x38], rcx
mov rax, qword [rsi + 8]
mov qword [rdx + 0x40], rax
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov rcx, qword [r14]
mov rcx, qword [rcx + 0x10]
call fcn.180005640
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x30]
call fcn.18002bf60
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180035bf0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov r9, qword [rcx + 0x20]
test r9, r9
je 0x180035c26
lock inc dword [r9 + 8]
mov r9, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r9
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x58], xmm0
mov rax, qword [r8]
mov qword [rsp + 0x68], rax
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a2b60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180035c76
cmp qword [rax], rbx
je 0x180035c99
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180035c68
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x38]
cmp byte [r8 + 0x2d000], 0
jne 0x180035cb5
mov byte [r8 + 0x2d000], 1
jmp 0x180035cc2
cmp qword [rax + 8], 0
je 0x180035c76
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180038120
nop
jmp 0x180035d4f
mov ecx, 0x78
call fcn.18004a198
mov r8, rax
xor ecx, ecx
mov qword [r8 + 0x20], rcx
lea rax, [0x180037430]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
mov rax, qword [rsp + 0x38]
mov qword [r8 + 0x38], rax
mov qword [r8 + 0x40], rcx
mov qword [r8 + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov qword [r8 + 0x40], rax
mov rax, qword [rsp + 0x48]
mov qword [r8 + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x50]
mov qword [r8 + 0x50], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r8 + 0x58], xmm0
mov rax, qword [rsp + 0x68]
mov qword [r8 + 0x68], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.180008740
nop
lea rcx, [rsp + 0x20]
call fcn.180037390
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180035d85
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180035d85
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180035d85
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180036040
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov r9, r8
mov rbx, rdx
mov rcx, qword [rdx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x180036091
lea rcx, [0x180037540]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], r8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rax
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
mov rdi, qword [rcx + 0x10]
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.180035e50
movups xmm1, xmmword [r9 + 0x58]
movups xmmword [rsp + 0x98], xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800360e0
mov rdx, qword [rax + 8]
jmp 0x1800360e2
xor edx, edx
mov r8d, 0x78
call fcn.180012520
mov r9, rax
mov qword [rsp + 0x30], 0
lea rcx, [rax + 8]
lea rdx, [rsp + 0x40]
call fcn.180035e50
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rcx + 0x58], xmm1
lea rax, [0x180037560]
mov qword [r9], rax
mov qword [rsp + 0xc8], r9
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.180037300
nop
lea rcx, [rsp + 0x40]
call fcn.180034ac0
nop
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x180036167
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret

Function at 0x180037300
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 0x180037327
add rcx, 8
call fcn.180034ac0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18003737e
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003736e
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18003736e
cmp qword [rcx + 0x10], 0
jne 0x18003736e
movzx eax, byte [rbx + 0x78]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.18004a660
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret