Function at 0x14003e320
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2490]
mov eax, 0x2590
call fcn.140055f20
sub rsp, rax
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x25e0], rbx
mov rax, qword [0x140081ee0]
xor rax, rsp
mov qword [rbp + 0x2480], rax
mov qword [rbp - 0x78], rdx
mov rsi, rcx
lea r8, [rsp + 0x40]
call fcn.14003e248
cmp eax, 3
jne 0x14003ee08
mov qword [rbp - 0x30], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov qword [rbp - 0x28], rax
lea rdx, [0x14007018c]
mov rcx, rsi
call fcn.14000e8b8
mov ebx, pe_nt_image_headers64
mov r15d, 1
xor r14d, r14d
test rax, rax
je 0x14003e440
cmp byte [rsi + 0x7fa0], r14b
jne 0x14003e440
xor edx, edx
lea rcx, [rbp + 0x200]
call fcn.140036498
nop
mov r8, qword [rsi + 0x6870]
mov rdx, qword [rsi + 0x6868]
lea rcx, [rbp + 0x200]
call fcn.14003674c
lea r8d, [r15 + 7]
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x200]
call fcn.140036594
lea rcx, [rbp + 0x200]
call fcn.14003651c
mov r12d, eax
lea rcx, [rbp + 0x200]
call fcn.140036564
mov rdi, rax
mov qword [rsp + 0x58], rax
mov r13b, r15b
mov rcx, qword [rbp + 0x200]
test rcx, rcx
je 0x14003e70f
call fcn.14005a938
jmp 0x14003e70f
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsi + 0x7f98]
mov rcx, rsi
call qword [rax + 0x18]
mov edx, 0x78
mov rcx, rsi
call fcn.14000e778
test rax, rax
je 0x14003e489
cmp byte [rsi + 0x7fa0], r14b
jne 0x14003e489
movzx r12d, word [rsi + 0x7b96]
mov edi, dword [rsi + 0x7b98]
mov qword [rsp + 0x58], rdi
mov r13b, r14b
jmp 0x14003e70f
cmp byte [rsp + 0x40], r14b
je 0x14003e4ac
cmp byte [rsi + 0x7f94], r14b
je 0x14003e4ac
lea r8, [rsi + 0x26]
mov rdx, r15
xor ecx, ecx
call fcn.14003f304
jmp 0x14003e707
mov qword [rsp + 0x50], r14
mov qword [rsi + 0x7f78], 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 + 0x480]
mov rcx, rsi
call qword [rax + 0x10]
mov r12d, dword [rsp + 0x48]
mov rdi, qword [rbp + 0x270]
mov r13b, byte [rsp + 0x40]
mov qword [rsp + 0x58], rdi
test eax, eax
mov ecx, eax
je 0x14003e6d0
mov eax, r14d
mov dword [rsp + 0x44], eax
add ecx, 0xffffffce
mov dword [rsp + 0x48], ecx
test ecx, ecx
jle 0x14003e696
lea rdi, [rbp + 0x482]
cmp byte [rdi], 0x7a
jne 0x14003e55d
mov rax, qword [rdi + 0x20]
cmp rax, qword [str.Protect]
jne 0x14003e559
movzx eax, byte [rdi - 1]
movzx ecx, bx
mov ebx, eax
imul ebx, ecx
movzx eax, byte [rdi - 2]
add bx, ax
not bx
mov r8d, 0x34
mov rdx, rdi
or ecx, 0xffffffff
call fcn.140017ac0
cmp bx, ax
je 0x14003e5c1
jmp 0x14003e59d
mov eax, dword [rsp + 0x44]
cmp byte [rdi], 0x78
jne 0x14003e5aa
mov rax, qword [rdi + 0x10]
cmp rax, qword [str.Protect_]
jne 0x14003e5a6
movzx ecx, byte [rdi - 1]
shl ecx, 8
movzx eax, byte [rdi - 2]
add ecx, eax
not ecx
movzx ebx, cx
mov r8d, 0x18
mov rdx, rdi
or ecx, 0xffffffff
call fcn.140017ac0
movzx ecx, ax
cmp ebx, ecx
je 0x14003e647
mov ebx, pe_nt_image_headers64
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x44]
add eax, r15d
mov dword [rsp + 0x44], eax
add rdi, r15
cmp eax, ecx
jge 0x14003e691
jmp 0x14003e519
movzx r12d, byte [rdi + 0x2b]
shl r12d, 8
movzx eax, byte [rdi + 0x2a]
add r12d, eax
shl r12d, 8
movzx eax, byte [rdi + 0x29]
add r12d, eax
shl r12d, 8
movzx eax, byte [rdi + 0x28]
add r12d, eax
movzx edx, byte [rdi + 0x33]
shl edx, 8
movzx eax, byte [rdi + 0x32]
add edx, eax
shl edx, 8
movzx eax, byte [rdi + 0x31]
add edx, eax
shl edx, 8
movzx eax, byte [rdi + 0x30]
add edx, eax
movzx ecx, byte [rdi + 0x2f]
shl ecx, 8
movzx eax, byte [rdi + 0x2e]
add ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0x2d]
add ecx, eax
shl ecx, 8
movzx edi, byte [rdi + 0x2c]
add edi, ecx
shl rdx, 0x20
add rdi, rdx
mov qword [rsp + 0x58], rdi
movsxd rax, dword [rsp + 0x44]
add rax, qword [rsp + 0x50]
mov qword [rsi + 0x7f78], rax
mov r13b, r15b
jmp 0x14003e696
movzx r12d, byte [rdi + 0xb]
shl r12d, 8
movzx eax, byte [rdi + 0xa]
add r12d, eax
movzx ecx, byte [rdi + 0xf]
shl ecx, 8
movzx eax, byte [rdi + 0xe]
add ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0xd]
add ecx, eax
shl ecx, 8
movzx edi, byte [rdi + 0xc]
add edi, ecx
mov qword [rsp + 0x58], rdi
movsxd rax, dword [rsp + 0x44]
add rax, qword [rsp + 0x50]
mov qword [rsi + 0x7f78], rax
mov r13b, r14b
jmp 0x14003e696
mov rdi, qword [rsp + 0x58]
add qword [rsp + 0x50], 0x1fce
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call qword [rax + 0x18]
mov rax, qword [rsi]
mov r8d, 0x2000
lea rdx, [rbp + 0x480]
mov rcx, rsi
call qword [rax + 0x10]
mov ebx, pe_nt_image_headers64
jmp 0x14003e4f2
cmp qword [rsi + 0x7f78], r14
jne 0x14003e70f
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x18]
mov qword [rbp + 0x260], r14
mov dword [rbp + 0x268], 0x61
lea rcx, [rbp + 0x200]
call fcn.1400479a4
mov r14d, r15d
mov ebx, r14d
jmp 0x14003edf4
xor r8d, r8d
xor edx, edx
mov cl, r15b
call fcn.14003f304
or dword [0x14009487c], 0xffffffff
lea rcx, [0x140070210]
call fcn.14001796c
mov rbx, qword [rsi + 0x7f78]
mov qword [rsp + 0x50], rbx
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x48], r14d
neg r13b
sbb ecx, ecx
and ecx, 0x1c
add ecx, 0x1a
cmp byte [rsi + 0x7f94], r14b
je 0x14003e767
mov eax, ecx
not eax
add eax, r15d
and eax, 0xf
add eax, 8
add ecx, eax
movsxd rax, ecx
add rax, rbx
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x200], r14
mov qword [rbp + 0x208], r14
mov qword [rbp + 0x210], r14
mov qword [rbp + 0x218], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x200]
mov rcx, rsi
call fcn.14003c67c
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov edx, r12d
shl edx, 9
lea rcx, [rbp - 0x70]
call fcn.140001858
nop
mov r8, qword [rbp - 0x68]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call fcn.140058f40
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x18]
test rbx, rbx
jle 0x14003e8ec
mov r13d, dword [rsp + 0x48]
mov edi, r13d
call fcn.140046bb4
mov rax, qword [rbp - 0x80]
mov r9, rax
sub r9, rbx
mov qword [rsp + 0x20], rax
mov r8d, 2
mov edx, r15d
mov rcx, rsi
call fcn.14003f3a0
mov eax, edi
cmp rax, qword [rbp + 0x208]
jae 0x14003e882
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov ecx, edi
mov rdx, qword [rbp + 0x200]
cmp rax, qword [rdx + rcx*8]
jl 0x14003e882
mov rax, qword [rsi]
mov rdx, qword [rbp - 0x50]
movsxd rdx, dword [rdx + rcx*4]
mov r8d, r15d
mov rcx, rsi
call qword [rax + 0x18]
mov ecx, edi
mov rdx, qword [rbp - 0x50]
movsxd rax, dword [rdx + rcx*4]
sub rbx, rax
mov qword [rsp + 0x50], rbx
add edi, r15d
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x50]
mov ebx, 0x200
mov r8d, ebx
lea rdx, [rbp + 0x280]
mov rcx, rsi
call fcn.14003cec0
mov ecx, r13d
shl ecx, 9
add rcx, qword [rbp - 0x70]
mov edx, r14d
lea r8, [rbp + 0x280]
sub r8, rcx
mov al, byte [r8 + rcx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
movsxd rax, edx
cmp rax, rbx
jb 0x14003e8ba
add r13d, r15d
cmp r13d, r12d
sbb eax, eax
and r13d, eax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jg 0x14003e811
mov rdi, qword [rsp + 0x58]
mov r9d, 0x64
mov qword [rsp + 0x20], r9
lea r8d, [r9 - 0x62]
mov edx, r15d
mov rcx, rsi
call fcn.14003f3a0
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x70]
lea rdx, [rcx + rdi*2]
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x18]
test r12d, r12d
je 0x14003e965
mov rbx, qword [rbp - 0x70]
lea rdi, [rbp + 0x280]
sub rdi, rbx
mov r13d, r12d
mov edx, 0x200
mov rax, qword [rsi]
mov r8, rdx
lea rdx, [rbp + 0x280]
mov rcx, rsi
call qword [rax + 0x10]
mov edx, 0x200
mov ecx, edx
mov al, byte [rdi + rbx]
xor byte [rbx], al
add rbx, r15
sub rcx, r15
jne 0x14003e950
sub rdi, rdx
sub r13, r15
jne 0x14003e936
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 + 0x50], rax
mov edi, r14d
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x58], r14d
or r13d, 0xffffffff
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x64], r14d
test rax, rax
jle 0x14003ed7c
mov qword [rbp - 0x18], rsi
call fcn.140046bb4
mov edi, dword [rsp + 0x64]
cmp rdi, qword [rbp + 0x208]
jae 0x14003e9fd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x200]
cmp rax, qword [rcx + rdi*8]
jl 0x14003e9fd
mov rax, qword [rsi]
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + rdi*4]
mov r8d, r15d
mov rcx, rsi
call qword [rax + 0x18]
mov rcx, qword [rbp - 0x50]
movsxd rax, dword [rcx + rdi*4]
sub rbx, rax
mov qword [rsp + 0x50], rbx
add dword [rsp + 0x64], r15d
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x50]
mov ebx, 0x200
mov r8d, ebx
lea rdx, [rbp + 0x280]
mov rcx, rsi
call fcn.14003cec0
mov eax, eax
mov qword [rbp + 0x270], rax
mov r8d, eax
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp - 0x78]
call fcn.1400212ac
mov r8d, ebx
lea rdx, [rbp + 0x280]
or ecx, 0xffffffff
call fcn.140017ac0
movzx edi, ax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rbx, rax
mov qword [rbp - 0x10], 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.140020c04
movzx eax, al
mov dword [rsp + 0x60], eax
mov rcx, rsi
call fcn.140020c04
movzx ecx, al
shl ecx, 8
add dword [rsp + 0x60], ecx
add qword [rsp + 0x70], 2
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x18]
nop
mov ebx, dword [rsp + 0x60]
cmp ebx, edi
jne 0x14003eacb
mov r9b, r15b
lea r8, [rsp + 0x44]
mov edi, dword [rsp + 0x68]
mov edx, edi
mov ecx, r13d
call fcn.14003f270
jmp 0x14003ed50
lea rax, [rbp]
lea rcx, [rbp + 0x280]
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 0x14003eadf
mov edi, dword [rsp + 0x48]
shl edi, 9
add rdi, qword [rbp - 0x70]
mov edx, r14d
lea rcx, [rbp + 0x280]
lea rax, [rbp + 0x280]
sub rdi, rax
mov r8d, 0x200
mov al, byte [rdi + rcx]
xor byte [rcx], al
add edx, r15d
add rcx, r15
movsxd rax, edx
cmp rax, r8
jb 0x14003eb4e
lea rdx, [rbp + 0x280]
or ecx, 0xffffffff
call fcn.140017ac0
movzx ecx, ax
cmp ebx, ecx
je 0x14003ecf1
mov ebx, 0x40
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x280]
lea rcx, [rbp]
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 0x14003eba0
test ebx, ebx
jle 0x14003ec04
lea rcx, [rbp + 0x280]
mov edx, ebx
mov al, byte [rcx + rdi]
xor byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x14003ebf7
mov r8d, 0x200
lea rdx, [rbp + 0x280]
or ecx, 0xffffffff
call fcn.140017ac0
movzx ecx, ax
cmp dword [rsp + 0x60], ecx
je 0x14003ecf1
lea rax, [rbp + 0x280]
lea rcx, [rbp]
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 0x14003ec3a
mov edx, ebx
movsxd rax, ebx
mov r8d, 0x200
cmp rax, r8
jae 0x14003ecac
mov rcx, qword [rsp + 0x78]
mov al, byte [rcx + rdi]
xor byte [rcx], al
add edx, r15d
add rcx, r15
movsxd rax, edx
cmp rax, r8
jb 0x14003ec99
lea rdx, [rbp + 0x280]
or ecx, 0xffffffff
call fcn.140017ac0
movzx ecx, ax
cmp dword [rsp + 0x60], ecx
je 0x14003ecf1
add ebx, 0x40
add qword [rsp + 0x78], 0x40
cmp ebx, 0x100
jl 0x14003eb8c
add dword [rsp + 0x58], r15d
cmp r13d, 0xffffffff
mov edi, dword [rsp + 0x68]
cmove r13d, edi
mov dword [rsp + 0x44], r13d
jmp 0x14003ed55
mov r9b, r15b
lea r8, [rsp + 0x44]
mov edi, dword [rsp + 0x68]
mov edx, edi
mov ecx, r13d
call fcn.14003f270
lea edx, [rdi + 1]
xor r9d, r9d
lea r8, [rsp + 0x44]
mov ecx, edi
call fcn.14003f270
mov r13, qword [rbp - 0x78]
mov rbx, qword [r13]
mov rcx, r13
call qword [rbx + 0x20]
sub rax, qword [rbp + 0x270]
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call qword [rbx + 0x18]
mov r8, qword [rbp + 0x270]
lea rdx, [rbp + 0x280]
mov rcx, r13
call fcn.1400212ac
mov r13d, dword [rsp + 0x44]
add edi, r15d
mov dword [rsp + 0x68], edi
mov ecx, dword [rsp + 0x48]
add ecx, r15d
cmp ecx, r12d
sbb eax, eax
and eax, ecx
mov dword [rsp + 0x48], eax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jg 0x14003e9ac
mov r9b, r15b
lea r8, [rsp + 0x44]
mov edx, edi
mov ecx, r13d
call fcn.14003f270
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.140020834
neg dword [rsp + 0x58]
sbb ebx, ebx
and ebx, 2
cmp qword [rbp - 0x70], r14
je 0x14003edcd
mov rcx, qword [rbp - 0x70]
call fcn.14005a938
nop
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x14003eddf
mov rcx, rax
call fcn.14005a938
nop
mov rax, qword [rbp + 0x200]
test rax, rax
je 0x14003edf4
mov rcx, rax
call fcn.14005a938
nop
mov r9, qword [rsi]
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
mov rcx, rsi
call qword [r9 + 0x18]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x2480]
xor rcx, rsp
call fcn.140055f90
mov rbx, qword [rsp + 0x25e0]
add rsp, 0x2590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret