Function at 0x140011ff8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rsi, rcx
mov qword [rsp + 0x50], rcx
lea rcx, [0x1400a4c40]
cmp qword [0x1400a4c58], 8
cmovae rcx, qword [0x1400a4c40]
xor edx, edx
call qword [0x140075668]
xor ebx, ebx
test rax, rax
je 0x14001206c
xor eax, eax
jmp 0x1400128ae
movdqa xmm0, xmmword [0x14008cc30]
movdqu xmmword [rbp + 0x1b0], xmm0
mov dword [rbp + 0xc0], 0x49680da8
mov dword [rbp + 0xc4], 0x41e99f3b
mov dword [rbp + 0xc8], 0xafc7b524
mov edi, 0xdfaf
mov word [rbp + 0xcc], di
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400a4fac], eax
jle 0x140012117
lea rcx, [0x1400a4fac]
call fcn.14004b24c
cmp dword [0x1400a4fac], 0xffffffff
jne 0x140012117
mov byte [0x1400a4f4e], 1
mov rax, qword [rbp + 0xc0]
mov qword [0x1400a4f40], rax
mov eax, dword [rbp + 0xc8]
mov dword [0x1400a4f48], eax
mov word [0x1400a4f4c], di
lea rcx, [0x140074904]
call fcn.14004b9c0
lea rcx, [0x1400a4fac]
call fcn.14004b1ec
lea rdi, [0x1400a4f40]
cmp byte [0x1400a4f4e], bl
je 0x140012151
mov rdx, rbx
mov cl, dl
and cl, 7
shl cl, 3
movabs rax, 0xdfafb5419f490ddb
shr rax, cl
xor word [rdi + rdx*2], ax
inc rdx
cmp rdx, 7
jb 0x140012129
mov byte [0x1400a4f4e], bl
call fcn.140011bb0
cmp qword [rax + 0x50], rbx
jne 0x140012165
call fcn.140011bb0
mov qword [rax + 0x50], rbx
call fcn.140011bb0
lea rdx, [rsi + 0x40]
mov rcx, rax
call fcn.140004f84
mov word [rsp + 0x38], ax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40100
mov dword [rsp + 0x20], 0x6cf0000
mov r9, rdi
lea r8, [rbp + 0x1b0]
mov rcx, rsi
call fcn.14001b664
lea r13, [rsi + 0x1f8]
mov r14d, 3
mov ecx, 0x20
call fcn.14004b618
mov r15, rax
mov qword [rbp - 0x10], rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, [0x14008abf0]
mov qword [r15], rax
lea r12, [r15 + 0x10]
mov ecx, 8
call fcn.14004b618
mov rdi, rax
mov qword [rax], rsi
mov qword [rbp - 0x20], rax
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp + 0xe0]
call fcn.14004d3c0
lea rcx, [rbp + 0xe8]
call fcn.14002b69c
test eax, eax
je 0x140012219
mov ecx, eax
call fcn.14002b95c
xor eax, eax
mov qword [rbp + 0x118], rax
mov byte [rbp + 0x118], 1
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x120], rax
mov edx, 1
lea rcx, [rbp + 0xf0]
call fcn.14002c584
test eax, eax
je 0x140012253
mov ecx, eax
call fcn.14002b95c
xor eax, eax
mov qword [rbp + 0x108], rax
mov byte [rbp + 0x108], 1
mov rcx, qword [rbp + 0xf0]
mov qword [rbp + 0x110], rcx
mov byte [rbp + 0xf8], bl
call fcn.14002c608
test eax, eax
je 0x140012287
mov ecx, eax
call fcn.14002b95c
mov byte [rbp + 0x108], bl
mov byte [rbp + 0x118], bl
lea rax, [0x14008ade0]
mov qword [rbp + 0xe0], rax
mov qword [rbp - 0x20], rbx
mov qword [rbp + 0x100], rdi
lea r8, [rbp + 0xe0]
lea rdx, [0x14000779c]
mov rcx, r12
call fcn.14002cb1c
mov ecx, 1
cmp eax, 4
cmovne ecx, eax
test ecx, ecx
je 0x1400122f1
jmp 0x1400122ec
mov rdx, qword [rbp + 0xf0]
mov rcx, qword [rbp + 0xe8]
call fcn.14002b700
test eax, eax
je 0x1400122f1
mov ecx, eax
call fcn.14002b95c
cmp byte [rbp + 0xf8], bl
je 0x1400122d3
mov rcx, qword [rbp + 0x100]
test rcx, rcx
je 0x140012310
mov edx, 8
call fcn.14004b054
nop
mov rsi, qword [rbp + 0xe8]
mov rdi, qword [rbp + 0xf0]
mov rcx, rdi
call fcn.14002c62c
test eax, eax
je 0x140012331
mov ecx, eax
call fcn.14002b95c
mov rcx, rdi
call fcn.14002c544
mov rcx, rsi
call fcn.14002b664
nop
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], r15
lea rdx, [rbp + 0xd0]
mov rcx, r13
call fcn.140013adc
nop
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x1400123a3
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400123a3
mov rdi, qword [rbp + 0xd8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400123a3
mov rcx, qword [rbp + 0xd8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
sub r14, 1
mov rsi, qword [rsp + 0x50]
jne 0x1400121af
lea rax, [0x14008ad20]
mov qword [rbp], rax
mov qword [rbp + 8], rsi
lea rax, [rbp]
mov qword [rbp + 0x38], rax
lea rdi, [rsi + 0x240]
mov qword [rbp - 0x68], rbx
mov rax, qword [0x14008ad20]
lea rdx, [rsp + 0x60]
lea rcx, [rbp]
call rax
mov rcx, rax
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x140012411
cmp qword [rdi + 0x38], rdi
je 0x140012411
mov rax, rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp - 0x68], rcx
mov qword [rdi + 0x38], rax
jmp 0x140012550
mov r8, rbx
mov qword [rbp + 0x168], rbx
test rcx, rcx
je 0x14001247c
lea rax, [rsp + 0x60]
cmp rcx, rax
jne 0x14001246b
mov rax, qword [rcx]
lea rdx, [rbp + 0x130]
call qword [rax + 8]
mov r8, rax
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140012469
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, rbx
mov qword [rbp - 0x68], rbx
mov r8, qword [rbp + 0x168]
jmp 0x14001247c
mov r8, rcx
mov qword [rbp + 0x168], rcx
mov rcx, rbx
mov qword [rbp - 0x68], rbx
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x1400124d0
mov rcx, r9
cmp r9, rdi
jne 0x1400124c8
mov rax, qword [r9]
lea rdx, [rsp + 0x60]
call qword [rax + 8]
mov rcx, rax
mov qword [rbp - 0x68], rax
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x1400124bf
mov rax, qword [r8]
cmp r8, rdi
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbx
mov rcx, qword [rbp - 0x68]
mov r8, qword [rbp + 0x168]
jmp 0x1400124d0
mov qword [rbp - 0x68], rcx
mov qword [rdi + 0x38], rbx
test r8, r8
je 0x140012531
lea rax, [rbp + 0x130]
cmp r8, rax
jne 0x140012523
mov rax, qword [r8]
mov rdx, rdi
mov rcx, r8
call qword [rax + 8]
mov qword [rdi + 0x38], rax
mov r8, qword [rbp + 0x168]
test r8, r8
je 0x14001251d
mov rax, qword [r8]
lea rcx, [rbp + 0x130]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r8, rbx
mov qword [rbp + 0x168], rbx
mov rcx, qword [rbp - 0x68]
jmp 0x140012531
mov qword [rdi + 0x38], r8
mov r8, rbx
mov qword [rbp + 0x168], rbx
test r8, r8
je 0x140012550
mov rax, qword [r8]
lea rcx, [rbp + 0x130]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140012567
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140012581
mov rax, qword [rcx]
lea rdx, [rbp]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
lea rax, [0x140088ce0]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rsi
lea rax, [rbp + 0x40]
mov qword [rbp + 0x78], rax
lea rdi, [rsi + 0xe8]
mov qword [rbp - 0x28], rbx
mov rax, qword [0x140088ce0]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x40]
call rax
mov rcx, rax
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x60]
cmp rcx, rax
je 0x1400125de
cmp qword [rdi + 0x38], rdi
je 0x1400125de
mov rax, rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp - 0x28], rcx
mov qword [rdi + 0x38], rax
jmp 0x14001271a
mov r8, rbx
mov qword [rbp + 0x1a8], rbx
test rcx, rcx
je 0x140012647
lea rax, [rbp - 0x60]
cmp rcx, rax
jne 0x140012636
mov rax, qword [rcx]
lea rdx, [rbp + 0x170]
call qword [rax + 8]
mov r8, rax
mov qword [rbp + 0x1a8], rax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140012634
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, rbx
mov qword [rbp - 0x28], rbx
mov r8, qword [rbp + 0x1a8]
jmp 0x140012647
mov r8, rcx
mov qword [rbp + 0x1a8], rcx
mov rcx, rbx
mov qword [rbp - 0x28], rbx
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x14001269a
mov rcx, r9
cmp r9, rdi
jne 0x140012692
mov rax, qword [r9]
lea rdx, [rbp - 0x60]
call qword [rax + 8]
mov rcx, rax
mov qword [rbp - 0x28], rax
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x140012689
mov rax, qword [r8]
cmp r8, rdi
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbx
mov rcx, qword [rbp - 0x28]
mov r8, qword [rbp + 0x1a8]
jmp 0x14001269a
mov qword [rbp - 0x28], rcx
mov qword [rdi + 0x38], rbx
test r8, r8
je 0x1400126fb
lea rax, [rbp + 0x170]
cmp r8, rax
jne 0x1400126ed
mov rax, qword [r8]
mov rdx, rdi
mov rcx, r8
call qword [rax + 8]
mov qword [rdi + 0x38], rax
mov r8, qword [rbp + 0x1a8]
test r8, r8
je 0x1400126e7
mov rax, qword [r8]
lea rcx, [rbp + 0x170]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r8, rbx
mov qword [rbp + 0x1a8], rbx
mov rcx, qword [rbp - 0x28]
jmp 0x1400126fb
mov qword [rdi + 0x38], r8
mov r8, rbx
mov qword [rbp + 0x1a8], rbx
test r8, r8
je 0x14001271a
mov rax, qword [r8]
lea rcx, [rbp + 0x170]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140012730
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14001274a
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
lea rdi, [rsi + 8]
mov r14d, 0xfffffff0
mov edx, r14d
mov rcx, qword [rdi]
call qword [0x140075688]
mov r8d, eax
and r8d, 0xfffaffff
cmp eax, r8d
je 0x14001277b
mov edx, r14d
mov rcx, qword [rdi]
call qword [0x140075618]
mov edx, r14d
mov rcx, qword [rdi]
call qword [0x140075688]
mov r8d, eax
and r8d, 0xff34ffff
bts r8d, 0x1f
cmp eax, r8d
je 0x1400127a7
mov edx, r14d
mov rcx, qword [rdi]
call qword [0x140075618]
mov r14d, 0xffffffec
mov edx, r14d
mov rcx, qword [rdi]
call qword [0x140075688]
mov r8d, eax
btr r8d, 0x12
bts r8d, 7
cmp eax, r8d
je 0x1400127d7
mov edx, r14d
mov rcx, qword [rdi]
call qword [0x140075618]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi]
call qword [0x140075600]
mov rcx, rdi
call fcn.14000515c
mov edx, 5
mov rcx, qword [rdi]
call qword [0x140075718]
lea rax, [0x14008a328]
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb8], rax
lea r8, [rbp + 0x80]
mov edx, 2
mov rcx, rsi
call fcn.1400055dc
nop
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140012862
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp + 0x1c0]
call fcn.14004d3c0
jmp 0x140012895
cmp eax, 0xffffffff
je 0x1400128ae
lea rcx, [rbp + 0x1c0]
call qword [0x140075678]
lea rcx, [rbp + 0x1c0]
call qword [0x140075728]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1c0]
call qword [0x140075690]
test eax, eax
jne 0x140012876
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14004b030
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret