Function at 0x18001b244
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov rax, qword [0x180053d28]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, 0xdd4d
mov r14d, r9d
mov word [rbp - 0x21], ax
xor r15d, r15d
movzx eax, word [0x180053818]
mov rsi, r8
mov eax, 0x6b
mov qword [rsp + 0x40], r15
mov word [rbp - 0x25], ax
mov r8, rdx
mov dword [rbp - 0x1d], 0x44
mov rdx, rcx
mov eax, dword [0x180053800]
mov ecx, 0xad4
movsx rax, word [0x180053808]
mov r9, rsi
mov qword [rbp - 0x11], rax
mov eax, dword [0x18005374c]
movzx eax, byte [0x18005371e]
mov dword [rbp - 0x29], eax
movsxd rax, dword [0x1800537f4]
mov qword [rbp - 1], rax
mov byte [rbp - 0x29], 0x98
movsxd rax, dword [0x1800536f4]
movsx rbx, byte [0x1800537dc]
mov qword [rbp - 0x19], rax
mov eax, 0xfafc2c72
mov qword [rbp - 0x11], rax
mov eax, 0x45
mov qword [rbp - 9], 0x26
mov word [rbp - 0x29], ax
mov dword [rbp - 0x29], 0x15
mov eax, dword [0x1800536f4]
mov rax, qword [0x180053848]
mov qword [rsp + 0x38], r15
mov eax, 0x14
mov word [rbp - 0x29], ax
mov rax, qword [rbp - 9]
add ax, cx
mov qword [rsp + 0x30], r15
mov word [0x180053834], ax
movabs rcx, 0xff14067bb3162
mov rax, qword [rbp - 0x19]
add rax, rcx
mov qword [rsp + 0x28], r15
lea rcx, [0x18002fc90]
mov qword [rbp - 0x19], rax
mov qword [rsp + 0x20], r14
call fcn.1800181fc
mov dword [0x18005374c], 0x154bbe05
mov rdi, rax
movsx edx, word [rbp - 0x25]
mov ecx, dword [0x18005374c]
add ecx, edx
movsxd rdx, ecx
mov rcx, qword [0x180053828]
cmp rcx, rdx
jne 0x18001b47b
mov r9, rbx
mov qword [rsp + 0x20], 0xde
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180027200
mov dword [0x180053734], eax
mov eax, dword [0x180053734]
test eax, eax
jns 0x18001b3f4
lea r8d, [r15 + 0xb]
cmp dword [0x18005380c], r15d
mov rcx, r15
movsx rax, word [0x180053808]
sete cl
xor rcx, rax
mov rax, qword [rbp - 1]
movsx edx, al
movsx ecx, cl
imul edx, ecx
mov byte [rbp - 0x29], dl
mov al, byte [rbp - 0x29]
inc al
mov byte [rbp - 0x29], al
sub r8, 1
jne 0x18001b3b9
jmp 0x18001b474
movzx ecx, word [rbp - 0x21]
movsx edx, byte [0x180053733]
cmp edx, ecx
jne 0x18001b41b
mov cl, byte [0x18005371f]
mov eax, dword [0x180053838]
add cl, cl
add al, cl
mov byte [0x18005371f], al
jmp 0x18001b474
test dl, dl
jne 0x18001b474
mov rdx, qword [rbp - 0x11]
mov ecx, dword [rbp - 0x1d]
mov eax, dword [0x1800537dc]
add qword [0x180053820], rax
mov rax, r15
cmp dword [0x180053830], r15d
sete al
add rdx, rax
movsx eax, word [0x180053808]
add ecx, eax
not rdx
mov eax, dword [0x18005374c]
or eax, dword [0x1800537f0]
movsxd r8, ecx
mov ecx, r15d
imul r8, rdx
cmp eax, 0x6377b9e0
sete cl
sub r8d, ecx
mov dword [rbp - 0x1d], r8d
movzx eax, word [0x180053844]
test rdi, rdi
jne 0x18001b4e7
lea eax, [rdi + 0x2e]
mov dword [rbp + 7], 0x899293c1
mov word [0x180053834], ax
mov rax, r15
mov dword [rbp + 0xb], 0x88929bdd
mov dword [rbp + 0xf], 0xc39993
xor byte [rbp + rax + 7], 0xfd
inc rax
cmp rax, 0xb
jb 0x18001b4a2
mov qword [rsp + 0x40], r15
lea r9d, [r14 - 1]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 7]
mov qword [rsp + 0x30], r15
lea rcx, [0x180032540]
mov qword [rsp + 0x28], r15
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.1800181fc
mov eax, 3
jmp 0x18001b4e9
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18002fd30
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret