joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001984
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov r9, rdx
mov rbx, rcx
xor edi, edi
mov dword [rbp - 0x30], edi
mov r8d, dword [0x18002bde8]
imul r8d, r8d
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r8d, eax
cmp r8d, 0xb
jne 0x1800019f8
mov eax, 0x98
lea r8d, [rdi + 0x25]
test r8d, r8d
je 0x1800019ef
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x1800019da
add eax, r8d
mov dword [0x18002bde8], eax
mov qword [rbp + 0x30], rdi
lea rdx, [rbp + 0x30]
mov rcx, r9
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jns 0x180001a4d
lea rax, str.Failure_to_set_pipe_name_1
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.180009f78
nop
lea rax, [0x180021c00]
mov qword [rbp - 0x20], rax
lea rax, [0x180021c20]
mov qword [rbp - 0x20], rax
lea rdx, [0x180027618]
lea rcx, [rbp - 0x20]
call fcn.18000a6b8
int3
mov rdx, qword [rbp + 0x30]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
cmp word [rdx], di
jne 0x180001a6a
mov r8, rdi
jmp 0x180001a78
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x180001a6e
mov rcx, rbx
call fcn.18000398c
mov dword [rbp - 0x30], 1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x18002bde8]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x6bca1af3
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r8d, edx
cmp r8d, 0xf
jne 0x180001ad9
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rax, rbx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x1800023ec
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov rsi, rcx
mov rax, qword [rcx + 0x128]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x30]
mov qword [r11 - 0x80], rax
mov rax, qword [rcx + 0x98]
mov qword [r11 - 0x78], rax
mov rcx, rsi
call fcn.180002350
test al, al
je 0x180002662
cmp byte [rsi + 0x10], 0
je 0x180002451
mov rcx, rsi
call fcn.180002670
test al, al
je 0x1800025af
and dword [rsp + 0xc8], 0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
mov r8d, 0x1000
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180002511
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1800024dd
cmp eax, 0x3e5
je 0x1800024d7
lea rax, str.Channel_read_failure
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call fcn.180009f78
nop
lea rax, [0x180021c00]
mov qword [rsp + 0x68], rax
lea rdx, [0x1800275f8]
lea rcx, [rsp + 0x68]
call fcn.18000a6b8
mov byte [rsi + 0x10], 1
jmp 0x180002511
lea rcx, [rsp + 0x48]
call fcn.180009ff0
nop
lea rax, [0x180021c00]
mov qword [rsp + 0x48], rax
lea rax, [0x180021c20]
mov qword [rsp + 0x48], rax
lea rdx, [0x1800275b0]
lea rcx, [rsp + 0x48]
call fcn.18000a6b8
cmp byte [rsi + 0x10], 0
jne 0x1800025af
call fcn.1800017a4
test al, al
jne 0x18000256c
mov ecx, dword [0x18002bde8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub ecx, edx
add ecx, 0x2f4
movsxd rcx, ecx
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180008ebc
mov rcx, rax
call fcn.18000a130
lea rbx, [rsi + 0x48]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx]
mov edx, dword [rsp + 0xc8]
add rdx, rdi
mov rcx, rbx
call fcn.18000377c
mov rcx, qword [rbx]
mov r8d, dword [rsp + 0xc8]
add rcx, rdi
mov rdx, qword [rsi + 0x60]
call fcn.180008f20
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dil, 1
jmp 0x1800025b2
xor dil, dil
mov rcx, rsi
call fcn.180002820
mov bl, al
mov rcx, rsi
call fcn.180002da8
or bl, dil
je 0x1800025ce
jmp 0x18000242b
mov r9d, 0x1f4
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1800025f9
mov rcx, qword [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1800025c9
cmp eax, 3
jae 0x180002610
mov rcx, rsi
call fcn.180002670
mov rcx, rsi
call fcn.180002c18
jmp 0x180002626
cmp eax, 0x102
jne 0x180002630
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180002626
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, rsi
call fcn.180002da8
jmp 0x1800025c9
lea rcx, [rsp + 0x80]
call fcn.180009ff0
nop
lea rax, [0x180021c00]
mov qword [rsp + 0x80], rax
lea rdx, [0x1800275f8]
lea rcx, [rsp + 0x80]
call fcn.18000a6b8
nop
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005a0c
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180005a4f
mov qword [0x18002bdf0], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180005858]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180005a54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x55
add rsp, 0x38
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1402f2070]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x1402f2080]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1402fc008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1402f1fe0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14001f360
mov rcx, qword [0x1402f2110]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1402f2060]
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.14001f170
mov ebx, dword [0x1402fc028]
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 [0x1402fc020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
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 [0x1402fc020], rbp
call fcn.14001ef70
mov rax, qword [0x1402f1ff0]
mov r8, qword [0x1402fc018]
mov ecx, dword [0x1402fc028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1402fc020]
call fcn.140039740
mov ecx, dword [0x1402fc00c]
mov dword [0x1402fc010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1402fc008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1402f2080]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.140020bc0
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x1402f20b0]
mov rcx, qword [0x1402f20a0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1402fc010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1402f20d0]
mov rcx, qword [0x1402f20c0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x14001f180
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.1400209f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14001f1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402fc3e4]
mov rbx, rcx
test esi, esi
jle 0x14001f320
mov rax, qword [0x1402fc3e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001f23b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001f2c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001f220
mov rcx, rbx
call fcn.14001fc70
mov rdi, rax
test rax, rax
je 0x14001f342
mov rax, qword [0x1402fc3e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001fdb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402fc3e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001f327
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001f2be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001f2d0
add dword [0x1402fc3e4], 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 [0x1402fc3e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001f2be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001f180
nop dword [rax]
xor esi, esi
jmp 0x14001f248
mov rax, qword [0x1402fc3e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001f180
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001f180
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001f8e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402fc440]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402fc420]
test rbx, rbx
je 0x14001f93c
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 0x14001f933
test eax, eax
jne 0x14001f933
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001f918
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 0x14001fc70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402f1fb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001fc90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001fc98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001fc90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001fced
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 0x14001fce4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001fc90
add rax, 0x28
cmp rax, r9
jne 0x14001fcd0
xor eax, eax
ret

Function at 0x14001fcf0
Capabilities:
Parse pe header

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

Function at 0x14001fdb0
Capabilities:
Parse pe header

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

Function at 0x140020950
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 0x140020980
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 0x1400209a0
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 0x1400209d0
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 0x140021880
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402f2090]
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.140020a10
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 0x140021c90
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1402fc560], 1
je 0x140021d30
lea rdi, [0x1402fc560]
mov rcx, rdi
call fcn.140021630
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140020fc0
mov esi, dword [0x1402fc560]
test esi, esi
jne 0x140021d08
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14003a148], eax
cmp eax, 0xffffffff
je 0x140039886
mov dword [0x1402fc560], 1
mov rcx, rbp
call fcn.140021290
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140021910
cmp esi, 1
je 0x140021cec
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.140020a50
jmp 0x140021cec
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
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 0x140021d40
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.140021a20
mov rbx, rax
test rax, rax
je 0x140021e3c
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.140025350
cmp eax, 1
je 0x140021e48
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 0x14003988c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14003a148]
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 0x14003988c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140021880
nop
nop
Function at 0x140021e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021c90
mov ecx, dword [0x14003a148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021e70
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140021d40

Function at 0x140022630
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1402f2090]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140022790
cmp eax, 1
je 0x140022695
call fcn.140021630
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.140020fc0
mov ebp, dword [rbx]
test ebp, ebp
je 0x1400226b8
cmp ebp, 1
jne 0x140022758
mov rcx, r13
call fcn.140021290
mov rcx, rdi
call fcn.140021910
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x1400227db
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x1400219f0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140021c90
mov ecx, dword [0x14003a148]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x1400227c8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140021c90
mov ecx, dword [0x14003a148]
call rbp
test rax, rax
je 0x1400227b0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140021c90
mov ecx, dword [0x14003a148]
call rbp
test rax, rax
je 0x1400227a0
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140021290
mov rcx, rdi
call fcn.140021910
jmp 0x140022695
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.140020a50
mov rcx, r13
call fcn.140021290
mov rcx, rdi
call fcn.140021910
jmp 0x140022695
mov eax, 0x16
jmp 0x140022697
call fcn.140021d40
test rax, rax
jne 0x14002272e
jmp 0x1400398be
call fcn.140021d40
test rax, rax
jne 0x14002270b
jmp 0x1400398af
call fcn.140021d40
test rax, rax
jne 0x1400226e6
jmp 0x1400398a5
call fcn.1400209a0
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 0x140022a60
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.140021c90
mov ecx, dword [0x14003a148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022ad8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140025360
cmp esi, dword [rbx + 0x48]
jae 0x140022ab3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140022ab3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400253b0
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.140021d40
mov rbx, rax
jmp 0x140022a8d
Function at 0x140022af0
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.140021c90
mov ecx, dword [0x14003a148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022be8
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140025360
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x140022bb3
lea r15d, [rsi + 1]
mov rcx, rdi
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 0x140022bf5
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 0x140022bf5
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
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400253b0
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
call fcn.140021d40
mov rbx, rax
jmp 0x140022b2a
mov rcx, r13
call fcn.1400253b0
mov eax, 0xc
jmp 0x140022bd1

Function at 0x140022c90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021c90
mov ecx, dword [0x14003a148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022cb8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140021d40
test rax, rax
jne 0x140022caa
add rsp, 0x28
ret

Function at 0x140022d20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021c90
mov ecx, dword [0x14003a148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022d48
add rax, 0x18
add rsp, 0x28
ret
call fcn.140021d40
test rax, rax
jne 0x140022d3a
jmp 0x140022d3e

Function at 0x140022e60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402fc568]
test eax, eax
jne 0x140022e78
xor eax, eax
add rsp, 0x28
ret
call fcn.140021c90
mov ecx, dword [0x14003a148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022ea8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140022e6e
test byte [rax + 0x40], 3
je 0x140022e6e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140022e70
call fcn.140021d40
test rax, rax
je 0x140022e6e
jmp 0x140022e8e