Function at 0x18002c690
Capabilities:
Encode data using xor
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1800b2020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov rsi, r8
mov rbx, rcx
mov ebp, dword [rax]
cmp edx, 8
jne 0x18002c6cc
cmp dword [rcx + 0x10], 2
je 0x18002c6cc
or ebp, 2
mov rdi, qword [rcx + 8]
xor r15d, r15d
mov r14d, dword [0x1800b4d94]
mov r12d, 4
test rdi, rdi
je 0x18002c780
cmp dword [rdi], r15d
je 0x18002c780
mov rax, qword gs:[0x58]
mov rax, qword [rax + r14*8]
mov ecx, dword [r12 + rax]
cmp dword [0x1800b5c5c], ecx
jle 0x18002c73e
lea rcx, [0x1800b5c5c]
call fcn.1800609c8
cmp dword [0x1800b5c5c], 0xffffffff
jne 0x18002c73e
movzx eax, byte [rdi + 1]
lea rcx, [0x1800b5c5c]
sub al, byte [rdi + 3]
sub al, byte [rdi + 2]
add al, byte [rdi]
mov byte [0x1800b5c60], al
call fcn.180060968
movzx ecx, word [rsi]
mov rdi, rsi
mov rdx, rsi
test cx, cx
je 0x18002c778
movzx r8d, byte [0x1800b5c60]
nop dword [rax]
nop dword [rax + rax]
xor cl, r8b
add rdi, 2
mov byte [rdx], cl
lea rdx, [rdx + 1]
movzx eax, word [rdi]
movzx ecx, al
test ax, ax
jne 0x18002c760
sub rdi, rsi
sar rdi, 1
jmp 0x18002c783
mov edi, r15d
test bpl, 1
je 0x18002c792
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r13d, 1
test bpl, 2
je 0x18002c8c9
test edi, edi
je 0x18002c7b9
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.18002c0d0
jmp 0x18002c8c9
mov rax, qword gs:[0x58]
mov rax, qword [rax + r14*8]
mov ecx, dword [r12 + rax]
cmp dword [0x1800b5ca0], ecx
jle 0x18002c7fe
lea rcx, [0x1800b5ca0]
call fcn.1800609c8
cmp dword [0x1800b5ca0], 0xffffffff
jne 0x18002c7fe
mov rax, qword [rbx + 0x18]
lea rcx, [0x1800b5ca0]
mov qword [0x1800b5ca8], rax
call fcn.180060968
cmp qword [0x1800b5ca8], r15
mov rdx, rsi
jge 0x18002c818
lea rcx, [rbx + 0x38]
call fcn.18002c290
jmp 0x18002c8c9
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call fcn.18002c290
test al, al
je 0x18002c8c9
xor eax, eax
lock cmpxchg dword [rbx + 0x34], r13d
cmp eax, r13d
je 0x18002c8c9
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x18002c8c3
lea rax, [rbx + 0x38]
mov ecx, 0x38
cmp rdi, rax
mov edx, 0x88
cmove ecx, edx
xor eax, eax
lea rdi, [rbx + rcx]
lock cmpxchg dword [rdi], r13d
cmp eax, r13d
je 0x18002c8a8
cmp qword [rdi + 0x28], r15
je 0x18002c89b
xor edx, edx
mov rcx, rdi
call fcn.18002f6b0
mov rcx, qword [rdi + 0x28]
call fcn.18006e8c4
mov qword [rdi + 0x28], r15
mov eax, r15d
mov qword [rdi + 0x38], 0x12c
xchg dword [rdi], eax
mov rcx, rdi
call fcn.18002ecc0
test al, al
je 0x18002c8bb
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.18002c390
mov eax, r15d
xchg dword [rbx + 0x34], eax
mov rbx, 0xffffffffffffffff
test bpl, 4
je 0x18002c987
mov rdi, qword [0x1800b5b88]
mov rcx, qword [rdi]
cmp rcx, rbx
jne 0x18002c94a
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [rdi + 8]
add ecx, 0x2710
cmp eax, ecx
jbe 0x18002c987
mov rcx, qword [rdi]
cmp rcx, rbx
jne 0x18002c94a
mov qword [rsp + 0x30], r15
lea r8d, [rbx + 8]
mov dword [rsp + 0x28], 0x80
lea rcx, str..GlobalProcmonDebugLogger
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rdi]
mov dword [rdi + 8], eax
cmp rcx, rbx
je 0x18002c987
mov rax, rbx
nop dword [rax]
cmp word [rsi + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x18002c950
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rdx
lea r9d, [rax + rax]
mov dword [rsp + 0x28], r15d
mov edx, 0x95358204
mov r8, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test bpl, 8
je 0x18002ca6e
mov rdi, qword [0x1800b5b80]
cmp qword [rdi + 8], r15
jne 0x18002ca28
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi], rax
test rax, rax
je 0x18002ca28
lea rdx, str.EventRegister
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.EventUnregister
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.EventWrite
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, qword [rdi + 0x10]
mov qword [rdi + 0x20], rax
test r10, r10
je 0x18002ca1c
cmp qword [rdi + 0x18], r15
je 0x18002ca1c
test rax, rax
je 0x18002ca1c
lea r9, [rdi + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800a5408]
call r10
jmp 0x18002ca28
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18002ca6e
mov qword [rsp + 0x48], rsi
nop word [rax + rax]
cmp word [rsi + rbx*2 + 2], r15w
lea rbx, [rbx + 1]
jne 0x18002ca40
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x54], r15d
lea r9, [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov r8d, r13d
lea rdx, [0x1800a5418]
call qword [rdi + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800607b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret