joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001308
Capabilities:
Download url
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rbp, rdx
mov r8, rdx
mov r12, rcx
mov rdx, rcx
xor edi, edi
xor r9d, r9d
xor ecx, ecx
mov qword [rax - 0x18], rdi
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, edi
jne 0x14000139a
lea rdx, [0x1400033ec]
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_fopen]
mov rsi, rax
cmp rax, rdi
je 0x140001391
lea r8d, [rdi + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_fseek]
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_ftell]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.MSVCR90.dll_fclose]
cmp ebx, 0x1f40
jbe 0x140001391
mov rcx, rbp
mov edi, 1
call section..text
mov rcx, r12
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x1400013b8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov ecx, 0x4e20
xor edi, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
mov r8, rbp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, 0x64
mov ecx, 0x64
dec esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.STR_WAITING
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140001434
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edi, 1
test esi, esi
jg 0x140001403
test edi, edi
jne 0x14000144e
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 2
jl 0x1400013de
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001f43
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x140001b2a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001b26
repz ret
ror rcx, 0x10
jmp 0x140001e9c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004130]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140004228]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001f21
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004130]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001f43
mov rax, qword [rsp + 0x88]
mov qword [0x140004228], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400041c8], rax
mov rax, qword [0x140004228]
mov qword [0x1400040a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400041b0], rax
mov dword [0x140004090], 0xc0000409
mov dword [0x140004094], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140004008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140004128], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400032d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140004128], 0
jne 0x140001fca
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140023db0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rcx + 0x10]
cmp r8, qword [rcx + 0x18]
je 0x140023de2
mov rax, qword [rdi]
mov qword [r8], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x140023e41
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r15, rax
neg r15
shl rax, 3
mov rbx, rdx
sub rbx, rax
mov r14, r8
sub r14, rdx
je 0x140023e2d
mov rcx, rbx
mov r8, r14
call fcn.1400c6920
mov r8, qword [rsi + 8]
add rbx, r14
mov qword [rsi + 0x10], rbx
lea rax, [r8 + r15*8]
mov qword [rsi + 8], rax
mov r8, rbx
jmp 0x140023dcb
mov rcx, r8
sub rcx, rax
sar rcx, 2
cmp r8, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x140023ede
lea rcx, [rbx*8]
call fcn.1400260c0
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov rcx, qword [rsi + 8]
mov r11, qword [rsi + 0x10]
lea r9, [rax + rbx*8]
mov r8, rdx
sub r11, rcx
je 0x140023eb5
mov r10, r11
sar r10, 3
and r11, 0xfffffffffffffff8
mov r8, r11
add r8, rdx
shl r10, 3
xor r11d, r11d
mov rbx, qword [rcx + r11]
mov qword [rdx + r11], rbx
add r11, 8
cmp r10, r11
jne 0x140023ea4
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], r9
test rcx, rcx
je 0x140023dcb
call fcn.140020b80
mov r8, qword [rsi + 0x10]
jmp 0x140023dcb
call fcn.140028cf0
int3

Function at 0x140023ef0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rcx + 0x10]
cmp r8, qword [rcx + 0x18]
je 0x140023f22
mov rax, qword [rdi]
mov qword [r8], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x140023f81
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r15, rax
neg r15
shl rax, 3
mov rbx, rdx
sub rbx, rax
mov r14, r8
sub r14, rdx
je 0x140023f6d
mov rcx, rbx
mov r8, r14
call fcn.1400c6920
mov r8, qword [rsi + 8]
add rbx, r14
mov qword [rsi + 0x10], rbx
lea rax, [r8 + r15*8]
mov qword [rsi + 8], rax
mov r8, rbx
jmp 0x140023f0b
mov rcx, r8
sub rcx, rax
sar rcx, 2
cmp r8, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x14002401e
lea rcx, [rbx*8]
call fcn.1400260c0
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov rcx, qword [rsi + 8]
mov r11, qword [rsi + 0x10]
lea r9, [rax + rbx*8]
mov r8, rdx
sub r11, rcx
je 0x140023ff5
mov r10, r11
sar r10, 3
and r11, 0xfffffffffffffff8
mov r8, r11
add r8, rdx
shl r10, 3
xor r11d, r11d
mov rbx, qword [rcx + r11]
mov qword [rdx + r11], rbx
add r11, 8
cmp r10, r11
jne 0x140023fe4
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], r9
test rcx, rcx
je 0x140023f0b
call fcn.140020b80
mov r8, qword [rsi + 0x10]
jmp 0x140023f0b
call fcn.140028cf0
int3
Function at 0x140024030
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx]
je 0x140024061
mov rbx, rdx
mov rax, qword [rdi]
mov qword [rbx - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r8, rax
jae 0x1400240b3
sub rax, r8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
sar r14, 1
lea rbx, [r8 + r14*8]
mov rax, r8
sub rax, rdx
sub rbx, rax
sub r8, rdx
je 0x1400240a5
mov rcx, rbx
call fcn.1400c6920
mov rdx, qword [rsi + 0x10]
mov qword [rsi + 8], rbx
lea rax, [rdx + r14*8]
mov qword [rsi + 0x10], rax
jmp 0x14002404b
mov rcx, rax
sub rcx, rdx
sar rcx, 2
cmp rax, rdx
mov r14d, 1
cmovne r14, rcx
mov rax, r14
shr rax, 0x3d
jne 0x140024159
lea rcx, [r14*8]
call fcn.1400260c0
lea rbx, [r14*2 + 6]
and rbx, 0xfffffffffffffff8
add rbx, rax
mov rcx, qword [rsi + 8]
mov r10, qword [rsi + 0x10]
lea rdx, [rax + r14*8]
mov r8, rbx
sub r10, rcx
je 0x140024130
mov r9, r10
sar r9, 3
and r10, 0xfffffffffffffff8
mov r8, r10
add r8, rbx
shl r9, 3
xor r10d, r10d
mov r11, qword [rcx + r10]
mov qword [rbx + r10], r11
add r10, 8
cmp r9, r10
jne 0x14002411f
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
test rcx, rcx
je 0x14002404b
call fcn.140020b80
mov rbx, qword [rsi + 8]
jmp 0x14002404b
call fcn.140028cf0
int3

Function at 0x140024c50
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx]
je 0x140024c81
mov rbx, rdx
mov rax, qword [rdi]
mov qword [rbx - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r8, rax
jae 0x140024cd3
sub rax, r8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
sar r14, 1
lea rbx, [r8 + r14*8]
mov rax, r8
sub rax, rdx
sub rbx, rax
sub r8, rdx
je 0x140024cc5
mov rcx, rbx
call fcn.1400c6920
mov rdx, qword [rsi + 0x10]
mov qword [rsi + 8], rbx
lea rax, [rdx + r14*8]
mov qword [rsi + 0x10], rax
jmp 0x140024c6b
mov rcx, rax
sub rcx, rdx
sar rcx, 2
cmp rax, rdx
mov r14d, 1
cmovne r14, rcx
mov rax, r14
shr rax, 0x3d
jne 0x140024d79
lea rcx, [r14*8]
call fcn.1400260c0
lea rbx, [r14*2 + 6]
and rbx, 0xfffffffffffffff8
add rbx, rax
mov rcx, qword [rsi + 8]
mov r10, qword [rsi + 0x10]
lea rdx, [rax + r14*8]
mov r8, rbx
sub r10, rcx
je 0x140024d50
mov r9, r10
sar r9, 3
and r10, 0xfffffffffffffff8
mov r8, r10
add r8, rbx
shl r9, 3
xor r10d, r10d
mov r11, qword [rcx + r10]
mov qword [rbx + r10], r11
add r10, 8
cmp r9, r10
jne 0x140024d3f
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
test rcx, rcx
je 0x140024c6b
call fcn.140020b80
mov rbx, qword [rsi + 8]
jmp 0x140024c6b
call fcn.140028cf0
int3
Function at 0x140029d00
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rax, qword [0x142237158]
mov rcx, qword [rax]
call fcn.140024490
mov rcx, qword [0x142209580]
call fcn.140029df0
mov rax, rsi
shl rax, 0xf
movabs rcx, 0x7ffffffffff8000
and rcx, rax
mov qword [0x142209578], rcx
mov rcx, rsi
shl rcx, 0x14
call fcn.140029db0
mov qword [0x142209580], rax
test rax, rax
je 0x140029d62
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140029e80
mov rdi, qword [0x1400db8a8]
lea rdx, str.Failed_to_allocate
mov rcx, rdi
call fcn.14001c0b0
mov rcx, rdi
mov rdx, rsi
call fcn.140020b90
mov rsi, rax
lea rdx, str.MB_for_transposition_table.
mov rcx, rax
call fcn.14001c0b0
mov rcx, rsi
call fcn.14001c420
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x140029df0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140029e0d
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x140029e14
add rsp, 0x28
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdi, qword [0x1400db8a8]
lea rdx, str.Failed_to_free_large_page_memory._Error_code:_0x
mov rcx, rdi
call fcn.14001c0b0
mov rax, qword [rdi]
mov rax, qword [rax - 0x18]
mov ecx, dword [rdi + rax + 8]
and ecx, 0xffffffb5
or ecx, 8
mov dword [rdi + rax + 8], ecx
mov rcx, rdi
mov edx, esi
call fcn.14002ad20
mov rcx, qword [rax]
mov rcx, qword [rcx - 0x18]
mov edx, dword [rax + rcx + 8]
and edx, 0xffffffb5
or edx, 2
mov dword [rax + rcx + 8], edx
mov rcx, rax
call fcn.14001c420
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x14002a300
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.1400260c0
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140087b30]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14002a358
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140035f10
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x1400c8048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x140035f69
cmp rdi, rax
je 0x140035f69
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x140035f69
cmp rdi, rax
jne 0x140035f50
mov rdi, qword [0x1400c8050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x140035f83
mov ecx, 0x1f
call fcn.140088c30
jmp 0x140035faa
cmp dword [rdi], 0
je 0x140035f91
mov byte [0x1400f3480], 1
jmp 0x140035faa
mov dword [rdi], 1
mov rcx, qword [0x1400c8068]
mov rdx, qword [0x1400c8070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x140035fca
mov rcx, qword [0x1400c8058]
mov rdx, qword [0x1400c8060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x140035fd3
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x1400c8010]
mov rax, qword [rax]
test rax, rax
je 0x140035ff2
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x142263008]
call fcn.140087f00
lea rcx, [0x140088490]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x1400c8040]
mov qword [rcx], rax
lea rcx, [0x140036140]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140087ef0
movsxd rdi, dword [0x1400f346c]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x140036082
mov ebx, edi
mov r14, qword [0x1400f3470]
xor r15d, r15d
nop word [rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r15
cmp rbx, r15
jne 0x140036050
jmp 0x140036084
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x1400f3470], rsi
call fcn.140087d40
mov rax, qword [0x1400f3478]
mov rcx, qword [0x1400c8018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x1400f346c]
mov rdx, qword [0x1400f3470]
mov r8, qword [0x1400f3478]
call fcn.1400298a0
mov dword [0x1400f3484], eax
cmp dword [0x1400f3464], 0
je 0x1400360f4
cmp byte [0x1400f3480], 0
jne 0x1400360e8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400f3484]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400367f0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r15, qword [0x1400c81a0]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xb0], rax
call fcn.1400380e0
mov ecx, dword [0x1400f3010]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140036937
call fcn.140038670
mov rsi, rax
xor eax, eax
cmp qword [0x1400dbad8], 0
je 0x140036937
test rsi, rsi
je 0x140036937
mov dword [rsi + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsi + 0x70], eax
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rcx, [rsi + 0x68]
call fcn.1400891d0
cmp eax, 1
je 0x140036965
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi + 0xb8], 0
mov rdi, rsi
add rdi, 0x28
mov qword [rsi + 0x28], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r12
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, r14
mov r8, rax
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140036960
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsi + 0xc0], eax
mov dword [rsi + 0xbc], 0
mov eax, dword [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov dword [rsi + 0x40], eax
mov ecx, dword [0x1400f3010]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, eax
mov rax, rsi
test ecx, ecx
je 0x140036960
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14003695b
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140089230
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
movups xmm0, xmmword [0x1400c818b]
movups xmmword [rsp + 0x9b], xmm0
movaps xmm0, xmmword [0x1400c8180]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [0x1400c8170]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x1400c8160]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c8150]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c8140]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x67]
mov ecx, eax
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov eax, 0x27
mov rcx, rax
inc rax
cmp rcx, 0x69
ja 0x1400369f3
cmp byte [rsp + rcx + 0x40], 0
jne 0x1400369e0
cmp rcx, 0x69
ja 0x140036a00
mov word [rsp + rax + 0x3f], 0xa
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140037560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.1400367f0
mov rdi, rax
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
call fcn.140037280
test byte [rdi + 0x40], 0x30
jne 0x14003759c
add rdi, 0xd0
mov rcx, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
mov ecx, dword [0x1400f3010]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140037637
mov rdi, rax
cmp qword [rax + 0x28], 0
jne 0x1400375de
mov dword [rdi], 0xdeadbeef
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400375d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], 0
mov rsi, qword [rdi + 8]
jmp 0x140037621
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi + 0x30]
mov dword [rdi + 0xbc], 1
test rcx, rcx
je 0x1400375fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], 0
test byte [rdi + 0x44], 4
je 0x140037637
mov dword [rdi], 0xdeadbeef
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0
mov rcx, rdi
call fcn.140037640
mov ecx, dword [0x1400f3010]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
int3

