Function at 0x140012580
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.140015440
sub rsp, rax
mov rax, qword [0x14009b020]
xor rax, rsp
mov qword [rbp + 0x1a30], rax
mov r12, rcx
mov qword [rbp - 0x20], rcx
mov rdx, qword [rcx]
mov rbx, qword [rcx + 8]
cmp rdx, rbx
je 0x140012e1a
test rdx, rdx
je 0x140012e1a
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140012e1a
mov eax, dword [rdx + 0x3c]
mov qword [rsp + 0x60], rax
lea rcx, [rdx + rax]
test rcx, rcx
je 0x140012e1a
cmp dword [rcx], 0x4550
jne 0x140012e1a
xor r13d, r13d
mov word [rbp - 0x4b], r13w
mov byte [rbp - 0x49], r13b
mov dword [rbp - 0x3c], r13d
mov eax, dword [str..gst]
mov dword [rbp - 0x50], eax
movzx eax, byte [0x140094c14]
mov byte [rbp - 0x4c], al
lea r8, [rcx + 0x108]
test r8, r8
je 0x140012e1a
mov eax, dword [r8 + 8]
mov dword [rsp + 0x38], eax
movzx eax, word [rcx + 6]
dec ax
movzx eax, ax
mov qword [rbp - 0x18], rax
lea r9, [rax*4 + 0x21]
add r9, rax
lea r9, [rcx + r9*8]
test r9, r9
je 0x140012e1a
mov r10d, dword [r9 + 0xc]
add r10d, 0x1000
mov dword [rsp + 0x44], r10d
mov dword [rbp - 0x44], r10d
mov r15d, dword [r8 + 0x10]
mov qword [rbp - 0x28], r15
mov r14d, dword [r9 + 0x14]
add r14d, dword [r9 + 0x10]
mov dword [rsp + 0x40], r14d
mov dword [rbp - 0x3c], r14d
mov qword [rbp - 0x38], r13
mov dword [rbp - 0x30], r13d
mov eax, dword [r8 + 0x24]
mov dword [rbp - 0x2c], eax
mov esi, dword [r8 + 0x14]
mov eax, r10d
sub eax, dword [r8 + 0xc]
mov dword [rsp + 0x48], eax
mov rax, rbx
sub rax, rdx
lea rcx, [rax + r15]
cmp rcx, rax
jae 0x1400126ce
lea rax, [rdx + rcx]
jmp 0x1400126fb
jbe 0x140012700
mov rax, qword [r12 + 0x10]
sub rax, rdx
cmp rcx, rax
jbe 0x1400126ea
mov rdx, rcx
mov rcx, r12
call fcn.140012270
jmp 0x140012700
mov r8, r15
xor edx, edx
mov rcx, rbx
call fcn.14001b720
lea rax, [rbx + r15]
mov qword [r12 + 8], rax
mov qword [rsp + 0x50], rsi
mov rax, qword [r12]
mov ebx, dword [rsp + 0x38]
mov r8d, ebx
lea rdx, [rax + rsi]
mov ecx, r14d
add rcx, rax
call fcn.14001b070
mov rcx, qword [r12]
add rcx, rsi
mov r8, r15
xor edx, edx
call fcn.14001b720
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp + 0x680]
call fcn.140017f20
mov edi, r14d
add rdi, qword [r12]
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movss dword [rsp + 0x70], xmm0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov ecx, 0x28
call fcn.140014e00
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x58], 8
movss xmm0, dword [0x140094c54]
movss dword [rsp + 0x70], xmm0
mov r8, rax
mov edx, 0x10
lea rcx, [rbp - 0x78]
call fcn.140012fd0
nop
call fcn.1400147a0
mov edx, eax
movabs rax, 0x5555555555555555
mov qword [rbp + 0x1a28], rax
mov qword [rbp + 0x6a8], rdx
mov ecx, 1
movabs r8, 0x5851f42d4c957f2d
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 0x1400127e0
mov dword [rbp + 0x6a0], 0x138
mov dword [rsp + 0x3c], r13d
mov eax, r14d
sub eax, esi
mov dword [rsp + 0x58], eax
mov r8d, ebx
sub r8d, dword [rsp + 0x30]
lea r9, [rbp + 0xa0]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140017e50
shr eax, 0x1f
not eax
test al, 1
je 0x140012b13
nop dword [rax + rax]
mov r13, rdi
sub r13, qword [r12]
lea rcx, [rbp + 0x6a0]
call fcn.140013820
and al, 7
add al, 3
movzx r15d, al
mov ecx, r15d
call fcn.140025480
mov rsi, rax
mov byte [rax], 0xeb
lea ecx, [r15 - 2]
mov byte [rax + 1], cl
mov ebx, 2
cmp rbx, r15
je 0x1400128a7
nop word [rax + rax]
lea rcx, [rbp + 0x6a0]
call fcn.140013820
mov byte [rbx + rsi], al
inc rbx
cmp rbx, r15
jne 0x140012890
lea r9, [r15 + rsi]
mov rdx, qword [r12]
add rdx, r13
mov r8, rsi
mov rcx, r12
call fcn.1400135e0
mov rcx, rsi
call fcn.14002488c
test byte [rbp + 0x4d0], 0x80
je 0x140012a2a
cmp dword [rbp + 0x57c], 1
jne 0x140012a2a
cmp byte [r15 + rdi], 0xeb
jne 0x140012940
mov byte [rsp + 0x34], 5
mov ecx, 5
call fcn.140025480
mov rsi, rax
mov byte [rax], 0xe9
movzx ecx, byte [rbp + 0xa8]
add rcx, r15
cmp byte [rcx + rdi - 1], 0x7f
ja 0x140012925
xor eax, eax
mov dword [rsi + 1], eax
movzx ecx, byte [rbp + 0xa8]
add rcx, r15
movzx eax, byte [rcx + rdi - 1]
mov byte [rsi + 1], al
jmp 0x140012990
mov dword [rax + 1], 0xffffffff
movzx eax, byte [rbp + 0xa8]
add rax, r15
movzx eax, byte [rax + rdi - 1]
mov byte [rsi + 1], al
jmp 0x140012990
mov byte [rsp + 0x34], 6
mov ecx, 6
call fcn.140025480
mov rsi, rax
mov byte [rax], 0xf
movzx eax, byte [r15 + rdi]
add al, 0x10
mov byte [rsi + 1], al
movzx eax, byte [rbp + 0xa8]
add rax, r15
cmp byte [rax + rdi - 1], 0x7f
ja 0x140012977
xor eax, eax
mov dword [rsi + 2], eax
jmp 0x14001297e
mov dword [rsi + 2], 0xffffffff
movzx eax, byte [rbp + 0xa8]
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 + 0xa8]
lea rdi, [r15 + rcx]
add rdx, r15
add rdx, rcx
cmp rdi, rdx
je 0x1400129ce
mov rbx, qword [r12 + 8]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.14001b070
lea rax, [rbx + rdi]
mov qword [r12 + 8], rax
mov r8, qword [r12]
movzx ebx, byte [rsp + 0x34]
lea r9, [rsi + rbx]
lea rdx, [r8 + r15]
add rdx, r13
mov r8, rsi
mov rcx, r12
call fcn.1400135e0
mov rcx, rsi
call fcn.14002488c
lea r8, [rsp + 0x30]
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
movzx eax, byte [rbp + 0xa8]
mov byte [rcx + 0x20], al
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
mov byte [rcx + 0x1c], bl
mov rax, qword [r12]
mov rcx, qword [rsp + 0x50]
lea rbx, [rax + rcx]
mov qword [rbp - 0x10], rbx
mov esi, dword [rbp - 0x28]
add rsi, rax
add rsi, rcx
movzx edi, byte [rbp + 0xa8]
add rdi, r15
add rdi, rax
add rdi, r13
mov r13d, dword [rsp + 0x3c]
add r13d, r15d
mov dword [rsp + 0x3c], r13d
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
mov byte [rcx + 0x18], r15b
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
movzx edx, byte [rcx + 0x1c]
test dl, dl
je 0x140012ab0
sub dl, byte [rbp + 0xa8]
movzx eax, dl
add rdi, rax
movzx eax, dl
add r13d, eax
mov dword [rsp + 0x3c], r13d
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
mov dword [rcx + 0x14], r13d
movzx eax, byte [rbp + 0xa8]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov dword [rsp + 0x30], ecx
mov ebx, dword [rsp + 0x38]
mov r8d, ebx
sub r8d, ecx
lea r9, [rbp + 0xa0]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140017e50
shr eax, 0x1f
not eax
test al, 1
jne 0x140012850
mov r15, qword [rbp - 0x10]
mov r14d, dword [rsp + 0x40]
jmp 0x140012b1d
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x60]
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], eax
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov edx, r14d
mov rcx, qword [r12]
mov rax, qword [rax]
movzx edi, byte [rax + 0x18]
add rdi, rdx
add rdi, rcx
lea r14, [rdx + rcx]
mov r8d, ebx
sub r8d, dword [rsp + 0x30]
lea r9, [rbp + 0xa0]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140017e50
shr eax, 0x1f
not eax
test al, 1
je 0x140012d71
mov r13d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x58]
nop word [rax + rax]
test byte [rbp + 0x4d0], 0x80
je 0x140012c98
movzx eax, byte [rbp + 0x661]
movzx ecx, byte [rbp + 0x649]
add rax, rdi
movsxd rax, dword [rcx + rax]
movzx ebx, byte [rbp + 0xa8]
add rax, rdi
add rbx, rax
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
mov eax, dword [rcx + 0x14]
mov rcx, rbx
sub rcx, rax
sub rcx, r12
cmp rcx, r15
jb 0x140012c4c
cmp rcx, rsi
jae 0x140012c4c
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
sub ebx, r14d
sub ebx, dword [rcx + 0x14]
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
movzx eax, byte [rbp + 0xa8]
mov edx, r14d
sub edx, eax
sub edx, edi
add edx, dword [rcx + 0x14]
add edx, dword [rsp + 0x40]
movzx eax, byte [rbp + 0x661]
movzx ecx, byte [rbp + 0x649]
add rax, rdi
mov dword [rcx + rax], edx
jmp 0x140012c94
movzx eax, byte [rbp + 0xb8]
test al, al
jne 0x140012c5d
lea rdx, [rbp]
jmp 0x140012c72
imul rcx, rax, 0x68
cmp dword [rbp + rcx + 0x84], 0xcb
je 0x140012c94
lea rdx, [rbp - 0x10]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rdx, qword [rax]
mov eax, dword [rdx + 0x14]
movzx ecx, byte [rbp + 0x649]
add eax, r13d
sub dword [rcx + rdi], eax
mov ebx, dword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
lea r8, [rsp + 0x30]
cmp byte [rcx + 0x20], 0
lea rcx, [rsp + 0x70]
jne 0x140012ce4
movzx eax, byte [rbp + 0xa8]
add dword [rsp + 0x30], eax
lea rdx, [rbp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
movzx edx, byte [rcx + 0x18]
movzx eax, byte [rbp + 0xa8]
add eax, edx
jmp 0x140012d3a
lea rdx, [rbp + 0x80]
call fcn.140013120
mov rcx, qword [rax]
movsx ebx, byte [rcx + 0x1c]
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x20]
add dword [rsp + 0x30], eax
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x18]
add eax, ebx
cdqe
mov ebx, dword [rsp + 0x38]
add rdi, rax
mov r8d, ebx
sub r8d, dword [rsp + 0x30]
lea r9, [rbp + 0xa0]
mov rdx, rdi
lea rcx, [rbp + 0x680]
call fcn.140017e50
shr eax, 0x1f
not eax
test al, 1
jne 0x140012b90
mov r12, qword [rbp - 0x20]
mov r13d, dword [rsp + 0x3c]
add ebx, r13d
mov dword [rbp - 0x48], ebx
mov rsi, qword [rbp - 0x28]
add esi, r13d
mov dword [rbp - 0x40], esi
mov rax, qword [rbp - 0x18]
lea rcx, [rax + rax*4]
mov rax, qword [r12]
lea rdx, [rax + rcx*8]
movups xmm0, xmmword [rbp - 0x50]
mov rdi, qword [rsp + 0x60]
movups xmmword [rdx + rdi + 0x130], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rdx + rdi + 0x140], xmm1
movsd xmm0, qword [rbp - 0x30]
movsd qword [rdx + rdi + 0x150], xmm0
mov rbx, qword [r12]
inc word [rdi + rbx + 6]
mov eax, dword [rsp + 0x48]
add dword [rdi + rbx + 0x28], eax
mov eax, dword [rdi + rbx + 0x28]
sub eax, dword [rsp + 0x44]
mov dword [rsp + 0x44], eax
lea r8, [rsp + 0x44]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140013120
mov rcx, qword [rax]
mov eax, dword [rcx + 0x14]
add dword [rdi + rbx + 0x28], eax
mov ecx, dword [rdi + rbx + 0x50]
add ecx, 0xfff
add ecx, esi
and ecx, 0xfffff000
mov dword [rdi + rbx + 0x50], ecx
lea rcx, [rsp + 0x70]
call fcn.140012e60
mov al, 1
jmp 0x140012e1c
xor al, al
mov rcx, qword [rbp + 0x1a30]
xor rcx, rsp
call fcn.140014b40
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