Function at 0x6f52caf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov eax, pe_nt_image_headers64
mov qword [rsp + 0x170], rcx
mov qword [rsp + 0x188], r9
mov r9, qword [rcx + 0x40]
mov ecx, r8d
sar eax, cl
mov ecx, eax
neg eax
and edx, eax
mov rax, qword [rsp + 0x170]
or edx, ecx
cmp r9, 0x37
mov byte [rsp + 0xd0], dl
mov rax, qword [rax + 0x88]
ja 0x6f52d7c0
mov esi, 0x40
lea rbx, [rax + 1]
sub rsi, r9
lea rdi, [rsp + 0xd0]
lea r8, [rsi - 9]
xor edx, edx
lea rcx, [rdi + 1]
mov qword [rsp + 0x48], rdi
call sym.memset
mov rax, rbx
bswap rax
mov rcx, qword [rsp + 0x170]
mov r8, rsi
mov rdx, rdi
mov qword [rsp + rsi + 0xc8], rax
call dbg.groestl_small_core
mov rax, qword [rsp + 0x170]
mov r9, qword [rax + 0x48]
mov r8, qword [rax + 0x58]
add rax, 0x48
mov r11, qword [rax + 0x18]
mov rbx, qword [rax + 8]
mov rcx, qword [rax + 0x20]
mov r10, qword [rax + 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rax + 0x38]
mov r14, r9
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x60], r8
mov r12, r8
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x90], r9
mov rbp, r11
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0xa8], r11
mov r8, rdx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x70], rcx
mov r13, rbx
mov qword [rsp + 0x78], r10
mov qword [rsp + 0x80], rdx
mov r15, r10
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], rbx
mov r9, rax
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], r10
xor r11d, r11d
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x40], rcx
lea rax, [r11 + 0x10]
xor r14, r11
lea rbx, [0x6f6fadc0]
movzx edx, r14b
lea rsi, [r11 + 0x50]
lea r10, [0x6f6f75c0]
xor r13, rax
lea rax, [r11 + 0x20]
lea rdi, [r11 + 0x40]
xor rsi, r15
mov rcx, r13
lea r15, [0x6f6fa5c0]
xor r12, rax
lea rax, [r11 + 0x30]
xor rdi, qword [rsp + 0x40]
xor rbp, rax
lea rax, [r11 + 0x60]
xor r8, rax
lea rax, [r11 + 0x70]
xor r9, rax
lea rax, [r11 + 1]
xor rax, qword [rbx + rdx*8]
mov rdx, r9
shr rdx, 0x38
xor rax, qword [r10 + rdx*8]
movzx edx, ch
lea rcx, [0x6f6f9dc0]
xor rax, qword [r15 + rdx*8]
mov rdx, r12
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rbp
lea rcx, [0x6f6f95c0]
shr rdx, 0x18
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rdi
lea rcx, [0x6f6f8dc0]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rsi
lea rcx, [0x6f6f85c0]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r8
lea rcx, [0x6f6f7dc0]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r14
mov rcx, r12
shr rdx, 0x38
mov qword [rsp + 0x28], rax
lea rax, [r11 + 0x11]
xor rax, qword [r10 + rdx*8]
movzx edx, r13b
xor rax, qword [rbx + rdx*8]
movzx edx, ch
lea rcx, [0x6f6f9dc0]
xor rax, qword [r15 + rdx*8]
mov rdx, rbp
lea r15, [0x6f6f8dc0]
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rdi
lea rcx, [0x6f6f95c0]
shr rdx, 0x18
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rsi
lea rcx, [0x6f6f85c0]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [r15 + rdx*8]
mov rdx, r8
lea r15, [0x6f6f7dc0]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r9
shr rdx, 0x30
movzx edx, dl
xor rax, qword [r15 + rdx*8]
movzx edx, r12b
mov qword [rsp + 0x30], rax
mov rax, r14
shr rax, 0x30
movzx eax, al
mov rcx, qword [r15 + rax*8]
xor rcx, qword [rbx + rdx*8]
lea rax, [r11 + 0x21]
mov r15, rbx
mov rbx, rbp
lea rdx, [0x6f6f9dc0]
xor rcx, rax
mov rax, r13
shr rax, 0x38
xor rcx, qword [r10 + rax*8]
movzx eax, bh
lea rbx, [0x6f6fa5c0]
movzx r10d, bpl
xor rcx, qword [rbx + rax*8]
mov rax, rdi
lea rbx, [0x6f6f85c0]
shr rax, 0x10
movzx eax, al
xor rcx, qword [rdx + rax*8]
mov rax, rsi
lea rdx, [0x6f6f95c0]
shr rax, 0x18
movzx eax, al
xor rcx, qword [rdx + rax*8]
mov rax, r8
lea rdx, [0x6f6f8dc0]
shr rax, 0x20
movzx eax, al
xor rcx, qword [rdx + rax*8]
mov rax, r9
shr rax, 0x28
movzx eax, al
xor rcx, qword [rbx + rax*8]
mov qword [rsp + 0x38], rcx
mov rcx, r14
shr rcx, 0x28
movzx eax, cl
mov rcx, r12
mov rdx, qword [rbx + rax*8]
xor rdx, qword [r15 + r10*8]
lea rax, [r11 + 0x31]
lea r10, [0x6f6f75c0]
shr rcx, 0x38
mov rbx, rdi
xor rdx, rax
movzx eax, bh
xor rdx, qword [r10 + rcx*8]
lea rbx, [0x6f6fa5c0]
mov rcx, rsi
lea r10, [0x6f6f95c0]
shr rcx, 0x10
xor rdx, qword [rbx + rax*8]
movzx eax, cl
lea rbx, [0x6f6f9dc0]
mov rcx, r8
shr rcx, 0x18
xor rdx, qword [rbx + rax*8]
movzx eax, cl
mov rcx, r9
shr rcx, 0x20
xor rdx, qword [r10 + rax*8]
lea r10, [0x6f6f8dc0]
movzx eax, cl
mov rcx, r13
shr rcx, 0x30
xor rdx, qword [r10 + rax*8]
mov rbx, r10
movzx eax, cl
lea rcx, [0x6f6f7dc0]
movzx r10d, dil
xor rdx, qword [rcx + rax*8]
mov rax, r14
mov rcx, rbp
shr rax, 0x20
shr rcx, 0x38
movzx eax, al
mov rax, qword [rbx + rax*8]
xor rax, qword [r15 + r10*8]
lea rbx, [0x6f6f75c0]
lea r10, [r11 + 0x41]
xor rax, r10
lea r10, [0x6f6fa5c0]
xor rax, qword [rbx + rcx*8]
mov rbx, rsi
lea rcx, [0x6f6f7dc0]
movzx ebx, bh
xor rax, qword [r10 + rbx*8]
mov r10, r8
lea rbx, [0x6f6f9dc0]
shr r10, 0x10
movzx r10d, r10b
xor rax, qword [rbx + r10*8]
mov r10, r9
lea rbx, [0x6f6f95c0]
shr r10, 0x18
movzx r10d, r10b
xor rax, qword [rbx + r10*8]
mov r10, r13
lea rbx, [0x6f6f85c0]
shr r10, 0x28
movzx r10d, r10b
xor rax, qword [rbx + r10*8]
mov r10, r12
shr r10, 0x30
movzx r10d, r10b
xor rax, qword [rcx + r10*8]
mov r10, r14
shr r10, 0x18
movzx ebx, r10b
movzx r10d, sil
mov rcx, qword [r15 + r10*8]
mov r10, rdi
lea r15, [0x6f6fa5c0]
mov qword [rsp + 0x20], rax
lea rax, [0x6f6f95c0]
shr r10, 0x38
mov rbx, qword [rax + rbx*8]
lea rax, [0x6f6f75c0]
xor rcx, rbx
lea rbx, [r11 + 0x51]
xor rbx, rcx
xor rbx, qword [rax + r10*8]
mov rax, r8
movzx eax, ah
mov r10, r9
lea rcx, [0x6f6f7dc0]
xor rbx, qword [r15 + rax*8]
shr r10, 0x10
lea r15, [0x6f6f9dc0]
movzx r10d, r10b
xor rbx, qword [r15 + r10*8]
mov r10, r13
mov rax, r15
shr r10, 0x20
lea r15, [0x6f6f8dc0]
movzx r10d, r10b
xor rbx, qword [r15 + r10*8]
mov r10, r12
lea r15, [0x6f6f85c0]
shr r10, 0x28
movzx r10d, r10b
xor rbx, qword [r15 + r10*8]
mov r10, rbp
movzx r15d, r8b
shr r10, 0x30
movzx r10d, r10b
xor rbx, qword [rcx + r10*8]
mov r10, r14
mov rcx, r13
shr r10, 0x10
movzx r10d, r10b
mov r10, qword [rax + r10*8]
lea rax, [0x6f6fadc0]
xor r10, qword [rax + r15*8]
lea rax, [0x6f6f75c0]
mov r15, r10
lea r10, [r11 + 0x61]
xor r10, r15
mov r15, rsi
shr r15, 0x38
xor r10, qword [rax + r15*8]
mov rax, r9
shr rcx, 0x18
movzx eax, ah
shr r8, 0x38
shr r13, 0x10
mov r15, rax
lea rax, [0x6f6fa5c0]
movzx r13d, r13b
shr rsi, 0x30
xor r10, qword [rax + r15*8]
lea rax, [0x6f6f95c0]
movzx r15d, cl
mov rcx, r12
shr r12, 0x18
movzx esi, sil
xor r10, qword [rax + r15*8]
shr rcx, 0x20
lea rax, [0x6f6f8dc0]
movzx r15d, cl
lea rcx, [0x6f6f7dc0]
movzx r12d, r12b
xor r10, qword [rax + r15*8]
mov r15, rbp
lea rax, [0x6f6f85c0]
shr r15, 0x28
shr rbp, 0x20
movzx r15d, r15b
movzx ebp, bpl
xor r10, qword [rax + r15*8]
mov r15, rdi
mov rax, r14
shr r15, 0x30
movzx eax, ah
shr rdi, 0x28
movzx r15d, r15b
movzx edi, dil
xor r10, qword [rcx + r15*8]
movzx r15d, r9b
lea r9, [0x6f6fa5c0]
mov r14, qword [r9 + rax*8]
lea rax, [0x6f6fadc0]
lea r9, [r11 + 0x71]
xor r14, qword [rax + r15*8]
lea r15, [0x6f6f75c0]
xor r9, r14
lea r14, [0x6f6f9dc0]
xor r9, qword [r15 + r8*8]
lea r8, [0x6f6f8dc0]
xor r9, qword [r14 + r13*8]
lea r13, [0x6f6f95c0]
mov rax, qword [rsp + 0x30]
xor r9, qword [r13 + r12*8]
lea r12, [0x6f6fa5c0]
xor r9, qword [r8 + rbp*8]
lea rbp, [0x6f6f85c0]
xor r9, qword [rbp + rdi*8]
lea rdi, [0x6f6fadc0]
mov rbp, r15
xor r9, qword [rcx + rsi*8]
movzx esi, ah
lea rax, [0x6f6f85c0]
mov r14, qword [r12 + rsi*8]
lea rsi, [0x6f6f8dc0]
mov r8, r9
shr r8, 0x38
xor r14, qword [r15 + r8*8]
movzx r8d, byte [rsp + 0x28]
lea r15, [0x6f6f9dc0]
xor r14, qword [rdi + r8*8]
mov r8, qword [rsp + 0x38]
shr r8, 0x10
movzx r8d, r8b
xor r14, qword [r15 + r8*8]
mov r8, rdx
shr r8, 0x18
movzx r8d, r8b
xor r14, qword [r13 + r8*8]
mov r8, qword [rsp + 0x20]
shr r8, 0x20
movzx r8d, r8b
xor r14, qword [rsi + r8*8]
mov r8, rbx
movzx esi, byte [rsp + 0x30]
shr r8, 0x28
movzx r8d, r8b
xor r14, qword [rax + r8*8]
mov r8, r10
mov rax, qword [rsp + 0x38]
shr r8, 0x30
mov r13, qword [rdi + rsi*8]
movzx r8d, r8b
xor r14, qword [rcx + r8*8]
mov r8, qword [rsp + 0x28]
movzx esi, ah
mov rax, r12
shr r8, 0x38
xor r13, qword [rbp + r8*8]
mov r8, rdx
shr r8, 0x10
xor r13, qword [r12 + rsi*8]
lea r12, [0x6f6f95c0]
movzx r8d, r8b
lea rsi, [0x6f6f8dc0]
xor r13, qword [r15 + r8*8]
mov r8, qword [rsp + 0x20]
mov r15, rdi
shr r8, 0x18
movzx r8d, r8b
xor r13, qword [r12 + r8*8]
mov r8, rbx
lea r12, [0x6f6f85c0]
shr r8, 0x20
movzx r8d, r8b
xor r13, qword [rsi + r8*8]
mov r8, r10
movzx esi, byte [rsp + 0x38]
shr r8, 0x28
movzx r8d, r8b
xor r13, qword [r12 + r8*8]
mov r8, r9
shr r8, 0x30
movzx r8d, r8b
xor r13, qword [rcx + r8*8]
mov r8, qword [rsp + 0x28]
shr r8, 0x30
movzx r8d, r8b
mov r12, qword [rcx + r8*8]
xor r12, qword [rdi + rsi*8]
movzx esi, dh
mov rcx, qword [rsp + 0x30]
mov rdi, rcx
shr rdi, 0x38
mov r8, rdi
mov rdi, rbp
xor r12, qword [rbp + r8*8]
mov r8, qword [rsp + 0x20]
lea rbp, [0x6f6f95c0]
xor r12, qword [rax + rsi*8]
lea rsi, [0x6f6f9dc0]
lea rax, [0x6f6f85c0]
shr r8, 0x10
movzx r8d, r8b
xor r12, qword [rsi + r8*8]
mov r8, rbx
movzx esi, dl
shr r8, 0x18
movzx r8d, r8b
xor r12, qword [rbp + r8*8]
mov r8, r10
lea rbp, [0x6f6f8dc0]
shr r8, 0x20
movzx r8d, r8b
xor r12, qword [rbp + r8*8]
mov r8, r9
shr r8, 0x28
movzx r8d, r8b
xor r12, qword [rax + r8*8]
mov r8, qword [rsp + 0x28]
shr r8, 0x28
movzx r8d, r8b
mov rbp, qword [rax + r8*8]
mov r8, rcx
xor rbp, qword [r15 + rsi*8]
lea rcx, [0x6f6f7dc0]
shr r8, 0x30
mov rax, rdi
movzx r8d, r8b
xor rbp, qword [rcx + r8*8]
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
shr r8, 0x38
xor rbp, qword [rdi + r8*8]
lea rdi, [0x6f6fa5c0]
movzx esi, ch
mov rcx, qword [rsp + 0x30]
xor rbp, qword [rdi + rsi*8]
mov rsi, rbx
lea rdi, [0x6f6f95c0]
shr rsi, 0x10
movzx r8d, sil
lea rsi, [0x6f6f9dc0]
shr rcx, 0x28
xor rbp, qword [rsi + r8*8]
mov rsi, r10
shr rsi, 0x18
movzx r8d, sil
movzx esi, byte [rsp + 0x20]
xor rbp, qword [rdi + r8*8]
mov r8, r9
lea rdi, [0x6f6f8dc0]
shr r8, 0x20
movzx r8d, r8b
xor rbp, qword [rdi + r8*8]
mov r8, qword [rsp + 0x28]
shr r8, 0x20
movzx r8d, r8b
mov rdi, qword [rdi + r8*8]
xor rdi, qword [r15 + rsi*8]
lea rsi, [0x6f6f85c0]
movzx r8d, cl
lea rcx, [0x6f6f7dc0]
xor rdi, qword [rsi + r8*8]
mov r8, rdx
movzx esi, bh
shr r8, 0x38
xor rdi, qword [rax + r8*8]
lea r8, [0x6f6fa5c0]
xor rdi, qword [r8 + rsi*8]
mov r8, r10
lea rsi, [0x6f6f9dc0]
shr r8, 0x10
movzx r8d, r8b
xor rdi, qword [rsi + r8*8]
mov rsi, r9
shr rsi, 0x18
movzx r8d, sil
lea rsi, [0x6f6f95c0]
xor rdi, qword [rsi + r8*8]
mov r8, qword [rsp + 0x38]
shr r8, 0x30
movzx r8d, r8b
xor rdi, qword [rcx + r8*8]
mov qword [rsp + 0x40], rdi
mov r8, qword [rsp + 0x28]
movzx edi, bl
mov rcx, qword [rsp + 0x30]
shr r8, 0x18
movzx r8d, r8b
shr rcx, 0x20
mov rsi, qword [rsi + r8*8]
xor rsi, qword [r15 + rdi*8]
lea r15, [0x6f6f8dc0]
mov rdi, qword [rsp + 0x20]
movzx r8d, cl
lea rcx, [0x6f6f7dc0]
xor rsi, qword [r15 + r8*8]
lea r8, [0x6f6fa5c0]
lea r15, [0x6f6f85c0]
shr rdi, 0x38
xor rsi, qword [rax + rdi*8]
mov rax, r10
movzx edi, ah
lea rax, [0x6f6f95c0]
xor rsi, qword [r8 + rdi*8]
mov r8, r9
lea rdi, [0x6f6f9dc0]
shr r8, 0x10
movzx r8d, r8b
xor rsi, qword [rdi + r8*8]
mov r8, qword [rsp + 0x38]
shr r8, 0x28
movzx r8d, r8b
xor rsi, qword [r15 + r8*8]
mov r8, rdx
shr r8, 0x30
movzx r8d, r8b
xor rsi, qword [rcx + r8*8]
mov r8, qword [rsp + 0x28]
shr r8, 0x10
movzx r8d, r8b
mov r15, rsi
movzx esi, r10b
mov r8, qword [rdi + r8*8]
lea rdi, [0x6f6fadc0]
shr r10, 0x38
xor r8, qword [rdi + rsi*8]
mov rsi, qword [rsp + 0x30]
shr rsi, 0x18
movzx esi, sil
xor r8, qword [rax + rsi*8]
mov rsi, rbx
lea rax, [0x6f6f75c0]
shr rsi, 0x38
shr rbx, 0x30
xor r8, qword [rax + rsi*8]
mov rax, r9
movzx r9d, r9b
movzx esi, ah
lea rax, [0x6f6fa5c0]
movzx ebx, bl
xor r8, qword [rax + rsi*8]
mov rsi, qword [rsp + 0x38]
lea rax, [0x6f6f8dc0]
shr rsi, 0x20
movzx esi, sil
xor r8, qword [rax + rsi*8]
mov rsi, rdx
lea rax, [0x6f6f85c0]
shr rsi, 0x28
shr rdx, 0x20
movzx esi, sil
movzx edx, dl
xor r8, qword [rax + rsi*8]
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
shr rsi, 0x30
movzx esi, sil
xor r8, qword [rcx + rsi*8]
movzx esi, ah
lea rax, [0x6f6fa5c0]
mov rcx, qword [rsp + 0x38]
mov rsi, qword [rax + rsi*8]
xor rsi, qword [rdi + r9*8]
lea rdi, [0x6f6f9dc0]
mov r9, qword [rsp + 0x30]
lea rax, [0x6f6f75c0]
shr rcx, 0x18
movzx ecx, cl
shr r9, 0x10
movzx r9d, r9b
xor rsi, qword [rdi + r9*8]
mov r9, rsi
xor r9, qword [rax + r10*8]
lea rax, [0x6f6f95c0]
xor r9, qword [rax + rcx*8]
lea rax, [0x6f6f8dc0]
lea rcx, [0x6f6f85c0]
xor r9, qword [rax + rdx*8]
mov rax, qword [rsp + 0x20]
shr rax, 0x28
movzx eax, al
xor r9, qword [rcx + rax*8]
lea rcx, [0x6f6f7dc0]
xor r9, qword [rcx + rbx*8]
add r11, 2
cmp r11, 0xa
jne 0x6f52cc49
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], r14
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb8], r15
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], r8
xor eax, eax
mov qword [rsp + 0xc8], r9
jmp 0x6f52d668
mov r14, qword [rsp + rax*8 + 0x90]
xor qword [rdx + rax*8], r14
add rax, 1
cmp rax, 8
jne 0x6f52d660
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x188]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x190]
mov rdx, qword [rax + 0x20]
add rax, 0x20
mov qword [rbx], rdx
mov edx, dword [rsp + 0x190]
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rax + rdx - 8]
mov qword [rbx + rdx - 8], rcx
mov rbx, qword [rsp + 0x188]
xor edx, edx
lea rcx, [rbx + 8]
mov r9, rbx
and rcx, 0xfffffffffffffff8
sub r9, rcx
sub rax, r9
add r9d, dword [rsp + 0x190]
and r9d, 0xfffffff8
mov r8d, edx
add edx, 8
mov r10, qword [rax + r8]
cmp edx, r9d
mov qword [rcx + r8], r10
jb 0x6f52d710
mov rax, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x170]
movabs rcx, 0xff000000000000
mov qword [rax + 0x40], 0
mov qword [rax + 0x48], 0
mov qword [rax + 0x50], 0
mov qword [rax + 0x58], 0
mov qword [rax + 0x60], 0
mov qword [rax + 0x68], 0
mov qword [rax + 0x70], 0
mov qword [rax + 0x78], 0
mov eax, dword [rsp + 0x190]
mov qword [rbx + 0x88], 0
shl eax, 3
mov rdx, rax
shl rax, 0x38
shl rdx, 0x28
and rdx, rcx
or rax, rdx
mov qword [rbx + 0x80], rax
add rsp, 0x128
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 0x6f52cb55