Function at 0x487670
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
sarx r8d, eax, r8d
mov qword [rsp + 0x180], rcx
mov r10d, edx
mov rax, qword [rsp + 0x180]
mov edx, r8d
mov rcx, qword [rcx + 0x40]
mov qword [rsp + 0x198], r9
neg edx
and edx, r10d
or edx, r8d
mov rax, qword [rax + 0x88]
mov byte [rsp + 0xe0], dl
cmp rcx, 0x37
ja 0x488360
mov esi, 0x40
lea rbx, [rax + 1]
sub rsi, rcx
lea rdi, [rsp + 0xe0]
lea rcx, [rsp + 0xe1]
lea r8, [rsi - 9]
xor edx, edx
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.004827a0
mov rax, qword [rsp + 0x180]
mov r8, qword [rax + 0x58]
mov rdx, qword [rax + 0x78]
mov rsi, qword [rax + 0x50]
mov r9, qword [rax + 0x48]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rax + 0x68]
mov r11, qword [rax + 0x70]
mov r10, qword [rax + 0x80]
mov qword [rsp + 0x70], r8
mov rax, rdx
mov r12, r8
mov qword [rsp + 0xb0], r8
xor r8d, r8d
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x90], rdx
mov r15, rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xd0], rdx
mov rsi, rax
mov r14, rbx
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x78], rbx
mov rdx, r10
mov rbp, rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], r11
mov rax, r11
mov qword [rsp + 0x98], r10
mov qword [rsp + 0xa0], r9
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], r11
mov qword [rsp + 0xd8], r10
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x20], r8
lea r13, [0x0069f980]
mov r8, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
lea rcx, [r8 + 0x20]
lea r11, [r8 + 0x10]
lea r10, [r8 + 0x30]
xor rdi, r8
xor r12, rcx
lea rcx, [r8 + 0x50]
xor r11, r15
xor r10, r14
xor rax, rcx
lea rcx, [r8 + 0x60]
mov rbx, r11
lea r15, [0x0069f180]
xor rsi, rcx
lea rcx, [r8 + 0x70]
lea r14, [0x0069e980]
lea r9, [r8 + 0x40]
xor rdx, rcx
movzx ecx, bh
mov rbx, r12
xor r9, rbp
shr rbx, 0x10
mov rcx, qword [r15 + rcx*8]
movzx ebp, dil
mov qword [rsp + 0x50], r9
movzx ebx, bl
shr r9, 0x20
xor rcx, qword [r14 + rbx*8]
mov rbx, rcx
lea rcx, [r8 + 1]
xor rcx, qword [r13 + rbp*8]
lea r8, [0x0069e180]
movzx ebp, r9b
lea r9, [0x0069d180]
xor rcx, rbx
mov rbx, r10
shr rbx, 0x18
movzx ebx, bl
mov rbx, qword [r8 + rbx*8]
lea r8, [0x0069d980]
xor rbx, qword [r8 + rbp*8]
mov rbp, rdx
lea r8, [0x0069c180]
shr rbp, 0x38
xor rbx, qword [r8 + rbp*8]
mov rbp, rsi
shr rbp, 0x30
movzx ebp, bpl
xor rcx, rbx
mov rbx, rax
shr rbx, 0x28
movzx ebx, bl
mov rbx, qword [r9 + rbx*8]
lea r9, [0x0069c980]
xor rbx, qword [r9 + rbp*8]
mov r9, qword [rsp + 0x20]
mov rbp, rdi
shr rbp, 0x38
xor rcx, rbx
mov rbx, r12
mov qword [rsp + 0x30], rcx
movzx ecx, bh
mov rbx, r10
shr rbx, 0x10
mov rcx, qword [r15 + rcx*8]
movzx ebx, bl
xor rcx, qword [r14 + rbx*8]
mov rbx, rcx
lea rcx, [r9 + 0x11]
xor rcx, qword [r8 + rbp*8]
mov rbp, rax
shr rbp, 0x20
lea r8, [0x0069e180]
lea r9, [0x0069d180]
movzx ebp, bpl
xor rcx, rbx
mov rbx, qword [rsp + 0x50]
shr rbx, 0x18
movzx ebx, bl
mov rbx, qword [r8 + rbx*8]
lea r8, [0x0069d980]
xor rbx, qword [r8 + rbp*8]
movzx ebp, r11b
xor rbx, qword [r13 + rbp*8]
mov rbp, rdx
xor rcx, rbx
mov rbx, rsi
shr rbx, 0x28
shr rbp, 0x30
movzx ebx, bl
movzx ebp, bpl
mov rbx, qword [r9 + rbx*8]
lea r9, [0x0069c980]
xor rbx, qword [r9 + rbp*8]
mov rbp, rax
shr rbp, 0x18
movzx ebp, bpl
xor rcx, rbx
mov rbx, r10
mov qword [rsp + 0x38], rcx
movzx ecx, bh
mov rbx, qword [rsp + 0x50]
mov rcx, qword [r15 + rcx*8]
shr rbx, 0x10
movzx ebx, bl
xor rcx, qword [r14 + rbx*8]
lea rbx, [0x0069e180]
xor rcx, qword [rbx + rbp*8]
mov rbp, rdi
shr rbp, 0x30
mov rbx, rcx
movzx ecx, bpl
movzx ebp, r12b
mov rcx, qword [r9 + rcx*8]
mov r9, qword [rsp + 0x20]
xor rcx, qword [r13 + rbp*8]
mov rbp, r11
shr rbp, 0x38
mov r13, rbp
lea rbp, [r9 + 0x21]
lea r9, [0x0069c180]
xor rbp, qword [r9 + r13*8]
lea r9, [0x0069d180]
lea r13, [0x0069f980]
xor rcx, rbp
mov rbp, rdx
xor rcx, rbx
mov rbx, rsi
shr rbp, 0x28
shr rbx, 0x20
movzx ebp, bpl
movzx ebx, bl
mov rbx, qword [r8 + rbx*8]
xor rbx, qword [r9 + rbp*8]
mov rbp, rax
lea r8, [0x0069e180]
shr rbp, 0x10
xor rcx, rbx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
movzx ecx, bpl
mov rbp, rsi
shr rbp, 0x18
movzx ebp, bpl
movzx ebx, bh
mov rbx, qword [r15 + rbx*8]
xor rbx, qword [r14 + rcx*8]
xor rbx, qword [r8 + rbp*8]
mov rbp, rdi
mov r8, qword [rsp + 0x20]
shr rbp, 0x28
movzx ecx, bpl
movzx ebp, r10b
mov rcx, qword [r9 + rcx*8]
xor rcx, qword [r13 + rbp*8]
mov rbp, r12
lea r9, [0x0069c180]
shr rbp, 0x38
mov r13, rbp
lea rbp, [r8 + 0x31]
lea r8, [0x0069d980]
xor rbp, qword [r9 + r13*8]
mov r9, r8
xor rcx, rbp
mov rbp, rdx
xor rcx, rbx
shr rbp, 0x20
mov rbx, r11
movzx ebp, bpl
shr rbx, 0x30
mov r13, qword [r8 + rbp*8]
movzx ebx, bl
lea rbp, [0x0069c980]
lea r8, [0x0069e180]
xor r13, qword [rbp + rbx*8]
mov rbx, rsi
xor rcx, r13
shr rbx, 0x10
movzx r13d, bl
mov rbx, rdx
mov qword [rsp + 0x40], rcx
movzx ecx, ah
shr rbx, 0x18
mov rbp, qword [r15 + rcx*8]
xor rbp, qword [r14 + r13*8]
movzx r13d, bl
mov rbx, rdi
mov r14, r12
xor rbp, qword [r8 + r13*8]
movzx r13d, byte [rsp + 0x50]
shr rbx, 0x20
mov r8, r9
movzx ecx, bl
lea rbx, [0x0069f980]
shr r14, 0x30
mov rcx, qword [r9 + rcx*8]
lea r9, [0x0069c180]
xor rcx, qword [rbx + r13*8]
mov rbx, qword [rsp + 0x20]
mov r13, r10
shr r13, 0x38
add rbx, 0x41
xor rbx, qword [r9 + r13*8]
lea r13, [0x0069d180]
xor rbx, rcx
movzx ecx, r14b
xor rbp, rbx
mov rbx, r11
shr rbx, 0x28
movzx ebx, bl
mov rbx, qword [r13 + rbx*8]
lea r13, [0x0069c980]
xor rbx, qword [r13 + rcx*8]
mov rcx, rsi
movzx ecx, ch
mov r13, qword [r15 + rcx*8]
xor rbx, rbp
mov rbp, rdx
shr rbp, 0x10
movzx r14d, bpl
lea rbp, [0x0069e980]
xor r13, qword [rbp + r14*8]
mov r14, r11
shr r14, 0x20
movzx r14d, r14b
xor r13, qword [r8 + r14*8]
mov r14, rdi
lea r8, [0x0069e180]
shr r14, 0x18
movzx ecx, r14b
movzx r14d, al
mov rbp, qword [r8 + rcx*8]
lea rcx, [0x0069f980]
xor rbp, qword [rcx + r14*8]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
shr r14, 0x38
add rcx, 0x51
xor rcx, qword [r9 + r14*8]
mov r14, r12
shr r14, 0x28
xor rcx, rbp
xor r13, rcx
movzx ecx, r14b
mov r14, r10
shr r14, 0x30
movzx ebp, r14b
lea r14, [0x0069d180]
mov rcx, qword [r14 + rcx*8]
lea r14, [0x0069c980]
xor rcx, qword [r14 + rbp*8]
movzx ebp, dh
movzx edx, dl
xor rcx, r13
mov r13, r11
shr r13, 0x18
mov qword [rsp + 0x48], rcx
lea rcx, [0x0069e980]
movzx r14d, r13b
mov r13, qword [r15 + rbp*8]
lea rbp, [0x0069d980]
lea r15, [0x0069f980]
xor r13, qword [r8 + r14*8]
mov r14, r12
mov r8, rdi
shr r14, 0x20
shr r8, 0x10
shr r11, 0x10
movzx r14d, r14b
shr r12, 0x18
movzx r11d, r11b
xor r13, qword [rbp + r14*8]
movzx ebp, r8b
mov r8, rax
movzx r14d, sil
shr r8, 0x38
mov rbp, qword [rcx + rbp*8]
xor rbp, qword [r15 + r14*8]
movzx r12d, r12b
mov r15, r8
mov r8, qword [rsp + 0x20]
mov r11, qword [rcx + r11*8]
shr rsi, 0x38
shr rax, 0x30
movzx eax, al
lea r14, [r8 + 0x61]
xor r14, qword [r9 + r15*8]
lea r9, [0x0069d180]
lea r8, [0x0069e180]
xor r11, qword [r8 + r12*8]
lea r12, [0x0069f980]
xor r14, rbp
mov rbp, qword [rsp + 0x50]
xor r13, r14
mov r14, r10
shr r10, 0x20
shr r14, 0x28
movzx r10d, r10b
movzx r14d, r14b
shr rbp, 0x30
mov r15, qword [r9 + r14*8]
lea r14, [0x0069c980]
lea r9, [0x0069c180]
movzx ebp, bpl
xor r15, qword [r14 + rbp*8]
mov r14, rcx
mov rcx, rdi
lea rbp, [0x0069d980]
movzx edi, ch
xor r11, qword [rbp + r10*8]
mov r8, rbp
xor r13, r15
lea r15, [0x0069f180]
mov r10, qword [r15 + rdi*8]
xor r10, qword [r12 + rdx*8]
mov rdi, qword [rsp + 0x20]
mov rdx, r10
lea r10, [rdi + 0x71]
xor r10, qword [r9 + rsi*8]
mov r9, qword [rsp + 0x50]
lea rdi, [0x0069c980]
mov rsi, rdi
shr r9, 0x28
xor rdx, r10
movzx r9d, r9b
lea r10, [0x0069d180]
xor r11, rdx
mov rdx, qword [r10 + r9*8]
xor rdx, qword [rdi + rax*8]
mov rax, rbx
shr rax, 0x20
movzx r9d, al
mov rax, qword [rsp + 0x48]
mov rdi, qword [rbp + r9*8]
movzx r9d, byte [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
xor rdx, r11
lea r11, [0x0069e180]
shr rax, 0x28
movzx eax, al
xor rdi, qword [r10 + rax*8]
mov rax, r13
mov r10, qword [rsp + 0x28]
shr rax, 0x30
movzx eax, al
mov rax, qword [rsi + rax*8]
xor rax, qword [r12 + r9*8]
xor rax, rdi
shr r10, 0x10
shr rbp, 0x18
movzx r9d, bpl
movzx r10d, r10b
mov rbp, r14
mov rdi, qword [r14 + r10*8]
xor rdi, qword [r11 + r9*8]
mov r14, rdx
mov rcx, qword [rsp + 0x38]
shr r14, 0x38
mov r10, r14
mov r14, r15
movzx esi, ch
mov rcx, qword [rsp + 0x28]
mov r9, qword [r15 + rsi*8]
lea rsi, [0x0069c180]
lea r15, [0x0069d180]
xor r9, qword [rsi + r10*8]
xor rdi, r9
mov r9, rdx
mov rsi, rdi
shr r9, 0x30
mov rdi, qword [rsp + 0x38]
xor rsi, rax
mov rax, r13
movzx r9d, r9b
shr rax, 0x28
mov qword [rsp + 0x50], rsi
movzx esi, ch
lea rcx, [0x0069c980]
movzx eax, al
mov r10, rsi
mov rsi, r14
mov r15, qword [r15 + rax*8]
lea rax, [0x0069c980]
xor r15, qword [rax + r9*8]
mov r9, qword [rsp + 0x48]
mov rax, rbx
shr rax, 0x18
movzx eax, al
mov rax, qword [r11 + rax*8]
mov r11, qword [r14 + r10*8]
movzx r10d, dil
mov r14, r12
shr r9, 0x20
movzx r9d, r9b
xor rax, qword [r8 + r9*8]
mov r9, qword [rsp + 0x40]
shr r9, 0x10
movzx r9d, r9b
xor rax, r15
mov r15, qword [r12 + r10*8]
lea r10, [0x0069c180]
xor r11, qword [rbp + r9*8]
mov r9, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
shr r9, 0x38
xor r15, qword [r10 + r9*8]
shr r12, 0x18
movzx r9d, r12b
mov r12, r13
shr r12, 0x20
xor r11, r15
mov r15, rax
movzx eax, r12b
xor r15, r11
lea r11, [0x0069e180]
mov r12, qword [r11 + r9*8]
xor r12, qword [r8 + rax*8]
mov rax, rdx
mov r9, rdi
shr rax, 0x28
shr r9, 0x38
lea rdi, [0x0069d180]
movzx eax, al
mov rax, qword [rdi + rax*8]
xor rax, qword [r10 + r9*8]
mov r10, rbx
mov rdi, qword [rsp + 0x30]
shr r10, 0x10
movzx r9d, r10b
movzx r10d, byte [rsp + 0x28]
xor r12, rax
mov rax, qword [rsp + 0x40]
movzx eax, ah
mov rax, qword [rsi + rax*8]
xor rax, qword [rbp + r9*8]
mov r9, rdi
shr r9, 0x30
movzx r9d, r9b
mov r9, qword [rcx + r9*8]
xor r9, qword [r14 + r10*8]
mov rcx, qword [rsp + 0x48]
xor rax, r9
xor r12, rax
mov rax, r13
shr rcx, 0x10
shr rax, 0x18
movzx r9d, al
mov rax, rdx
shr rax, 0x20
mov r10, qword [r11 + r9*8]
movzx r9d, cl
mov rcx, r14
movzx eax, al
xor r10, qword [r8 + rax*8]
movzx eax, bh
mov rax, qword [rsi + rax*8]
xor rax, qword [rbp + r9*8]
movzx r9d, byte [rsp + 0x40]
xor r10, rax
mov rax, rdi
lea rdi, [0x0069d180]
shr rax, 0x28
movzx eax, al
mov rax, qword [rdi + rax*8]
xor rax, qword [r14 + r9*8]
lea r14, [0x0069c980]
mov r9, qword [rsp + 0x38]
mov rdi, r14
shr r9, 0x30
movzx r11d, r9b
mov r9, qword [rsp + 0x28]
mov r14, qword [r14 + r11*8]
lea r11, [0x0069c180]
shr r9, 0x38
xor r14, qword [r11 + r9*8]
lea r11, [0x0069e180]
xor r14, rax
mov rax, qword [rsp + 0x48]
xor r14, r10
mov r10, r13
shr r10, 0x10
movzx r10d, r10b
movzx eax, ah
mov r9, qword [rsi + rax*8]
mov rax, qword [rsp + 0x28]
xor r9, qword [rbp + r10*8]
mov r10, rdx
shr r10, 0x18
movzx r10d, r10b
shr rax, 0x30
mov r10, qword [r11 + r10*8]
lea r11, [0x0069c180]
movzx eax, al
xor r10, qword [rdi + rax*8]
lea rdi, [0x0069d180]
xor r9, r10
mov r10, qword [rsp + 0x38]
mov rbp, r9
mov r9, rdx
shr r9, 0x10
movzx r9d, r9b
shr r10, 0x28
movzx eax, r10b
mov r10, qword [rsp + 0x40]
mov rax, qword [rdi + rax*8]
shr r10, 0x38
xor rax, qword [r11 + r10*8]
mov r10, qword [rsp + 0x30]
movzx r11d, bl
shr r10, 0x20
movzx r10d, r10b
mov r10, qword [r8 + r10*8]
xor r10, qword [rcx + r11*8]
mov rcx, rsi
lea r8, [0x0069e180]
mov r11, rbx
xor r10, rax
mov rax, r13
movzx eax, ah
xor rbp, r10
mov r10, qword [rsp + 0x40]
mov rax, qword [rsi + rax*8]
lea rsi, [0x0069e980]
xor rax, qword [rsi + r9*8]
mov r9, qword [rsp + 0x28]
lea rsi, [0x0069f980]
shr r10, 0x30
movzx r10d, r10b
shr r9, 0x28
movzx r9d, r9b
mov r9, qword [rdi + r9*8]
lea rdi, [0x0069c980]
xor r9, qword [rdi + r10*8]
movzx r10d, byte [rsp + 0x48]
lea rdi, [0x0069d180]
xor rax, r9
mov r9, qword [rsp + 0x30]
shr r11, 0x38
shr r9, 0x18
movzx r9d, r9b
mov r9, qword [r8 + r9*8]
xor r9, qword [rsi + r10*8]
lea r8, [0x0069d980]
lea rsi, [0x0069c180]
mov r10, qword [rsp + 0x38]
shr r10, 0x20
movzx r10d, r10b
mov r10, qword [r8 + r10*8]
xor r10, qword [rsi + r11*8]
movzx esi, dh
mov r11, qword [rsp + 0x40]
mov rsi, qword [rcx + rsi*8]
lea rcx, [0x0069f980]
xor r10, r9
mov r9, qword [rsp + 0x28]
shr r11, 0x28
xor rax, r10
shr r9, 0x20
movzx r9d, r9b
xor rsi, qword [r8 + r9*8]
movzx r9d, r11b
mov r11, rbx
lea r8, [0x0069e180]
shr r11, 0x30
mov r9, qword [rdi + r9*8]
shr rbx, 0x28
movzx r10d, r11b
lea r11, [0x0069c980]
movzx ebx, bl
xor r9, qword [r11 + r10*8]
movzx r10d, r13b
lea r11, [0x0069e980]
shr r13, 0x38
xor rsi, r9
mov r9, qword [rsp + 0x30]
shr r9, 0x10
movzx r9d, r9b
mov r9, qword [r11 + r9*8]
xor r9, qword [rcx + r10*8]
mov rcx, r8
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x48]
shr r10, 0x18
shr r11, 0x38
movzx r10d, r10b
mov r10, qword [r8 + r10*8]
lea r8, [0x0069c180]
xor r10, qword [r8 + r11*8]
lea r8, [0x0069d980]
movzx r11d, dl
lea rdx, [0x0069f180]
xor r10, r9
mov r9, qword [rsp + 0x28]
xor rsi, r10
mov r10, qword [rsp + 0x40]
shr r9, 0x18
movzx r9d, r9b
shr r10, 0x20
mov r9, qword [rcx + r9*8]
mov rcx, qword [rsp + 0x48]
movzx r10d, r10b
xor r9, qword [r8 + r10*8]
mov r10, qword [rdi + rbx*8]
lea rdi, [0x0069c980]
lea r8, [0x0069c180]
mov rbx, qword [rsp + 0x30]
shr rcx, 0x30
movzx ecx, cl
xor r10, qword [rdi + rcx*8]
movzx ecx, bh
mov rdx, qword [rdx + rcx*8]
lea rcx, [0x0069f980]
xor rdx, qword [rcx + r11*8]
mov rcx, qword [rsp + 0x38]
lea r11, [0x0069e980]
xor r9, r10
shr rcx, 0x10
movzx ecx, cl
mov rcx, qword [r11 + rcx*8]
xor rcx, qword [r8 + r13*8]
xor rdx, rcx
add qword [rsp + 0x20], 2
mov rdi, qword [rsp + 0x20]
xor rdx, r9
cmp rdi, 0xa
jne 0x4877e0
vmovq xmm3, rsi
vmovq xmm2, rbp
vpinsrq xmm0, xmm3, rdx, 1
vpinsrq xmm1, xmm2, rax, 1
vxorps xmm0, xmm0, xmmword [rsp + 0x90]
vxorps xmm1, xmm1, xmmword [rsp + 0x80]
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x198]
lea rsi, [rax + 0x20]
vmovups xmmword [rsp + 0x90], xmm0
vmovups xmmword [rsp + 0xf0], xmm0
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x80], xmm1
vmovups xmmword [rsp + 0xe0], xmm1
mov rax, qword [rax + 0x20]
mov qword [rdx], rax
mov eax, dword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x198]
mov rdx, qword [rsi + rax - 8]
mov qword [rdi + rax - 8], rdx
mov rax, qword [rsp + 0x198]
mov ecx, dword [rsp + 0x1a0]
movabs rdx, 0xff000000000000
lea rdi, [rax + 8]
mov r9, rax
and rdi, 0xfffffffffffffff8
sub r9, rdi
add ecx, r9d
sub rsi, r9
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rsp + 0x180]
vmovups xmmword [rax + 0x40], xmm0
vmovups xmmword [rax + 0x50], xmm0
vmovups xmmword [rax + 0x60], xmm0
vmovups xmmword [rax + 0x70], xmm0
mov eax, 0x2b
shlx rax, qword [rsp + 0x1a0], rax
and rdx, rax
mov eax, 0x3b
shlx rax, qword [rsp + 0x1a0], rax
or rax, rdx
mov rdx, qword [rsp + 0x180]
mov qword [rdx + 0x80], rax
mov qword [rdx + 0x88], 0
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, rcx
jmp 0x4876db