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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1400a8008]
xor rax, rsp
mov qword [rbp + 0x130], rax
lea rax, [0x140082ed0]
mov r15, r8
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x60]
xor eax, eax
mov rdi, rdx
or r14, 0xffffffffffffffff
mov qword [rsp + 0x60], rax
xor edx, edx
mov qword [rsp + 0x68], rax
mov r8d, 0x108
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rsi, r14
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
call fcn.140021ce0
xor ebx, ebx
mov dword [r15], ebx
test rdi, rdi
je 0x140001b03
mov qword [rsp + 0x30], rbx
lea r8d, [r14 + 4]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [0x140076160]
mov qword [rsp + 0x58], rax
mov rsi, rax
cmp rax, r14
je 0x140001b03
mov edi, ebx
nop word [rax + rax]
mov ecx, edi
lea rdx, [rsp + 0x60]
mov r8d, 0x40
mov dword [rsp + 0x40], ebx
add rdx, rcx
mov qword [rsp + 0x20], rbx
mov rcx, rsi
lea r9, [rsp + 0x40]
sub r8d, edi
call qword [0x140076178]
test eax, eax
je 0x1400018ed
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400018ed
add edi, eax
cmp edi, 0x40
jb 0x1400018b0
cmp edi, 0x40
jne 0x140001b03
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
jne 0x140001b03
movsxd rax, dword [rbp - 0x64]
lea r8, [rsp + 0x44]
mov edx, eax
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rcx, rsi
call qword [0x1400761b0]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x140001931
call qword [0x140076158]
mov edi, ebx
nop dword [rax]
nop word [rax + rax]
mov r8d, 0x108
mov eax, edi
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x40], ebx
sub r8d, edi
mov qword [rsp + 0x20], rbx
add rdx, rax
lea r9, [rsp + 0x40]
mov rcx, rsi
call qword [0x140076178]
test eax, eax
je 0x14000197f
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000197f
add edi, eax
cmp edi, 0x108
jb 0x140001940
cmp edi, 0x108
jne 0x140001b03
cmp dword [rbp - 0x60], 0x4550
jne 0x140001b03
mov edi, dword [rbp - 0x58]
test edi, edi
je 0x140001b03
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov rcx, rsi
call qword [0x140076168]
test eax, eax
mov rcx, rbx
cmovne rcx, qword [rsp + 0x40]
cmp rdi, rcx
ja 0x140001b03
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x44]
mov edx, edi
mov rcx, rsi
call qword [0x1400761b0]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x1400019f5
call qword [0x140076158]
test eax, eax
jne 0x1400019fa
mov r14, qword [rsp + 0x40]
cmp r14, rdi
jne 0x140001b03
mov edi, ebx
nop word [rax + rax]
mov r8d, 8
mov eax, edi
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x40], ebx
sub r8d, edi
mov qword [rsp + 0x20], rbx
add rdx, rax
lea r9, [rsp + 0x40]
mov rcx, rsi
call qword [0x140076178]
test eax, eax
je 0x140001a4d
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140001a4d
add edi, eax
cmp edi, 8
jb 0x140001a10
cmp edi, 8
jne 0x140001b03
cmp dword [rsp + 0x48], 0x12d84cb
jne 0x140001b03
mov edi, ebx
nop word [rax + rax]
mov r8d, 0x80
mov eax, edi
lea rdx, [rbp + 0xb0]
mov dword [rsp + 0x40], ebx
sub r8d, edi
mov qword [rsp + 0x20], rbx
add rdx, rax
lea r9, [rsp + 0x40]
mov rcx, rsi
call qword [0x140076178]
test eax, eax
je 0x140001ab2
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140001ab2
add edi, eax
cmp edi, 0x80
jb 0x140001a70
cmp edi, 0x80
jne 0x140001b03
mov edx, dword [rsp + 0x4c]
lea r9d, [rdi - 0x7c]
xor ecx, ecx
mov r8d, 0x3000
call qword [0x1400761a8]
mov rdi, rax
test rax, rax
je 0x140001b03
mov r8d, dword [rsp + 0x4c]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140001520
mov ecx, dword [rsp + 0x4c]
cmp eax, ecx
je 0x140001b3e
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [0x1400761a0]
mov rdi, rbx
cmp rsi, 0xffffffffffffffff
je 0x140001b15
mov rcx, rsi
call qword [0x140076170]
mov rax, rdi
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14001e6d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r15], ecx
mov r8d, ebx
test ecx, ecx
je 0x140001b06
nop dword [rax + rax]
mov eax, r8d
inc r8d
movsx ecx, byte [rax + rdi]
lea rdx, [rax + rdi]
and eax, 0x7f
movzx eax, byte [rbp + rax + 0xb0]
add al, bl
mov ebx, ecx
xor byte [rdx], al
cmp r8d, dword [r15]
jb 0x140001b50
jmp 0x140001b06