Function at 0x1400380e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp dword [0x1400f34b4], 1
jne 0x1400380f6
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400f3018]
call fcn.1400891e0
mov rcx, qword [0x1400f34d8]
test rcx, rcx
je 0x140038133
lea rax, [0x1400f34b4]
nop word cs:[rax + rax]
mov rsi, rcx
cmp qword [rcx], rax
je 0x14003817d
mov rcx, qword [rsi + 0x18]
test rcx, rcx
jne 0x140038120
jmp 0x140038135
xor esi, esi
mov ecx, 1
mov edx, 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
lea rax, [0x1400f34b4]
mov qword [rdi], rax
mov dword [rdi + 0x10], 1
lea rax, [rsi + 0x18]
test rsi, rsi
lea rcx, [0x1400f34d8]
cmovne rcx, rax
mov qword [rcx], rdi
lea rcx, [rdi + 8]
xor edx, edx
call fcn.140088fb0
mov rsi, rdi
jmp 0x140038180
inc dword [rsi + 0x10]
lea rcx, [0x1400f3018]
call fcn.140089220
lea rdi, [rsi + 8]
mov rcx, rdi
call fcn.140088d30
mov eax, dword [0x1400f34b4]
cmp eax, 1
je 0x1400381ec
test eax, eax
jne 0x1400381c4
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f3010], eax
cmp eax, 0xffffffff
je 0x140038202
mov dword [0x1400f34b4], 1
jmp 0x1400381ec
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x1400f34b4]
lea r8, [0x1400f34b4]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.1400898a0
mov rcx, rdi
call fcn.140088ea0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140036e10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140038720
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rdi, qword [0x1400c81a0]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rcx, rcx
je 0x140038757
mov rsi, rcx
call fcn.1400891d0
cmp eax, 1
je 0x140038779
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rsp + 0x90]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x140038774
add rsp, 0x98
pop rdi
pop rsi
ret
call fcn.140089230
movups xmm0, xmmword [0x1400c818b]
movups xmmword [rsp + 0x7b], xmm0
movaps xmm0, xmmword [0x1400c8180]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c8170]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c8160]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400c8150]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1400c8140]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov ecx, eax
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov eax, 0x27
nop dword [rax + rax]
mov rcx, rax
inc rax
cmp rcx, 0x69
ja 0x140038803
cmp byte [rsp + rcx + 0x20], 0
jne 0x1400387f0
cmp rcx, 0x69
ja 0x140038810
mov word [rsp + rax + 0x1f], 0xa
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3