joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015fe0
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 [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140016010
mov r9, qword [rax + 8]
jmp 0x140016013
mov r9, r8
cmp rdi, 0x3fc
ja 0x140016037
test r9, r9
je 0x140016037
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140016045
inc r8d
inc rax
cmp rax, 2
jl 0x140016024
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.14002a780
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 0x140016690
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400f8434], eax
test eax, eax
je 0x1400166eb
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140006650]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x140017070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x47], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x1400170cf
call fcn.140017230
xor eax, eax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rbx
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rsi + 0x10], xmm1
jmp 0x1400171b3
mov dword [rbp + 0x27], ebx
lea rcx, [rbp + 0x2f]
call fcn.140034de8
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rbx
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x39], rax
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x41]
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rbp - 0x29]
mov rcx, rdi
call fcn.140017640
test rax, rax
je 0x140017173
nop
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rbp - 0x29]
mov rcx, rdi
call fcn.140017640
test rax, rax
jne 0x140017150
mov rdx, qword [rbp - 0x31]
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rbp - 0x29]
mov esi, 0xa
nop dword [rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001719d
call fcn.14002a780
add rdi, 8
sub rsi, 1
jne 0x140017190
lea rcx, [rbp + 0x2f]
call fcn.140034e7c
mov rax, rbx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140017300
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
mov ecx, dword [rcx + 0x50]
test ecx, ecx
je 0x140015f5c
cmp ecx, 1
jne 0x140015f83
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x20]
call fcn.140034d3c
xor eax, eax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea rax, vtable.boost::asio::multiple_exceptions.0
mov qword [rsp + 0x40], rax
call fcn.140034d3c
lea rcx, [rsp + 0x20]
call fcn.140034e7c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14001b010
jmp 0x140015f6d
lea rcx, [rsp + 0x30]
mov dword [rbx + 0x50], 1
call fcn.140013230
mov rdx, rax
lea rcx, [rbx + 0x58]
call fcn.140034d34
lea rcx, [rsp + 0x30]
call fcn.140034e7c
add rsp, 0x70
pop rbx
ret
push rbx
sub rsp, 0x20
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1400f8480]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001734b
cmp qword [rax], rbx
je 0x140017338
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140017324
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001734b
add rsp, 0x20
pop rbx
jmp 0x140015ef0
add rsp, 0x20
pop rbx
ret

