Function at 0x140012918
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov r13, rdx
mov r12, rcx
mov qword [rbp - 0x38], rdx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x50], r14d
lea rdx, [0x14004a060]
lea rcx, [rsp + 0x60]
call fcn.140004570
nop
lea rcx, [rbp - 0x60]
call fcn.14000259c
nop
lea rcx, [rbp - 0x80]
call fcn.14000259c
nop
mov qword [rsp + 0x70], r14
mov ecx, 0x400
mov qword [rsp + 0x78], rcx
call fcn.140014420
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], r14d
mov dword [rbp + 0x48], 0xa6d6a2d6
mov dword [rbp + 0x4c], 0xefc0efd5
mov dword [rbp + 0x50], 0xb698ef98
mov dword [rbp + 0x54], 0xb6d1bed1
mov dword [rbp + 0x58], 0xaedebfda
mov dword [rbp + 0x5c], 0xf99ab4c7
mov dword [rbp + 0x60], 0xd4d4fb96
lea ecx, [r14 + 0x1b]
mov al, byte [rbp + rcx + 0x47]
xor byte [rbp + rcx + 0x48], al
dec rcx
test rcx, rcx
jg 0x1400129da
xor byte [rbp + 0x48], 0xbe
mov rcx, qword [r12 + 0x30]
sub rcx, qword [r12 + 0x28]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
mov r15d, 0xf
add rdx, rax
je 0x140012aed
mov qword [rbp + 0x10], r15
mov qword [rbp + 8], r14
mov byte [rbp - 8], r14b
xor r8d, r8d
lea rdx, [0x14003b640]
lea rcx, [rbp - 8]
call fcn.140002348
nop
mov dword [rsp + 0x50], 1
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
lea r8d, [r15 - 0xb]
lea rdx, str.POST
lea rcx, [rbp - 0x30]
call fcn.140002348
nop
mov dword [rsp + 0x50], 3
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x30], r14
mov byte [rbp + 0x20], r14b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x48]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x20]
call fcn.140002348
nop
lea esi, [r15 - 8]
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call fcn.140013778
test eax, eax
mov dil, 1
je 0x140012af0
mov dil, r14b
test sil, 4
je 0x140012b19
and esi, 0xfffffffb
mov dword [rsp + 0x50], esi
cmp qword [rbp + 0x38], 0x10
jb 0x140012b0d
mov rcx, qword [rbp + 0x20]
call fcn.1400233e4
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x30], r14
mov byte [rbp + 0x20], r14b
test sil, 2
je 0x140012b42
and esi, 0xfffffffd
mov dword [rsp + 0x50], esi
cmp qword [rbp - 0x18], 0x10
jb 0x140012b36
mov rcx, qword [rbp - 0x30]
call fcn.1400233e4
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
test sil, 1
je 0x140012b5f
and esi, 0xfffffffe
mov dword [rsp + 0x50], esi
cmp qword [rbp + 0x10], 0x10
jb 0x140012b5f
mov rcx, qword [rbp - 8]
call fcn.1400233e4
test dil, dil
je 0x140012cd4
mov rbx, qword [r12 + 0x28]
jmp 0x140012c35
mov qword [rbp + 0x10], r15
mov qword [rbp + 8], r14
mov byte [rbp - 8], r14b
mov r8d, 4
lea rdx, str.POST
lea rcx, [rbp - 8]
call fcn.140002348
nop
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x48]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140002348
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140013778
mov edi, eax
cmp qword [rbp - 0x18], 0x10
jb 0x140012c11
mov rcx, qword [rbp - 0x30]
call fcn.1400233e4
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
cmp qword [rbp + 0x10], 0x10
jb 0x140012c2d
mov rcx, qword [rbp - 8]
call fcn.1400233e4
test edi, edi
jne 0x140012c45
add rbx, 0x28
cmp rbx, qword [r12 + 0x30]
jne 0x140012b72
jmp 0x140012cd4
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call fcn.14000278c
mov qword [r13 + 0x18], r15
mov qword [r13 + 0x10], r14
mov byte [r13], r14b
mov r9, rdi
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call fcn.14000278c
or esi, 8
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x68]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x78]
call fcn.1400233e4
nop
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x58]
call fcn.1400233e4
nop
jmp 0x140012d63
mov qword [r12 + 0x10], r14
cmp qword [r12 + 0x18], 0x10
jb 0x140012ce7
mov rax, qword [r12]
jmp 0x140012cea
mov rax, r12
mov byte [rax], r14b
mov qword [r13 + 0x18], r15
mov qword [r13 + 0x10], r14
mov byte [r13], r14b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call fcn.14000278c
or esi, 8
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x68]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x78]
call fcn.1400233e4
nop
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x58]
call fcn.1400233e4
nop
lea rcx, [rsp + 0x60]
call fcn.1400045a8
mov rax, r13
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140022ee0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret