Function at 0x4062a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rax, qword [0x0043e080]
mov rdx, qword [0x0043e088]
test rax, rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
jne 0x406393
test rdx, rdx
jne 0x406393
lea rax, [rsp + 0x70]
mov ebx, 8
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
jmp 0x40632a
sub rbx, 1
je 0x4068e9
xor ecx, ecx
mov r9d, 2
mov r8d, 0x10
mov rdx, qword [rsp + 0x20]
call qword [0x00441d00]
test eax, eax
jne 0x406320
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
test rax, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
jne 0x406370
test rdx, rdx
je 0x406320
nop
nop word cs:[rax + rax]
mov rsi, rax
or rsi, rdx
je 0x4068f8
movq xmm0, rax
movq xmm4, rdx
punpcklqdq xmm0, xmm4
movaps xmmword [0x0043e080], xmm0
jmp 0x40639d
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
movdqa xmm2, xmmword [0x0043e080]
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
movabs r11, 0xbeac0467eba5facb
movaps xmmword [rsp + 0x50], xmm2
nop dword [rax]
bt r11, rcx
jae 0x4063cc
xor r9, rax
xor r8, rdx
xor rdx, rax
ror rax, 9
add rcx, 1
mov r10, rdx
xor rax, rdx
ror rdx, 0x1c
shl r10, 0xe
xor rax, r10
cmp rcx, 0x40
jne 0x4063c0
movabs r11, 0xd86b048b86aa9922
xor ecx, ecx
nop word [rax + rax]
bt r11, rcx
jae 0x40640c
xor r9, rax
xor r8, rdx
xor rdx, rax
ror rax, 9
add rcx, 1
mov r10, rdx
xor rax, rdx
ror rdx, 0x1c
shl r10, 0xe
xor rax, r10
cmp rcx, 0x40
jne 0x406400
lea rax, [rsp + 0x48]
movdqa xmm3, xmmword [rsp + 0x50]
xor ecx, ecx
mov esi, 1
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov ebx, 5
movabs r15, 0xaaaaaaaaaaaaaaab
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov r14d, 0x68c8c4ad
mov qword [0x0043e080], r9
lea r13, [rsp + 0x40]
mov qword [0x0043e088], r8
movaps xmmword [0x0043e0b0], xmm3
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
nop word cs:[rax + rax]
mov rax, rsi
imul ebx, ebx, 0x39
mov r8, rsi
mul r15
lea r9d, [rbx + 0x2b]
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r8, rax
mov eax, r9d
imul r14d
mov eax, r9d
sar eax, 0x1f
sar edx, 0xc
mov ebx, edx
sub ebx, eax
imul ebx, ebx, 0x2717
sub r9d, ebx
cmp r8, 1
lea r12d, [r9 + 1]
mov ebx, r9d
je 0x4066b0
cmp r8, 2
je 0x406760
mov qword [rsp + 0x48], 0
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x50], 0
mov r8, qword [rsp + 0x20]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
call fcn.004121f0
mov rdx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
test rdx, rdx
je 0x406561
nop dword [rax + rax]
cmp dword [rdx], r12d
jge 0x406680
mov rcx, rdi
call fcn.00412180
mov rax, qword [rdi]
mov rdx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
test rdx, rdx
jne 0x406540
xor edx, edx
mov rcx, rdi
call fcn.00412180
xor edx, edx
mov rcx, rbp
call fcn.00412180
mov rbp, qword [rsp + 0x50]
test rbp, rbp
je 0x406880
mov rdi, qword [rsp + 0x48]
mov rcx, r13
test rdi, rdi
je 0x4065b1
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x406650
mov rdx, rdi
call fcn.00412180
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x406590
mov rdx, rbp
call fcn.00412180
mov rdi, qword [rsp + 0x40]
mov rcx, r13
mov rbp, qword [rsp + 0x60]
test rdi, rdi
je 0x4065ed
test rbp, rbp
je 0x406625
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x406610
mov rdx, rdi
call fcn.00412180
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x4065d0
mov rdx, rbp
add rsi, 1
call fcn.00412180
cmp rsi, 0x7a120
je 0x40663a
mov rcx, qword [rsp + 0x40]
jmp 0x4064a0
mov rdx, rbp
call fcn.00412180
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x4065d0
mov rdx, rdi
add rsi, 1
call fcn.00412180
cmp rsi, 0x7a120
jne 0x406602
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rbp
call fcn.00412180
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x406590
mov rdx, rdi
call fcn.00412180
jmp 0x4065b9
mov rcx, rbp
call fcn.00412180
mov rax, qword [rbp]
mov rdx, qword [rax + 8]
lea rbp, [rax + 8]
test rdx, rdx
jne 0x406540
jmp 0x406561
mov qword [rsp + 0x70], 0
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x60], 0
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
call fcn.004121f0
mov rcx, qword [rsp + 0x48]
mov r9d, r12d
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.004121f0
mov rdi, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [rsp + 0x50]
test rdi, rdi
je 0x4065ed
test rbp, rbp
je 0x406625
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x406742
mov rdx, rdi
call fcn.00412180
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x4065ed
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jl 0x406721
mov rdx, rbp
call fcn.00412180
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
jmp 0x406710
mov qword [rsp + 0x70], 0
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x60], 0
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
call fcn.004121f0
mov rcx, qword [rsp + 0x48]
mov r9d, r12d
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.004121f0
mov rdi, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [rsp + 0x60]
test rdi, rdi
je 0x4067ed
test rbp, rbp
je 0x406869
nop
nop word cs:[rax + rax]
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x406850
mov rdx, rdi
call fcn.00412180
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x4067d0
mov rdx, rbp
call fcn.00412180
mov rdi, qword [rsp + 0x40]
mov rcx, r13
mov rbp, qword [rsp + 0x50]
test rdi, rdi
je 0x4065ed
test rbp, rbp
je 0x406625
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x40683d
mov rdx, rdi
call fcn.00412180
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x4065ed
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jl 0x40681c
mov rdx, rbp
call fcn.00412180
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
jmp 0x40680b
mov rdx, rbp
call fcn.00412180
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x4067d0
mov rdx, rdi
call fcn.00412180
jmp 0x4067f5
lea rcx, [0x00441ec0]
call fcn.00406110
mov dword [rax], ebx
mov rbp, rax
mov rdx, qword [0x0043e0b8]
mov rax, qword [0x0043e0b0]
lea rcx, [rdx + rax]
xor rdx, rax
ror rax, 9
mov r8, rdx
xor rax, rdx
ror rdx, 0x1c
shl r8, 0xe
xor rax, r8
cmp rcx, 0xfffffffffffffffc
ja 0x40689f
movq xmm0, rax
movq xmm1, rdx
and ecx, 0x7fffffff
punpcklqdq xmm0, xmm1
movaps xmmword [0x0043e0b0], xmm0
mov dword [rbp + 4], ecx
mov qword [rsp + 0x50], rbp
jmp 0x406583
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
jmp 0x406370
mov ecx, 2
mov rbx, qword [fcn.00417ea0]
call rbx
lea rdx, [0x0041a830]
mov rcx, rax
call fcn.0040f820
mov ecx, 2
call rbx
lea rdx, [0x0041a001]
mov rcx, rax
call fcn.0040f820
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]