Function at 0x180001b30
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x818]
sub rsp, 0x8f0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov ebx, r9d
mov r12, r8
mov r13d, edx
mov rsi, rcx
xor r15d, r15d
cmp edx, 0x222004
je 0x180002040
lea rdi, [rcx + 0x168]
cmp qword [rdi], r15
je 0x180001bb7
nop word [rax + rax]
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov qword [rdi], rax
test rax, rax
setne al
test al, al
jne 0x180001ba7
mov qword [rdi + 8], r15
mov edx, 0x4d6f6f44
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rdi], r15
jne 0x180001b90
cmp dword [rsi + 0x38], r15d
setne r14b
test r14b, r14b
je 0x180001bd3
lea rcx, [rsi + 0x3d]
mov r8d, ebx
mov rdx, r12
call fcn.180001500
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea eax, [r13 - 0x222008]
cmp eax, 0x48
ja case.0x180001c0f.2236425
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x20b8]
mov ecx, dword [rdx + rax*4 + 0x2094]
add rcx, rdx
jmp rcx
cmp ebx, 4
jae 0x180001c1c
call fcn.180004cb0
int3
mov r13d, dword [r12]
lea rax, [r12 + 4]
mov qword [rsp + 0x30], rax
lea eax, [rbx - 4]
mov dword [rsp + 0x38], eax
cmp dword [rsi + 0x38], r15d
je 0x180001c3d
call fcn.180004cb0
int3
cmp r13d, 0x10008
setae byte [rbp + 0x828]
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x58]
call fcn.180002ae0
lea rdx, [rbp + 0x828]
lea rcx, [rsp + 0x58]
call fcn.180002be0
cmp byte [rbp + 0x828], r15b
je 0x180001fa4
mov dword [rsi + 0x38], r13d
movabs rax, 0xfffff78000000014
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rcx, [rsi + 0x3d]
lea rdx, [rsp + 0x50]
call fcn.180001400
mov qword [rbp - 0x70], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.180002ce0
jmp 0x180001fa4
cmp ebx, 4
jae 0x180001cbe
call fcn.180004cb0
int3
mov ecx, dword [r12]
lea rax, [r12 + 4]
mov qword [rsp + 0x30], rax
lea eax, [rbx - 4]
mov dword [rsp + 0x38], eax
test ecx, ecx
je 0x180001cdd
call fcn.180004cb0
int3
mov byte [rsi + 0x3c], 1
jmp 0x180001fa4
cmp byte [rsi + 0x3c], r15b
jne 0x180001cf2
call fcn.180004cb0
int3
mov eax, r15d
mov ecx, 1
cmp qword [0x1800082c8], rax
cmovne eax, ecx
cmp byte [0x1800082d0], r15b
je 0x180001d10
or eax, 2
cmp byte [0x1800083b8], r15b
je 0x180001d1c
or eax, 4
mov dword [rsp + 0x48], eax
mov qword [rbp - 0x68], rdi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.180002de0
jmp 0x180001fa4
cmp ebx, 4
jae 0x180001d42
call fcn.180004cb0
int3
mov edx, dword [r12]
lea rax, [r12 + 4]
mov qword [rsp + 0x30], rax
add ebx, 0xfffffffc
mov dword [rsp + 0x38], ebx
cmp ebx, 1
jae 0x180001d62
call fcn.180004cb0
int3
movzx r8d, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
lea r9, [rsi + 0x140]
lea rax, [0x180008040]
jmp 0x180001f91
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], r15d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.180002790
mov r11d, dword [rsp + 0x38]
cmp r11d, 1
jae 0x180001da8
call fcn.180004cb0
int3
mov rax, qword [rsp + 0x30]
movzx ebx, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
dec r11d
mov dword [rsp + 0x38], r11d
lea rcx, [rbp + 0x268]
call fcn.180001770
nop
lea r9, [rsi + 0x150]
lea rax, [0x1800080c0]
mov qword [rsp + 0x20], rax
movzx r8d, bl
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.180002200
nop
lea rcx, [rbp + 0x268]
call fcn.180001900
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180001fa4
mov edx, 0x4d6f6f44
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x180001fa4
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180002790
mov r11d, dword [rsp + 0x38]
cmp r11d, 1
jae 0x180001e45
call fcn.180004cb0
int3
mov rax, qword [rsp + 0x30]
movzx ebx, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
dec r11d
mov dword [rsp + 0x38], r11d
lea rcx, [rbp - 0x58]
call fcn.180001770
nop
lea r9, [rsi + 0x160]
lea rax, [0x1800081c0]
mov qword [rsp + 0x20], rax
movzx r8d, bl
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180002200
nop
lea rcx, [rbp - 0x58]
call fcn.180001900
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180001fa4
mov edx, 0x4d6f6f44
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x180001fa4
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180002790
mov r11d, dword [rsp + 0x38]
cmp r11d, 1
jae 0x180001ede
call fcn.180004cb0
int3
mov rax, qword [rsp + 0x30]
movzx ebx, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
dec r11d
mov dword [rsp + 0x38], r11d
lea rcx, [rbp + 0x528]
call fcn.180001770
nop
lea r9, [rsi + 0x158]
lea rax, [0x180008140]
mov qword [rsp + 0x20], rax
movzx r8d, bl
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180002200
nop
lea rcx, [rbp + 0x528]
call fcn.180001900
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180001fa4
mov edx, 0x4d6f6f44
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x180001fa4
cmp ebx, 4
jae 0x180001f57
call fcn.180004cb0
int3
mov edx, dword [r12]
lea rax, [r12 + 4]
mov qword [rsp + 0x30], rax
add ebx, 0xfffffffc
mov dword [rsp + 0x38], ebx
cmp ebx, 1
jae 0x180001f77
call fcn.180004cb0
int3
movzx r8d, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
lea r9, [rsi + 0x148]
lea rax, [0x180008080]
dec ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], ebx
mov rcx, rsi
call fcn.180002110
test r14b, r14b
je 0x180002040
mov r9, qword [rdi]
test r9, r9
je 0x180002040
nop dword [rax]
mov eax, dword [r9 + 0xc]
lea r11, [r9 + 0x10]
test eax, eax
je 0x18000202f
mov ebx, eax
nop
inc byte [rsi + 0x13d]
movzx r8d, byte [rsi + 0x13d]
movzx eax, byte [r8 + rsi + 0x3d]
add byte [rsi + 0x13e], al
movzx edx, byte [rsi + 0x13e]
movzx ecx, byte [r8 + rsi + 0x3d]
movzx eax, byte [rdx + rsi + 0x3d]
mov byte [r8 + rsi + 0x3d], al
mov byte [rdx + rsi + 0x3d], cl
movzx ecx, byte [rsi + 0x13e]
movzx eax, byte [rsi + 0x13d]
movzx ecx, byte [rcx + rsi + 0x3d]
add cl, byte [rax + rsi + 0x3d]
movzx eax, cl
movzx ecx, byte [rax + rsi + 0x3d]
xor byte [r11], cl
inc r11
dec rbx
jne 0x180001fd0
mov r9, qword [r9]
test r9, r9
jne 0x180001fc0
jmp 0x180002040
mov eax, 0xc000000d
jmp 0x180002073
lea rcx, [rsi + 0x168]
mov r8d, dword [rbp + 0x840]
mov rdx, r12
call fcn.180004cf0
mov rcx, qword [rbp + 0x848]
mov dword [rcx], eax
mov eax, 0x103
mov rcx, qword [rbp + 0x850]
cmp qword [rcx], 0
cmovne eax, r15d
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret