joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009234
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1400093a5
cmp word [rcx], di
je 0x1400093a5
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14002664c
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.14000ffec
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400092da
cmp word [rsp + 0x22], 0x3a
jne 0x1400092da
cmp edx, 2
jne 0x1400092ba
lea rdx, [0x14008f8e8]
lea rcx, [rsp + 0x20]
call fcn.14000ffa4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400093a5
mov rbx, 0xfffffffffffffffe
jmp 0x1400093a5
cmp word [rcx], 0x5c
je 0x1400092e6
cmp word [rcx], 0x2f
jne 0x1400092ef
mov word [rcx], di
sub rcx, 2
jmp 0x1400092da
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140009336
test byte [rbp + 0x130], 0x10
je 0x14000931b
mov rbx, 0xfffffffffffffffe
jmp 0x14000932e
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400093a5
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14000934b
cmp ax, cx
je 0x140009361
cmp cx, 0x2f
jne 0x140009356
cmp ax, cx
je 0x140009361
cmp cx, 0x2e
jne 0x1400093a5
cmp ax, cx
jne 0x1400093a5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009386
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x1400093a5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14000948c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400094a4
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400094a4
mov eax, eax
jmp 0x1400094a8
or rax, 0xffffffffffffffff
add rsp, 0x28
ret

Function at 0x140009684
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140009695
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x1400096a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400096e4
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x1400096f0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1400ccd30]
jne 0x140009710
add rsp, 0x30
pop rdi
jmp fcn.140018634
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.14000fcc0
mov rbx, rax
test rax, rax
je 0x140009785
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000976d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000975a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1400cc470]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400ccd30]
mov rdx, rdi
call fcn.14000fda4
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400097d0
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 [0x1400ccd30]
mov dword [rsp + 0x50], edi
call fcn.14000fcc0
mov rbx, rax
test rax, rax
je 0x140009875
cmp qword [rax + 8], rdi
je 0x140009837
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140026700
test rax, rax
je 0x140009824
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 0x140009885
cmp dword [rsp + 0x58], edi
je 0x140009885
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 0x140009ea8
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 [0x1400ccd40]
jne 0x140009ec6
mov rax, qword [0x1400cd040]
add rsp, 0x28
ret
mov rcx, qword [0x1400cd060]
add rsp, 0x28
jmp fcn.14000e7c4

Function at 0x14000a450
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1400ccd5c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x11c], ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000a47c
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 [0x1400ccd5c]
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 0x14000a4cb
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 0x14000a50c
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 [0x1400ccd5c]
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 0x14000a55d
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 + 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
ret

Function at 0x14000a598
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 [0x1400ccd5c]
mov esi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x14000a5e4
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 0x14000a60a
call rax
jmp 0x14000a611
mov dword [rsp + 0x20], esi
call qword [rbx + 0x70]
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 0x14000a62c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400ccd5c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x14000a662
mov edx, 0x110c
bt edx, ecx
jae 0x14000a662
test rbx, rbx
je 0x14000a662
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14000a668
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 [0x1400ccd5c]
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 0x14000a6b8
Capabilities:
Get thread local storage value

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

Function at 0x14000a6dc
Capabilities:
Get thread local storage value

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

Function at 0x14000a708
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ccd5c], eax
add rsp, 0x28
ret
Function at 0x14000a8e8
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 [0x1400ccd5c]
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 0x14000aad8
mov ecx, 0x110c
bt ecx, eax
jae 0x14000aad8
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.140027828
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x14000a9bd
lea rax, [0x14000a720]
cmp esi, ebx
lea rcx, [0x14000a754]
cmovg rax, rcx
jmp 0x14000aad1
cmp esi, ebx
jne 0x14000a9d4
lea rax, [0x14000a788]
cmp r14d, ebp
lea rcx, [0x14000a7c0]
jmp 0x14000a9b4
mov ecx, r15d
call fcn.140027820
mov ecx, r12d
mov ebx, eax
call fcn.140027820
mov r10d, 1
cmp ebx, eax
jl 0x14000aa06
and dword [rdi + 0x1c0], 0
mov ecx, dword [rdi + 0x1b4]
mov r8d, dword [rdi + 0x1ac]
jmp 0x14000aa3f
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 0x14000aa5a
and dword [rdi + 0x1bc], 0
jmp 0x14000aa8f
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, [0x14000a7f4]
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 [0x140080020]
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 0x14000ab30
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 [0x1400ccd5c]
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 0x14000abb9
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 0x14000abd0
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [r14 + 0x118]
cmp edx, dword [r14 + 0x120]
je 0x14000abf1
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 + 0x10]
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 0x14000ac2c
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 0x14000aca1
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 0x14000aca1
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14000ac79
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400cc470]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400ccd5c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400ccd60], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400ccd5c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000ad11
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14000ace9
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1400cc470]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400ccd5c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400ccd60], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14000b6e4
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 0x14000b6cb
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x1400cc470]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14000b6c2
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 0x14000b6b0
cmp dword [rsp + 0x78], edi
jne 0x14000b6b0
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14000ad18
mov rbx, rax
mov rcx, qword [0x1400cc470]
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 0x14000b608

Function at 0x14000d7b0
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 0x14000d8a9
movzx r12d, word [r8]
test r12w, r12w
je 0x14000d8a9
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 0x14000d829
cmp word [rcx], r13w
je 0x14000d829
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14000d810
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x14000d82e
mov edi, r13d
mov esi, eax
call fcn.140012170
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.14000fed0
mov r14, rax
test r15d, r15d
je 0x14000d853
mov ecx, r15d
call fcn.1400121b0
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14000d86d
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.14000ee50
test esi, esi
je 0x14000d882
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.140010fb0

Function at 0x14000e050
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.14000fed0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14002bbc8
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14000e083
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000ff80
Function at 0x14000e0b0
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 0x14000e21b
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, [0x14008f924]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x14000e1aa
cmp word [r14 + 2], di
je 0x14000e1aa
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x14000e120
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.14002b8a8
test eax, eax
je 0x14000e14e
cmp word [rbx], r12w
je 0x14000e14e
add rbx, 2
jmp 0x14000e130
inc edi
cmp edi, r15d
je 0x14000e164
cmp word [rbx], r12w
je 0x14000e16d
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x14000e130
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.140012170
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x14000e1e0
mov ecx, r13d
call fcn.14002bc00
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.14000ee50
mov edx, r13d
mov ecx, r12d
call fcn.14000fed0
mov rdi, rax
jmp 0x14000e1fc
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x14000e1c3
test ax, ax
je 0x14000e1c3
add rbx, 2
jmp 0x14000e1b0
inc edi
cmp edi, r15d
je 0x14000e1d5
test ax, ax
je 0x14000e16f
lea rsi, [rbx + 2]
jmp 0x14000e1aa
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14000e16f
mov edx, r13d
mov ecx, r12d
call fcn.14000fed0
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.14002664c
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.140010fb0

Function at 0x14000e7c4
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 [0x1400ccef0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000e845
mov r8, qword [0x1400ccee8]
lea edx, [rax + 8]
mov rcx, qword [0x1400cc470]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400ccef0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400ccee0]
jmp 0x14000e831
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14000e82e
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000e81c
mov rdx, rdi
lea rcx, [0x14000e960]
call fcn.14002bd54
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e85c
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 0x14000e886
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1400ccee8]
test rbx, rbx
jne 0x14000e8cc
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400cc470]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1400ccef0], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400ccef0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400ccee8]
jmp 0x14000e8cf
movsxd rdi, edi
mov ecx, dword [0x1400ccef0]
lea rax, [rdi + rbx]
mov qword [0x1400ccee8], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400ccee8]
mov edx, 8
mov rcx, qword [0x1400cc470]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400ccef0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14000e91e
test rbp, rbp
je 0x14000e945
mov edx, 0x28
lea rcx, [0x1400ccee0]
call fcn.140010440
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14000e945
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 0x14000e9e0
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 [0x1400cb960]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1400ccef8]
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 0x14000ea34
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14000ea3d
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.14002b870
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 0x14000eab0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400cb960]
cmp ecx, 0xffffffff
jne 0x14000eac6
call fcn.14000ecb0
jmp 0x14000ead6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14000eaf5
call fcn.14002bf90
mov ecx, dword [0x1400cb960]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14000ea70]
add rsp, 0x28
jmp fcn.14002bd54
add rsp, 0x28
ret

Function at 0x14000ecb0
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 [0x1400ccef8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cb960], eax
add rsp, 0x28
jmp fcn.14002bf90