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

Disassembly:
cld
pop r11
jmp 0x14027715d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14027716d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140277155
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140277185
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140277172
sub eax, 3
jb 0x14027719f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402771d6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1402771c6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402771c4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402771b3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140277112
jmp 0x14027715d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x134000
mov dl, 0x31
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140277226
cmp rsi, rcx
jae 0x14027722e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14027720d
cmp al, 0x8f
ja 0x14027720d
cmp byte [rsi - 2], 0xf
je 0x140277213
sub al, 0xe8
cmp al, 1
ja 0x1402771f7
cmp rsi, rcx
jae 0x14027722e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402771fd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14027722e
lodsb al, byte [rsi]
jmp 0x14027720d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x274000]
mov eax, dword [rdi]
or eax, eax
je 0x14027728b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x277248]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14027723b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140277285
mov qword [rbx], rax
add rbx, 8
jmp 0x14027725b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402772cf
cmp al, 0xef
ja 0x1402772b7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140277297
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1402772a6
mov eax, dword [rdi]
add rdi, 4
jmp 0x1402772a6
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140277323
sub rsp, 0xffffffffffffff80
jmp 0x140060c18
Function at 0x2fc4d81b0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8bb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d8c4a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8c2e
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 0x2fc4d8c22
cmp qword [rbp - 0x10], 0
je 0x2fc4d8c22
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 0x2fc4d8be8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8c4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8d50
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 0x2fc4d8d78
mov eax, 0
jmp 0x2fc4d8dc6
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 0x2fc4d8da1
mov eax, 0
jmp 0x2fc4d8dc6
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 0x2fc4d8dc1
mov eax, 0
jmp 0x2fc4d8dc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140027cd0]
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 [0x140027ce0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140030008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140027c40]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000e340
mov rcx, qword [0x140027d70]
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
mov rdx, qword [0x140027cc0]
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.14000e150
mov ebx, dword [0x140030028]
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 [0x140030020]
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 [0x140030020], rbp
call fcn.14000df50
mov rax, qword [0x140027c50]
mov r8, qword [0x140030018]
mov ecx, dword [0x140030028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140030020]
call fcn.140022ec0
mov ecx, dword [0x14003000c]
mov dword [0x140030010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140030008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140027ce0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000fae0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140027d10]
mov rcx, qword [0x140027d00]
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 [0x140030010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140027d30]
mov rcx, qword [0x140027d20]
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
Function at 0x140001870
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x38
movups xmmword [rsp + 0x20], xmm6
mov byte [0x14003005e], 0
mov rcx, qword [0x140030128]
lea rdx, str.epic1994clicker
mov dword [0x140030058], 0
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [0x14003005c], 0
je 0x140001900
mov rsi, qword [sym.imp.KERNEL32.DLL_Sleep]
lea rbx, [0x140030140]
pxor xmm6, xmm6
nop dword [rax + rax]
xor ecx, ecx
mov rdx, rbx
movups xmmword [rbx], xmm6
call sub.XINPUT1_3.dll_XInputGetState
test eax, eax
je 0x1400018e0
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
ret
movzx eax, word [0x140030144]
and eax, dword [0x140024074]
je 0x1400018d1
mov ecx, 0xf
call rsi
jmp 0x1400018c0
mov rbx, qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rsi, qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x140001917
mov ecx, 0xf
call rsi
mov ecx, dword [0x140024074]
call rbx
test ax, ax
jne 0x140001910
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x14000e160
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.14000f910
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000e1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140030ba4]
mov rbx, rcx
test esi, esi
jle 0x14000e300
mov rax, qword [0x140030ba8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e21b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e2a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e200
mov rcx, rbx
call fcn.14000ec40
mov rdi, rax
test rax, rax
je 0x14000e322
mov rax, qword [0x140030ba8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ed80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140030ba8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x14000e307
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e29e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e2b0
add dword [0x140030ba4], 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 [0x140030ba8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x14000e29e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e160
nop dword [rax]
xor esi, esi
jmp 0x14000e228
mov rax, qword [0x140030ba8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e160
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e160
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000e8b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140030c00]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140030be0]
test rbx, rbx
je 0x14000e90c
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 0x14000e903
test eax, eax
jne 0x14000e903
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e8e8
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 0x14000ec40
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000ecc0
Capabilities:
Parse pe header

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

Function at 0x14000ed80
Capabilities:
Parse pe header

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

Function at 0x14000f870
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 0x14000f8a0
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 0x14000f8c0
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 0x14000f8f0
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 0x1400107d0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140027cf0]
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.14000f930
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 0x140010be0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140030d20], 1
je 0x140010c58
lea rdi, [0x140030d20]
mov rcx, rdi
call fcn.140010560
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000ff00
mov esi, dword [0x140030d20]
test esi, esi
jne 0x140010c68
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1400241c8], eax
cmp eax, 0xffffffff
je 0x140023006
mov dword [0x140030d20], 1
mov rcx, rbp
call fcn.1400101d0
test rbx, rbx
je 0x140010c58
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140010860
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140010c38
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.14000f970
jmp 0x140010c38
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 0x140010c90
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.140010970
mov rbx, rax
test rax, rax
je 0x140010d8c
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.140014880
cmp eax, 1
je 0x140010d98
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 0x14002300c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov ecx, dword [0x1400241c8]
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 0x14002300c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400107d0
nop
nop
Function at 0x140010da0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140010dc0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140010c90

Function at 0x140011570
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 [0x140027cf0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400116b8
cmp eax, 1
je 0x1400115dd
call fcn.140010560
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14000ff00
mov r13d, dword [rbx]
test r13d, r13d
je 0x140011600
cmp r13d, 1
jne 0x140011690
mov rcx, r12
call fcn.1400101d0
test rdi, rdi
je 0x1400115dd
mov rcx, rdi
call fcn.140010860
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14001170b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140010940]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140010be0
mov ecx, dword [0x1400241c8]
mov r13, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
call r13
test rax, rax
je 0x1400116f8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call r13
test rax, rax
je 0x1400116e0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call r13
test rax, rax
je 0x1400116c8
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400115c8
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.14000f970
jmp 0x1400115c8
mov eax, 0x16
jmp 0x1400115df
call fcn.140010c90
test rax, rax
jne 0x140011679
jmp 0x14002303e
call fcn.140010c90
test rax, rax
jne 0x140011655
jmp 0x14002302f
call fcn.140010c90
test rax, rax
jne 0x14001162f
jmp 0x140023025
call fcn.14000f8c0
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 0x140011990
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.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011a08
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140014890
cmp esi, dword [rbx + 0x48]
jae 0x1400119e3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400119e3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400148d0
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.140010c90
mov rbx, rax
jmp 0x1400119bd
Function at 0x140011a20
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.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011b20
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140014890
cmp esi, dword [rbx + 0x48]
jae 0x140011aa0
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.1400148d0
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 0x140011b2d
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 0x140011b2d
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 0x140011a6f
call fcn.140010c90
mov rbx, rax
jmp 0x140011a5a
mov rcx, r13
call fcn.1400148d0
mov eax, 0xc
jmp 0x140011a8d

Function at 0x140011bb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140011bd8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140010c90
test rax, rax
jne 0x140011bca
add rsp, 0x28
ret

Function at 0x140011c40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140011c68
add rax, 0x18
add rsp, 0x28
ret
call fcn.140010c90
test rax, rax
jne 0x140011c5a
jmp 0x140011c5e

Function at 0x140011d80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140030d28]
test eax, eax
jne 0x140011d98
xor eax, eax
add rsp, 0x28
ret
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140011dc8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140011d8e
test byte [rax + 0x40], 3
je 0x140011d8e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140011d90
call fcn.140010c90
test rax, rax
jne 0x140011dae
jmp 0x140011d8e