Function at 0x46aea0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov eax, pe_nt_image_headers64
mov qword [rsp + 0x180], rcx
mov r10d, edx
mov qword [rsp + 0x198], r9
mov r9, qword [rcx + 0x40]
mov ecx, r8d
sar eax, cl
mov edx, eax
neg edx
and edx, r10d
or edx, eax
mov rax, qword [rsp + 0x180]
mov byte [rsp + 0xe0], dl
mov rax, qword [rax + 0x88]
cmp r9, 0x37
ja 0x46ba98
lea rbx, [rax + 1]
mov esi, 0x40
sub rsi, r9
lea rdi, [rsp + 0xe0]
xor edx, edx
lea rcx, [rsp + 0xe1]
mov qword [rsp + 0x58], rdi
lea r8, [rsi - 9]
call sub.msvcrt.dll_memset
mov rax, rbx
bswap rax
mov rcx, qword [rsp + 0x180]
mov r8, rsi
mov rdx, rdi
mov qword [rsp + rsi + 0xd8], rax
call fcn.004665a0
mov rax, qword [rsp + 0x180]
mov r10, qword [rax + 0x80]
mov rdx, qword [rax + 0x78]
mov r8, qword [rax + 0x58]
mov r9, qword [rax + 0x48]
mov rsi, qword [rax + 0x50]
mov qword [rsp + 0x98], r10
mov rbx, qword [rax + 0x60]
mov qword [rsp + 0x90], rdx
mov rcx, qword [rax + 0x68]
mov qword [rsp + 0x70], r8
mov r12, r8
mov r11, qword [rax + 0x70]
mov rax, rdx
mov qword [rsp + 0xd0], rdx
mov rdx, r10
mov qword [rsp + 0xd8], r10
xor r10d, r10d
mov r13, rsi
mov rdi, rax
mov qword [rsp + 0xb0], r8
mov rbp, rbx
mov r8, rdx
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], r11
mov qword [rsp + 0xa0], r9
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], r11
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x28], r10
mov rbx, qword [rsp + 0x28]
lea r15, [0x005fec20]
mov r14, qword [rsp + 0x50]
lea r9, [0x005fb420]
lea rcx, [0x005fe420]
lea r10, [0x005fd420]
lea rax, [rbx + 0x10]
lea rsi, [rbx + 0x40]
xor r13, rax
xor r14, rbx
xor rsi, qword [rsp + 0x48]
movzx edx, r14b
lea rax, [rbx + 0x20]
xor r12, rax
lea rax, [rbx + 0x30]
xor rbp, rax
lea rax, [rbx + 0x50]
xor r11, rax
lea rax, [rbx + 0x60]
xor rdi, rax
lea rax, [rbx + 0x70]
xor r8, rax
lea rax, [rbx + 1]
xor rax, qword [r15 + rdx*8]
mov rdx, r8
mov rbx, r13
shr rdx, 0x38
xor rax, qword [r9 + rdx*8]
movzx edx, bh
xor rax, qword [rcx + rdx*8]
mov rdx, r12
shr rdx, 0x10
lea rbx, [0x005fdc20]
movzx edx, dl
xor rax, qword [rbx + rdx*8]
lea rbx, [0x005fcc20]
mov rdx, rbp
shr rdx, 0x18
movzx edx, dl
xor rax, qword [r10 + rdx*8]
mov rdx, rsi
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rbx + rdx*8]
lea rbx, [0x005fc420]
mov rdx, r11
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rbx + rdx*8]
lea rbx, [0x005fbc20]
mov rdx, rdi
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r14
mov rbx, r12
shr rdx, 0x38
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
add rax, 0x11
xor rax, qword [r9 + rdx*8]
movzx edx, r13b
xor rax, qword [r15 + rdx*8]
movzx edx, bh
mov rbx, rcx
xor rax, qword [rcx + rdx*8]
mov rdx, rbp
shr rdx, 0x10
lea rcx, [0x005fdc20]
movzx edx, dl
xor rax, qword [rcx + rdx*8]
lea rcx, [0x005fcc20]
mov rdx, rsi
shr rdx, 0x18
movzx edx, dl
xor rax, qword [r10 + rdx*8]
mov rdx, r11
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rcx + rdx*8]
lea rcx, [0x005fc420]
mov rdx, rdi
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rcx + rdx*8]
lea rcx, [0x005fbc20]
mov rdx, r8
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rcx + rdx*8]
lea rdx, [0x005fbc20]
movzx ecx, r12b
mov qword [rsp + 0x30], rax
mov rax, r14
shr rax, 0x30
movzx eax, al
mov rdx, qword [rdx + rax*8]
mov rax, qword [rsp + 0x28]
xor rdx, qword [r15 + rcx*8]
lea rcx, [0x005fdc20]
add rax, 0x21
xor rdx, rax
mov rax, r13
shr rax, 0x38
xor rdx, qword [r9 + rax*8]
mov rax, rbp
movzx eax, ah
xor rdx, qword [rbx + rax*8]
lea rbx, [0x005fcc20]
mov rax, rsi
shr rax, 0x10
movzx eax, al
xor rdx, qword [rcx + rax*8]
mov rax, r11
movzx ecx, bpl
shr rax, 0x18
movzx eax, al
xor rdx, qword [r10 + rax*8]
mov rax, rdi
shr rax, 0x20
movzx eax, al
xor rdx, qword [rbx + rax*8]
lea rbx, [0x005fc420]
mov rax, r8
shr rax, 0x28
movzx eax, al
xor rdx, qword [rbx + rax*8]
mov rax, r14
shr rax, 0x28
movzx eax, al
mov qword [rsp + 0x38], rdx
mov rbx, qword [rbx + rax*8]
lea rdx, [0x005fcc20]
mov rax, qword [rsp + 0x28]
xor rbx, qword [r15 + rcx*8]
lea rcx, [0x005fe420]
add rax, 0x31
xor rbx, rax
mov rax, r12
shr rax, 0x38
xor rbx, qword [r9 + rax*8]
mov rax, rsi
movzx eax, ah
xor rbx, qword [rcx + rax*8]
lea rcx, [0x005fdc20]
mov rax, r11
shr rax, 0x10
movzx eax, al
xor rbx, qword [rcx + rax*8]
lea rcx, [0x005fbc20]
mov rax, rdi
shr rax, 0x18
movzx eax, al
xor rbx, qword [r10 + rax*8]
mov rax, r8
shr rax, 0x20
movzx eax, al
xor rbx, qword [rdx + rax*8]
mov rax, r13
shr rax, 0x30
movzx eax, al
xor rbx, qword [rcx + rax*8]
mov rax, r14
shr rax, 0x20
movzx ecx, al
movzx eax, sil
mov rcx, qword [rdx + rcx*8]
mov rdx, r9
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x28]
xor rcx, qword [r15 + rax*8]
mov rax, rbx
add rax, 0x41
xor rcx, rax
mov rax, rbp
shr rax, 0x38
xor rcx, qword [r9 + rax*8]
lea r9, [0x005fe420]
mov rax, r11
movzx eax, ah
xor rcx, qword [r9 + rax*8]
lea r9, [0x005fdc20]
mov rax, rdi
shr rax, 0x10
movzx eax, al
xor rcx, qword [r9 + rax*8]
lea r9, [0x005fc420]
mov rax, r8
shr rax, 0x18
movzx eax, al
xor rcx, qword [r10 + rax*8]
mov rax, r13
shr rax, 0x28
movzx eax, al
xor rcx, qword [r9 + rax*8]
lea r9, [0x005fbc20]
mov rax, r12
shr rax, 0x30
movzx eax, al
xor rcx, qword [r9 + rax*8]
mov rax, r14
movzx r9d, r11b
shr rax, 0x18
movzx eax, al
mov rax, qword [r10 + rax*8]
xor rax, qword [r15 + r9*8]
lea r15, [0x005fe420]
mov r9, rax
lea rax, [rbx + 0x51]
xor rax, r9
mov r9, rsi
shr r9, 0x38
xor rax, qword [rdx + r9*8]
mov rdx, rdi
mov r9, r8
movzx edx, dh
shr r9, 0x10
xor rax, qword [r15 + rdx*8]
lea r15, [0x005fdc20]
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
mov r9, r13
mov rdx, r15
shr r9, 0x20
lea r15, [0x005fcc20]
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
lea r15, [0x005fc420]
mov r9, r12
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
lea r15, [0x005fbc20]
mov r9, rbp
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
mov r9, r14
movzx r15d, dil
shr r9, 0x10
movzx r9d, r9b
shr rdi, 0x38
mov r9, qword [rdx + r9*8]
lea rdx, [0x005fec20]
xor r9, qword [rdx + r15*8]
lea rdx, [0x005fb420]
mov r15, r9
lea r9, [rbx + 0x61]
xor r9, r15
mov r15, r11
shr r11, 0x30
shr r15, 0x38
movzx r11d, r11b
xor r9, qword [rdx + r15*8]
mov rdx, r8
movzx edx, dh
mov r15, rdx
lea rdx, [0x005fe420]
xor r9, qword [rdx + r15*8]
lea rdx, [0x005fcc20]
mov r15, r13
shr r13, 0x10
shr r15, 0x18
movzx r13d, r13b
movzx r15d, r15b
xor r9, qword [r10 + r15*8]
mov r15, r12
shr r12, 0x18
shr r15, 0x20
movzx r12d, r12b
movzx r15d, r15b
xor r9, qword [rdx + r15*8]
lea rdx, [0x005fc420]
mov r15, rbp
shr rbp, 0x20
shr r15, 0x28
movzx ebp, bpl
movzx r15d, r15b
xor r9, qword [rdx + r15*8]
lea rdx, [0x005fbc20]
mov r15, rsi
shr rsi, 0x28
shr r15, 0x30
movzx esi, sil
movzx r15d, r15b
xor r9, qword [rdx + r15*8]
mov rdx, r14
movzx r15d, r8b
movzx edx, dh
lea r8, [0x005fe420]
mov r14, qword [r8 + rdx*8]
lea rdx, [0x005fec20]
xor r14, qword [rdx + r15*8]
lea r8, [rbx + 0x71]
mov rbx, qword [rsp + 0x30]
lea r15, [0x005fb420]
lea rdx, [0x005fdc20]
xor r8, r14
xor r8, qword [r15 + rdi*8]
lea r14, [0x005fdc20]
xor r8, qword [r14 + r13*8]
lea r13, [0x005fcc20]
xor r8, qword [r10 + r12*8]
xor r8, qword [r13 + rbp*8]
lea rbp, [0x005fc420]
xor r8, qword [rbp + rsi*8]
lea rsi, [0x005fbc20]
mov rbp, r15
xor r8, qword [rsi + r11*8]
movzx esi, bh
mov rbx, qword [rsp + 0x38]
lea r12, [0x005fe420]
mov r14, qword [r12 + rsi*8]
lea rdi, [0x005fec20]
lea rsi, [0x005fbc20]
mov r11, r8
shr r11, 0x38
xor r14, qword [r15 + r11*8]
lea r15, [0x005fc420]
movzx r11d, byte [rsp + 0x48]
xor r14, qword [rdi + r11*8]
mov r11, qword [rsp + 0x38]
shr r11, 0x10
movzx r11d, r11b
xor r14, qword [rdx + r11*8]
mov r11, qword [rsp + 0x40]
shr r11, 0x18
movzx r11d, r11b
xor r14, qword [r10 + r11*8]
mov r11, rcx
shr r11, 0x20
movzx r11d, r11b
xor r14, qword [r13 + r11*8]
mov r11, rax
shr r11, 0x28
movzx r11d, r11b
xor r14, qword [r15 + r11*8]
mov r11, r9
mov r15, rsi
shr r11, 0x30
movzx r11d, r11b
xor r14, qword [rsi + r11*8]
mov r11, qword [rsp + 0x48]
movzx esi, byte [rsp + 0x30]
mov qword [rsp + 0x50], r14
mov r14, rdi
shr r11, 0x38
mov r13, qword [rdi + rsi*8]
lea rsi, [0x005fcc20]
movzx edi, bh
xor r13, qword [rbp + r11*8]
mov r11, qword [rsp + 0x40]
xor r13, qword [r12 + rdi*8]
lea rdi, [0x005fc420]
shr r11, 0x10
movzx r11d, r11b
xor r13, qword [rdx + r11*8]
mov r11, rcx
shr r11, 0x18
movzx r11d, r11b
xor r13, qword [r10 + r11*8]
mov r11, rax
shr r11, 0x20
mov rbx, qword [rsp + 0x48]
movzx r11d, r11b
mov rdx, qword [rsp + 0x40]
xor r13, qword [rsi + r11*8]
mov r11, r9
shr r11, 0x28
movzx esi, byte [rsp + 0x38]
movzx r11d, r11b
xor r13, qword [rdi + r11*8]
mov r11, r8
movzx edi, dh
shr r11, 0x30
lea rdx, [0x005fb420]
movzx r11d, r11b
xor r13, qword [r15 + r11*8]
mov r11, rbx
shr r11, 0x30
movzx r11d, r11b
mov r12, qword [r15 + r11*8]
mov r15, qword [rsp + 0x30]
xor r12, qword [r14 + rsi*8]
lea rsi, [0x005fdc20]
mov r11, r15
shr r11, 0x38
xor r12, qword [rbp + r11*8]
lea rbp, [0x005fcc20]
mov r11, rdi
lea rdi, [0x005fe420]
xor r12, qword [rdi + r11*8]
mov r11, rcx
movzx edi, ch
shr r11, 0x10
movzx r11d, r11b
xor r12, qword [rsi + r11*8]
mov r11, rax
shr r11, 0x18
movzx esi, byte [rsp + 0x40]
movzx r11d, r11b
xor r12, qword [r10 + r11*8]
mov r11, r9
shr r11, 0x20
movzx r11d, r11b
xor r12, qword [rbp + r11*8]
lea rbp, [0x005fc420]
mov r11, r8
shr r11, 0x28
movzx r11d, r11b
xor r12, qword [rbp + r11*8]
mov r11, rbx
shr r11, 0x28
movzx r11d, r11b
mov rbp, qword [rbp + r11*8]
mov r11, r15
lea r15, [0x005fbc20]
shr r11, 0x30
xor rbp, qword [r14 + rsi*8]
movzx r11d, r11b
xor rbp, qword [r15 + r11*8]
lea rsi, [0x005fdc20]
mov r11, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
shr r11, 0x38
xor rbp, qword [rdx + r11*8]
mov r11, rdi
shr r15, 0x38
lea rdi, [0x005fe420]
xor rbp, qword [rdi + r11*8]
mov r11, rax
movzx edi, cl
shr r11, 0x10
movzx r11d, r11b
xor rbp, qword [rsi + r11*8]
lea rsi, [0x005fcc20]
mov r11, r9
shr r11, 0x18
movzx r11d, r11b
xor rbp, qword [r10 + r11*8]
lea r10, [0x005fdc20]
mov r11, r8
shr r11, 0x20
movzx r11d, r11b
xor rbp, qword [rsi + r11*8]
mov r11, rbx
shr r11, 0x20
movzx r11d, r11b
mov rsi, qword [rsi + r11*8]
mov r11, qword [rsp + 0x30]
xor rsi, qword [r14 + rdi*8]
lea rdi, [0x005fc420]
shr r11, 0x28
movzx r11d, r11b
xor rsi, qword [rdi + r11*8]
movzx edi, ah
xor rsi, qword [rdx + r15*8]
mov r15, r9
mov r11, rdi
shr r15, 0x10
lea rdi, [0x005fe420]
xor rsi, qword [rdi + r11*8]
movzx r11d, r15b
mov r15, r8
shr r15, 0x18
xor rsi, qword [r10 + r11*8]
movzx r11d, r15b
mov r15, qword [rsp + 0x38]
lea r10, [0x005fd420]
xor rsi, qword [r10 + r11*8]
shr r15, 0x30
movzx r11d, r15b
lea r15, [0x005fbc20]
xor rsi, qword [r15 + r11*8]
mov r11, rbx
shr r11, 0x18
movzx r11d, r11b
mov r11, qword [r10 + r11*8]
lea r10, [0x005fdc20]
mov qword [rsp + 0x48], rsi
movzx esi, al
xor r11, qword [r14 + rsi*8]
lea r14, [0x005fcc20]
mov rsi, qword [rsp + 0x30]
shr rsi, 0x20
movzx esi, sil
xor r11, qword [r14 + rsi*8]
mov rsi, rcx
movzx r14d, r9b
shr rsi, 0x38
xor r11, qword [rdx + rsi*8]
mov rdx, r9
shr r9, 0x38
movzx esi, dh
xor r11, qword [rdi + rsi*8]
mov rsi, r8
mov rdi, r10
shr rsi, 0x10
lea rdx, [0x005fb420]
movzx esi, sil
xor r11, qword [r10 + rsi*8]
lea r10, [0x005fc420]
mov rsi, qword [rsp + 0x38]
shr rsi, 0x28
movzx esi, sil
xor r11, qword [r10 + rsi*8]
lea r10, [0x005fd420]
mov rsi, qword [rsp + 0x40]
shr rsi, 0x30
movzx esi, sil
xor r11, qword [r15 + rsi*8]
mov rsi, rbx
mov r15, rax
shr rsi, 0x10
movzx esi, sil
shr r15, 0x38
mov rdi, qword [rdi + rsi*8]
lea rsi, [0x005fec20]
xor rdi, qword [rsi + r14*8]
lea r14, [0x005fe420]
mov rsi, qword [rsp + 0x30]
shr rsi, 0x18
movzx esi, sil
xor rdi, qword [r10 + rsi*8]
xor rdi, qword [rdx + r15*8]
mov rdx, r8
movzx r8d, r8b
mov r15, qword [rsp + 0x38]
movzx esi, dh
xor rdi, qword [r14 + rsi*8]
lea rdx, [0x005fcc20]
shr r15, 0x20
movzx esi, r15b
mov r15, qword [rsp + 0x40]
xor rdi, qword [rdx + rsi*8]
lea rdx, [0x005fc420]
shr r15, 0x28
movzx esi, r15b
mov r15, rcx
shr r15, 0x30
xor rdi, qword [rdx + rsi*8]
movzx esi, r15b
lea r15, [0x005fbc20]
xor rdi, qword [r15 + rsi*8]
lea rdx, [0x005fb420]
movzx esi, bh
mov rsi, qword [r14 + rsi*8]
lea r14, [0x005fec20]
xor rsi, qword [r14 + r8*8]
lea r14, [0x005fdc20]
mov r8, qword [rsp + 0x30]
shr r8, 0x10
movzx r8d, r8b
xor rsi, qword [r14 + r8*8]
mov r8, rsi
xor r8, qword [rdx + r9*8]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
shr rsi, 0x18
movzx edx, sil
shr rbx, 0x20
xor r8, qword [r10 + rdx*8]
lea rdx, [0x005fcc20]
movzx ebx, bl
xor r8, qword [rdx + rbx*8]
shr rcx, 0x28
add qword [rsp + 0x28], 2
shr rax, 0x30
movzx ecx, cl
mov rbx, qword [rsp + 0x28]
movzx eax, al
lea rdx, [0x005fc420]
xor r8, qword [rdx + rcx*8]
xor r8, qword [r15 + rax*8]
cmp rbx, 0xa
jne 0x46b010
mov rax, qword [rsp + 0x58]
movq xmm0, rdi
sub rax, qword [rsp + 0x1a0]
pinsrq xmm0, r8, 1
pxor xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x90], xmm0
movq xmm1, qword [rsp + 0x48]
movups xmmword [rsp + 0xf0], xmm0
pxor xmm0, xmm0
mov rbx, qword [rsp + 0x198]
pinsrq xmm1, r11, 1
pxor xmm1, xmmword [rsp + 0x80]
movups xmmword [rsp + 0x80], xmm1
lea rsi, [rax + 0x20]
mov eax, dword [rsp + 0x1a0]
movups xmmword [rsp + 0xe0], xmm1
mov rdx, qword [rsi + rax - 8]
mov qword [rbx + rax - 8], rdx
mov eax, dword [rsp + 0x1a0]
movabs rdx, 0xff000000000000
mov rdi, qword [rsp + 0x198]
lea ecx, [rax - 1]
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x180]
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov rax, qword [rsp + 0x1a0]
mov qword [rbx + 0x88], 0
shl rax, 0x2b
and rdx, rax
mov rax, qword [rsp + 0x1a0]
shl rax, 0x3b
or rax, rdx
mov qword [rbx + 0x80], rax
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rax + 2]
mov esi, pe_nt_image_headers64
sub rsi, r9
jmp 0x46af09