Function at 0x140084248
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x24a0]
mov eax, 0x25a0
call fcn.1400ec1b0
sub rsp, rax
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x25f0], rbx
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rbp + 0x2490], rax
mov qword [rbp - 0x78], rdx
mov rsi, rcx
lea r8, [rsp + 0x40]
call fcn.140084170
cmp eax, 3
jne 0x140084d21
mov qword [rbp - 0x20], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov qword [rbp - 0x18], rax
lea rdx, [0x1401115f0]
mov rcx, rsi
call fcn.140056b10
mov r15d, 1
xor r14d, r14d
test rax, rax
je 0x140084359
cmp byte [rsi + 0x7fd0], r14b
jne 0x140084359
xor edx, edx
lea rcx, [rbp + 0x210]
call fcn.14007c450
nop
mov r8, qword [rsi + 0x6898]
mov rdx, qword [rsi + 0x6890]
lea rcx, [rbp + 0x210]
call fcn.14007c7bc
lea r8d, [r15 + 7]
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x210]
call fcn.14007c5ac
lea rcx, [rbp + 0x210]
call fcn.14007c534
mov ebx, eax
mov dword [rsp + 0x44], ebx
lea rcx, [rbp + 0x210]
call fcn.14007c57c
mov r12, rax
mov qword [rsp + 0x68], rax
mov r13b, r15b
lea rcx, [rbp + 0x210]
call fcn.140003ea4
jmp 0x140084654
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsi + 0x7fc8]
mov rcx, rsi
call qword [rax + 0x18]
mov edx, 0x78
mov rcx, rsi
call fcn.1400569d0
test rax, rax
je 0x1400843a6
cmp byte [rsi + 0x7fd0], r14b
jne 0x1400843a6
movzx ebx, word [rsi + 0x7bc6]
mov dword [rsp + 0x44], ebx
mov r12d, dword [rsi + 0x7bc8]
mov qword [rsp + 0x68], r12
mov r13b, r14b
jmp 0x140084654
cmp byte [rsp + 0x40], r14b
je 0x1400843c9
cmp byte [rsi + 0x7fc4], r14b
je 0x1400843c9
lea r8, [rsi + 0x26]
mov rdx, r15
xor ecx, ecx
call fcn.140085214
jmp 0x140084d0d
mov qword [rsp + 0x58], r14
mov qword [rsi + 0x7fa8], r14
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x18]
mov rax, qword [rsi]
mov r8d, 0x2000
lea rdx, [rbp + 0x490]
mov rcx, rsi
call qword [rax + 0x10]
mov ebx, dword [rsp + 0x50]
mov r12, qword [rbp + 0x280]
mov r13b, byte [rsp + 0x40]
mov dword [rsp + 0x44], ebx
test eax, eax
je 0x140084613
mov byte [rsp + 0x40], r13b
mov edi, r14d
mov dword [rsp + 0x4c], r14d
add eax, 0xffffffce
mov dword [rsp + 0x48], eax
test eax, eax
jle 0x1400845db
lea r13, [rbp + 0x492]
cmp byte [r13], 0x7a
jne 0x140084483
mov rax, qword [r13 + 0x20]
cmp rax, qword [str.Protect]
jne 0x14008447f
movzx ebx, byte [r13 - 1]
movzx edi, byte [r13 - 2]
mov r8d, 0x34
mov rdx, r13
or ecx, 0xffffffff
call fcn.14005e628
mov edx, ebx
shl edx, 8
add edx, edi
not edx
xor eax, edx
movzx eax, ax
test eax, eax
je 0x1400844e2
mov edi, dword [rsp + 0x4c]
jmp 0x1400844c7
mov eax, dword [rsp + 0x48]
cmp byte [r13], 0x78
jne 0x1400844cb
mov rax, qword [r13 + 0x10]
cmp rax, qword [str.Protect_]
jne 0x1400844c7
movzx ecx, byte [r13 - 1]
shl ecx, 8
movzx eax, byte [r13 - 2]
add ecx, eax
not ecx
movzx ebx, cx
mov r8d, 0x18
mov rdx, r13
or ecx, 0xffffffff
call fcn.14005e628
movzx ecx, ax
cmp ebx, ecx
je 0x14008457d
mov eax, dword [rsp + 0x48]
add edi, r15d
mov dword [rsp + 0x4c], edi
add r13, r15
cmp edi, eax
jge 0x1400845d2
jmp 0x140084438
movzx ebx, byte [r13 + 0x2b]
shl ebx, 8
movzx eax, byte [r13 + 0x2a]
add ebx, eax
shl ebx, 8
movzx eax, byte [r13 + 0x29]
add ebx, eax
shl ebx, 8
movzx eax, byte [r13 + 0x28]
add ebx, eax
mov dword [rsp + 0x44], ebx
movzx ecx, byte [r13 + 0x33]
shl rcx, 8
movzx eax, byte [r13 + 0x32]
add rcx, rax
shl rcx, 8
movzx eax, byte [r13 + 0x31]
add rcx, rax
shl rcx, 8
movzx eax, byte [r13 + 0x30]
add rcx, rax
movzx r12d, byte [r13 + 0x2f]
shl r12, 8
movzx eax, byte [r13 + 0x2e]
add r12, rax
shl r12, 8
movzx eax, byte [r13 + 0x2d]
add r12, rax
shl r12, 8
shl rcx, 0x20
add r12, rcx
movzx eax, byte [r13 + 0x2c]
add r12, rax
movsxd rax, dword [rsp + 0x4c]
add rax, qword [rsp + 0x58]
mov qword [rsi + 0x7fa8], rax
mov r13b, r15b
mov byte [rsp + 0x40], r15b
jmp 0x1400845db
movzx ebx, byte [r13 + 0xb]
shl ebx, 8
movzx eax, byte [r13 + 0xa]
add ebx, eax
mov dword [rsp + 0x44], ebx
movzx r12d, byte [r13 + 0xf]
shl r12, 8
movzx eax, byte [r13 + 0xe]
add r12, rax
shl r12, 8
movzx eax, byte [r13 + 0xd]
add r12, rax
shl r12, 8
movzx eax, byte [r13 + 0xc]
add r12, rax
movsxd rax, edi
add rax, qword [rsp + 0x58]
mov qword [rsi + 0x7fa8], rax
mov r13b, r14b
mov byte [rsp + 0x40], r14b
jmp 0x1400845db
mov ebx, dword [rsp + 0x44]
mov r13b, byte [rsp + 0x40]
add qword [rsp + 0x58], 0x1fce
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call qword [rax + 0x18]
mov rax, qword [rsi]
mov r8d, 0x2000
lea rdx, [rbp + 0x490]
mov rcx, rsi
call qword [rax + 0x10]
test eax, eax
jne 0x14008441a
mov qword [rsp + 0x68], r12
cmp qword [rsi + 0x7fa8], r14
jne 0x140084654
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x18]
mov qword [rbp + 0x270], r14
mov dword [rbp + 0x278], SHRestricted
lea rcx, [rbp + 0x210]
call fcn.14008e26c
mov r14d, r15d
jmp 0x140084d0d
xor r8d, r8d
xor edx, edx
mov cl, r15b
call fcn.140085214
or dword [0x1401791a0], 0xffffffff
mov rdi, qword [rsi + 0x7fa8]
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov qword [rbp - 0x80], rdx
mov dword [rsp + 0x50], r14d
neg r13b
sbb ecx, ecx
and ecx, 0x1c
add ecx, 0x1a
cmp byte [rsi + 0x7fc4], r14b
je 0x1400846a3
mov eax, ecx
not eax
add eax, r15d
and eax, 0xf
add eax, 8
add ecx, eax
mov eax, ecx
add rax, rdx
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x28], r14b
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov byte [rbp - 0x50], r14b
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.140082508
mov edx, ebx
shl edx, 9
lea rcx, [rbp + 0x210]
call fcn.140003dd8
nop
mov r8, qword [rbp + 0x218]
xor edx, edx
mov rcx, qword [rbp + 0x210]
call fcn.1400ed430
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x18]
mov r13d, 0x200
test rdi, rdi
jle 0x140084822
mov r13d, dword [rsp + 0x50]
mov r12d, r13d
call fcn.14008d414
mov rax, qword [rbp - 0x80]
mov r9, rax
sub r9, rdi
mov qword [rsp + 0x20], rax
mov r8d, 2
mov edx, r15d
mov rcx, rsi
call fcn.1400852b0
mov eax, r12d
cmp rax, qword [rbp - 0x40]
jae 0x1400847b0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov ecx, r12d
mov rdx, qword [rbp - 0x48]
cmp rax, qword [rdx + rcx*8]
jl 0x1400847b0
mov rax, qword [rsi]
mov rdx, qword [rbp - 0x70]
movsxd rdx, dword [rdx + rcx*4]
mov r8d, r15d
mov rcx, rsi
call qword [rax + 0x18]
mov ecx, r12d
mov rdx, qword [rbp - 0x70]
movsxd rax, dword [rdx + rcx*4]
sub rdi, rax
mov qword [rsp + 0x58], rdi
add r12d, r15d
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x58]
mov r8d, 0x200
lea rdx, [rbp + 0x290]
mov rcx, rsi
call fcn.140082dec
mov ecx, r13d
shl ecx, 9
add rcx, qword [rbp + 0x210]
mov edx, r14d
lea r8, [rbp + 0x290]
sub r8, rcx
mov al, byte [r8 + rcx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
cmp edx, 0x200
jb 0x1400847e9
lea eax, [r13 + 1]
cmp eax, ebx
sbb r13d, r13d
and r13d, eax
mov rdi, qword [rsp + 0x58]
test rdi, rdi
jg 0x140084742
mov r12, qword [rsp + 0x68]
mov r13d, 0x200
mov r9d, reloc.SHELL32.dll_SHRestricted
mov qword [rsp + 0x20], r9
lea r8d, [r9 - 0x62]
mov edx, r15d
mov rcx, rsi
call fcn.1400852b0
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x70]
lea rdx, [rcx + r12*2]
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x18]
test ebx, ebx
je 0x140084892
mov rdi, qword [rbp + 0x210]
lea r12, [rbp + 0x290]
sub r12, rdi
mov rax, qword [rsi]
mov r8, r13
lea rdx, [rbp + 0x290]
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, r13
mov al, byte [r12 + rdi]
xor byte [rdi], al
add rdi, r15
sub rcx, r15
jne 0x14008487c
sub r12, r13
sub rbx, r15
jne 0x140084866
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x18]
mov rax, qword [rbp - 0x80]
mov rbx, rax
mov qword [rsp + 0x58], rax
mov edi, r14d
mov dword [rsp + 0x4c], r14d
mov r12d, r14d
mov dword [rsp + 0x50], r14d
or r13d, 0xffffffff
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x68], r14d
test rax, rax
jle 0x140084ca9
mov r12d, dword [rsp + 0x44]
call fcn.14008d414
mov edi, dword [rsp + 0x68]
cmp rdi, qword [rbp - 0x40]
jae 0x140084928
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x48]
cmp rax, qword [rcx + rdi*8]
jl 0x140084928
mov rax, qword [rsi]
mov rcx, qword [rbp - 0x70]
movsxd rdx, dword [rcx + rdi*4]
mov r8d, r15d
mov rcx, rsi
call qword [rax + 0x18]
mov rcx, qword [rbp - 0x70]
movsxd rax, dword [rcx + rdi*4]
sub rbx, rax
mov qword [rsp + 0x58], rbx
add dword [rsp + 0x68], r15d
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x58]
mov ebx, 0x200
mov r8d, ebx
lea rdx, [rbp + 0x290]
mov rcx, rsi
call fcn.140082dec
mov eax, eax
mov qword [rbp + 0x280], rax
mov r8d, eax
lea rdx, [rbp + 0x290]
mov rcx, qword [rbp - 0x78]
call fcn.140068010
mov r8d, ebx
lea rdx, [rbp + 0x290]
or ecx, 0xffffffff
call fcn.14005e628
movzx edi, ax
mov qword [rbp - 8], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rbx, rax
mov qword [rbp], rax
mov r9, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [r9 + 0x18]
mov rcx, rsi
call fcn.140067958
movzx eax, al
mov dword [rsp + 0x44], eax
mov rcx, rsi
call fcn.140067958
movzx ecx, al
shl ecx, 8
add dword [rsp + 0x44], ecx
add qword [rsp + 0x70], 2
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x18]
mov ebx, dword [rsp + 0x44]
cmp ebx, edi
jne 0x1400849f9
mov r9b, r15b
lea r8, [rsp + 0x48]
mov edi, dword [rsp + 0x4c]
mov edx, edi
mov ecx, r13d
call fcn.140085180
jmp 0x140084c79
lea rax, [rbp + 0x10]
lea rcx, [rbp + 0x290]
mov edx, 4
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x140084a0d
mov edi, dword [rsp + 0x60]
shl edi, 9
add rdi, qword [rbp + 0x210]
mov edx, r14d
lea rcx, [rbp + 0x290]
lea rax, [rbp + 0x290]
sub rdi, rax
mov al, byte [rdi + rcx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
mov eax, 0x200
cmp edx, eax
jb 0x140084a79
mov r8d, eax
lea rdx, [rbp + 0x290]
or ecx, 0xffffffff
call fcn.14005e628
movzx ecx, ax
cmp ebx, ecx
je 0x140084c1a
mov ebx, 0x40
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x290]
lea rcx, [rbp + 0x10]
mov edx, 4
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x140084acf
test ebx, ebx
jle 0x140084b33
lea rcx, [rbp + 0x290]
mov edx, ebx
mov al, byte [rcx + rdi]
xor byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x140084b26
mov r8d, 0x200
lea rdx, [rbp + 0x290]
or ecx, 0xffffffff
call fcn.14005e628
movzx ecx, ax
cmp dword [rsp + 0x44], ecx
je 0x140084c1a
lea rax, [rbp + 0x290]
lea rcx, [rbp + 0x10]
mov edx, 4
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x140084b69
mov edx, ebx
mov r8d, 0x200
cmp ebx, r8d
jae 0x140084bd5
mov rcx, qword [rsp + 0x78]
mov al, byte [rcx + rdi]
xor byte [rcx], al
add edx, r15d
add rcx, r15
cmp edx, r8d
jb 0x140084bc5
lea rdx, [rbp + 0x290]
or ecx, 0xffffffff
call fcn.14005e628
movzx ecx, ax
cmp dword [rsp + 0x44], ecx
je 0x140084c1a
add ebx, 0x40
add qword [rsp + 0x78], 0x40
cmp ebx, 0x100
jl 0x140084abb
add dword [rsp + 0x50], r15d
cmp r13d, 0xffffffff
mov edi, dword [rsp + 0x4c]
cmove r13d, edi
mov dword [rsp + 0x48], r13d
jmp 0x140084c7e
mov r9b, r15b
lea r8, [rsp + 0x48]
mov edi, dword [rsp + 0x4c]
mov edx, edi
mov ecx, r13d
call fcn.140085180
lea edx, [rdi + 1]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov ecx, edi
call fcn.140085180
mov r13, qword [rbp - 0x78]
mov rbx, qword [r13]
mov rcx, r13
call qword [rbx + 0x20]
sub rax, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call qword [rbx + 0x18]
mov r8, qword [rbp + 0x280]
lea rdx, [rbp + 0x290]
mov rcx, r13
call fcn.140068010
mov r13d, dword [rsp + 0x48]
add edi, r15d
mov dword [rsp + 0x4c], edi
mov eax, dword [rsp + 0x60]
inc eax
cmp eax, r12d
sbb ecx, ecx
and ecx, eax
mov dword [rsp + 0x60], ecx
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jg 0x1400848dd
mov r12d, dword [rsp + 0x50]
mov r9b, r15b
lea r8, [rsp + 0x48]
mov edx, edi
mov ecx, r13d
call fcn.140085180
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, rsi
call qword [rax + 0x18]
movabs r8, 0x7fffffff7fffffff
mov rdx, qword [rbp - 0x78]
mov rcx, rsi
call fcn.14006757c
neg r12d
sbb eax, eax
and eax, 2
mov r14d, eax
lea rcx, [rbp + 0x210]
call fcn.140003ea4
nop
lea rcx, [rbp - 0x70]
call fcn.1400815fc
nop
lea rcx, [rbp - 0x48]
call fcn.14001c0a4
nop
mov r9, qword [rsi]
xor r8d, r8d
mov rdx, qword [rbp - 0x18]
mov rcx, rsi
call qword [r9 + 0x18]
mov eax, r14d
mov rcx, qword [rbp + 0x2490]
xor rcx, rsp
call fcn.1400ec220
mov rbx, qword [rsp + 0x25f0]
add rsp, 0x25a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret