joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400caf80]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400caf90]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1400f0008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400caee0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400118f0
mov rcx, qword [0x1400cb040]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400caf70]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140011700
mov ebx, dword [0x1400f0028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x1400f0020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1400f0020], rbp
call fcn.140011500
mov rax, qword [0x1400caf00]
mov r8, qword [0x1400f0018]
mov ecx, dword [0x1400f0028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1400f0020]
call fcn.140001870
mov ecx, dword [0x1400f000c]
mov dword [0x1400f0010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1400f0008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400caf90]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14001bbe0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400cafe0]
mov rcx, qword [0x1400cafd0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400f0010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400cb000]
mov rcx, qword [0x1400caff0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1400caf20]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140002db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov rax, qword [rbp + 0x18]
mov r8d, 0xa
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002e1e
mov eax, 0x50
test al, al
je 0x140002e14
lea rax, str.Payload_not_found__n
mov rcx, rax
call fcn.140021930
mov eax, 1
jmp 0x140002f0b
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x140002e5d
mov eax, 0x46
test al, al
je 0x140002e53
lea rax, str.Failed_to_get_size_of_resource__n
mov rcx, rax
call fcn.140021930
mov eax, 1
jmp 0x140002f0b
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140002e9b
mov eax, 0x46
test al, al
je 0x140002e94
lea rax, str.Failed_to_load_resource__n
mov rcx, rax
call fcn.140021930
mov eax, 1
jmp 0x140002f0b
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140002ed5
mov eax, 0x46
test al, al
je 0x140002ece
lea rax, str.Failed_to_lock_resource__n
mov rcx, rax
call fcn.140021930
mov eax, 1
jmp 0x140002f0b
mov edx, dword [rbp - 0xc]
lea rcx, [rbp - 0x2c]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call fcn.140002f90
mov qword [rbp - 0x28], rax
mov eax, dword [rbp - 0x2c]
mov edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x28]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x140011710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001b9c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140011780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f20a4]
mov rbx, rcx
test esi, esi
jle 0x1400118b0
mov rax, qword [0x1400f20a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400117cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140011855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400117b0
mov rcx, rbx
call fcn.1400121f0
mov rdi, rax
test rax, rax
je 0x1400118d2
mov rax, qword [0x1400f20a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140012330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f20a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400118b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001184e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140011860
add dword [0x1400f20a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400f20a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140011710
nop dword [rax]
xor esi, esi
jmp 0x1400117d8
mov rax, qword [0x1400f20a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140011710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140011710
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140011e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f2100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f20e0]
test rbx, rbx
je 0x140011ebc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140011eb3
test eax, eax
jne 0x140011eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011e98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400121f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400caea0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140012210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140012218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140012210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140012264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140012210
add rax, 0x28
cmp rax, r9
jne 0x140012250
xor eax, eax
ret

Function at 0x140012270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400caea0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140012298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140012330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400caea0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140012358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400131f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140013220
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140013240
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140013270
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001dea0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400cafa0]
mov qword [rsp + 0x48], 0
lea rbx, [rsp + 0x20]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x4d], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov edx, 0x35
mov rcx, rbx
mov r9d, eax
call fcn.14001ba30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x14001e2b0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400f2c00], 1
je 0x14001e328
lea rdi, [0x1400f2c00]
mov rcx, rdi
call fcn.14001dc30
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001d560
mov esi, dword [0x1400f2c00]
test esi, esi
jne 0x14001e338
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c1348], eax
cmp eax, 0xffffffff
je 0x1400c0006
mov dword [0x1400f2c00], 1
mov rcx, rbp
call fcn.14001d830
test rbx, rbx
je 0x14001e328
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001df30
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001e308
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.14001ba70
jmp 0x14001e308
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
mov rax, qword [0x28]
ud2

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001e040
mov rbx, rax
test rax, rax
je 0x14001e45c
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.14001db30
cmp eax, 1
je 0x14001e468
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 0x1400c000c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400c1348]
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 0x1400c000c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001dea0
nop
nop
Function at 0x14001e470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e490
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001e360

Function at 0x14001ec40
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1400cafa0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001ed88
cmp eax, 1
je 0x14001ecad
call fcn.14001dc30
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14001d560
mov r13d, dword [rbx]
test r13d, r13d
je 0x14001ecd0
cmp r13d, 1
jne 0x14001ed60
mov rcx, r12
call fcn.14001d830
test rdi, rdi
je 0x14001ecad
mov rcx, rdi
call fcn.14001df30
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14001eddb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001e010]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14001edc8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call r13
test rax, rax
je 0x14001edb0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call r13
test rax, rax
je 0x14001ed98
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001ec98
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.14001ba70
jmp 0x14001ec98
mov eax, 0x16
jmp 0x14001ecaf
call fcn.14001e360
test rax, rax
jne 0x14001ed49
jmp 0x1400c003e
call fcn.14001e360
test rax, rax
jne 0x14001ed25
jmp 0x1400c002f
call fcn.14001e360
test rax, rax
jne 0x14001ecff
jmp 0x1400c0025
call fcn.140013240
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001f060
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.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f0d8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001db40
cmp esi, dword [rbx + 0x48]
jae 0x14001f0b3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001f0b3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001db80
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.14001e360
mov rbx, rax
jmp 0x14001f08d
Function at 0x14001f0f0
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.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f1f0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001db40
cmp esi, dword [rbx + 0x48]
jae 0x14001f170
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.14001db80
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.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001f1fd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x14001f1fd
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.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001f13f
call fcn.14001e360
mov rbx, rax
jmp 0x14001f12a
mov rcx, r13
call fcn.14001db80
mov eax, 0xc
jmp 0x14001f15d

Function at 0x14001f280
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f2a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001e360
test rax, rax
jne 0x14001f29a
add rsp, 0x28
ret

Function at 0x14001f310
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f338
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001e360
test rax, rax
jne 0x14001f32a
jmp 0x14001f32e

Function at 0x14001f450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f2c08]
test eax, eax
jne 0x14001f468
xor eax, eax
add rsp, 0x28
ret
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f498
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001f45e
test byte [rax + 0x40], 3
je 0x14001f45e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001f460
call fcn.14001e360
test rax, rax
jne 0x14001f47e
jmp 0x14001f45e
Function at 0x14001f4b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f4f0
test ebx, ebx
jle 0x14001f4e0
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.14001e360
test rax, rax
jne 0x14001f4cd
add rsp, 0x20
pop rbx
ret

Function at 0x14001f5e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f658
test byte [rbx + 0x40], 0xc
jne 0x14001f60f
mov eax, dword [0x1400f2c08]
test eax, eax
jne 0x14001f620
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001d560
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001f643
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001f643
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001f66c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001d830
call fcn.14001e360
mov rbx, rax
test rax, rax
jne 0x14001f5ff
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 0x14001f68a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001d830
call fcn.14001f500
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001f710
call fcn.14001d210
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001f748
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f7a0
test esi, esi
je 0x14001f726
call fcn.14001f5e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f780
mov edx, edi
call fcn.14001d2e0
call fcn.14001f5e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f790
call fcn.14001f5e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001f5e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001e2b0
mov ecx, dword [0x1400c1348]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001f6e5
call fcn.14001e360
mov rbx, rax
jmp 0x14001f6e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001f6fe
call fcn.14001e360
jmp 0x14001f726
call fcn.14001e360
mov rbx, rax
jmp 0x14001f6e1