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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rax - 0x70], xmm0
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rax - 0x60], xmm1
lea rdi, [rcx + 8]
mov rsi, qword [rcx]
mov rbx, qword [rdi]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140057822
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140057922
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140057810
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x58
call fcn.140022520
mov rbx, rax
xor ebp, ebp
mov qword [rax + 0x20], rbp
lea rax, [fcn.140057b70]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x48], xmm1
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025320
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rbp
test al, al
je 0x140057909
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140338560]
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 [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x58], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, rbx
call fcn.140057b70
nop
lea rcx, [rsp + 0x58]
call fcn.1400250e0
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x140057822
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140057c30
nop
jmp 0x140057909

Function at 0x140057c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rcx, 0x10
add rsp, 0x28
jmp fcn.1400577c0
Function at 0x140059160
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140329490]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edx, 0x208
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005931a
movdqa xmm0, xmmword [0x1402d4f60]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], bx
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1400591e0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.14005dd10
nop
movdqa xmm0, xmmword [0x1402d4f60]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], bx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8d, 7
lea rdx, str.cmd.exe
lea rcx, [rsp + 0x38]
call fcn.140035b50
nop
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x140059277
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdi, qword [rsp + 0x38]
lea rbx, [rsp + 0x38]
cmovae rbx, qword [rsp + 0x38]
call fcn.1400cd840
mov r9, rax
lea rdx, [r14 + rdi]
lea r8, [rsp + 0x58]
mov rcx, rbx
call fcn.1400cc5a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400592b8
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400592b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400592b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402216cc
nop
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14005d960
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400cd340
nop
lea rcx, [rsp + 0x58]
call fcn.14005db20
nop
lea rcx, [rsp + 0x78]
call fcn.14005db20
mov rax, rsi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140220f90
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140058db0
int3
Function at 0x1400596b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov dword [rsp + 0x20], 0
lea rdi, [0x140338470]
mov r8, rdi
lea rdx, [0x14005e870]
lea rcx, [0x140338488]
call qword [sym.imp.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_]
test eax, eax
je 0x14005981a
cmp byte [rbx + 0x28], 0
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x28], rdi
je 0x1400597af
cmp byte [rbx + 0x29], 0
jne 0x1400597af
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
cmp ecx, 0x103
jne 0x1400597af
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140059830
test al, al
je 0x1400597af
mov rax, qword [rbx]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400597a4
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140059830
test al, al
je 0x1400597a4
cmp dword [rsp + 0x20], 0
jne 0x1400597af
mov rcx, qword [rbx]
lea edx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8, rdi
lea rdx, [0x14005e870]
lea rcx, [0x140338488]
test eax, eax
jne 0x140059802
call qword [sym.imp.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_]
test eax, eax
je 0x14005981a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rdi
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
cmp dword [rsp + 0x20], 0
jne 0x1400597af
mov byte [rbx + 0x29], 1
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je case.default.0x1400597fb
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne case.default.0x1400597fb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne case.default.0x1400597fb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_]
test eax, eax
je 0x14005981a
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
jmp 0x1400597ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
and byte [rcx], cl
and eax, 0x34343172
invalid
Function at 0x14005c1e0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x6f8]
sub rsp, 0x7f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140329490]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov rdi, rcx
lea rcx, [rbp + 0x300]
call fcn.14005c410
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rbp + 0x1c8]
call fcn.14005c410
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x1c8]
lea rcx, [rbp + 0x90]
call fcn.14005c410
lea rax, [rbp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x5a0], rdi
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x5a8]
call fcn.14005c410
nop
lea rcx, [rbp + 0x198]
call fcn.140035780
lea rcx, [rbp + 0xc0]
call fcn.140035780
nop
lea rcx, [rbp + 0x2d0]
call fcn.140035780
lea rcx, [rbp + 0x1f8]
call fcn.140035780
nop
lea rax, [0x14005c640]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x5a0]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x5a8]
lea rcx, [rsp + 0x58]
call fcn.14005c410
nop
lea rcx, [rbp + 0x6b0]
call fcn.140035780
lea rcx, [rbp + 0x5d8]
call fcn.140035780
nop
lea rcx, [rbx + 0x108]
call fcn.140035780
lea rcx, [rbx + 0x30]
call fcn.140035780
movups xmm0, xmmword [rdi + 0x328]
movaps xmmword [rbp + 0x440], xmm0
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x450]
call fcn.14005e6b0
lea rcx, [rbp + 0x60]
call fcn.140035780
lea rcx, [rbp - 0x78]
call fcn.140035780
nop
mov rbx, qword [rbp + 0x448]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005c362
cmp qword [rax], rbx
je 0x14005c362
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005c354
lea rdx, [rbp + 0x450]
mov ecx, 0x190
call fcn.140022520
mov r9, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x14005f3b0]
mov qword [r9 + 0x28], rax
mov qword [r9], rcx
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], rcx
mov dword [r9 + 0x30], ecx
movaps xmm0, xmmword [rbp + 0x440]
movups xmmword [r9 + 0x38], xmm0
lea rcx, [r9 + 0x48]
lea rdx, [rbp + 0x450]
call fcn.14005e6b0
mov rcx, qword [0x1403378f8]
lock inc dword [rcx + 0x30]
mov rdx, r9
call fcn.1400235f0
nop
lea rcx, [rbp + 0x568]
call fcn.140035780
lea rcx, [rbp + 0x490]
call fcn.140035780
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.140220f90
lea r11, [rsp + 0x7f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005f0a0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rbp, rdx
mov r14, rcx
mov rax, qword [rcx + 0xd8]
mov r8, qword [rax]
mov ecx, dword [rcx + 0x80]
test ecx, ecx
jne 0x14005f27d
cmp byte [r8 + 0x40], cl
je 0x14005f24c
cmp qword [r8 + 0x30], 0
jne 0x14005f24c
cmp qword [r8 + 0x18], 0x10
jb 0x14005f10e
mov r8, qword [r8]
mov qword [r14 + 0xc0], r8
mov rax, qword [r14 + 0x78]
mov r10, qword [r14 + 0xb8]
mov r11, qword [r14 + 0xd0]
mov ebx, dword [r14]
mov edi, dword [r14 + 0xb0]
lea rsi, [r14 + 0xe0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
mov r9, qword [r14 + 0xa8]
mov r8, qword [r14 + 0xa0]
mov rdx, qword [r14 + 0xc0]
mov rcx, qword [r14 + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12d, eax
movups xmm6, xmmword [rsi]
movdqu xmmword [rsp + 0x68], xmm6
movsd xmm7, qword [rsi + 0x10]
movsd qword [rsp + 0x78], xmm7
mov rbx, qword [r14 + 0x98]
test rbx, rbx
je 0x14005f1b0
lock inc dword [rbx + 8]
mov rbx, qword [r14 + 0x98]
movsd xmm7, qword [rsp + 0x78]
movdqu xmm6, xmmword [rsp + 0x68]
mov rdi, qword [r14 + 0x90]
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x90], 1
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x14005f2c5
lea rcx, [r14 + 0x80]
call fcn.1400581a0
cmp dword [r14 + 0x80], 0
je 0x14005f287
mov rcx, rbp
call fcn.140059630
nop
lea rcx, [rsp + 0x68]
call fcn.1400596b0
mov rax, rbp
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14005f259
mov rax, qword [r8]
mov qword [r14 + 0xc8], rax
add r8, 0x20
cmp qword [r8 + 0x18], 0x10
jb 0x14005f26e
mov r8, qword [r8]
mov qword [r14 + 0xc0], r8
test ecx, ecx
je 0x14005f115
mov rcx, rbp
call fcn.140059630
jmp 0x14005f21d
movups xmmword [rbp], xmm6
movsd qword [rbp + 0x10], xmm7
movdqa xmm1, xmmword [0x1402d4fe0]
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
mov word [rbp + 0x28], 1
mov byte [rsp + 0x90], 0
jmp 0x14005f213
lea rcx, [rsp + 0x58]
call fcn.140058d00
mov rdx, rax
call fcn.14005f330
int3
Function at 0x140061050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x248]
sub rsp, 0x330
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140329490]
xor rax, rsp
mov qword [rbp + 0x228], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x78], rax
add rdx, 0x20
lea rcx, [rbp - 0x70]
call fcn.14005c410
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0xc8], xmm0
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 0xd8]
call fcn.14005e6b0
nop
lea rsi, [rdi + 8]
mov rdi, qword [rdi]
mov rbx, qword [rsi]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400610f2
cmp qword [rax], rbx
je 0x140061243
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400610e0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x80]
mov ecx, 0x2d8
call fcn.140022520
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140061c30]
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, [rbp - 0x80]
call fcn.14005e6b0
movups xmm2, xmmword [rbp + 0xc8]
movups xmmword [rcx + 0x148], xmm2
add rcx, 0x158
lea rdx, [rbp + 0xd8]
call fcn.14005e6b0
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140025320
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
test al, al
je 0x1400611ef
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, rbx
call fcn.140061c30
nop
lea rcx, [rsp + 0x20]
call fcn.1400250e0
nop
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x1f0]
call fcn.140035780
lea rcx, [rbp + 0x118]
call fcn.140035780
lea rcx, [rbp + 0x98]
call fcn.140035780
lea rcx, [rbp - 0x40]
call fcn.140035780
mov rcx, qword [rbp + 0x228]
xor rcx, rsp
call fcn.140220f90
lea r11, [rsp + 0x330]
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 0x1400610f2
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140061f10
nop
jmp 0x1400611ef
Function at 0x140061f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rdi, [rcx + 0x158]
lea rsi, [rcx + 0x150]
mov rbp, qword [rcx + 0x148]
mov rbx, qword [rsi]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061f72
nop
cmp qword [rax], rbx
je 0x140062056
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140061f60
mov qword [rsp + 0x60], rdi
mov rdx, rdi
mov ecx, 0x180
call fcn.140022520
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140062330]
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]
mov rdx, rdi
call fcn.14005e6b0
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140025320
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
test al, al
je 0x140062048
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x28], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rbx
call fcn.140062330
nop
lea rcx, [rsp + 0x28]
call fcn.1400250e0
nop
mov rdx, qword [rsp + 0x58]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rax + 8], 0
je 0x140061f72
mov rdx, rdi
mov rcx, rdi
call fcn.140057c30
nop
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140062080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa8
mov qword [rsp + 0x58], 0xfffffffffffffffe
lea rsi, [rcx + 0x20]
lea r14, [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov rbx, qword [r14]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400620d9
cmp qword [rax], rbx
je 0x1400621f6
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400620c7
mov qword [rsp + 0x60], rsi
mov rdx, rsi
mov ecx, 0x48
call fcn.140022520
mov rdi, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140062260]
mov qword [rdi + 0x28], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov dword [rdi + 0x30], r15d
movups xmm0, xmmword [rsi]
movups xmmword [rdi + 0x38], xmm0
mov r8, rdi
mov rdx, r14
mov rcx, rbp
call fcn.140025320
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r15
test al, al
je 0x1400621e6
mov rax, qword [r14]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp + 0x28]
mov qword [rsp + 0x48], rbx
mov rax, qword [r14]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r15
lea r8, [rsp + 0x20]
lea edx, [r15 + 0x48]
mov rcx, rdi
call fcn.140022570
mov qword [rsp + 0x80], r15
test rbx, rbx
je 0x1400621c9
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140062460
nop
lea rcx, [rsp + 0x48]
call fcn.1400250e0
nop
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rax + 8], 0
je 0x1400620d9
mov rdx, rsi
mov rcx, rsi
call fcn.140062460
nop
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140062550
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x140062578
mov qword [rdi], 0
mov rax, rdi
add rsp, 0x20
pop rdi
ret
cmp qword [rsp + 0x40], 0
jle 0x140062568
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400625ac
inc ebx
cmp ebx, 3
ja 0x1400625e2
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140062596
mov rbx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x38]
xorps xmm0, xmm0
mulsd xmm1, qword [0x1402d4f28]
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x1400700c0
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 rbx, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14007010c
lea rax, [0x1402c28e8]
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x28], rax
mov eax, ecx
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r9], xmm0
jmp 0x140070166
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
lea rax, [0x1402c28e8]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x140070164
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x24], dil
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140070180
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
lea rsi, [0x1402c28e8]
mov edx, dword [rdx]
mov rbx, rcx
sub edx, 0x79
je 0x1400701d8
sub edx, 0x450
je 0x1400701cf
sub edx, 6
je 0x1400701c6
cmp edx, 1
jne 0x1400701ee
mov dword [rbp - 0x10], 0x2751
jmp 0x1400701df
mov dword [rbp - 0x10], 0x2743
jmp 0x1400701df
mov dword [rbp - 0x10], 0x274d
jmp 0x1400701df
mov dword [rbp - 0x10], 0x274c
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
jne 0x14007025e
cmp rbx, 0xffffffffffffffff
jne 0x140070206
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x140070253
xor ecx, ecx
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 ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rsi
setne byte [rbp - 0xc]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14007025e
mov dword [rbp - 0x10], ebx
mov byte [rbp - 0xc], bl
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret