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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000356d
xor eax, eax
jmp 0x1400036d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400035a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400035a7
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 0x1400036d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400036cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400035ea
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 0x140003615
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 0x1400036d1
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 0x140003684
sub eax, 1
je 0x140003684
cmp eax, 2
jne 0x1400036cc
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 0x1400036d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400036b2
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 0x1400036cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400036d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004b30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003ab0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003b83
cmp byte [rcx + 0x71], 0
je 0x140003b83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003b7f
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 0x140003b44
sub eax, 1
je 0x140003b48
cmp eax, 2
jne 0x140003b7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003b76
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 0x140003b7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003b2c
xor al, al
jmp 0x140003b2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b30
add rsp, 0x60
pop rbx
ret

Function at 0x1400054b0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ea820]
mov dword [rax], 1
mov rax, qword [0x1400ea830]
mov dword [rax], 1
mov rax, qword [0x1400ea840]
mov dword [rax], 1
mov rax, qword [0x1400ea7d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000b5f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140017570
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140017570
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000c2c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140117108]
test eax, eax
je 0x14000c35a
lea rax, [0x1401170e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call rax
mov rax, qword [0x140117110]
mov qword [rbp - 8], rax
jmp 0x14000c33e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rax
test eax, eax
jne 0x14000c332
cmp qword [rbp - 0x10], 0
je 0x14000c332
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000c2f8
lea rax, [0x1401170e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call rax
jmp 0x14000c35b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000c460
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000c488
mov eax, 0
jmp 0x14000c4d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000c4b1
mov eax, 0
jmp 0x14000c4d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000c4d1
mov eax, 0
jmp 0x14000c4d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000c4dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000c55a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000c551
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000c551
mov rax, qword [rbp - 8]
jmp 0x14000c56f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000c524
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140019c40
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140019d42
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140019d1a
add rax, 1
cmp rax, 0x6b
je 0x140019d37
cmp byte [rcx + rax], 0
jne 0x140019d10
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140019d37
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140019d28
Function at 0x14001a0e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140117d00], 1
je 0x14001a158
lea rdi, [0x140117d00]
mov rcx, rdi
call fcn.1400199d0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140019300
mov esi, dword [0x140117d00]
test esi, esi
jne 0x14001a168
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1400e0198], eax
cmp eax, 0xffffffff
je 0x1400df7c6
mov dword [0x140117d00], 1
mov rcx, rbp
call fcn.1400195d0
test rbx, rbx
je 0x14001a158
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140019d60
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001a138
mov ecx, 2
call qword [fcn.140017570]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001a138
call sub.msvcrt.dll_abort
nop

Function at 0x14001a190
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140019e70
cmp qword [0x14011a048], 0
mov rbx, rax
je 0x14001a2a8
test rax, rax
je 0x14001a2a8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400198d0
cmp eax, 1
je 0x14001a2b6
mov rbp, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je fcn.1400df7cc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov ecx, dword [0x1400e0198]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x14001a2bc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140019c40
nop
jmp fcn.1400df7cc

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

Disassembly:
sub rsp, 0x28
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001a2f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001a190
Function at 0x14001aa60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001ab88
cmp eax, 1
je 0x14001aabb
call fcn.1400199d0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140019300
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001aad0
cmp r12d, 1
jne 0x14001ab60
mov rcx, rbp
call fcn.1400195d0
test rdi, rdi
je 0x14001aabb
mov rcx, rdi
call fcn.140019d60
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140019e40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
mov r12, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
call r12
test rax, rax
je 0x14001abc8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call r12
test rax, rax
je 0x14001abb0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call r12
test rax, rax
je 0x14001aba0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001aaa6
mov ecx, 2
call qword [fcn.140017570]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001aaa6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001a190
test rax, rax
jne 0x14001ab49
jmp 0x1400df7e5
call fcn.14001a190
test rax, rax
jne 0x14001ab25
jmp 0x1400df7fe
call fcn.14001a190
test rax, rax
jne 0x14001aaff
jmp 0x1400df7f4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14001ae50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001aec8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400198e0
cmp esi, dword [rbx + 0x48]
jae 0x14001aea3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001aea3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140019920
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001a190
mov rbx, rax
jmp 0x14001ae7d
Function at 0x14001aee0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001afe0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400198e0
cmp esi, dword [rbx + 0x48]
jae 0x14001af60
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140019920
mov ecx, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001afed
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001afed
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001af2f
call fcn.14001a190
mov rbx, rax
jmp 0x14001af1a
mov rcx, r13
call fcn.140019920
mov eax, 0xc
jmp 0x14001af4d

Function at 0x14001b070
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b098
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001a190
test rax, rax
jne 0x14001b08a
add rsp, 0x28
ret

Function at 0x14001b100
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b128
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001a190
test rax, rax
jne 0x14001b11a
jmp 0x14001b11e

Function at 0x14001b240
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140117d08]
test eax, eax
jne 0x14001b258
xor eax, eax
add rsp, 0x28
ret
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b288
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001b24e
test byte [rax + 0x40], 3
je 0x14001b24e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001b250
call fcn.14001a190
test rax, rax
jne 0x14001b26e
jmp 0x14001b24e

Function at 0x14001b2a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b2e0
test ebx, ebx
jle 0x14001b2d0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001a190
test rax, rax
jne 0x14001b2bd
add rsp, 0x20
pop rbx
ret
Function at 0x14001b3d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b448
test byte [rbx + 0x40], 0xc
jne 0x14001b3ff
mov eax, dword [0x140117d08]
test eax, eax
jne 0x14001b410
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019300
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b433
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b433
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b45c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400195d0
call fcn.14001a190
mov rbx, rax
test rax, rax
jne 0x14001b3ef
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b47a
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.1400195d0
call fcn.14001b2f0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b500
call fcn.1400190b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001b538
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b590
test esi, esi
je 0x14001b516
call fcn.14001b3d0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b570
mov edx, edi
call fcn.140019160
call fcn.14001b3d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b580
call fcn.14001b3d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.14001b3d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001b4d5
call fcn.14001a190
mov rbx, rax
jmp 0x14001b4d5
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001b4ee
call fcn.14001a190
jmp 0x14001b516
call fcn.14001a190
mov rbx, rax
jmp 0x14001b4d1
Function at 0x14001b490
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b448
test byte [rbx + 0x40], 0xc
jne 0x14001b3ff
mov eax, dword [0x140117d08]
test eax, eax
jne 0x14001b410
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019300
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b433
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b433
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b45c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400195d0
call fcn.14001a190
mov rbx, rax
test rax, rax
jne 0x14001b3ef
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b47a
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.1400195d0
call fcn.14001b2f0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b500
call fcn.1400190b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001b538
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b590
test esi, esi
je 0x14001b516
call fcn.14001b3d0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b570
mov edx, edi
call fcn.140019160
call fcn.14001b3d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b580
call fcn.14001b3d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.14001b3d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001b4d5
call fcn.14001a190
mov rbx, rax
jmp 0x14001b4d5
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001b4ee
call fcn.14001a190
jmp 0x14001b516
call fcn.14001a190
mov rbx, rax
jmp 0x14001b4d1

Function at 0x14001b5a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b610
test esi, esi
je 0x14001b5f0
call fcn.14001b3d0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b620
mov edx, esi
call fcn.140019160
call fcn.14001b3d0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b3d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.14001b3d0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001a190
mov rbx, rax
jmp 0x14001b5c1
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001b5da