Function at 0x140039e80
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov r13, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
mov rbp, qword [0x1400c91a0]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call fcn.14003a2e0
mov edi, 0xb
test rax, rax
je 0x14003a166
mov r14, rax
mov rsi, rax
test rbx, rbx
je 0x140039edd
mov rax, qword [rsi + 0x1d8]
mov qword [rbx], rax
mov dword [rsi + 0xbc], 0
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r12
mov dword [rsi + 0x44], 1
mov qword [rsi + 0x28], 0xffffffffffffffff
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140039fc6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140039fc6
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140039fc6
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140039fc6
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140039fc6
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsi + 0x38], 0xffffffffffffffff
lea r12, [r14 + 0x68]
mov rcx, r12
call fcn.14008aaa0
cmp eax, 1
je 0x14003a195
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi], 0xbab1f00d
mov dword [rsi + 0xc0], 0
mov dword [rsi + 0xb8], 0
cmp qword [rsi + 0x30], 0
je 0x14003a025
test r15, r15
je 0x14003a03e
mov eax, dword [r15]
mov dword [rsi + 0x44], eax
mov r13, qword [r15 + 0x10]
test al, 8
jne 0x14003a043
add r15, 0x18
jmp 0x14003a052
test rbx, rbx
je 0x14003a031
mov qword [rbx], 0
mov rcx, rsi
call fcn.1400392b0
jmp 0x14003a166
xor r13d, r13d
jmp 0x14003a05b
call fcn.140038460
mov r15, rax
add r15, 0xc0
mov eax, dword [r15]
mov dword [rsi + 0xc0], eax
lea rbp, [r14 + 0x28]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
lea r8, [0x140039bd0]
xor ecx, ecx
mov edx, r13d
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x14003a0ea
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14003a0ea
mov eax, dword [rsi + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x14003a0c2
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x14003a0c2
mov edx, 0xf
cmp eax, 0xe
jg 0x14003a0c2
cmp eax, 2
mov edx, 2
cmovl edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rsi + 0x44], 4
jne 0x14003a13b
mov qword [rbp], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14003a155
add r14, 0x38
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14003a0fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.14008a910
mov rcx, r12
call fcn.14008aaa0
cmp eax, 1
je 0x14003a22c
mov qword [r12], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
test rbx, rbx
je 0x14003a131
mov qword [rbx], 0
mov rcx, rsi
call fcn.1400392b0
jmp 0x14003a15f
mov qword [rbp], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbp, qword [0x1400c91a0]
mov rax, qword [rsp + 0xa0]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x14003a190
mov eax, edi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14008ab00
movups xmm0, xmmword [0x1400c918b]
movups xmmword [rsp + 0x8b], xmm0
movaps xmm0, xmmword [0x1400c9180]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x1400c9170]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c9160]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c9150]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400c9140]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x57]
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]
mov rcx, rax
inc rax
cmp rcx, 0x69
ja 0x14003a2b7
cmp byte [rsp + rcx + 0x30], 0
jne 0x14003a210
jmp 0x14003a2b7
movups xmm0, xmmword [0x1400c918b]
movups xmmword [rsp + 0x8b], xmm0
movaps xmm0, xmmword [0x1400c9180]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x1400c9170]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c9160]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c9150]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400c9140]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x57]
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 0x14003a2b7
cmp byte [rsp + rcx + 0x30], 0
jne 0x14003a2a4
cmp rcx, 0x69
ja 0x14003a2c4
mov word [rsp + rax + 0x2f], 0xa
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3