Function at 0x1401cd39c
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov qword [rsp + 0x1a0], rcx
mov r10d, edx
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x1b8], r9
mov r9, qword [rcx + 0x40]
mov ecx, r8d
sar edx, cl
mov eax, edx
neg eax
and eax, r10d
or eax, edx
mov byte [rsp + 0x108], al
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 0x88]
cmp r9, 0x37
ja 0x1401cd404
mov r8d, 0x40
lea rdx, [rax + 1]
sub r8, r9
jmp 0x1401cd411
mov r8d, pe_nt_image_headers64
lea rdx, [rax + 2]
sub r8, r9
lea r9, [rsp + 0x109]
xor eax, eax
lea rcx, [r8 - 9]
mov rdi, r9
lea r10, [rsp + 0x108]
rep stosb byte [rdi], al
mov rax, rdx
bswap rax
mov qword [rsp + r8 + 0x100], rax
mov rcx, qword [rsp + 0x1a0]
mov rdx, r10
lea r13, [0x14048a380]
lea rbp, [0x140486b80]
lea r14, [0x140489b80]
lea r12, [0x140489380]
call fcn.1401c9600
mov rdi, qword [rsp + 0x1a0]
mov ecx, 0x10
xor edx, edx
lea rax, [rsp + 0x88]
lea r11, [0x140487b80]
lea rsi, [rdi + 0x48]
mov rdi, rax
lea r10, [0x140487380]
rep movsd dword [rdi], dword [rsi]
mov rsi, rax
lea rdi, [rsp + 0xc8]
mov ecx, 0x10
rep movsd dword [rdi], dword [rsi]
lea rdi, [0x140488b80]
lea rsi, [0x140488380]
mov rax, qword [rsp + 0xc8]
mov r9, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x20]
lea r15, [rdx + 0x10]
xor rbx, rdx
mov qword [rsp + 0x20], rbx
mov rbx, qword [rsp + 0x28]
xor rbx, r15
lea r15, [rdx + 0x20]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0x30]
xor rbx, r15
lea r15, [rdx + 0x30]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x38]
xor rbx, r15
lea r15, [rdx + 0x40]
xor r15, r9
lea r9, [rdx + 0x50]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x28]
xor r9, r8
lea r8, [rdx + 0x60]
xor rcx, r8
mov qword [rsp + 0x40], r9
lea r8, [rdx + 0x70]
movzx ebx, bh
movzx r9d, byte [rsp + 0x20]
xor r8, rax
lea rax, [rdx + 1]
xor rax, qword [r13 + r9*8]
mov r9, r8
shr r9, 0x38
xor rax, qword [rbp + r9*8]
mov r9, qword [rsp + 0x30]
xor rax, qword [r14 + rbx*8]
mov rbx, qword [rsp + 0x30]
shr r9, 0x10
movzx r9d, r9b
movzx ebx, bh
xor rax, qword [r12 + r9*8]
mov r9, qword [rsp + 0x38]
shr r9, 0x18
movzx r9d, r9b
xor rax, qword [rdi + r9*8]
mov r9, r15
shr r9, 0x20
movzx r9d, r9b
xor rax, qword [rsi + r9*8]
mov r9, qword [rsp + 0x40]
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r11 + r9*8]
mov r9, rcx
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r10 + r9*8]
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rdx + 0x11]
shr r9, 0x38
xor rax, qword [rbp + r9*8]
movzx r9d, byte [rsp + 0x28]
xor rax, qword [r13 + r9*8]
mov r9, qword [rsp + 0x38]
xor rax, qword [r14 + rbx*8]
shr r9, 0x10
movzx r9d, r9b
xor rax, qword [r12 + r9*8]
mov r9, r15
shr r9, 0x18
movzx r9d, r9b
xor rax, qword [rdi + r9*8]
mov r9, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
shr r9, 0x20
movzx r9d, r9b
movzx ebx, bh
xor rax, qword [rsi + r9*8]
mov r9, rcx
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r11 + r9*8]
mov r9, r8
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r10 + r9*8]
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsp + 0x30]
shr r9, 0x30
movzx r9d, r9b
mov r9, qword [r10 + r9*8]
xor r9, qword [r13 + rax*8]
lea rax, [rdx + 0x21]
xor rax, r9
mov r9, qword [rsp + 0x28]
shr r9, 0x38
xor rax, qword [rbp + r9*8]
mov r9, r15
xor rax, qword [r14 + rbx*8]
mov rbx, r15
shr r9, 0x10
movzx ebx, bh
movzx r9d, r9b
xor rax, qword [r12 + r9*8]
mov r9, qword [rsp + 0x40]
shr r9, 0x18
movzx r9d, r9b
xor rax, qword [rdi + r9*8]
mov r9, rcx
shr r9, 0x20
movzx r9d, r9b
xor rax, qword [rsi + r9*8]
mov r9, r8
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r11 + r9*8]
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
movzx eax, byte [rsp + 0x38]
shr r9, 0x28
movzx r9d, r9b
mov r9, qword [r11 + r9*8]
xor r9, qword [r13 + rax*8]
lea rax, [rdx + 0x31]
xor rax, r9
mov r9, qword [rsp + 0x30]
shr r9, 0x38
xor rax, qword [rbp + r9*8]
mov r9, qword [rsp + 0x40]
xor rax, qword [r14 + rbx*8]
shr r9, 0x10
movzx r9d, r9b
xor rax, qword [r12 + r9*8]
mov r9, rcx
shr r9, 0x18
movzx r9d, r9b
xor rax, qword [rdi + r9*8]
mov r9, r8
shr r9, 0x20
movzx r9d, r9b
xor rax, qword [rsi + r9*8]
mov r9, qword [rsp + 0x28]
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r10 + r9*8]
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x20]
movzx eax, r15b
mov rbx, qword [rsp + 0x40]
shr r9, 0x20
movzx r9d, r9b
movzx ebx, bh
mov r9, qword [rsi + r9*8]
xor r9, qword [r13 + rax*8]
lea rax, [rdx + 0x41]
xor rax, r9
mov r9, qword [rsp + 0x38]
shr r9, 0x38
xor rax, qword [rbp + r9*8]
mov r9, rcx
xor rax, qword [r14 + rbx*8]
movzx ebx, ch
shr r9, 0x10
movzx r9d, r9b
xor rax, qword [r12 + r9*8]
mov r9, r8
shr r9, 0x18
movzx r9d, r9b
xor rax, qword [rdi + r9*8]
mov r9, qword [rsp + 0x28]
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r11 + r9*8]
mov r9, qword [rsp + 0x30]
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r10 + r9*8]
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x40]
shr r9, 0x18
movzx r9d, r9b
mov r9, qword [rdi + r9*8]
xor r9, qword [r13 + rax*8]
lea rax, [rdx + 0x51]
xor rax, r9
mov r9, r15
shr r9, 0x38
xor rax, qword [rbp + r9*8]
mov r9, r8
xor rax, qword [r14 + rbx*8]
mov rbx, r8
shr r9, 0x10
movzx ebx, bh
movzx r9d, r9b
xor rax, qword [r12 + r9*8]
mov r9, qword [rsp + 0x28]
shr r9, 0x20
movzx r9d, r9b
xor rax, qword [rsi + r9*8]
mov r9, qword [rsp + 0x30]
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r11 + r9*8]
mov r9, qword [rsp + 0x38]
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r10 + r9*8]
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
movzx eax, cl
shr r9, 0x10
movzx r9d, r9b
mov r9, qword [r12 + r9*8]
xor r9, qword [r13 + rax*8]
lea rax, [rdx + 0x61]
xor rax, r9
mov r9, qword [rsp + 0x40]
shr r9, 0x38
xor rax, qword [rbp + r9*8]
mov r9, qword [rsp + 0x28]
shr rcx, 0x38
xor rax, qword [r14 + rbx*8]
mov rbx, qword [rsp + 0x50]
shr r9, 0x18
movzx r9d, r9b
xor rax, qword [rdi + r9*8]
mov r9, qword [rsp + 0x30]
shr r9, 0x20
movzx r9d, r9b
xor rax, qword [rsi + r9*8]
mov r9, qword [rsp + 0x38]
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r11 + r9*8]
mov r9, r15
shr r15, 0x28
shr r9, 0x30
movzx r15d, r15b
movzx r9d, r9b
xor rax, qword [r10 + r9*8]
movzx r9d, r8b
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
movzx eax, ah
mov r8, qword [r14 + rax*8]
lea rax, [rdx + 0x71]
xor r8, qword [r13 + r9*8]
xor rax, r8
xor rax, qword [rbp + rcx*8]
mov rcx, qword [rsp + 0x28]
shr rcx, 0x10
movzx ecx, cl
xor rax, qword [r12 + rcx*8]
mov rcx, qword [rsp + 0x30]
shr rcx, 0x18
movzx ecx, cl
xor rax, qword [rdi + rcx*8]
mov rcx, qword [rsp + 0x38]
shr rcx, 0x20
movzx ecx, cl
xor rax, qword [rsi + rcx*8]
mov rcx, qword [rsp + 0x40]
xor rax, qword [r11 + r15*8]
shr rcx, 0x30
movzx ecx, cl
xor rax, qword [r10 + rcx*8]
movzx ecx, bh
mov r8, rax
mov rcx, qword [r14 + rcx*8]
shr r8, 0x38
xor rcx, qword [rbp + r8*8]
movzx r8d, byte [rsp + 0x48]
xor rcx, qword [r13 + r8*8]
mov r8, qword [rsp + 0x58]
shr r8, 0x10
movzx r8d, r8b
xor rcx, qword [r12 + r8*8]
mov r8, qword [rsp + 0x60]
shr r8, 0x18
movzx r8d, r8b
xor rcx, qword [rdi + r8*8]
mov r8, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
shr r8, 0x20
movzx r8d, r8b
movzx ebx, bh
xor rcx, qword [rsi + r8*8]
mov r8, qword [rsp + 0x70]
shr r8, 0x28
movzx r8d, r8b
xor rcx, qword [r11 + r8*8]
mov r8, qword [rsp + 0x78]
shr r8, 0x30
movzx r8d, r8b
xor rcx, qword [r10 + r8*8]
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
movzx ecx, byte [rsp + 0x50]
shr r8, 0x38
mov rcx, qword [r13 + rcx*8]
xor rcx, qword [rbp + r8*8]
mov r8, qword [rsp + 0x60]
xor rcx, qword [r14 + rbx*8]
mov rbx, qword [rsp + 0x60]
shr r8, 0x10
movzx r8d, r8b
movzx ebx, bh
xor rcx, qword [r12 + r8*8]
mov r8, qword [rsp + 0x68]
shr r8, 0x18
movzx r8d, r8b
xor rcx, qword [rdi + r8*8]
mov r8, qword [rsp + 0x70]
shr r8, 0x20
movzx r8d, r8b
xor rcx, qword [rsi + r8*8]
mov r8, qword [rsp + 0x78]
shr r8, 0x28
movzx r8d, r8b
xor rcx, qword [r11 + r8*8]
mov r8, rax
shr r8, 0x30
movzx r8d, r8b
xor rcx, qword [r10 + r8*8]
movzx r8d, byte [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
shr rcx, 0x30
movzx ecx, cl
mov rcx, qword [r10 + rcx*8]
xor rcx, qword [r13 + r8*8]
mov r8, qword [rsp + 0x50]
shr r8, 0x38
xor rcx, qword [rbp + r8*8]
mov r8, qword [rsp + 0x68]
xor rcx, qword [r14 + rbx*8]
shr r8, 0x10
movzx r8d, r8b
xor rcx, qword [r12 + r8*8]
mov r8, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
shr r8, 0x18
movzx r8d, r8b
movzx ebx, bh
xor rcx, qword [rdi + r8*8]
mov r8, qword [rsp + 0x78]
shr r8, 0x20
movzx r8d, r8b
xor rcx, qword [rsi + r8*8]
mov r8, rax
shr r8, 0x28
movzx r8d, r8b
xor rcx, qword [r11 + r8*8]
movzx r8d, byte [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x48]
shr rcx, 0x28
movzx ecx, cl
mov rcx, qword [r11 + rcx*8]
xor rcx, qword [r13 + r8*8]
mov r8, qword [rsp + 0x50]
shr r8, 0x30
movzx r8d, r8b
xor rcx, qword [r10 + r8*8]
mov r8, qword [rsp + 0x58]
shr r8, 0x38
xor rcx, qword [rbp + r8*8]
mov r8, qword [rsp + 0x70]
xor rcx, qword [r14 + rbx*8]
mov rbx, qword [rsp + 0x70]
shr r8, 0x10
movzx r8d, r8b
xor rcx, qword [r12 + r8*8]
mov r8, qword [rsp + 0x78]
shr r8, 0x18
movzx r8d, r8b
xor rcx, qword [rdi + r8*8]
mov r8, rax
shr r8, 0x20
movzx r8d, r8b
xor rcx, qword [rsi + r8*8]
movzx r8d, byte [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x48]
shr rcx, 0x20
movzx ecx, cl
mov r9, qword [rsi + rcx*8]
mov rcx, qword [rsp + 0x50]
xor r9, qword [r13 + r8*8]
shr rcx, 0x28
movzx ecx, cl
xor r9, qword [r11 + rcx*8]
mov rcx, qword [rsp + 0x60]
shr rcx, 0x38
xor r9, qword [rbp + rcx*8]
movzx ecx, bh
xor r9, qword [r14 + rcx*8]
mov rcx, qword [rsp + 0x78]
movzx r15d, byte [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
shr rcx, 0x10
movzx ecx, cl
xor r9, qword [r12 + rcx*8]
mov rcx, rax
shr rcx, 0x18
movzx ecx, cl
xor r9, qword [rdi + rcx*8]
mov rcx, qword [rsp + 0x58]
shr rcx, 0x30
movzx ecx, cl
xor r9, qword [r10 + rcx*8]
mov rcx, qword [rsp + 0x48]
shr rcx, 0x18
movzx ecx, cl
mov r8, qword [rdi + rcx*8]
mov rcx, qword [rsp + 0x50]
xor r8, qword [r13 + r15*8]
movzx r15d, byte [rsp + 0x78]
shr rcx, 0x20
movzx ecx, cl
xor r8, qword [rsi + rcx*8]
mov rcx, qword [rsp + 0x68]
shr rcx, 0x38
xor r8, qword [rbp + rcx*8]
movzx ecx, bh
movzx ebx, ah
xor r8, qword [r14 + rcx*8]
mov rcx, rax
movzx eax, al
shr rcx, 0x10
movzx ecx, cl
xor r8, qword [r12 + rcx*8]
mov rcx, qword [rsp + 0x58]
shr rcx, 0x28
movzx ecx, cl
xor r8, qword [r11 + rcx*8]
mov rcx, qword [rsp + 0x60]
shr rcx, 0x30
movzx ecx, cl
xor r8, qword [r10 + rcx*8]
mov rcx, qword [rsp + 0x48]
shr rcx, 0x10
movzx ecx, cl
mov rcx, qword [r12 + rcx*8]
xor rcx, qword [r13 + r15*8]
mov r15, qword [rsp + 0x50]
shr r15, 0x18
movzx r15d, r15b
xor rcx, qword [rdi + r15*8]
mov r15, qword [rsp + 0x70]
shr r15, 0x38
xor rcx, qword [rbp + r15*8]
mov r15, qword [rsp + 0x58]
xor rcx, qword [r14 + rbx*8]
shr r15, 0x20
movzx r15d, r15b
xor rcx, qword [rsi + r15*8]
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
shr r15, 0x28
movzx r15d, r15b
movzx ebx, bh
xor rcx, qword [r11 + r15*8]
mov r15, qword [rsp + 0x68]
shr r15, 0x30
movzx r15d, r15b
xor rcx, qword [r10 + r15*8]
mov r15, qword [r14 + rbx*8]
xor r15, qword [r13 + rax*8]
mov rax, r15
mov r15, qword [rsp + 0x50]
shr r15, 0x10
movzx r15d, r15b
xor rax, qword [r12 + r15*8]
mov r15, qword [rsp + 0x78]
shr r15, 0x38
xor rax, qword [rbp + r15*8]
mov r15, qword [rsp + 0x58]
shr r15, 0x18
movzx r15d, r15b
xor rax, qword [rdi + r15*8]
mov r15, qword [rsp + 0x60]
shr r15, 0x20
movzx r15d, r15b
xor rax, qword [rsi + r15*8]
mov r15, qword [rsp + 0x68]
shr r15, 0x28
movzx r15d, r15b
xor rax, qword [r11 + r15*8]
mov r15, qword [rsp + 0x70]
shr r15, 0x30
movzx r15d, r15b
xor rax, qword [r10 + r15*8]
add rdx, 2
cmp rdx, 0xa
jne 0x1401cd508
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov qword [rsp + 0xe8], r9
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0xc8], rsi
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0xd0], rdi
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xf0], r8
lea r8, [rsp + 0xc8]
mov qword [rsp + 0x100], rax
xor eax, eax
lea rcx, [rsp + 0x88]
mov rdx, qword [rcx + rax*8]
xor rdx, qword [r8 + rax*8]
mov qword [rcx + rax*8], rdx
inc rax
cmp rax, 8
jne 0x1401cdd7e
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x1c0]
xor edx, edx
mov rdi, qword [rsp + 0x1b8]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x120], rax
mov eax, 0x20
sub rax, qword [rsp + 0x1c0]
lea rsi, [rsp + rax + 0x108]
mov rax, qword [rsp + 0x1a0]
rep movsb byte [rdi], byte [rsi]
mov rsi, qword [rsp + 0x1a0]
xor ecx, ecx
mov qword [rax + 0x40], rdx
mov qword [rax + 0x48], rdx
mov qword [rax + 0x50], rdx
mov qword [rax + 0x58], rdx
mov qword [rax + 0x60], rdx
mov qword [rax + 0x68], rdx
mov qword [rax + 0x70], rdx
mov qword [rax + 0x78], rdx
mov rax, qword [rsp + 0x1c0]
mov qword [rsi + 0x88], rcx
lea eax, [rax*8]
bswap rax
mov qword [rsi + 0x80], rax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret