Function at 0x180001700
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x58
xor ebx, ebx
mov qword [rax + 8], rbp
mov qword [rax - 0x38], rbx
xor r9d, r9d
mov qword [rax - 0x18], rsi
mov edx, 0x80000000
mov qword [rax - 0x20], r14
mov edi, ebx
mov dword [rax - 0x40], 0x80
lea r8d, [rbx + 7]
mov r14d, ebx
mov dword [rax + 0x18], ebx
mov dword [rax - 0x48], 3
call qword [0x180019c90]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180001750
mov esi, ebx
jmp 0x1800017b9
test rsi, rsi
je 0x1800017b9
cmp qword [0x180019c50], rbx
je 0x1800017b9
xor edx, edx
mov rcx, rsi
call qword [0x180019c88]
mov ebp, eax
test eax, eax
je 0x1800017b9
xor ecx, ecx
lea edx, [rax + 0x10]
mov r8d, 0x1000
mov r14d, eax
lea r9d, [rcx + 4]
call qword [0x180019c50]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov r8d, r14d
mov rcx, rsi
mov rdi, rax
call qword [0x180019c60]
test eax, eax
jle 0x1800017b9
mov ebp, 1
cmp r14d, dword [rsp + 0x80]
je 0x1800017bb
mov ebp, ebx
test rsi, rsi
je 0x1800017c9
mov rcx, rsi
call qword [0x180019cb8]
test ebp, ebp
je 0x18000196f
cmp r14d, 0x160
jbe 0x18000196f
mov eax, dword [rdi + 4]
add eax, dword [rdi]
lea eax, [rax + rax*2]
cmp dword [rdi + 0xc], eax
jne 0x18000196f
add r14d, 0xffffffbc
mov qword [rsp + 0x40], r15
movsxd r10, r14d
mov r8d, ebx
test r14d, r14d
jle 0x180001841
mov rax, rbx
lea r9, [rdi + 0x44]
nop word [rax + rax]
mov ecx, dword [rdi + 0x10]
lea r9, [r9 + 1]
cmp r8d, ecx
mov rdx, rbx
cmovl rdx, rax
movzx eax, byte [rdx + rdi + 0x14]
xor byte [r9 - 1], al
mov eax, ebx
cmp r8d, ecx
cmovl eax, r8d
lea r8d, [rax + 1]
lea rax, [rdx + 1]
sub r10, 1
jne 0x180001810
mov eax, dword [rdi + 0x3c]
xor ecx, ecx
lea r8d, [rax + rax*4]
lea ebp, [r8*2 + 0x44]
mov r8d, 0x1000
lea edx, [rbp + 0x10]
lea r9d, [rcx + 4]
call qword [0x180019c50]
mov rsi, rax
test rax, rax
je 0x180001954
mov r9d, ebp
lea rcx, [rdi + 0x44]
mov r8, rax
mov edx, r14d
call fcn.180001430
movsxd r8, eax
test eax, eax
jle 0x180001954
cmp r8d, dword [rdi + 0x3c]
jne 0x180001954
mov word [rsp + 0x78], 0xe2
mov edx, ebx
movsxd rcx, edx
lea eax, [rdx - 0x6a]
inc edx
xor byte [rsp + rcx + 0x78], al
cmp edx, 1
jb 0x1800018a1
mov byte [rsp + 0x79], bl
cmp dword [rdi + 0x34], ebx
jle 0x180001954
cmp r8, 0x11c
jbe 0x180001954
mov eax, dword [rsi]
test eax, eax
je 0x180001954
shl eax, 0xa
cmp eax, dword [rsi + 0x118]
jne 0x180001954
lea rcx, [rsi + 0x14]
lea rdx, [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edx, 0x20
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x1c]
call qword [0x180019c50]
mov rbx, rax
test rax, rax
je 0x180001954
mov ecx, dword [rsi + 0x10]
mov r8d, 0x1000
cmp ecx, dword [rsi + 0xc]
cmovle ecx, dword [rsi + 0xc]
lea eax, [rcx + rcx*4]
xor ecx, ecx
lea ebp, [rax + rax]
lea edx, [rbp + 0x10]
lea r9d, [rcx + 4]
call qword [0x180019c50]
mov qword [rbx + 8], rax
test rax, rax
je 0x180001954
movsxd rcx, dword [rsi + 8]
mov r9d, ebp
mov edx, dword [rsi + 0x10]
add rcx, rsi
mov r8, rax
call fcn.180001430
mov dword [rbx], eax
mov r15, qword [rsp + 0x40]
test rsi, rsi
je 0x18000196f
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x180019cb0]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x70]
test rdi, rdi
je 0x180001994
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [0x180019cb0]
mov rax, rbx
add rsp, 0x58
pop rdi
pop rbx
ret