joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x1401d3690]
mov dword [rsp + 0x50], edi
call fcn.140018820
mov rbx, rax
test rax, rax
je 0x14000e605
cmp qword [rax + 8], rdi
je 0x14000e5c7
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140039b80
test rax, rax
je 0x14000e5b4
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e615
cmp dword [rsp + 0x58], edi
je 0x14000e615
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret

Function at 0x14000e640
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1401d3690]
call fcn.140018820
mov rbx, rax
test rax, rax
je 0x14000e693
cmp qword [rax + 8], 0
je 0x14000e672
cmp dword [rax + 0x1c], 0
jne 0x14000e672
mov rcx, rax
call fcn.14000de50
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14000e6a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x1401d3690]
call fcn.140018820
test rax, rax
je 0x14000e708
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14000e6ee
mov r8, rbx
mov rcx, rax
call fcn.140039b80
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x14000e888
test r8d, r8d
je 0x14000e888
mov rdx, rcx
mov rcx, qword [0x1401d3690]
call fcn.140018820
test rax, rax
je 0x14000e884
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000e871
mov rcx, rax
call fcn.14003a2b0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e9b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x1401d3690]
call fcn.140018820
test rax, rax
je 0x14000e9e0
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.14000e8a0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1401d36a0]
jne 0x14000eb9a
mov rax, qword [0x1401d3c00]
add rsp, 0x28
ret
mov rcx, qword [0x1401d3c20]
add rsp, 0x28
jmp fcn.140014188

Function at 0x14000f300
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d36bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x11c], ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f32c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1401d36bc]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x14000f37b
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rcx, rbx
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax

Function at 0x14000f3bc
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1401d36bc]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov edx, dword [rax + 0x118]
cmp edx, dword [rax + 0x120]
je 0x14000f40d
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x14000f448
Capabilities:
Get thread local storage value

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, 0x30
mov r14d, ecx
mov edi, r9d
mov ecx, dword [0x1401d36bc]
mov esi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x14000f494
mov edx, edi
mov dword [rax + 0x120], edi
mov rcx, rax
call qword [rax + 0x80]
mov ecx, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
mov rax, qword [rbx + 0x18]
add edx, r14d
lea r8d, [rcx + rbp]
mov rcx, rbx
test rax, rax
je 0x14000f4ba
call rax
jmp 0x14000f4c1
mov dword [rsp + 0x20], esi
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000f4dc
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401d36bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x14000f512
mov edx, 0x110c
bt edx, ecx
jae 0x14000f512
test rbx, rbx
je 0x14000f512
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f518
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov ebx, r9d
mov ecx, dword [0x1401d36bc]
mov edi, r8d
mov esi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test ebx, ebx
jle 0x14000f577
mov r10d, dword [rsp + 0x60]
test r10d, r10d
jle 0x14000f577
mov r9d, dword [rax + 0x104]
mov rdx, rbp
mov r8d, dword [rax + 0x100]
add r9d, edi
mov dword [rsp + 0x28], r10d
add r8d, esi
mov rcx, rax
mov dword [rsp + 0x20], ebx
call qword [rax + 0x50]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f58c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ebx, r8d
mov ecx, dword [0x1401d36bc]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rsi
mov rcx, rax
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
add r9d, ebx
add r8d, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x48]
Function at 0x14000f5dc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ecx, dword [0x1401d36bc]
mov rdi, r8
movaps xmmword [rsp + 0x30], xmm6
movaps xmm6, xmm1
movaps xmmword [rsp + 0x20], xmm7
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov edx, dword [rax + 0x118]
cmp edx, dword [rax + 0x120]
je 0x14000f625
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov edx, dword [rbx + 0x11c]
cmp edx, dword [rbx + 0x124]
je 0x14000f63e
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
movd xmm2, dword [rbx + 0x104]
mov r9, rdi
movd xmm1, dword [rbx + 0x100]
mov rcx, rbx
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
addsd xmm2, xmm6
addsd xmm1, xmm7
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
jmp rax

Function at 0x14000f680
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d36bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x14000f6a4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d36bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x118], ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f6d0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401d36bc], eax
add rsp, 0x28
ret
Function at 0x14000f8b0
Capabilities:
Get thread local storage value

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 r12
push r14
push r15
sub rsp, 0x20
mov esi, ecx
mov ebp, r9d
mov ecx, dword [0x1401d36bc]
mov ebx, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov r11d, dword [rax + 0x100]
add esi, r11d
mov r10d, dword [rax + 0x104]
add ebx, r11d
mov eax, dword [rax + 0xe8]
add r14d, r10d
add ebp, r10d
cmp eax, 0xc
ja 0x14000faa0
mov ecx, 0x110c
bt ecx, eax
jae 0x14000faa0
mov r15d, ebx
mov dword [rdi + 0x1a8], esi
sub r15d, esi
mov dword [rdi + 0x1ac], r14d
mov eax, r15d
mov dword [rdi + 0x1b0], ebx
imul eax, r15d
mov r12d, ebp
sub r12d, r14d
mov dword [rdi + 0x1b4], ebp
mov ecx, r12d
imul ecx, r12d
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call fcn.14003b0f8
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x14000f985
lea rax, [0x14000f6e8]
cmp esi, ebx
lea rcx, [0x14000f71c]
cmovg rax, rcx
jmp 0x14000fa99
cmp esi, ebx
jne 0x14000f99c
lea rax, [0x14000f750]
cmp r14d, ebp
lea rcx, [0x14000f788]
jmp 0x14000f97c
mov ecx, r15d
call fcn.14003b0f0
mov ecx, r12d
mov ebx, eax
call fcn.14003b0f0
mov r10d, 1
cmp ebx, eax
jl 0x14000f9ce
and dword [rdi + 0x1c0], 0
mov ecx, dword [rdi + 0x1b4]
mov r8d, dword [rdi + 0x1ac]
jmp 0x14000fa07
mov eax, dword [rdi + 0x1ac]
mov r8d, dword [rdi + 0x1a8]
mov ecx, dword [rdi + 0x1b0]
mov dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
mov dword [rdi + 0x1b4], ecx
mov dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1c0], r10d
mov dword [rdi + 0x1ac], r8d
mov r9d, dword [rdi + 0x1a8]
mov edx, dword [rdi + 0x1b0]
cmp r9d, edx
jge 0x14000fa22
and dword [rdi + 0x1bc], 0
jmp 0x14000fa57
mov r8d, dword [rdi + 0x1b4]
mov eax, r9d
mov ecx, dword [rdi + 0x1ac]
mov r9d, edx
mov dword [rdi + 0x1a8], edx
mov edx, eax
mov dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1bc], r10d
mov dword [rdi + 0x1b4], ecx
mov dword [rdi + 0x1ac], r8d
sub ecx, r8d
lea rax, [0x14000f7bc]
sub edx, r9d
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [rdi + 0x1c4], xmm1
movsd xmm1, qword [0x140145040]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [rdi + 0x1c8], xmm0
mov qword [rdi + 0x128], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000fb04
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
mov ebp, r9d
mov ecx, dword [0x1401d36bc]
mov esi, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15d, esi
mov r14, rax
mov r11d, dword [rax + 0x100]
mov edx, dword [rax + 0x104]
add r11d, ebx
add edx, edi
mov edi, ebp
test esi, esi
lea r12d, [r11 + rsi]
cmovns r12d, r11d
lea r13d, [rdx + rbp]
neg r15d
test esi, esi
cmovns r15d, esi
mov esi, dword [rsp + 0x90]
test ebp, ebp
cmovns r13d, edx
neg edi
test ebp, ebp
lea eax, [rsi + rsi]
cmovns edi, ebp
cmp eax, r15d
jle 0x14000fb8d
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov ebx, dword [rsp + 0x98]
lea ecx, [rbx + rbx]
cmp ecx, edi
jle 0x14000fba4
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [r14 + 0x118]
cmp edx, dword [r14 + 0x120]
je 0x14000fbc5
mov rcx, r14
mov dword [r14 + 0x120], edx
call qword [r14 + 0x80]
mov dword [rsp + 0x30], ebx
mov r9d, r15d
mov dword [rsp + 0x28], esi
mov r8d, r13d
mov edx, r12d
mov dword [rsp + 0x20], edi
mov rcx, r14
call qword [r14 + reloc.WS2_32.dll_recv]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000fc00
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000fc75
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x14000fc75
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14000fc4d
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1401d1e08]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1401d36bc]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1401d36c0], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1401d36bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fce5
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14000fcbd
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1401d1e08]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1401d36bc]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1401d36c0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14000fcec
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401d36bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]
Function at 0x1400106fc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400106e3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x1401d1e08]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400106da
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400106c8
cmp dword [rsp + 0x78], edi
jne 0x1400106c8
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14000fd14
mov rbx, rax
mov rcx, qword [0x1401d1e08]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
xor r8d, r8d
jmp 0x140010620

Function at 0x140012b90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov ebp, r9d
mov rbx, rcx
test r8, r8
je 0x140012c89
movzx r12d, word [r8]
test r12w, r12w
je 0x140012c89
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x28], r14
mov eax, r13d
mov qword [rsp + 0x20], r15
cmovns eax, edx
test rcx, rcx
je 0x140012c09
cmp word [rcx], r13w
je 0x140012c09
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x140012bf0
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x140012c0e
mov edi, r13d
mov esi, eax
call fcn.14001a810
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.140018630
mov r14, rax
test r15d, r15d
je 0x140012c33
mov ecx, r15d
call fcn.14001a850
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x140012c4d
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.140017310
test esi, esi
je 0x140012c62
mov rdi, r14
mov edx, esi
mov rax, r12
mov ecx, esi
rep stosw word [rdi], ax
lea r14, [r14 + rdx*2]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov word [r14 + r15*2], r13w
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov ecx, ebp
add rsp, 0x30
pop r12
pop rbp
pop rbx
jmp fcn.140019650

Function at 0x140013460
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.140018630
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14003ef64
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140013493
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400186e0
Function at 0x140013560
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x1400136cb
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x1401616e8]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x14001365a
cmp word [r14 + 2], di
je 0x14001365a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x1400135d0
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.14003ecc8
test eax, eax
je 0x1400135fe
cmp word [rbx], r12w
je 0x1400135fe
add rbx, 2
jmp 0x1400135e0
inc edi
cmp edi, r15d
je 0x140013614
cmp word [rbx], r12w
je 0x14001361d
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x1400135e0
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.14001a810
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x140013690
mov ecx, r13d
call fcn.14003ef90
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.140017310
mov edx, r13d
mov ecx, r12d
call fcn.140018630
mov rdi, rax
jmp 0x1400136ac
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x140013673
test ax, ax
je 0x140013673
add rbx, 2
jmp 0x140013660
inc edi
cmp edi, r15d
je 0x140013685
test ax, ax
je 0x14001361f
lea rsi, [rbx + 2]
jmp 0x14001365a
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14001361f
mov edx, r13d
mov ecx, r12d
call fcn.140018630
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400185dc
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140019650

Function at 0x140014188
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 [0x1401d3850]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140014209
mov r8, qword [0x1401d3848]
lea edx, [rax + 8]
mov rcx, qword [0x1401d1e08]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401d3850]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1401d3840]
jmp 0x1400141f5
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400141f2
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400141e0
mov rdx, rdi
lea rcx, [0x140014324]
call fcn.14003f0e4
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140014220
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 0x14001424a
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1401d3848]
test rbx, rbx
jne 0x140014290
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1401d1e08]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1401d3850], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401d3850]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1401d3848]
jmp 0x140014293
movsxd rdi, edi
mov ecx, dword [0x1401d3850]
lea rax, [rdi + rbx]
mov qword [0x1401d3848], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1401d3848]
mov edx, 8
mov rcx, qword [0x1401d1e08]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1401d3850]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400142e2
test rbp, rbp
je 0x140014309
mov edx, 0x28
lea rcx, [0x1401d3840]
call fcn.140017e5c
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140014309
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 0x1400143a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x1401cfa08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1401d3858]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x1400143f4
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x1400143fd
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.14003ec90
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401cfa08]
cmp ecx, 0xffffffff
jne 0x140014486
call fcn.140014670
jmp 0x140014496
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400144b5
call fcn.14003f320
mov ecx, dword [0x1401cfa08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140014430]
add rsp, 0x28
jmp fcn.14003f0e4
add rsp, 0x28
ret

Function at 0x140014670
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1401d3858], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401cfa08], eax
add rsp, 0x28
jmp fcn.14003f320