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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14009c020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [0x14009fb28]
mov rsi, r8
mov rax, qword [rbx]
mov r14d, dword [rax]
cmp edx, 8
jne 0x1400094e4
cmp dword [rbx + 0x10], 2
je 0x1400094e4
or r14d, 2
mov rdi, qword [rbx + 8]
xor r15d, r15d
mov ebp, 4
test rdi, rdi
je 0x140009590
cmp dword [rdi], r15d
je 0x140009590
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbp + rcx]
cmp dword [0x14009f8d8], eax
jle 0x14000954d
lea rcx, [0x14009f8d8]
call fcn.140048630
cmp dword [0x14009f8d8], 0xffffffff
jne 0x14000954d
movzx eax, byte [rdi + 1]
lea rcx, [0x14009f8d8]
sub al, byte [rdi + 3]
sub al, byte [rdi + 2]
add al, byte [rdi]
mov byte [0x14009f8dc], al
call fcn.1400485d0
movzx ecx, word [rsi]
mov rdi, rsi
mov rdx, rsi
test cx, cx
je 0x140009588
movzx r8d, byte [0x14009f8dc]
nop dword [rax]
nop word [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 0x140009570
sub rdi, rsi
sar rdi, 1
jmp 0x140009593
mov edi, r15d
test r14b, 1
je 0x1400095a2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r12d, 1
test r14b, 2
je 0x14000977c
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbp + rcx]
test edi, edi
je 0x14000967d
cmp dword [0x14009f8f0], eax
jle 0x1400095fe
lea rcx, [0x14009f8f0]
call fcn.140048630
cmp dword [0x14009f8f0], 0xffffffff
jne 0x1400095fe
mov rax, qword [rbx + 0x18]
lea rcx, [0x14009f8f0]
mov qword [0x14009f8f8], rax
call fcn.1400485d0
cmp qword [0x14009f8f8], r15
mov r8d, edi
mov rdx, rsi
jge 0x14000961b
lea rcx, [rbx + 0x38]
call fcn.140007810
jmp 0x14000977c
mov rbp, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rbp
mov rcx, rbp
call fcn.140007810
test al, al
je 0x14000977c
xor eax, eax
lock cmpxchg dword [rbx + 0x34], r12d
cmp eax, r12d
je 0x14000977c
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rbp
jne 0x140009776
lea rax, [rbx + 0x38]
mov edi, 0x38
cmp rbp, rax
mov edx, 0x88
cmove edi, edx
add rdi, rbx
jmp 0x140009725
cmp dword [0x14009f950], eax
jle 0x1400096b1
lea rcx, [0x14009f950]
call fcn.140048630
cmp dword [0x14009f950], 0xffffffff
jne 0x1400096b1
mov rax, qword [rbx + 0x18]
lea rcx, [0x14009f950]
mov qword [0x14009f958], rax
call fcn.1400485d0
cmp qword [0x14009f958], r15
mov rdx, rsi
jge 0x1400096cb
lea rcx, [rbx + 0x38]
call fcn.140007980
jmp 0x14000977c
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call fcn.140007980
test al, al
je 0x14000977c
xor eax, eax
lock cmpxchg dword [rbx + 0x34], r12d
cmp eax, r12d
je 0x14000977c
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x140009776
lea rax, [rbx + 0x38]
mov ecx, 0x38
cmp rdi, rax
mov edx, 0x88
cmove ecx, edx
lea rdi, [rbx + rcx]
xor eax, eax
lock cmpxchg dword [rdi], r12d
cmp eax, r12d
je 0x14000975b
cmp qword [rdi + 0x28], r15
je 0x14000974e
xor edx, edx
mov rcx, rdi
call fcn.140007e00
mov rcx, qword [rdi + 0x28]
call fcn.140054458
mov qword [rdi + 0x28], r15
mov eax, r15d
mov qword [rdi + 0x38], 0x12c
xchg dword [rdi], eax
mov rcx, rdi
call fcn.140008140
test al, al
je 0x14000976e
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.1400091c0
mov eax, r15d
xchg dword [rbx + 0x34], eax
mov rbx, 0xffffffffffffffff
test r14b, 4
je 0x140009837
mov rdi, qword [0x14009fb38]
mov rcx, qword [rdi]
cmp rcx, rbx
jne 0x1400097fd
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [rdi + 8]
add ecx, 0x2710
cmp eax, ecx
jbe 0x140009837
mov rcx, qword [rdi]
cmp rcx, rbx
jne 0x1400097fd
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 0x140009837
mov rax, rbx
cmp word [rsi + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x140009800
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 r14b, 8
je 0x14000991e
mov rdi, qword [0x14009fb30]
cmp qword [rdi + 8], r15
jne 0x1400098d8
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi], rax
test rax, rax
je 0x1400098d8
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 0x1400098cc
cmp qword [rdi + 0x18], r15
je 0x1400098cc
test rax, rax
je 0x1400098cc
lea r9, [rdi + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14008dcd8]
call r10
jmp 0x1400098d8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000991e
mov qword [rsp + 0x48], rsi
nop word [rax + rax]
cmp word [rsi + rbx*2 + 2], r15w
lea rbx, [rbx + 1]
jne 0x1400098f0
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x54], r15d
lea r9, [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov r8d, r12d
lea rdx, [0x14008dce8]
call qword [rdi + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140048410
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret