Function at 0x140019384
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov r13, r9
mov rbx, r8
mov rsi, rdx
mov r12, rcx
mov r14, qword [rbp + 0xc0]
xor r15d, r15d
cmp qword [rdx + 0x10], r15
je 0x140019a54
cmp qword [r8 + 0x10], r15
je 0x140019a54
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], r15
mov byte [rbp - 0x40], r15b
lea rcx, [rbp + 0x10]
lea rdx, [0x14003aaa0]
lea r8d, [r15 + 0x31]
call fcn.1400230b0
lea edx, [r15 + 0x2f]
mov al, byte [rbp + rdx + 0xf]
xor byte [rbp + rdx + 0x10], al
dec rdx
test rdx, rdx
jg 0x140019405
xor byte [rbp + 0x10], 0xaa
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x10]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140002348
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000a82c
lea rdx, [0x14003a3b0]
lea rcx, [rbp - 0x40]
call fcn.14000a6ec
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14000a82c
mov rax, qword [str.Fi_ne_v]
mov qword [rbp - 0x18], rax
movzx eax, word [0x14003aae0]
mov word [rbp - 0x10], ax
lea ecx, [rdi + 9]
lea esi, [rdi + 2]
mov al, byte [rbp + rcx - 0x19]
xor byte [rbp + rcx - 0x18], al
sub rcx, rsi
test rcx, rcx
jg 0x14001948d
xor byte [rbp - 0x18], 0x7c
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x40]
call fcn.14000a6ec
lea rcx, [rsp + 0x50]
call fcn.14000259c
nop
lea rcx, [rsp + 0x70]
call fcn.14000259c
nop
mov rax, qword [0x14003aae8]
mov qword [rbp - 0x18], rax
movzx eax, word [0x14003aaf0]
mov word [rbp - 0x10], ax
mov al, byte [0x14003aaf2]
mov byte [rbp - 0xe], al
mov ecx, 9
mov edx, ecx
mov al, byte [rbp + rdx - 0x19]
xor byte [rbp + rdx - 0x18], al
sub rdx, rsi
test rdx, rdx
jg 0x1400194ea
xor byte [rbp - 0x18], 0x81
mov rax, qword [0x14003aaf8]
mov qword [rbp - 8], rax
movzx eax, word [0x14003ab00]
mov word [rbp], ax
mov al, byte [0x14003ab02]
mov byte [rbp + 2], al
mov al, byte [rbp + rcx - 9]
xor byte [rbp + rcx - 8], al
sub rcx, rsi
test rcx, rcx
jg 0x14001951d
xor byte [rbp - 8], 0xb0
mov ebx, 0xf
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], r15b
xor eax, eax
mov rcx, rdi
lea rdi, [rbp - 0x18]
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8, rcx
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x68]
call fcn.140002348
nop
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x50]
call fcn.14000a560
mov r11, rax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 8]
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8, rcx
lea rdx, [rbp - 8]
mov rcx, r11
call fcn.140002348
nop
cmp qword [rbp - 0x50], 0x10
jb 0x1400195a7
mov rcx, qword [rbp - 0x68]
call fcn.1400233e4
mov rax, qword [str._K_W___H_N]
mov qword [rbp - 0x68], rax
mov rax, qword [0x14003ab10]
mov qword [rbp - 0x60], rax
mov rax, qword [str.fK8L__:W]
mov qword [rbp - 0x58], rax
mov al, byte [0x14003ab20]
mov byte [rbp - 0x50], al
mov ecx, 0x17
mov al, byte [rbp + rcx - 0x69]
xor byte [rbp + rcx - 0x68], al
sub rcx, rsi
test rcx, rcx
jg 0x1400195d6
xor byte [rbp - 0x68], 0x5a
mov rax, qword [0x14003ab28]
mov qword [rbp - 8], rax
mov eax, dword [0x14003ab30]
mov dword [rbp], eax
mov al, byte [0x14003ab34]
mov byte [rbp + 4], al
mov ecx, 0xb
mov al, byte [rbp + rcx - 9]
xor byte [rbp + rcx - 8], al
sub rcx, rsi
test rcx, rcx
jg 0x14001960c
xor byte [rbp - 8], 0xe9
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], r15
mov byte [rbp + 0x10], r15b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 8]
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8, rcx
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x10]
call fcn.140002348
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000a560
mov r11, rax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x68]
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8, rcx
lea rdx, [rbp - 0x68]
mov rcx, r11
call fcn.140002348
nop
cmp qword [rbp + 0x28], 0x10
jb 0x140019692
mov rcx, qword [rbp + 0x10]
call fcn.1400233e4
mov qword [rbp], r15
mov ecx, 0x400
mov qword [rbp + 8], rcx
call fcn.140014420
mov qword [rbp - 8], rax
lea rcx, [rsp + 0x50]
call fcn.1400163c0
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], r15
mov byte [rbp + 0x10], r15b
mov r8d, 3
lea rdx, [0x14003a3b8]
lea rcx, [rbp + 0x10]
call fcn.140002348
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], r15b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8, rcx
lea rcx, [rbp - 0x68]
call fcn.140002348
nop
lea rax, [rbp - 8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [r14]
mov r8, r13
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.140015c7c
mov edi, eax
cmp qword [rbp - 0x50], 0x10
jb 0x140019760
mov rcx, qword [rbp - 0x68]
call fcn.1400233e4
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], r15b
cmp qword [rbp + 0x28], 0x10
jb 0x14001977c
mov rcx, qword [rbp + 0x10]
call fcn.1400233e4
mov ebx, r15d
test edi, edi
je 0x140019971
mov edx, 0x5a2bc0
mov ecx, 0xb9f5b9c
call fcn.140022154
mov ecx, 0xbb8
call rax
mov edi, 0xf
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], r15
mov byte [rbp + 0x10], r15b
lea r8d, [rdi - 0xc]
lea rdx, [0x14003a3b8]
lea rcx, [rbp + 0x10]
call fcn.140002348
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], r15b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8, rcx
lea rcx, [rbp - 0x68]
call fcn.140002348
nop
lea rax, [rbp - 8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [r14]
mov r8, r13
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.140015c7c
mov edi, eax
cmp qword [rbp - 0x50], 0x10
jb 0x14001984e
mov rcx, qword [rbp - 0x68]
call fcn.1400233e4
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], r15b
cmp qword [rbp + 0x28], 0x10
jb 0x14001986e
mov rcx, qword [rbp + 0x10]
call fcn.1400233e4
add ebx, esi
cmp ebx, 3
jl 0x14001977f
test edi, edi
je 0x140019971
cmp edi, 2
je 0x140019903
cmp edi, 4
je 0x140019903
cmp edi, esi
je 0x140019898
cmp edi, 3
jne 0x140019971
lea rcx, [rbp - 8]
call fcn.1400054b8
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x50]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x58]
call fcn.1400233e4
nop
cmp qword [rbp - 0x28], 0x10
jb 0x1400198fc
mov rcx, qword [rbp - 0x40]
call fcn.1400233e4
mov eax, esi
jmp 0x140019a59
lea rcx, [rbp - 8]
call fcn.1400054b8
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x50]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x58]
call fcn.1400233e4
nop
cmp qword [rbp - 0x28], 0x10
jb 0x140019967
mov rcx, qword [rbp - 0x40]
call fcn.1400233e4
mov eax, 3
jmp 0x140019a59
mov eax, 0x51eb851f
mul dword [rbp - 0x18]
shr edx, 5
cmp edx, 2
je 0x1400199ec
lea rcx, [rbp - 8]
call fcn.1400054b8
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x50]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x58]
call fcn.1400233e4
nop
cmp qword [rbp - 0x28], 0x10
jb 0x1400199e5
mov rcx, qword [rbp - 0x40]
call fcn.1400233e4
mov eax, 4
jmp 0x140019a59
lea rcx, [rbp - 8]
call fcn.1400054b8
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x50]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x58]
call fcn.1400233e4
nop
cmp qword [rbp - 0x28], 0x10
jb 0x140019a50
mov rcx, qword [rbp - 0x40]
call fcn.1400233e4
xor eax, eax
jmp 0x140019a59
mov eax, 6
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140022ee0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret