Function at 0x140004670
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14005d018]
xor rax, rsp
mov qword [rbp - 8], rax
mov r13, rdx
movzx r12d, cl
mov rcx, qword [0x140060348]
test rcx, rcx
je 0x140004a03
xor ebx, ebx
mov r15d, ebx
mov edi, 0xa
mov r9, r13
xor r8d, r8d
movzx edx, r12b
call qword [sym.imp.ADVAPI32.dll_EventWriteString]
mov r14d, eax
test eax, eax
je 0x140004a03
xor r8d, r8d
movzx edx, r12b
mov rcx, qword [0x140060348]
call qword [sym.imp.ADVAPI32.dll_EventProviderEnabled]
test al, al
je 0x140004a03
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
lea r8d, [rdi + 0x32]
lea rdx, str.Error_calling_EventWriteString_for_enabled_message.__result
lea rcx, [rbp - 0x40]
call fcn.140003710
nop
mov word [rbp - 0x20], bx
mov r9d, edi
mov r8d, edi
lea rdx, [rbp - 0x20]
mov ecx, r14d
call fcn.140022804
lea rax, [rbp - 0x20]
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140004740
mov rsi, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x14000478f
lea rax, [rdi + rsi]
mov qword [rbp - 0x30], rax
lea rbx, [rbp - 0x40]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x40]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
lea rdx, [rbp - 0x20]
call fcn.14001c370
lea rax, [rsi + rdi]
xor ecx, ecx
mov word [rbx + rax*2], cx
jmp 0x1400047a7
lfence
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140004ac0
cmp r14d, 8
jne 0x14000493b
mov rdi, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
sub rax, rdi
cmp rax, 0xa
jb 0x1400047fa
lea rax, [rdi + 0xa]
mov qword [rbp - 0x30], rax
lea rbx, [rbp - 0x40]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x40]
lea rcx, [rbx + rdi*2]
lea r8d, [r14 + 0xc]
lea rdx, str._Sleeping
call fcn.14001c370
xor ecx, ecx
mov word [rbx + rdi*2 + 0x14], cx
lea edi, [rcx + 0xa]
jmp 0x14000481b
lfence
mov edi, 0xa
mov qword [rsp + 0x20], rdi
lea r9, str._Sleeping
mov edx, edi
lea rcx, [rbp - 0x40]
call fcn.140004ac0
xor ecx, ecx
mov word [rbp - 0x20], cx
mov ecx, r15d
mov r14d, 1
shl r14d, cl
mov r9d, edi
mov r8, rdi
lea rdx, [rbp - 0x20]
mov ecx, r14d
call fcn.1400227e4
lea rax, [rbp - 0x20]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140004850
mov rsi, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
sub rax, rsi
cmp rbx, rax
ja 0x1400048a1
lea rax, [rsi + rbx]
mov qword [rbp - 0x30], rax
lea rdi, [rbp - 0x40]
cmp rcx, 8
cmovae rdi, qword [rbp - 0x40]
lea rcx, [rdi + rsi*2]
lea r8, [rbx + rbx]
lea rdx, [rbp - 0x20]
call fcn.14001c370
lea rax, [rsi + rbx]
xor r8d, r8d
mov word [rdi + rax*2], r8w
jmp 0x1400048bc
lfence
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x20]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140004ac0
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1400048fb
lea rax, [rcx + 4]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmp rdx, 8
cmovae rax, qword [rbp - 0x40]
movabs rdx, 0xa002e0073006d
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], r8w
jmp 0x14000491c
lfence
mov qword [rsp + 0x20], 4
lea r9, str.ms._n
mov edx, 4
lea rcx, [rbp - 0x40]
call fcn.140004ac0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400049a3
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000496d
lea rax, [rcx + 1]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmp rdx, 8
cmovae rax, qword [rbp - 0x40]
mov dword [rax + rcx*2], 0xa
jmp 0x14000498e
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x1400522a4]
mov edx, 1
lea rcx, [rbp - 0x40]
call fcn.140004ac0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1400049df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a27
call fcn.14001a1c0
inc r15d
cmp r15d, 8
jge 0x1400049f6
mov rcx, qword [0x140060348]
xor ebx, ebx
jmp 0x1400046b1
lea rcx, str.Error_calling_EventWriteString._could_not_succeed_with_retries._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001a1a0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140027390
int3