Function at 0x140013a40
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x19a0]
mov eax, 0x1aa0
call fcn.140019490
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1ad8], rbx
mov qword [rsp + 0x1ae0], rsi
mov qword [rsp + 0x1ae8], rdi
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rbp + 0x1990], rax
mov r12, rcx
mov qword [rbp - 0x70], rcx
mov rdx, qword [rcx]
mov r9, qword [rcx + 8]
cmp rdx, r9
jne 0x140013aaa
xor al, al
jmp 0x140014275
test rdx, rdx
je 0x140013aa3
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140013aa3
mov eax, dword [rdx + 0x3c]
mov qword [rsp + 0x50], rax
lea rcx, [rax + rdx]
test rcx, rcx
je 0x140013aa3
cmp dword [rcx], 0x4550
jne 0x140013aa3
xor esi, esi
mov word [rsp + 0x5d], si
mov byte [rsp + 0x5f], sil
mov eax, dword [str..gst]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x140093bf8]
mov byte [rsp + 0x5c], al
lea r8, [rcx + 0x108]
test r8, r8
je 0x140013aa3
mov ebx, dword [r8 + 8]
mov dword [rsp + 0x34], ebx
movzx eax, word [rcx + 6]
dec ax
movzx eax, ax
mov qword [rbp - 0x68], rax
lea rax, [rax + rax*4]
lea r10, [rcx + 0x108]
lea r10, [r10 + rax*8]
test r10, r10
je 0x140013aa3
mov r11d, dword [r10 + 0xc]
add r11d, 0x1000
mov dword [rsp + 0x64], r11d
mov r15d, dword [r8 + 0x10]
mov qword [rbp - 0x80], r15
mov r13d, dword [r10 + 0x14]
add r13d, dword [r10 + 0x10]
mov dword [rbp + 0x594], r13d
mov edi, r13d
mov dword [rsp + 0x6c], r13d
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov eax, dword [r8 + 0x24]
mov dword [rsp + 0x7c], eax
mov esi, dword [r8 + 0x14]
mov eax, r11d
sub eax, dword [r8 + 0xc]
mov dword [rsp + 0x40], eax
sub r9, rdx
lea rdx, [r15 + r9]
mov rcx, r12
call fcn.140014510
mov rax, qword [r12]
mov qword [rsp + 0x48], rsi
mov r8d, ebx
lea rdx, [rsi + rax]
lea rcx, [rax + r13]
call fcn.14001e7a0
mov rcx, qword [r12]
add rcx, rsi
mov r8d, r15d
xor edx, edx
call fcn.14001ec00
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp + 0x5e0]
call fcn.14001bd10
add rdi, qword [r12]
xor r15d, r15d
mov dword [rbp + 0x590], r15d
xor eax, eax
mov qword [rbp + 0x5a0], rax
mov qword [rbp + 0x5b8], rax
mov qword [rbp + 0x5c0], rax
mov qword [rbp + 0x5c8], rax
mov qword [rbp + 0x5d0], rax
mov qword [rbp + 0x5d8], rax
xorps xmm0, xmm0
movss dword [rbp + 0x5a0], xmm0
mov qword [rbp + 0x5a8], r15
mov qword [rbp + 0x5b0], r15
xor r8d, r8d
xor edx, edx
call fcn.140014910
mov qword [rbp + 0x5a8], rax
mov qword [rbp + 0x5b8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x5c0], xmm0
movss xmm0, dword [0x1400946e8]
movss dword [rbp + 0x5a0], xmm0
lea edx, [r15 + 8]
lea rcx, [rbp + 0x5a0]
call fcn.1400096b0
nop
call fcn.140017ce8
mov ecx, eax
movabs rax, 0x5555555555555555
mov qword [rbp + 0x1988], rax
mov qword [rbp + 0x608], rcx
lea edx, [r15 + 1]
lea r8, [rbp + 0x610]
mov r9d, 0x137
movabs r10, 0x5851f42d4c957f2d
nop dword [rax + rax]
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, r10
add rcx, rdx
mov qword [r8], rcx
inc rdx
lea r8, [r8 + 8]
sub r9, 1
jne 0x140013ca0
mov dword [rbp + 0x600], 0x138
mov r14d, r15d
mov dword [rsp + 0x38], r15d
mov eax, r13d
sub eax, esi
mov dword [rsp + 0x3c], eax
mov r8d, ebx
sub r8d, dword [rbp + 0x590]
lea r9, [rbp - 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x5e0]
call fcn.14001bc40
shr eax, 0x1f
not eax
test al, 1
je 0x140013fa5
nop word [rax + rax]
mov r13, rdi
sub r13, qword [r12]
lea rcx, [rbp + 0x600]
call fcn.140014950
and al, 7
add al, 3
movzx r15d, al
mov ecx, r15d
call fcn.140023bcc
mov rsi, rax
mov byte [rax], 0xeb
lea ecx, [r15 - 2]
mov byte [rax + 1], cl
mov ebx, 2
cmp rbx, r15
je 0x140013d67
nop word [rax + rax]
lea rcx, [rbp + 0x600]
call fcn.140014950
mov byte [rsi + rbx], al
inc rbx
cmp rbx, r15
jne 0x140013d50
mov rdx, qword [r12]
add rdx, r13
lea r9, [r15 + rsi]
mov r8, rsi
mov rcx, r12
call fcn.1400146a0
mov rcx, rsi
call fcn.140023214
test byte [rbp + 0x3e0], 0x80
je 0x140013ecf
cmp dword [rbp + 0x48c], 1
jne 0x140013ecf
cmp byte [r15 + rdi], 0xeb
jne 0x140013df7
mov byte [rsp + 0x30], 5
mov ecx, 5
call fcn.140023bcc
mov rsi, rax
mov byte [rax], 0xe9
movzx ecx, byte [rbp - 0x48]
add rcx, r15
cmp byte [rcx + rdi - 1], 0x7f
ja 0x140013ddf
xor eax, eax
mov dword [rsi + 1], eax
movzx ecx, byte [rbp - 0x48]
add rcx, r15
movzx ecx, byte [rcx + rdi - 1]
mov byte [rsi + 1], cl
jmp 0x140013e41
mov dword [rax + 1], 0xffffffff
movzx eax, byte [rbp - 0x48]
add rax, r15
movzx eax, byte [rax + rdi - 1]
mov byte [rsi + 1], al
jmp 0x140013e41
mov byte [rsp + 0x30], 6
mov ecx, 6
call fcn.140023bcc
mov rsi, rax
mov byte [rax], 0xf
movzx eax, byte [r15 + rdi]
add al, 0x10
mov byte [rsi + 1], al
movzx eax, byte [rbp - 0x48]
add rax, r15
cmp byte [rax + rdi - 1], 0x7f
ja 0x140013e2b
xor eax, eax
mov dword [rsi + 2], eax
jmp 0x140013e32
mov dword [rsi + 2], 0xffffffff
movzx eax, byte [rbp - 0x48]
add rax, r15
movzx eax, byte [rax + rdi - 1]
mov byte [rsi + 2], al
mov r8, qword [r12]
lea rcx, [r8 + r13]
movzx edx, byte [rbp - 0x48]
add rdx, rcx
add rdx, r15
lea rbx, [rcx + r15]
cmp rbx, rdx
je 0x140013e7c
mov rdi, qword [r12 + 8]
sub rdi, rdx
mov r8, rdi
mov rcx, rbx
call fcn.14001e7a0
lea rax, [rdi + rbx]
mov qword [r12 + 8], rax
mov r8, qword [r12]
lea rdx, [r8 + r13]
add rdx, r15
movzx ebx, byte [rsp + 0x30]
lea r9, [rsi + rbx]
mov r8, rsi
mov rcx, r12
call fcn.1400146a0
mov rcx, rsi
call fcn.140023214
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
movzx ecx, byte [rbp - 0x48]
mov byte [rax + 0xc], cl
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov byte [rax + 8], bl
mov rax, qword [r12]
mov rcx, qword [rsp + 0x48]
lea rbx, [rcx + rax]
mov qword [rbp - 0x78], rbx
mov rsi, qword [rbp - 0x80]
add rsi, rcx
add rsi, rax
movzx edi, byte [rbp - 0x48]
add rdi, r15
add rdi, r13
add rdi, rax
mov r14d, dword [rsp + 0x38]
add r14d, r15d
mov dword [rsp + 0x38], r14d
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov byte [rax + 4], r15b
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
movzx ecx, byte [rax + 8]
test cl, cl
je 0x140013f4a
sub cl, byte [rbp - 0x48]
movzx eax, cl
add rdi, rax
movzx eax, cl
add r14d, eax
mov dword [rsp + 0x38], r14d
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov dword [rax], r14d
movzx eax, byte [rbp - 0x48]
mov ecx, dword [rbp + 0x590]
add ecx, eax
mov dword [rbp + 0x590], ecx
mov ebx, dword [rsp + 0x34]
mov r8d, ebx
sub r8d, ecx
lea r9, [rbp - 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x5e0]
call fcn.14001bc40
shr eax, 0x1f
not eax
test al, 1
jne 0x140013d10
mov r13, qword [rbp - 0x78]
xor r15d, r15d
jmp 0x140013faf
mov rsi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x50]
mov dword [rbp + 0x590], r15d
mov dword [rsp + 0x48], r15d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov rdx, qword [r12]
mov ecx, dword [rbp + 0x594]
movzx edi, byte [rax + 4]
add rdi, rcx
add rdi, rdx
lea r15, [rcx + rdx]
mov r8d, ebx
sub r8d, dword [rbp + 0x590]
lea r9, [rbp - 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x5e0]
call fcn.14001bc40
shr eax, 0x1f
not eax
test al, 1
je 0x1400141cd
mov r14d, dword [rsp + 0x40]
mov r12d, dword [rsp + 0x3c]
nop dword [rax + rax]
test byte [rbp + 0x3e0], 0x80
je 0x140014110
movzx eax, byte [rbp + 0x571]
movzx ecx, byte [rbp + 0x559]
add rax, rdi
movsxd rax, dword [rcx + rax]
movzx ebx, byte [rbp - 0x48]
add rax, rdi
add rbx, rax
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov ecx, dword [rax]
mov rdx, rbx
sub rdx, rcx
mov rax, r12
sub rdx, r12
cmp rdx, r13
jb 0x1400140d1
cmp rdx, rsi
jae 0x1400140d1
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
sub ebx, r15d
sub ebx, dword [rax]
mov dword [rbp + 0x594], ebx
lea rdx, [rbp + 0x594]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
movzx ecx, byte [rbp - 0x48]
mov edx, r15d
sub edx, ecx
sub edx, edi
add edx, dword [rax]
add edx, dword [rbp + 0x594]
movzx eax, byte [rbp + 0x571]
movzx ecx, byte [rbp + 0x559]
add rax, rdi
mov dword [rcx + rax], edx
jmp 0x14001410c
movzx eax, byte [rbp - 0x38]
test al, al
je 0x1400140ea
movzx eax, al
imul rcx, rax, 0x68
cmp dword [rbp + rcx - 0x6c], 0xcb
je 0x14001410c
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov edx, dword [rax]
movzx ecx, byte [rbp + 0x559]
add edx, r14d
sub dword [rcx + rdi], edx
mov ebx, dword [rsp + 0x34]
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
cmp byte [rax + 0xc], 0
jne 0x140014152
movzx eax, byte [rbp - 0x48]
add dword [rbp + 0x590], eax
call fcn.1400143e0
movzx ecx, byte [rax + 4]
movzx eax, byte [rbp - 0x48]
add eax, ecx
jmp 0x140014197
call fcn.1400143e0
movsx ebx, byte [rax + 8]
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
movzx eax, byte [rax + 0xc]
add dword [rbp + 0x590], eax
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
movzx eax, byte [rax + 4]
add eax, ebx
cdqe
mov ebx, dword [rsp + 0x34]
add rdi, rax
mov r8d, ebx
sub r8d, dword [rbp + 0x590]
lea r9, [rbp - 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x5e0]
call fcn.14001bc40
shr eax, 0x1f
not eax
test al, 1
jne 0x140014020
mov r12, qword [rbp - 0x70]
mov r14d, dword [rsp + 0x38]
add ebx, r14d
mov dword [rsp + 0x60], ebx
mov rsi, qword [rbp - 0x80]
add esi, r14d
mov dword [rsp + 0x68], esi
mov rdx, qword [r12]
mov rax, qword [rbp - 0x68]
lea rax, [rax + rax*4]
mov rdi, qword [rsp + 0x50]
lea rcx, [rdi + rax*8]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rcx + rdx + 0x130], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rcx + rdx + 0x140], xmm1
movsd xmm0, qword [rsp + 0x78]
movsd qword [rcx + rdx + 0x150], xmm0
mov rbx, qword [r12]
inc word [rdi + rbx + 6]
mov eax, dword [rsp + 0x40]
add dword [rdi + rbx + 0x28], eax
mov eax, dword [rdi + rbx + 0x28]
sub eax, dword [rsp + 0x64]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rbp + 0x5a0]
call fcn.1400143e0
mov ecx, dword [rax]
add dword [rdi + rbx + 0x28], ecx
mov eax, dword [rdi + rbx + 0x50]
lea ecx, [rax + 0xfff]
add ecx, esi
and ecx, 0xfffff000
mov dword [rdi + rbx + 0x50], ecx
lea rcx, [rbp + 0x5a0]
call fcn.1400142c0
mov al, 1
mov rcx, qword [rbp + 0x1990]
xor rcx, rsp
call fcn.1400187d0
lea r11, [rsp + 0x1aa0]
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