Function at 0x140017ba0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1e0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rdi, rcx
mov ecx, 0x38
call fcn.1400573bc
mov rbx, rax
mov qword [rsp + 0x1f8], rax
mov rcx, rax
call fcn.140016100
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], 0
mov qword [rdi], rbx
mov eax, 1
lock xadd dword [0x1400f8450], eax
inc eax
cmp eax, 1
jne 0x140017c15
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1400f8454], eax
call fcn.1400165b0
nop
mov ecx, 0xb0
call fcn.1400573bc
mov qword [rsp + 0x1f8], rax
xor r9d, r9d
mov rdx, rdi
mov rcx, rax
call fcn.140016a60
mov rbx, rax
mov qword [rsp + 0x1f8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001cc20
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, qword [rdi]
call fcn.140016360
nop
mov qword [rdi + 0x10], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x200]
add rsp, 0x1e0
pop rdi
ret
Function at 0x1400185d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x18], r8
push r14
sub rsp, 0x30
cmp dword [rdx + 8], 0
mov r14, r9
mov rbx, rdx
mov rdi, rcx
jne 0x1400185ff
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 8], eax
jmp 0x140018611
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140018611
mov dword [rbx + 8], 0xffffffff
mov rax, qword [rdi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx], 0xffffffffffffffff
jne 0x140018646
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov rcx, qword [rdi + 0x28]
mov r8d, 0x2719
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140017590
cmp qword [r14 + 8], 0
jne 0x140018671
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov rcx, qword [rdi + 0x28]
xor r8d, r8d
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140017590
xor eax, eax
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rsi
mov qword [rsi + 0x10], rax
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1400186cf
cmp eax, 0x3e5
je 0x1400186cf
cmp eax, 0xea
je 0x1400186cf
mov r9d, dword [rsp + 0x50]
mov r8d, eax
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
call fcn.140017590
jmp 0x1400186db
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
call fcn.1400174f0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140018700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x18], r8
push r14
sub rsp, 0x30
cmp dword [rdx + 8], 0
mov r14, r9
mov rbx, rdx
mov rdi, rcx
jne 0x14001872f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 8], eax
jmp 0x140018741
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140018741
mov dword [rbx + 8], 0xffffffff
mov rax, qword [rdi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx], 0xffffffffffffffff
jne 0x140018776
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov rcx, qword [rdi + 0x28]
mov r8d, 0x2719
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140017590
cmp qword [r14 + 8], 0
jne 0x1400187a1
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov rcx, qword [rdi + 0x28]
xor r8d, r8d
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140017590
xor eax, eax
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rsi
mov qword [rsi + 0x10], rax
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1400187ff
cmp eax, 0x3e5
je 0x1400187ff
cmp eax, 0xea
je 0x1400187ff
mov r9d, dword [rsp + 0x50]
mov r8d, eax
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
call fcn.140017590
jmp 0x14001880b
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
call fcn.1400174f0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140018c60
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x57]
sub rsp, 0xd0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov rbx, r8
mov rsi, rcx
mov r9, rdx
call fcn.14001cd20
nop
lea r14, [rsi + 0x60]
mov qword [rbp + 0x77], r14
mov r9, rbx
mov rcx, r14
call fcn.14001cd20
nop
cmp qword [rdi + 0x18], 0x10
jb 0x140018cb8
mov rcx, qword [rdi]
jmp 0x140018cbb
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 0x2000
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbp + 0x77], rax
cmp rax, 0xffffffffffffffff
jne 0x140018d66
mov r8, rdi
lea rdx, str.create_named_pipe_
lea rcx, [rbp - 0x29]
call fcn.14000e020
nop
lea r8, str.__failed
mov rdx, rax
lea rcx, [rbp + 0x1f]
call fcn.14000cf40
mov rdi, rax
call fcn.14001aab0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x51], eax
mov qword [rbp - 0x49], rbx
movaps xmm0, xmmword [rbp - 0x51]
movdqa xmmword [rbp - 0x51], xmm0
mov r8, rdi
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 9]
call fcn.1400077c0
lea rax, vtable.boost::process::process_error.0
mov qword [rbp - 9], rax
lea rdx, [0x1400e22e0]
lea rcx, [rbp - 9]
call fcn.140077e00
nop
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rbx
lea r8, [rsi + 8]
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x77]
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi]
call fcn.140018310
mov rax, qword [rbp - 0x41]
test al, 1
je 0x140018dba
cmp rax, 1
jne 0x140018da9
cmp dword [rbp - 0x51], ebx
setne al
test al, al
je 0x140018dba
lea rdx, str.assign
lea rcx, [rbp - 0x51]
call fcn.140015b30
int3
cmp qword [rdi + 0x18], 0x10
jb 0x140018dc4
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x77], rax
cmp rax, 0xffffffffffffffff
jne 0x140018e04
lea rcx, str.create_file___failed
call fcn.140013ae0
int3
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rbx
lea r8, [r14 + 8]
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x77]
lea rdx, [rbp - 0x29]
mov rcx, qword [r14]
call fcn.140018310
mov rax, qword [rbp - 0x41]
test al, 1
je 0x140018e58
cmp rax, 1
jne 0x140018e47
cmp dword [rbp - 0x51], ebx
setne al
test al, al
je 0x140018e58
lea rdx, str.assign
lea rcx, [rbp - 0x51]
call fcn.140015b30
nop
mov rax, rsi
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140019130
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx]
mov rsi, rdx
dec rax
mov rdi, rcx
cmp rax, 0xfffffffffffffffd
ja 0x14001926e
mov dword [rdx], 0
call fcn.14001aab0
mov qword [rsi + 8], rax
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001926e
cmp byte [rdi + 0x29], 0
jne 0x14001926e
mov rax, qword [rdi + 0x18]
mov ecx, dword [rax]
cmp ecx, 0x103
jne 0x14001926e
cmp dword [rsi], 0
jne 0x140019277
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400191d3
call fcn.14001aab0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x1400191de
mov dword [rsi], ebp
call fcn.14001aab0
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0x50]
cmp eax, 0x103
jne 0x1400191ed
mov al, 1
jmp 0x1400191f1
mov ebp, eax
xor al, al
mov ecx, dword [rsi]
test ecx, ecx
jne 0x140019216
test al, al
jne 0x14001921a
cmp byte [rdi + 0x29], al
jne 0x14001926e
mov rax, qword [rdi + 0x18]
mov ecx, dword [rax]
cmp ecx, 0x103
jne 0x14001926e
mov rax, qword [rdi + 0x18]
xchg dword [rax], ebp
jmp 0x14001926e
test al, al
je 0x14001926e
test ecx, ecx
jne 0x140019277
lea edx, [rcx + 1]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14001924f
call fcn.14001aab0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x14001926e
mov dword [rsi], 0
call fcn.14001aab0
mov qword [rsi + 8], rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp dword [rsi], 0
jne 0x140019277
mov byte [rdi + 0x29], 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140019290
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea rcx, [0x140019fb0]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.14001b720
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x28], rax
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001d7e0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea rcx, [0x140019fb0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14001b720
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14001b870
nop
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14001d876
mov r8, qword [rsp + 0x48]
sub r8, rdx
sar r8, 3
call fcn.14001a8d0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001d885
call qword [rsp + 0x28]
nop
mov rax, rbx
add rsp, 0x60
pop rbx
ret

Function at 0x14001f380
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rcx
mov rax, qword [rcx + 0x28]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x14001f3cd
lea rax, [0x140020cf0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
call r8
jmp 0x14001f45a
mov rbx, qword [rdx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f3f1
mov rdx, qword [rax + 8]
jmp 0x14001f3f3
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140020eb0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
test rax, rax
je 0x14001f41f
mov qword [rax + 8], rbx
lea rcx, [0x1400212d0]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140020c50
nop
mov rax, qword [rdi + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14001f45a
xor edx, edx
mov rcx, rax
call qword [rax]
nop
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14001f470
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rcx
mov rax, qword [rcx + 0x28]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x14001f4bd
lea rax, [0x140020d50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
call r8
jmp 0x14001f54a
mov rbx, qword [rdx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f4e1
mov rdx, qword [rax + 8]
jmp 0x14001f4e3
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140020eb0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
test rax, rax
je 0x14001f50f
mov qword [rax + 8], rbx
lea rcx, [0x140021390]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140020c50
nop
mov rax, qword [rdi + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14001f54a
xor edx, edx
mov rcx, rax
call qword [rax]
nop
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140020b20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x140020b3c
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140020b85
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140020b75
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140020b75
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140020b90
inc ecx
inc rax
cmp rax, 2
jl 0x140020b63
mov rcx, rdi
call fcn.14002a780
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x50]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140020bb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140020be9
mov rax, qword [rax + 0x38]
test rax, rax
je 0x140020be1
xor edx, edx
mov rcx, rax
call qword [rax]
nop
mov qword [rbx + 0x10], 0
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x140020c43
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140020c33
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140020c33
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140020c24
inc ecx
inc rax
cmp rax, 2
jl 0x140020c10
jmp 0x140020c33
movzx eax, byte [rdi + 0x48]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
jmp 0x140020c3b
mov rcx, rdi
call fcn.14002a780
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140020c50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x140020c6c
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140020cb8
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140020ca8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140020ca8
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140020cc3
inc ecx
inc rax
cmp rax, 6
jl 0x140020c96
mov rcx, rdi
call fcn.14002a780
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x18]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140022610
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rbx, rcx
mov rax, qword [rcx + 0x28]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x140022663
lea rax, [0x140022b50]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
call r8
jmp 0x140022732
lea rcx, [rsp + 0x50]
call fcn.1400228c0
mov rdi, rax
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002269c
mov rdx, qword [rax + 8]
jmp 0x14002269e
xor edx, edx
mov r8d, 0xa0
call fcn.140020eb0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400226cd
mov rdx, rdi
mov rcx, rax
call fcn.140022b90
nop
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140022a90
nop
add rdi, 0x30
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002270a
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rax, qword [rbx + 0x28]
lea rdx, [rsp + 0x100]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rsp + 0x100]
test rax, rax
je 0x140022732
xor edx, edx
mov rcx, rax
call qword [rax]
nop
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret