joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002640
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000266d
xor eax, eax
jmp 0x1400027d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400026a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400026a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400027d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400027cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400026ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002715
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002784
sub eax, 1
je 0x140002784
cmp eax, 2
jne 0x1400027cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400027b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400027cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003280
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002cd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002da3
cmp byte [rcx + 0x71], 0
je 0x140002da3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002d9f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002d64
sub eax, 1
je 0x140002d68
cmp eax, 2
jne 0x140002d9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003280
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002d96
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002d9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002d4c
xor al, al
jmp 0x140002d4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003280
add rsp, 0x60
pop rbx
ret

Function at 0x140003c1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003c66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003c66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003c66
cmp dword [rcx + 0x84], 0xe
jbe 0x140003c66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003c68
xor al, al
add rsp, 0x28
ret
Function at 0x140001940
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140173b38]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140001974
jnp 0x140001997
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14010e4a0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140173b48]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001acf
mov eax, dword [0x140173b58]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001b09
rdtsc
mov r14, rax
mov r15, rdx
xor esi, esi
lea rdi, [rsp + 0x20]
mov qword [rdi], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rdi], rsi
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbx, qword [0x140173b50]
movq xmm1, rbx
punpckldq xmm1, xmmword [0x1401469f0]
subpd xmm1, xmmword [0x140146a00]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1401512a0]
ucomisd xmm1, xmm0
ja 0x140001974
shl r15, 0x20
or r14, r15
sub r14, qword [0x140173b40]
movq xmm1, r14
punpckldq xmm1, xmmword [0x1401469f0]
subpd xmm1, xmmword [0x140146a00]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x140173b38], xmm6
jmp 0x140001974
lea rcx, [0x140173b48]
call fcn.14010bdd8
cmp dword [0x140173b48], 0xffffffff
jne 0x1400019e0
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140173b40], rdx
lea rcx, [0x140173b48]
call fcn.14010ba50
jmp 0x1400019e0
lea rcx, [0x140173b58]
call fcn.14010bdd8
cmp dword [0x140173b58], 0xffffffff
jne 0x140001a05
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x140173b50], rax
lea rcx, [0x140173b58]
call fcn.14010ba50
jmp 0x140001a05
Function at 0x140001b60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140179ae8]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001c35
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140001bc6
movsxd rcx, dword [0x140179ae0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140179ae4]
jne 0x140001bc6
test rsi, rsi
je 0x140001bc6
cmp qword [rax + rcx], 0
jne 0x140001cbb
mov eax, dword [0x140179ae8]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001c78
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140001c29
movsxd rcx, dword [0x140179ae0]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140179ae4]
movsxd rdx, dword [0x140179ae0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov al, 1
add rsp, 0x20
pop rsi
ret
test rsi, rsi
je 0x140001c21
call fcn.14000bf20
jmp 0x140001bfd
lea rcx, [0x140179ae8]
call fcn.14010bdd8
cmp dword [0x140179ae8], 0xffffffff
jne 0x140001b8d
mov qword [0x140179ae0], 0
lea rcx, [0x140179ae0]
xor edx, edx
call fcn.14001c0a0
lea rcx, [0x140179ae8]
call fcn.14010ba50
jmp 0x140001b8d
lea rcx, [0x140179ae8]
call fcn.14010bdd8
cmp dword [0x140179ae8], 0xffffffff
jne 0x140001beb
mov qword [0x140179ae0], 0
lea rcx, [0x140179ae0]
xor edx, edx
call fcn.14001c0a0
lea rcx, [0x140179ae8]
call fcn.14010ba50
jmp 0x140001beb
xor eax, eax
jmp 0x140001c23
Function at 0x1400035d0
Capabilities:
Create thread

Disassembly:
jmp 0x1400035d0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.14010b888
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400045a0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140003671
test rbp, rbp
je 0x14000369c
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010e4a0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14000368a
mov ebp, eax
cmp eax, 0x5af
je 0x14000368a
cmp ebp, 0xe
jne 0x1400036a7
mov rcx, r15
call fcn.14009a700
mov rcx, r14
call fcn.14010b880
jmp 0x14000364f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000364f
mov eax, dword [0x140173b18]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003716
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.14009f6e0
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x140173b10]
call fcn.1400021b0
cmp byte [rsi + 0x17], 0
jns 0x140003692
mov rcx, qword [rsp + 0x38]
call fcn.14010b880
jmp 0x140003692
lea rcx, [0x140173b18]
call fcn.14010bdd8
cmp dword [0x140173b18], 0xffffffff
jne 0x1400036c8
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140037240
mov qword [0x140173b10], rax
lea rcx, [0x140173b18]
call fcn.14010ba50
jmp 0x1400036c8
Function at 0x140003b70
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x140003c31
mov eax, dword [0x140179ae8]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003cc5
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x140179ae8]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003d08
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140003c25
movsxd rcx, dword [0x140179ae0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x140179ae4]
movsxd rdx, dword [0x140179ae0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
jne 0x140003c4f
cmp qword [rsi], 0
jne 0x140003cb0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010e4a0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
lea r8, [rsp + 0x28]
mov qword [r8], rax
mov qword [rbx + 0x28], 0
lea rdx, [rbx + 8]
mov rax, qword [rcx]
call qword [rax]
add rbx, 0x38
cmp rbx, rdi
je 0x140003c31
lea r14, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
lea rdx, [rbx + 8]
mov r8, r14
call qword [rax]
add rbx, 0x38
cmp rbx, rdi
je 0x140003c31
jmp 0x140003c81
mov rcx, rsi
call fcn.1400044e0
mov rcx, qword [rsi]
call fcn.14010b880
jmp 0x140003c37
lea rcx, [0x140179ae8]
call fcn.14010bdd8
cmp dword [0x140179ae8], 0xffffffff
jne 0x140003bba
mov qword [0x140179ae0], 0
lea rcx, [0x140179ae0]
xor edx, edx
call fcn.14001c0a0
lea rcx, [0x140179ae8]
call fcn.14010ba50
jmp 0x140003bba
lea rcx, [0x140179ae8]
call fcn.14010bdd8
cmp dword [0x140179ae8], 0xffffffff
jne 0x140003beb
mov qword [0x140179ae0], 0
lea rcx, [0x140179ae0]
xor edx, edx
call fcn.14001c0a0
lea rcx, [0x140179ae8]
call fcn.14010ba50
jmp 0x140003beb
Function at 0x140009500
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x140173f40]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140009562
lea rsi, [0x140173f38]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14010e4a0
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140173f40]
call fcn.14010bdd8
cmp dword [0x140173f40], 0xffffffff
jne 0x14000953d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140110bf0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14010b888
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140173f78]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140009622
lea r8, [0x140173f48]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.140009760
mov qword [0x140173f38], rsi
lea rcx, [0x140173f40]
call fcn.14010ba50
jmp 0x14000953d
lea rcx, [0x140173f78]
call fcn.14010bdd8
cmp dword [0x140173f78], 0xffffffff
jne 0x1400095f3
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x140173f68], xmm2
movups xmmword [0x140173f58], xmm1
movups xmmword [0x140173f48], xmm0
lea rcx, [0x140173f78]
call fcn.14010ba50
jmp 0x1400095f3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140146a10]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1fa
call fcn.140003270
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140014670
cmp byte [rdi + 0x17], 0
jns 0x14000a606
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14000a640
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14010e4a0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000a6b0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
call fcn.14010b8cc
mov r14d, dword [rax]
call fcn.14010b8cc
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [0x140178bc0]
cmp rbx, 1
jbe 0x14000a7f4
mov rbp, qword [rsi + 8]
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000a831
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rbp
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
jne 0x14000a7a2
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14010b8cc
mov dword [rax], r14d
cmp byte [rsi + 0x38], 0
je 0x14000a75a
mov rdi, qword [rsi + 0x48]
test rdi, rdi
jne 0x14000a7b0
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14000a844
mov rcx, qword [rsi + 0x28]
mov qword [rsi + 0x28], 0
test rcx, rcx
jne 0x14000a89f
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14000a8ae
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14010e4a0
nop
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp qword [rsi + 8], 0
jne 0x14000a73b
call fcn.14010b2c0
jmp 0x14000a73b
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.14000c860]
mov rdx, qword [rsi + 0x40]
mov r8, qword [rbx]
mov rcx, rdi
call fcn.14000a8e0
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x14000a75a
lock dec dword [rdi]
jne 0x14000a75a
mov rcx, rdi
call fcn.140078450
mov rcx, rdi
call fcn.14010b880
jmp 0x14000a75a
lea rcx, [0x140178bc0]
call fcn.140022080
test al, al
je 0x14000a8c3
mov eax, 0xffffffff
mov qword [0x140178bc8], rax
lea rbx, [0x140178bc8]
mov rcx, rbx
xor edx, edx
call fcn.14001c0c0
mov qword [0x140178bc0], rbx
jmp 0x14000a700
test rbp, rbp
je 0x14000a733
call fcn.14000bf20
jmp 0x14000a71a
mov ecx, dword [rsi + 0x20]
cmp dword [rax + 0x18], ecx
jbe 0x14000a767
mov rax, qword [rax + 0x10]
shl rcx, 7
cmp dword [rax + rcx + 0x68], 0
je 0x14000a767
mov rbx, qword [0x140173af0]
lea rdi, [rbx + 0xc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14000a8cf
mov rcx, qword [rsi + 0x18]
add rbx, 0x78
mov edx, dword [rsi + 0x20]
mov r8, rbx
call fcn.14009ab70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14000a767
mov edx, 1
call fcn.1400a0fb0
jmp 0x14000a77c
mov rcx, qword [rax + 8]
lock dec dword [rcx + 0x38]
mov rax, qword [rax + 8]
lock inc dword [rax + 0x3c]
jmp 0x14000a789
mov rbx, qword [0x140178bc0]
jmp 0x14000a700
mov rcx, rdi
call fcn.1400067c0
jmp 0x14000a87e
Function at 0x14000aaf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000ab24
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14000ab24
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14000ab1e

Function at 0x14000ab30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, qword [0x140178c08]
cmp rsi, 1
jbe 0x14000ab73
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000aba9
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14000aba9
mov rax, qword [rax + rcx]
test rax, rax
je 0x14000aba9
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140178c08]
call fcn.140022080
test al, al
je 0x14000abac
mov eax, 0xffffffff
mov qword [0x140178c10], rax
lea rsi, [0x140178c10]
mov rcx, rsi
xor edx, edx
call fcn.14001c0c0
mov qword [0x140178c08], rsi
jmp 0x14000ab42
int3
mov rsi, qword [0x140178c08]
jmp 0x14000ab42

Function at 0x14000bdf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000be2e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14000be27
call fcn.14000bf20
jmp 0x14000be0e

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14010e430
sub rsp, rax
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x14016f428]
cmp esi, 0xffffffff
jne 0x14000bf7d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000bffa
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x14016f428], esi
je 0x14000bf7d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x14016f428]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14000bff7
lea r14, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call fcn.140110bf0
lea rdx, [rsp + 0x23]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call rdi
mov ecx, 0x1000
call fcn.14010bab0
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, r14
call fcn.1401107e0
mov rdx, rbx
or rdx, 3
mov ecx, esi
call rdi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14010e4a0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
int3