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

Disassembly:
mov dword [rsp + 0x10], edx
mov r11, rsp
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
xor r12d, r12d
lea rbp, [0x1402b45a0]
xor eax, eax
mov ebx, r12d
mov qword [r11 - 0x58], rax
movzx edx, r12w
mov qword [r11 - 0x50], rax
mov r8, rbp
mov qword [r11 - 0x48], rax
mov r9d, 0x157200
mov qword [r11 - 0x40], rax
mov r10d, 1
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov eax, 0xd27
mov word [r11 + 0x10], ax
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
cmp r10w, dx
mov eax, r12d
cmovne ax, dx
add cl, 9
movzx edx, ax
movzx eax, byte [rsp + rdx*2 + 0x88]
inc dx
xor al, cl
mov byte [r8 - 1], al
sub r9, r10
jne 0x14001aee0
movsxd rax, dword [0x1402b45dc]
mov ecx, 0x5a4d
cmp word [0x1402b45a0], cx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r14
lea rsi, [rax + rbp]
mov qword [rsp + 0x50], r15
jne 0x14001b307
cmp dword [rsi], 0x4550
jne 0x14001b307
cmp dword [rsi + 0x54], 0x157200
ja 0x14001b300
add rax, 0x108
cmp rax, 0x157200
ja 0x14001b300
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x14001b307
movzx ecx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rcx, 0x24
cmp r12w, ax
jae 0x14001afc2
add rcx, rsi
movzx r8d, ax
nop dword [rax]
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14001afac
mov eax, dword [rsi + 0x38]
add rax, rdx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, r10
jne 0x14001afa0
lea rcx, [rsp + 0x20]
call qword [0x140418758]
mov edx, dword [rsp + 0x24]
lea r8d, [rdx - 1]
lea edi, [rdx - 1]
not r8d
add edi, dword [rsi + 0x50]
lea rcx, [rdx - 1]
add rcx, rbx
and rdi, r8
and rcx, r8
cmp rdi, rcx
jne 0x14001b307
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
call qword [0x140418760]
mov r13, rax
test rax, rax
jne 0x14001b03a
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [0x140418760]
mov r13, rax
test rax, rax
jne 0x14001b03a
lea ecx, [rax + 0xe]
jmp 0x14001b30c
call qword [0x140418790]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [0x140418768]
mov r14, rax
test rax, rax
je 0x14001b2c4
mov qword [rax + 8], r13
mov r9d, 4
mov eax, dword [rsp + 0x24]
mov r8d, 0x1000
mov dword [r14 + 0x24], eax
mov rcx, r13
mov edx, dword [rsi + 0x54]
call qword [0x140418760]
mov rbx, rax
test rax, rax
je 0x14001b2c4
mov r8d, dword [rsi + 0x54]
mov rdx, rbp
mov rcx, rax
call fcn.1401cdd50
movsxd rax, dword [0x1402b45dc]
mov ebp, r12d
add rax, rbx
mov qword [r14], rax
mov qword [rax + 0x30], r13
mov rcx, qword [r14]
mov r15, qword [r14 + 8]
movzx edi, word [rcx + 0x14]
add rdi, 0x24
cmp r12w, word [rcx + 6]
jae 0x14001b188
add rdi, rcx
nop
mov eax, dword [rdi + 4]
test eax, eax
jne 0x14001b11d
movsxd rax, dword [rsi + 0x38]
test eax, eax
jle 0x14001b173
mov ecx, dword [rdi]
mov r9d, 4
add rcx, r15
mov r8d, 0x1000
mov rdx, rax
mov rbx, rax
call qword [0x140418760]
test rax, rax
je 0x14001b2cf
mov ecx, dword [rdi]
mov r8, rbx
add rcx, r15
xor edx, edx
mov dword [rdi - 4], ecx
call fcn.1401ce1b0
jmp 0x14001b173
mov rdx, rax
mov eax, dword [rdi + 8]
add rax, rdx
cmp rax, 0x157200
ja 0x14001b2cf
mov ecx, dword [rdi]
mov r9d, 4
add rcx, r15
mov r8d, 0x1000
call qword [0x140418760]
test rax, rax
je 0x14001b2cf
mov ebx, dword [rdi]
lea rax, [0x1402b45a0]
mov edx, dword [rdi + 8]
add rbx, r15
mov r8d, dword [rdi + 4]
mov rcx, rbx
add rdx, rax
call fcn.1401cdd50
mov dword [rdi - 4], ebx
mov rcx, qword [r14]
inc ebp
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp ebp, eax
jl 0x14001b0d0
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rsi + 0x30]
je 0x14001b229
cmp dword [rcx + 0xb4], r12d
jne 0x14001b1a9
mov edi, 1
jmp 0x14001b231
mov rdi, qword [r14 + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x14001b229
nop
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, r12d
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x14001b21c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x14001b1fe
cmp eax, 0xa
jne 0x14001b202
add qword [rcx + r10], rbx
jmp 0x14001b202
add dword [rcx + r10], ebx
mov r9d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r9 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x14001b1e0
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x14001b1c0
mov edi, 1
mov r12d, edi
mov rcx, r14
mov dword [r14 + 0x20], r12d
call fcn.14001aa60
test eax, eax
je 0x14001b2cf
mov rcx, r14
call fcn.14001ace0
test eax, eax
je 0x14001b2cf
mov rdx, qword [r14]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x14001b29b
mov ecx, eax
mov rax, qword [r14 + 8]
mov rbx, qword [rcx + rax + 0x18]
mov rcx, rdx
test rbx, rbx
je 0x14001b29b
mov rax, qword [rbx]
test rax, rax
je 0x14001b29b
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov edx, edi
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x14001b280
mov rcx, qword [r14]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x14001b2bf
mov rcx, qword [r14 + 8]
xor r8d, r8d
add rax, rcx
mov edx, edi
call rax
test eax, eax
jne 0x14001b2bb
mov ecx, 0x45a
jmp 0x14001b2c9
mov dword [r14 + 0x1c], edi
mov rax, r14
jmp 0x14001b314
mov ecx, 0xe
call qword [0x140418750]
test r13, r13
je 0x14001b2e5
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [0x140418778]
test r14, r14
je 0x14001b312
call qword [0x140418790]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [0x140418788]
jmp 0x14001b312
mov ecx, 0xd
jmp 0x14001b30c
mov ecx, 0xc1
call qword [0x140418750]
xor eax, eax
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x80]
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret