Function at 0x18007eea0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r14
mov eax, 0x58
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rdi, rcx
mov rsi, r9
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x38]
mov r12, r8
lea rcx, [r9 + rax]
movabs rax, 0xfffffffe0
mov r14, rdx
cmp rcx, rax
ja 0x18007f179
cmp rcx, r9
jb 0x18007f179
cmp dword [rdi + 0x174], 0
mov qword [rsp + 0x50], rbp
mov qword [rdi + 0x38], rcx
mov qword [rsp + 0x48], r13
je 0x18007ef1e
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.18007e0c0
mov dword [rdi + 0x174], 0
movzx eax, byte [rdi + 0xd]
movzx r13d, byte [rdi + 0xc]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdi + 0xe]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdi + 0xf]
shl r13d, 8
or r13d, eax
lea rax, [rdi + 0x170]
mov ebp, dword [rax]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x80], ebp
test ebp, ebp
je 0x18007efa7
nop dword [rax]
test rsi, rsi
je 0x18007ef92
mov ecx, ebp
inc r12
inc r14
movzx eax, byte [rcx + rdi + 0x10]
dec rsi
xor al, byte [r14 - 1]
mov byte [r12 - 1], al
xor byte [rcx + rdi + 0x40], al
inc ebp
and ebp, 0xf
mov dword [rsp + 0x80], ebp
jne 0x18007ef60
jmp 0x18007ef9a
test ebp, ebp
jne 0x18007f15b
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.18007e0c0
mov r10, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x40], r15
cmp rsi, 0xc00
jb 0x18007f07d
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rbx, rdx
shr rbx, 0xb
mov rax, rbx
imul rax, rax, 0xfffffffffffff400
add rsi, rax
mov qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0x30]
nop word [rax + rax]
mov r9, rsi
mov r8d, 0xc0
mov rdx, r12
mov rcx, r14
mov qword [rsp + 0x20], rdi
call r10
add r13d, 0xc0
lea rdx, [rdi + 0x60]
mov eax, r13d
lea rcx, [rdi + 0x40]
mov r9d, 0xc00
shr eax, 0x18
mov r8, r12
mov byte [rdi + 0xf], r13b
mov byte [rdi + 0xc], al
mov eax, r13d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rdi + 0xe], al
call fcn.18007e200
mov r10, qword [rsp + 0xa0]
add r12, 0xc00
add r14, 0xc00
dec rbx
jne 0x18007f000
mov rsi, qword [rsp + 0x98]
mov ebp, dword [rsp + 0x80]
mov r15, rsi
and r15, 0xfffffffffffffff0
je 0x18007f0e1
mov r9, qword [rsp + 0x30]
mov rbx, r15
mov rdx, r12
shr rbx, 4
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov r8, rbx
call r10
add r13d, ebx
lea rdx, [rdi + 0x60]
mov eax, r13d
lea rcx, [rdi + 0x40]
mov r9, r15
shr eax, 0x18
mov r8, r12
mov byte [rdi + 0xf], r13b
mov byte [rdi + 0xc], al
mov eax, r13d
add r14, r15
shr eax, 0x10
sub rsi, r15
mov byte [rdi + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rdi + 0xe], al
call fcn.18007e200
add r12, r15
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x88]
test rsi, rsi
je 0x18007f15b
mov r8, qword [rsp + 0x30]
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rdi + 0x178]
inc r13d
movsxd rdx, ebp
mov eax, r13d
mov byte [rdi + 0xf], r13b
add rdx, r14
shr eax, 0x18
sub r12, r14
mov byte [rdi + 0xc], al
mov eax, r13d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rdi + 0xe], al
sub rdi, r14
add ebp, esi
nop word [rax + rax]
movzx eax, byte [rdx]
movzx ecx, byte [rdi + rdx + 0x10]
inc rdx
xor ecx, eax
mov byte [r12 + rdx - 1], cl
xor byte [rdi + rdx + 0x3f], cl
dec rsi
jne 0x18007f140
mov rax, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
mov dword [rax], ebp
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rsi
ret
or eax, 0xffffffff
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rsi
ret