Function at 0x406c30
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 [0x00426140]
mov rdx, qword [0x00426148]
test rax, rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
jne 0x406d23
test rdx, rdx
jne 0x406d23
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 0x406cba
sub rbx, 1
je 0x407279
xor ecx, ecx
mov r9d, 2
mov r8d, 0x10
mov rdx, qword [rsp + 0x20]
call qword [0x00429f50]
test eax, eax
jne 0x406cb0
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
test rax, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
jne 0x406d00
test rdx, rdx
je 0x406cb0
nop
nop word cs:[rax + rax]
mov rsi, rax
or rsi, rdx
je 0x407288
movq xmm0, rax
movq xmm4, rdx
punpcklqdq xmm0, xmm4
movaps xmmword [0x00426140], xmm0
jmp 0x406d2d
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
movdqa xmm2, xmmword [0x00426140]
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
movabs r11, 0xbeac0467eba5facb
movaps xmmword [rsp + 0x50], xmm2
nop dword [rax]
bt r11, rcx
jae 0x406d5c
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 0x406d50
movabs r11, 0xd86b048b86aa9922
xor ecx, ecx
nop word [rax + rax]
bt r11, rcx
jae 0x406d9c
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 0x406d90
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 [0x00426140], r9
lea r13, [rsp + 0x40]
mov qword [0x00426148], r8
movaps xmmword [0x00426160], 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 0x406fe0
cmp r8, 2
je 0x407090
mov qword [rsp + 0x48], 0
mov r8, qword [rsp + 0x20]
mov qword [rsp + 0x50], 0
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
call fcn.00412e80
mov r8, qword [rsp + 0x30]
mov r9d, r12d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.00412e80
mov rbp, qword [rsp + 0x50]
test rbp, rbp
je 0x407210
mov rdi, qword [rsp + 0x48]
mov rcx, r13
test rdi, rdi
je 0x406f11
nop word cs:[rax + rax]
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x406fb0
mov rdx, rdi
call fcn.00412e10
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x406ef0
mov rdx, rbp
call fcn.00412e10
mov rdi, qword [rsp + 0x40]
mov rcx, r13
mov rbp, qword [rsp + 0x60]
test rdi, rdi
je 0x406f4d
test rbp, rbp
je 0x406f85
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x406f70
mov rdx, rdi
call fcn.00412e10
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x406f30
mov rdx, rbp
add rsi, 1
call fcn.00412e10
cmp rsi, 0x7a120
je 0x406f9a
mov rcx, qword [rsp + 0x40]
jmp 0x406e30
mov rdx, rbp
call fcn.00412e10
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x406f30
mov rdx, rdi
add rsi, 1
call fcn.00412e10
cmp rsi, 0x7a120
jne 0x406f62
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.00412e10
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x406ef0
mov rdx, rdi
call fcn.00412e10
jmp 0x406f19
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.00412e80
mov rcx, qword [rsp + 0x48]
mov r9d, r12d
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.00412e80
mov rdi, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [rsp + 0x50]
test rdi, rdi
je 0x406f4d
test rbp, rbp
je 0x406f85
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x407072
mov rdx, rdi
call fcn.00412e10
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x406f4d
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jl 0x407051
mov rdx, rbp
call fcn.00412e10
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
jmp 0x407040
mov qword [rsp + 0x70], 0
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x60], 0
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
call fcn.00412e80
mov rdx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdx, rdx
je 0x407101
nop word [rax + rax]
cmp dword [rdx], r12d
jge 0x4071e0
mov rcx, rdi
call fcn.00412e10
mov rax, qword [rdi]
mov rdx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
test rdx, rdx
jne 0x4070e0
xor edx, edx
mov rcx, rdi
call fcn.00412e10
mov rcx, rbp
xor edx, edx
call fcn.00412e10
mov rdi, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [rsp + 0x60]
test rdi, rdi
je 0x40714d
test rbp, rbp
je 0x4071c9
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x4071b0
mov rdx, rdi
call fcn.00412e10
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x407130
mov rdx, rbp
call fcn.00412e10
mov rdi, qword [rsp + 0x40]
mov rcx, r13
mov rbp, qword [rsp + 0x50]
test rdi, rdi
je 0x406f4d
test rbp, rbp
je 0x406f85
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jge 0x40719d
mov rdx, rdi
call fcn.00412e10
lea rcx, [rdi + 0x10]
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x406f4d
mov eax, dword [rbp + 4]
cmp dword [rdi + 4], eax
jl 0x40717c
mov rdx, rbp
call fcn.00412e10
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
jmp 0x40716b
mov rdx, rbp
call fcn.00412e10
lea rcx, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x407130
mov rdx, rdi
call fcn.00412e10
jmp 0x407155
mov rcx, rbp
call fcn.00412e10
mov rax, qword [rbp]
mov rdx, qword [rax + 8]
lea rbp, [rax + 8]
test rdx, rdx
jne 0x4070e0
jmp 0x407101
lea rcx, [0x0042a280]
call fcn.00406aa0
mov dword [rax], ebx
mov rbp, rax
mov rdx, qword [0x00426168]
mov rax, qword [0x00426160]
lea rcx, [rax + rdx]
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 0x40722f
movq xmm0, rax
movq xmm1, rdx
and ecx, 0x7fffffff
punpcklqdq xmm0, xmm1
movaps xmmword [0x00426160], xmm0
mov dword [rbp + 4], ecx
mov qword [rsp + 0x50], rbp
jmp 0x406ed9
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
jmp 0x406d00
mov ecx, 2
mov rbx, qword [fcn.00419860]
call rbx
lea rdx, [0x0041b910]
mov rcx, rax
call fcn.00410040
mov ecx, 2
call rbx
lea rdx, [0x0041b001]
mov rcx, rax
call fcn.00410040
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]