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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400f8880]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140002492
mov r8, qword [0x1400f8780]
lea edx, [rax + 8]
mov rcx, qword [0x1400f8858]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f8880]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140001c50
mov rdx, rbx
lea rcx, [0x140002410]
call fcn.1400025b4
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000249c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f8880], eax
add rsp, 0x28
jmp fcn.140002438

Function at 0x1400025b4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400f8888], 0
lea rbx, [0x1400f8898]
mov r14, rdx
mov r15, rcx
jne 0x140002601
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400f888c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400f8888], 1
mov ecx, dword [0x1400f888c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400026d6
mov rcx, qword [0x1400f8858]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140002701
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f8890]
test rax, rax
je 0x140002651
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400f8890], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000271c]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400f888c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400f8858]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140002701
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140003074
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400030be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400030be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400030be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400030be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400030be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400030c0
xor al, al
add rsp, 0x28
ret

Function at 0x1400079dc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007a4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007a4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007a4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007a4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140007a4b
cmp dword [rcx + 0xf8], 0
je 0x140007a4b
mov ecx, ebx
call fcn.140007b50
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007810
nop
cmp dword [rbp + 0x20], 0
je 0x140007a99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007aa4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400079dc

Function at 0x140007c3c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400079dc
Function at 0x1400137d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140009a80
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140013871
cmp ebx, dword [rsp + 0x30]
je 0x14001386a
test esi, esi
je 0x14001386a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140013845
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140013852
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001382f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140013856
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140013873
mov eax, 1
jmp 0x140013873
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014b08
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140014b38
xor eax, eax
jmp 0x140014bfb
mov rbp, rbx
cmp word [rax], si
je 0x140014b5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014b44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014b40
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140014e00
movsxd r14, eax
test eax, eax
jne 0x140014b9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014b31
mov rcx, r14
call fcn.14000a504
mov rdi, rax
test rax, rax
jne 0x140014bb4
xor ecx, ecx
call fcn.140008834
jmp 0x140014b90
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140014e00
test eax, eax
jne 0x140014be5
mov rcx, rdi
call fcn.140008834
jmp 0x140014bef
xor ecx, ecx
call fcn.140008834
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140014c18
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140014c9f
mov rsi, rbx
cmp word [rax], bp
je 0x140014c5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014c48
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014c44
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000a504
mov rdi, rax
test rax, rax
je 0x140014c8c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022ee0
mov rbp, rdi
xor ecx, ecx
call fcn.140008834
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ce38
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000da28
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001cec2
cmp byte [rbp - 0x21], r15b
je 0x14001cebd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001cef8
call fcn.14000b7a4
test eax, eax
jne 0x14001cee4
cmp byte [rbp - 0x21], r15b
je 0x14001cedc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001cef8
cmp byte [rbp - 0x21], r15b
je 0x14001cef5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000eac8
test eax, eax
jne 0x14001cf98
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000da28
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001cf37
cmp byte [rbp - 0x21], r15b
je 0x14001cf6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001cf6c
call fcn.14000b7a4
test eax, eax
jne 0x14001cf58
cmp byte [rbp - 0x21], r15b
je 0x14001cf51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001cf6c
cmp byte [rbp - 0x21], r15b
je 0x14001cf69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000eac8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001cf98
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001cf9b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001cfa9
mov rcx, rdi
call fcn.140008834
cmp byte [rbp + 0x3f], r15b
je 0x14001cfb8
mov rcx, qword [rbp + 0x27]
call fcn.140008834
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001f550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f9710]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001f5a7
cmp word [rdx], r13w
jne 0x14001f5a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f5ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f6d1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f6f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f5e5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f60c
cmp r9, r8
jae 0x14001f61c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001f5c6
jmp 0x14001f6d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f6c6
cmp dword [rsp + 0x80], esi
je 0x14001f6c6
lea r8, [0x1400f9710]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f69e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f66e
mov word [rbx], r13w
jmp 0x14001f6ce
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001f67b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f6ce
cmp word [rsp + 0x70], r13w
jne 0x14001f6ab
cmp rbx, r14
je 0x14001f668
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020ae4
cmp word [rsp + 0x70], r13w
je 0x14001f6d1
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f9710]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f6cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f6d1
Function at 0x140030e00
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140030ec4
lea rcx, [0x1400ff280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f9ed8]
jmp 0x140030e8a
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140030e87
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400f9ed8]
mov rdx, rsi
call fcn.140032f24
jmp 0x140030e8a
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140030e57
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x1400f9ed8]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.140032f6c
lea rcx, [0x1400ff280]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140030fa0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140034440
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14005997c
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140030fd3
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400344f0
Function at 0x1400310dc
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140030ff8]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14003264c
xor r8d, r8d
mov qword [0x1400f9f10], rax
xor edx, edx
mov ecx, ebx
call fcn.140032374
xor ebx, ebx
mov qword [0x1400ff360], rax
cmp word [0x1400f9f08], bx
jne 0x140031211
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140031156
movzx eax, di
jmp 0x140031158
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1400f9f08], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400f9f18], rax
test rax, rax
je 0x140031211
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9f18]
lea rdx, str.freeaddrinfo
mov qword [0x1400f9ee8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9f18]
lea rdx, str.getnameinfo
mov qword [0x1400f9ef0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9f18]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400f9ef8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400f9ee8], rbx
mov qword [0x1400f9f00], rax
je 0x140031211
cmp qword [0x1400f9ef0], rbx
je 0x140031211
cmp qword [0x1400f9ef8], rbx
je 0x140031211
mov ecx, dword [0x1400f9f0c]
test rax, rax
cmovne ecx, edi
mov dword [0x1400f9f0c], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14005a2f0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1400313d4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1400f9f20], 0
jne 0x14003143a
lea rcx, [0x1400f9f20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031426
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1400f9f28]
imul qword [0x1400f9f20]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1400f9f20], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1400f9f20], 0
jne 0x14003143a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140031460
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1400f9f28]
cqo
idiv qword [0x1400f9f20]
add rsp, 0x28
ret
Function at 0x1400322dc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400f9f48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003235d
mov r8, qword [0x1400f9f40]
lea edx, [rax + 8]
mov rcx, qword [0x1400f8858]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f9f48]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f9f38]
jmp 0x140032349
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140032346
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140032334
mov rdx, rdi
lea rcx, [0x140032240]
call fcn.1400025b4
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140032374
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x14003239e
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1400f9f40]
test rbx, rbx
jne 0x1400323e4
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400f8858]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1400f9f48], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f9f48]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f9f40]
jmp 0x1400323e7
movsxd rdi, edi
mov ecx, dword [0x1400f9f48]
lea rax, [rdi + rbx]
mov qword [0x1400f9f40], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400f9f40]
mov edx, 8
mov rcx, qword [0x1400f8858]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400f9f48]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140032436
test rbp, rbp
je 0x14003245d
mov edx, 0x28
lea rcx, [0x1400f9f38]
call fcn.140032f6c
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14003245d
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140033f00
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f59d4]
cmp ecx, 0xffffffff
jne 0x140033f16
call fcn.140034330
jmp 0x140033f26
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140033f45
call fcn.140034560
mov ecx, dword [0x1400f59d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140033f50]
add rsp, 0x28
jmp fcn.1400025b4
add rsp, 0x28
ret
Function at 0x140033f90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400f59d4]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140033fe0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f59d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x140034010
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f59d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x140034080
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f59d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x140034150
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400f59d4]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140034240
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
movsxd r14, edx
mov ecx, dword [0x1400f59d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rdi]
mov rsi, rax
mov r8d, dword [rax + 0x10]
sub r8d, r14d
movsxd rbp, r8d
test rcx, rcx
jne 0x140034296
mov rcx, qword [0x1400ff400]
lea r8, [rbp + 0x12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x1400342b5
call fcn.140036710
add qword [rdi], 0xfffffffffffffffc
lea r9, [rbp + 0x12]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1400ff400]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea r9, [rax + 4]
mov r8, rbp
mov qword [rdi], r9
mov rcx, r9
mov rdx, qword [rsi]
add rdx, r14
shr r8, 1
call fcn.1400345c0
mov rcx, qword [rdi]
lea rdx, [rbp + 2]
call fcn.1400363e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rsi + 0x10], r14
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret