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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a40]
mov eax, 0x1b40
call fcn.1400174e0
sub rsp, rax
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rbp + 0x1a30], rax
mov r12, rcx
mov qword [rbp - 0x70], rcx
mov r9, qword [rcx + 8]
mov rdx, qword [rcx]
cmp rdx, r9
je 0x140012ef1
test rdx, rdx
je 0x140012ef1
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140012ef1
mov eax, dword [rdx + 0x3c]
mov qword [rsp + 0x58], rax
lea rcx, [rdx + rax]
test rcx, rcx
je 0x140012ef1
cmp dword [rcx], 0x4550
jne 0x140012ef1
xor ebx, ebx
mov dword [rsp + 0x65], ebx
mov word [rsp + 0x69], bx
mov byte [rsp + 0x6b], bl
mov dword [rsp + 0x74], ebx
mov eax, dword [str..gst]
mov dword [rsp + 0x60], eax
movzx eax, byte [0x140098f68]
mov byte [rsp + 0x64], al
lea r8, [rcx + 0x108]
test r8, r8
je 0x140012ef1
mov r14d, dword [r8 + 8]
mov dword [rsp + 0x38], r14d
movzx eax, word [rcx + 6]
dec ax
movzx eax, ax
mov qword [rbp - 0x68], rax
lea r10, [rax*4 + 0x21]
add r10, rax
lea r10, [rcx + r10*8]
test r10, r10
je 0x140012ef1
mov r11d, dword [r10 + 0xc]
add r11d, 0x1000
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x6c], r11d
mov r13d, dword [r8 + 0x10]
mov qword [rbp - 0x78], r13
mov r15d, dword [r10 + 0x14]
add r15d, dword [r10 + 0x10]
mov dword [rbp + 0x634], r15d
mov dword [rsp + 0x74], r15d
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov eax, dword [r8 + 0x24]
mov dword [rbp - 0x7c], eax
mov esi, dword [r8 + 0x14]
mov eax, r11d
sub eax, dword [r8 + 0xc]
mov dword [rsp + 0x40], eax
mov rax, r9
sub rax, rdx
lea rcx, [rax + r13]
cmp rcx, rax
jae 0x14001276d
lea rax, [rdx + rcx]
mov qword [r12 + 8], rax
jmp 0x14001279f
jbe 0x14001279f
mov rax, qword [r12 + 0x10]
sub rax, rdx
cmp rcx, rax
jbe 0x140012789
mov rdx, rcx
mov rcx, r12
call fcn.140013750
jmp 0x14001279f
lea rbx, [r9 + r13]
mov r8, r13
xor edx, edx
mov rcx, r9
call fcn.14001d5c0
mov qword [r12 + 8], rbx
mov rax, qword [r12]
mov qword [rsp + 0x48], rsi
mov ebx, r15d
mov r8, r14
lea rdx, [rsi + rax]
lea rcx, [rax + r15]
call fcn.14001ce90
mov rcx, qword [r12]
add rcx, rsi
mov r8, r13
xor edx, edx
call fcn.14001d5c0
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp + 0x680]
call fcn.140019d20
mov rdi, qword [r12]
add rdi, rbx
xor ebx, ebx
mov dword [rbp + 0x630], ebx
xorps xmm0, xmm0
movups xmmword [rbp + 0x640], xmm0
movups xmmword [rbp + 0x650], xmm0
movups xmmword [rbp + 0x660], xmm0
movups xmmword [rbp + 0x670], xmm0
movss dword [rbp + 0x640], xmm0
mov qword [rbp + 0x648], rbx
mov qword [rbp + 0x650], rbx
lea ecx, [rbx + 0x28]
call fcn.140016bf0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp + 0x648], rax
mov qword [rbp + 0x658], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x660], xmm0
mov qword [rbp + 0x670], 7
mov qword [rbp + 0x678], 8
movss xmm0, dword [0x140099198]
movss dword [rbp + 0x640], xmm0
mov r8, rax
lea edx, [rbx + 0x10]
lea rcx, [rbp + 0x658]
call fcn.140008b70
nop
call fcn.140016590
mov edx, eax
movabs rax, 0x5555555555555555
mov qword [rbp + 0x1a28], rax
mov qword [rbp + 0x6a8], rdx
lea ecx, [rbx + 1]
movabs r8, 0x5851f42d4c957f2d
nop
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, r8
add rdx, rcx
mov qword [rbp + rcx*8 + 0x6a8], rdx
inc rcx
cmp rcx, 0x138
jb 0x1400128b0
mov dword [rbp + 0x6a0], 0x138
mov r13d, ebx
mov dword [rsp + 0x34], ebx
mov eax, r15d
sub eax, esi
mov dword [rsp + 0x50], eax
mov r8d, r14d
sub r8d, dword [rbp + 0x630]
lea r9, [rbp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140019c50
shr eax, 0x1f
not eax
test al, 1
je 0x140012bd1
nop dword [rax]
mov r13, rdi
sub r13, qword [r12]
lea rcx, [rbp + 0x6a0]
call fcn.140013890
and al, 7
add al, 3
movzx r15d, al
mov ecx, r15d
call fcn.140028178
mov rsi, rax
mov byte [rax], 0xeb
lea ecx, [r15 - 2]
mov byte [rax + 1], cl
mov ebx, 2
cmp rbx, r15
je 0x140012977
nop word [rax + rax]
lea rcx, [rbp + 0x6a0]
call fcn.140013890
mov byte [rbx + rsi], al
inc rbx
cmp rbx, r15
jne 0x140012960
lea r9, [r15 + rsi]
mov rdx, qword [r12]
add rdx, r13
mov r8, rsi
mov rcx, r12
call fcn.140013510
mov rcx, rsi
call fcn.1400274cc
test byte [rbp + 0x480], 0x80
je 0x140012aed
cmp dword [rbp + 0x52c], 1
jne 0x140012aed
cmp byte [r15 + rdi], 0xeb
jne 0x140012a07
mov byte [rsp + 0x30], 5
mov ecx, 5
call fcn.140028178
mov rsi, rax
mov byte [rax], 0xe9
movzx ecx, byte [rbp + 0x58]
add rcx, r15
cmp byte [rcx + rdi - 1], 0x7f
ja 0x1400129ef
xor eax, eax
mov dword [rsi + 1], eax
movzx ecx, byte [rbp + 0x58]
add rcx, r15
movzx eax, byte [rcx + rdi - 1]
mov byte [rsi + 1], al
jmp 0x140012a51
mov dword [rax + 1], 0xffffffff
movzx eax, byte [rbp + 0x58]
add rax, r15
movzx eax, byte [rax + rdi - 1]
mov byte [rsi + 1], al
jmp 0x140012a51
mov byte [rsp + 0x30], 6
mov ecx, 6
call fcn.140028178
mov rsi, rax
mov byte [rax], 0xf
movzx eax, byte [r15 + rdi]
add al, 0x10
mov byte [rsi + 1], al
movzx eax, byte [rbp + 0x58]
add rax, r15
cmp byte [rax + rdi - 1], 0x7f
ja 0x140012a3b
xor eax, eax
mov dword [rsi + 2], eax
jmp 0x140012a42
mov dword [rsi + 2], 0xffffffff
movzx eax, byte [rbp + 0x58]
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 + 0x58]
lea rdi, [r15 + rcx]
add rdx, r15
add rdx, rcx
cmp rdi, rdx
je 0x140012a8c
mov rbx, qword [r12 + 8]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.14001ce90
lea rax, [rbx + rdi]
mov qword [r12 + 8], rax
mov r8, qword [r12]
movzx ebx, byte [rsp + 0x30]
lea r9, [rsi + rbx]
lea rdx, [r15 + r8]
add rdx, r13
mov r8, rsi
mov rcx, r12
call fcn.140013510
mov rcx, rsi
call fcn.1400274cc
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
movzx eax, byte [rbp + 0x58]
mov byte [rcx + 0x20], al
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
mov byte [rcx + 0x1c], bl
mov rbx, qword [rsp + 0x48]
add rbx, qword [r12]
mov esi, dword [rbp - 0x78]
add rsi, rbx
movzx edi, byte [rbp + 0x58]
add rdi, r15
add rdi, qword [r12]
add rdi, r13
mov r13d, dword [rsp + 0x34]
add r13d, r15d
mov dword [rsp + 0x34], r13d
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
mov byte [rcx + 0x18], r15b
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
movzx edx, byte [rcx + 0x1c]
test dl, dl
je 0x140012b6b
sub dl, byte [rbp + 0x58]
movzx eax, dl
add rdi, rax
movzx eax, dl
add r13d, eax
mov dword [rsp + 0x34], r13d
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
mov dword [rcx + 0x14], r13d
movzx eax, byte [rbp + 0x58]
mov ecx, dword [rbp + 0x630]
add ecx, eax
mov dword [rbp + 0x630], ecx
mov r8d, dword [rsp + 0x38]
sub r8d, ecx
lea r9, [rbp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140019c50
shr eax, 0x1f
not eax
test al, 1
jne 0x140012920
mov r14, rbx
mov r15d, dword [rbp + 0x634]
xor ebx, ebx
jmp 0x140012bdb
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x58]
mov dword [rbp + 0x630], ebx
mov dword [rsp + 0x48], ebx
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rdx, qword [r12]
mov ecx, r15d
mov rax, qword [rax]
movzx edi, byte [rax + 0x18]
add rdi, rcx
add rdi, rdx
lea r15, [rcx + rdx]
mov r8d, dword [rsp + 0x38]
sub r8d, dword [rbp + 0x630]
lea r9, [rbp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140019c50
shr eax, 0x1f
not eax
test al, 1
je 0x140012e3c
mov r13d, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x40]
nop dword [rax + rax]
test byte [rbp + 0x480], 0x80
je 0x140012d60
movzx eax, byte [rbp + 0x611]
movzx ecx, byte [rbp + 0x5f9]
add rax, rdi
movsxd rax, dword [rcx + rax]
movzx ebx, byte [rbp + 0x58]
add rax, rdi
add rbx, rax
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
mov eax, dword [rcx + 0x14]
mov rcx, rbx
sub rcx, rax
mov eax, dword [rsp + 0x50]
sub rcx, rax
cmp rcx, r14
jb 0x140012d1a
cmp rcx, rsi
jae 0x140012d1a
lea r8, [rbp + 0x630]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
sub ebx, r15d
sub ebx, dword [rcx + 0x14]
mov dword [rbp + 0x634], ebx
lea r8, [rbp + 0x634]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
movzx eax, byte [rbp + 0x58]
mov edx, r15d
sub edx, eax
sub edx, edi
add edx, dword [rbp + 0x634]
add edx, dword [rcx + 0x14]
movzx eax, byte [rbp + 0x611]
movzx ecx, byte [rbp + 0x5f9]
add rax, rdi
mov dword [rcx + rax], edx
jmp 0x140012d60
movzx eax, byte [rbp + 0x68]
test al, al
jne 0x140012d28
lea rdx, [rbp - 0x50]
jmp 0x140012d3a
imul rcx, rax, 0x68
cmp dword [rbp + rcx + 0x34], 0xcb
je 0x140012d60
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x630]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
mov ecx, dword [rcx + 0x14]
movzx edx, byte [rbp + 0x5f9]
add ecx, r12d
sub dword [rdx + rdi], ecx
lea r8, [rbp + 0x630]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
lea r8, [rbp + 0x630]
cmp byte [rcx + 0x20], 0
lea rcx, [rbp + 0x640]
jne 0x140012db0
movzx eax, byte [rbp + 0x58]
add dword [rbp + 0x630], eax
lea rdx, [rbp + 0x20]
call fcn.140013050
mov rcx, qword [rax]
movzx edx, byte [rcx + 0x18]
movzx eax, byte [rbp + 0x58]
add eax, edx
jmp 0x140012e06
lea rdx, [rbp + 0x30]
call fcn.140013050
mov rcx, qword [rax]
movsx ebx, byte [rcx + 0x1c]
lea r8, [rbp + 0x630]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x20]
add dword [rbp + 0x630], eax
lea r8, [rbp + 0x630]
lea rdx, [rbp]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x18]
add eax, ebx
cdqe
add rdi, rax
mov r8d, r13d
sub r8d, dword [rbp + 0x630]
lea r9, [rbp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140019c50
shr eax, 0x1f
not eax
test al, 1
jne 0x140012c50
mov r12, qword [rbp - 0x70]
mov r13d, dword [rsp + 0x34]
mov eax, dword [rsp + 0x38]
add eax, r13d
mov dword [rsp + 0x68], eax
mov rsi, qword [rbp - 0x78]
add esi, r13d
mov dword [rsp + 0x70], esi
mov rax, qword [rbp - 0x68]
lea rcx, [rax + rax*4]
mov rax, qword [r12]
lea rdx, [rax + rcx*8]
movups xmm0, xmmword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
movups xmmword [rdx + rdi + 0x130], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rdx + rdi + 0x140], xmm1
movsd xmm0, qword [rbp - 0x80]
movsd qword [rdx + rdi + 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 + 0x3c]
mov dword [rsp + 0x3c], eax
lea r8, [rsp + 0x3c]
lea rdx, [rbp]
lea rcx, [rbp + 0x640]
call fcn.140013050
mov rcx, qword [rax]
mov ecx, dword [rcx + 0x14]
add dword [rdi + rbx + 0x28], ecx
mov ecx, dword [rdi + rbx + 0x50]
add ecx, 0xfff
add ecx, esi
and ecx, 0xfffff000
mov dword [rdi + rbx + 0x50], ecx
lea rcx, [rbp + 0x640]
call fcn.140012f40
mov al, 1
jmp 0x140012ef3
xor al, al
mov rcx, qword [rbp + 0x1a30]
xor rcx, rsp
call fcn.140016930
lea r11, [rsp + 0x1b40]
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