Function at 0x46a390
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 0x46afc0
mov esi, 0x40
lea rbx, [rax + 1]
sub rsi, r9
lea rdi, [rsp + 0xe0]
lea rcx, [rsp + 0xe1]
xor edx, edx
lea r8, [rsi - 9]
mov qword [rsp + 0x58], rdi
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.004659d0
mov rax, qword [rsp + 0x180]
mov r10, qword [rax + 0x80]
mov rdx, qword [rax + 0x78]
mov r9, qword [rax + 0x48]
mov rsi, qword [rax + 0x50]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rax + 0x68]
mov qword [rsp + 0x90], rdx
mov r11, qword [rax + 0x70]
mov r8, qword [rax + 0x58]
mov rax, rdx
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], rsi
mov r13, rsi
mov rbp, rbx
mov rdi, rax
mov qword [rsp + 0x98], r10
mov r12, r8
mov qword [rsp + 0xd0], rdx
mov rdx, r10
mov qword [rsp + 0xd8], r10
xor r10d, r10d
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 qword [rsp + 0x70], r8
mov qword [rsp + 0xb0], r8
mov r8, rdx
mov rbx, qword [rsp + 0x28]
mov r14, qword [rsp + 0x50]
lea r15, [0x005f2a60]
lea r9, [0x005ef260]
lea rcx, [0x005f2260]
lea r10, [0x005f1260]
lea rax, [rbx + 0x10]
xor r14, rbx
lea rsi, [rbx + 0x40]
xor rsi, qword [rsp + 0x48]
xor r13, rax
lea rax, [rbx + 0x20]
movzx edx, r14b
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 rbx, r13
mov rdx, r8
shr rdx, 0x38
xor rax, qword [r9 + rdx*8]
movzx edx, bh
lea rbx, [0x005f1a60]
xor rax, qword [rcx + rdx*8]
mov rdx, r12
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, rbp
lea rbx, [0x005f0a60]
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]
mov rdx, r11
lea rbx, [0x005f0260]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, rdi
lea rbx, [0x005efa60]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r14
mov rbx, r12
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
shr rdx, 0x38
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
lea rcx, [0x005f1a60]
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rsi
lea rcx, [0x005f0a60]
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]
mov rdx, rdi
lea rcx, [0x005f0260]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r8
lea rcx, [0x005efa60]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rcx + rdx*8]
lea rdx, [0x005efa60]
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, [0x005f1a60]
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]
mov rax, rsi
lea rbx, [0x005f0a60]
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]
mov rax, r8
lea rbx, [0x005f0260]
shr rax, 0x28
movzx eax, al
xor rdx, qword [rbx + rax*8]
mov rax, r14
shr rax, 0x28
mov qword [rsp + 0x38], rdx
lea rdx, [0x005f0a60]
movzx eax, al
mov rbx, qword [rbx + rax*8]
mov rax, qword [rsp + 0x28]
xor rbx, qword [r15 + rcx*8]
lea rcx, [0x005f2260]
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]
mov rax, r11
lea rcx, [0x005f1a60]
shr rax, 0x10
movzx eax, al
xor rbx, qword [rcx + rax*8]
mov rax, rdi
lea rcx, [0x005efa60]
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
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x28]
movzx ecx, al
movzx eax, sil
mov rcx, qword [rdx + rcx*8]
xor rcx, qword [r15 + rax*8]
mov rax, rbx
mov rdx, r9
add rax, 0x41
xor rcx, rax
mov rax, rbp
shr rax, 0x38
xor rcx, qword [r9 + rax*8]
mov rax, r11
lea r9, [0x005f2260]
movzx eax, ah
xor rcx, qword [r9 + rax*8]
mov rax, rdi
lea r9, [0x005f1a60]
shr rax, 0x10
movzx eax, al
xor rcx, qword [r9 + rax*8]
mov rax, r8
lea r9, [0x005f0260]
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]
mov rax, r12
lea r9, [0x005efa60]
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, [0x005f2260]
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]
movzx r9d, r9b
lea r15, [0x005f1a60]
xor rax, qword [r15 + r9*8]
mov r9, r13
mov rdx, r15
shr r9, 0x20
lea r15, [0x005f0a60]
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
mov r9, r12
lea r15, [0x005f0260]
shr r9, 0x28
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
mov r9, rbp
lea r15, [0x005efa60]
shr r9, 0x30
movzx r9d, r9b
xor rax, qword [r15 + r9*8]
mov r9, r14
movzx r15d, dil
shr r9, 0x10
shr rdi, 0x38
movzx r9d, r9b
mov r9, qword [rdx + r9*8]
lea rdx, [0x005f2a60]
xor r9, qword [rdx + r15*8]
lea rdx, [0x005ef260]
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, [0x005f2260]
xor r9, qword [rdx + r15*8]
mov r15, r13
lea rdx, [0x005f0a60]
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]
mov r15, rbp
lea rdx, [0x005f0260]
shr rbp, 0x20
shr r15, 0x28
movzx ebp, bpl
movzx r15d, r15b
xor r9, qword [rdx + r15*8]
mov r15, rsi
lea rdx, [0x005efa60]
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, [0x005f2260]
mov r14, qword [r8 + rdx*8]
lea rdx, [0x005f2a60]
lea r8, [rbx + 0x71]
mov rbx, qword [rsp + 0x30]
xor r14, qword [rdx + r15*8]
lea r15, [0x005ef260]
lea rdx, [0x005f1a60]
xor r8, r14
lea r14, [0x005f1a60]
xor r8, qword [r15 + rdi*8]
xor r8, qword [r14 + r13*8]
lea r13, [0x005f0a60]
xor r8, qword [r10 + r12*8]
xor r8, qword [r13 + rbp*8]
lea rbp, [0x005f0260]
lea r12, [0x005f2260]
xor r8, qword [rbp + rsi*8]
lea rsi, [0x005efa60]
lea rdi, [0x005f2a60]
mov rbp, r15
xor r8, qword [rsi + r11*8]
movzx esi, bh
mov rbx, qword [rsp + 0x38]
mov r11, r8
mov r14, qword [r12 + rsi*8]
lea rsi, [0x005efa60]
shr r11, 0x38
xor r14, qword [r15 + r11*8]
movzx r11d, byte [rsp + 0x48]
lea r15, [0x005f0260]
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]
xor r13, qword [rbp + r11*8]
movzx edi, bh
lea rsi, [0x005f0a60]
mov r11, qword [rsp + 0x40]
xor r13, qword [r12 + rdi*8]
lea rdi, [0x005f0260]
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
mov rbx, qword [rsp + 0x48]
shr r11, 0x20
mov rdx, qword [rsp + 0x40]
movzx r11d, r11b
xor r13, qword [rsi + r11*8]
mov r11, r9
movzx esi, byte [rsp + 0x38]
shr r11, 0x28
movzx r11d, r11b
xor r13, qword [rdi + r11*8]
mov r11, r8
movzx edi, dh
shr r11, 0x30
lea rdx, [0x005ef260]
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, [0x005f1a60]
mov r11, r15
shr r11, 0x38
xor r12, qword [rbp + r11*8]
mov r11, rdi
lea rdi, [0x005f2260]
xor r12, qword [rdi + r11*8]
mov r11, rcx
lea rbp, [0x005f0a60]
movzx edi, ch
shr r11, 0x10
movzx r11d, r11b
xor r12, qword [rsi + r11*8]
mov r11, rax
movzx esi, byte [rsp + 0x40]
shr r11, 0x18
movzx r11d, r11b
xor r12, qword [r10 + r11*8]
mov r11, r9
shr r11, 0x20
movzx r11d, r11b
xor r12, qword [rbp + r11*8]
mov r11, r8
lea rbp, [0x005f0260]
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, [0x005efa60]
xor rbp, qword [r14 + rsi*8]
shr r11, 0x30
lea rsi, [0x005f1a60]
movzx r11d, r11b
xor rbp, qword [r15 + r11*8]
mov r11, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
shr r11, 0x38
xor rbp, qword [rdx + r11*8]
mov r11, rdi
lea rdi, [0x005f2260]
shr r15, 0x38
xor rbp, qword [rdi + r11*8]
mov r11, rax
movzx edi, cl
shr r11, 0x10
movzx r11d, r11b
xor rbp, qword [rsi + r11*8]
mov r11, r9
lea rsi, [0x005f0a60]
shr r11, 0x18
movzx r11d, r11b
xor rbp, qword [r10 + r11*8]
mov r11, r8
lea r10, [0x005f1a60]
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, [0x005f0260]
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, [0x005f2260]
xor rsi, qword [rdi + r11*8]
movzx r11d, r15b
mov r15, r8
shr r15, 0x18
xor rsi, qword [r10 + r11*8]
lea r10, [0x005f1260]
movzx r11d, r15b
mov r15, qword [rsp + 0x38]
xor rsi, qword [r10 + r11*8]
shr r15, 0x30
movzx r11d, r15b
lea r15, [0x005efa60]
xor rsi, qword [r15 + r11*8]
mov r11, rbx
shr r11, 0x18
mov qword [rsp + 0x48], rsi
movzx esi, al
movzx r11d, r11b
mov r11, qword [r10 + r11*8]
xor r11, qword [r14 + rsi*8]
lea r14, [0x005f0a60]
lea r10, [0x005f1a60]
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
lea rdx, [0x005ef260]
xor r11, qword [rdi + rsi*8]
mov rsi, r8
mov rdi, r10
shr rsi, 0x10
movzx esi, sil
xor r11, qword [r10 + rsi*8]
mov rsi, qword [rsp + 0x38]
lea r10, [0x005f0260]
shr rsi, 0x28
movzx esi, sil
xor r11, qword [r10 + rsi*8]
mov rsi, qword [rsp + 0x40]
lea r10, [0x005f1260]
shr rsi, 0x30
movzx esi, sil
xor r11, qword [r15 + rsi*8]
mov rsi, rbx
mov r15, rax
shr rsi, 0x10
shr r15, 0x38
movzx esi, sil
mov rdi, qword [rdi + rsi*8]
lea rsi, [0x005f2a60]
xor rdi, qword [rsi + r14*8]
mov rsi, qword [rsp + 0x30]
lea r14, [0x005f2260]
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
lea rdx, [0x005f0a60]
xor rdi, qword [r14 + rsi*8]
shr r15, 0x20
movzx esi, r15b
mov r15, qword [rsp + 0x40]
xor rdi, qword [rdx + rsi*8]
lea rdx, [0x005f0260]
shr r15, 0x28
movzx esi, r15b
mov r15, rcx
shr r15, 0x30
xor rdi, qword [rdx + rsi*8]
lea rdx, [0x005ef260]
movzx esi, r15b
lea r15, [0x005efa60]
xor rdi, qword [r15 + rsi*8]
movzx esi, bh
mov rsi, qword [r14 + rsi*8]
lea r14, [0x005f2a60]
xor rsi, qword [r14 + r8*8]
mov r8, qword [rsp + 0x30]
lea r14, [0x005f1a60]
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]
movzx ebx, bl
lea rdx, [0x005f0a60]
xor r8, qword [rdx + rbx*8]
shr rcx, 0x28
add qword [rsp + 0x28], 2
lea rdx, [0x005f0260]
shr rax, 0x30
mov rbx, qword [rsp + 0x28]
movzx ecx, cl
movzx eax, al
xor r8, qword [rdx + rcx*8]
xor r8, qword [r15 + rax*8]
cmp rbx, 0xa
jne 0x46a500
movq xmm2, r8
movq xmm3, r11
movq xmm0, rdi
movq xmm1, qword [rsp + 0x48]
punpcklqdq xmm0, xmm2
mov rax, qword [rsp + 0x58]
pxor xmm0, xmmword [rsp + 0x90]
punpcklqdq xmm1, xmm3
sub rax, qword [rsp + 0x1a0]
pxor xmm1, xmmword [rsp + 0x80]
movups xmmword [rsp + 0x90], xmm0
mov rbx, qword [rsp + 0x198]
lea rcx, [rax + 0x20]
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0xe0], xmm1
movups xmmword [rsp + 0xf0], xmm0
mov rax, qword [rax + 0x20]
mov qword [rbx], rax
mov eax, dword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x198]
mov rdx, qword [rcx + rax - 8]
mov qword [rbx + rax - 8], rdx
mov rax, qword [rsp + 0x198]
lea r8, [rax + 8]
mov r9, rax
xor eax, eax
and r8, 0xfffffffffffffff8
sub r9, r8
sub rcx, r9
add r9d, dword [rsp + 0x1a0]
and r9d, 0xfffffff8
mov edx, eax
add eax, 8
mov r10, qword [rcx + rdx]
mov qword [r8 + rdx], r10
cmp eax, r9d
jb 0x46af33
mov rax, qword [rsp + 0x180]
pxor xmm0, xmm0
movabs rdx, 0xff000000000000
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
mov esi, pe_nt_image_headers64
lea rbx, [rax + 2]
sub rsi, r9
jmp 0x46a3f9