Function at 0x1400aa8b0
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 rbx, qword [rsp + 0x190]
mov rsi, rcx
mov r10d, edx
mov qword [rsp + 0x188], r9
mov edx, pe_nt_image_headers64
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 + 0xd0], al
mov rax, qword [rsi + 0x88]
cmp r9, 0x37
ja 0x1400ab4d0
mov ebp, 0x40
lea rdi, [rax + 1]
sub rbp, r9
lea rcx, [rsp + 0xd1]
lea r8, [rbp - 9]
xor edx, edx
call sym.memset
lea r14, [rsp + 0xd0]
mov rax, rdi
bswap rax
mov r8, rbp
mov rdx, r14
mov rcx, rsi
xor r13d, r13d
mov qword [rsp + rbp + 0xc8], rax
call sym.groestl_small_core
mov r9, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x78]
mov qword [rsp + 0x190], rbx
mov r12, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x68]
mov qword [rsp + 0x170], rsi
mov r11, qword [rsi + 0x70]
mov rdi, qword [rsi + 0x60]
mov rbp, r9
mov rax, rdx
mov r10, qword [rsi + 0x80]
mov r8, qword [rsi + 0x58]
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x58], r12
mov r12, rbp
mov rbp, qword [rsp + 0x98]
mov r15, r11
mov qword [rsp + 0xc8], r10
mov rsi, r15
mov r15, r12
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0xc0], rdx
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x90], r9
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x88], r10
mov r10, qword [rsp + 0xa8]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], rdi
mov rdi, rbp
mov qword [rsp + 0x78], r11
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0xb8], r11
mov r11, r8
mov r8, rdx
mov qword [rsp + 0x48], r14
mov r14, rax
nop
lea rbp, [r13 + 0x10]
mov rax, qword [rsp + 0x40]
xor r15, r13
lea rcx, [0x1402c7da0]
xor rbp, rdi
lea rdi, [r13 + 0x20]
mov r12, r15
xor rdi, r11
lea r11, [r13 + 0x30]
movzx edx, r12b
mov rbx, rbp
xor r11, r10
lea r10, [r13 + 0x40]
lea r15, [r13 + 0x50]
xor r10, rax
lea rax, [r13 + 0x70]
xor r15, rsi
xor r8, rax
lea rax, [r13 + 1]
lea rsi, [r13 + 0x60]
xor rax, qword [rcx + rdx*8]
mov rdx, r8
lea r9, [0x1402c45a0]
xor rsi, r14
shr rdx, 0x38
lea r14, [0x1402c75a0]
xor rax, qword [r9 + rdx*8]
movzx edx, bh
lea rbx, [0x1402c6da0]
xor rax, qword [r14 + rdx*8]
mov rdx, rdi
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r11
lea rbx, [0x1402c65a0]
shr rdx, 0x18
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r10
lea rbx, [0x1402c5da0]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r15
lea rbx, [0x1402c55a0]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, rsi
lea rbx, [0x1402c4da0]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r12
mov rbx, rdi
shr rdx, 0x38
mov qword [rsp + 0x40], rax
lea rax, [r13 + 0x11]
xor rax, qword [r9 + rdx*8]
movzx edx, bpl
xor rax, qword [rcx + rdx*8]
movzx edx, bh
lea rbx, [0x1402c6da0]
xor rax, qword [r14 + rdx*8]
mov rdx, r11
lea r14, [0x1402c65a0]
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, r10
lea rbx, [0x1402c5da0]
shr rdx, 0x18
movzx edx, dl
xor rax, qword [r14 + rdx*8]
mov rdx, r15
lea r14, [0x1402c55a0]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rbx + rdx*8]
mov rdx, rsi
mov rbx, r11
shr rdx, 0x28
movzx edx, dl
xor rax, qword [r14 + rdx*8]
mov rdx, r8
lea r14, [0x1402c4da0]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [r14 + rdx*8]
mov rdx, r12
shr rdx, 0x30
mov qword [rsp + 0x20], rax
movzx eax, dil
movzx edx, dl
mov rdx, qword [r14 + rdx*8]
xor rdx, qword [rcx + rax*8]
lea rax, [r13 + 0x21]
mov r14, rcx
xor rax, rdx
mov rdx, rbp
lea rcx, [0x1402c6da0]
shr rdx, 0x38
xor rax, qword [r9 + rdx*8]
movzx edx, bh
lea rbx, [0x1402c75a0]
xor rax, qword [rbx + rdx*8]
mov rdx, r10
shr rdx, 0x10
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r15
lea rcx, [0x1402c65a0]
shr rdx, 0x18
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, rsi
lea rcx, [0x1402c5da0]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r8
lea rcx, [0x1402c55a0]
shr rdx, 0x28
mov rbx, rcx
movzx edx, dl
xor rax, qword [rcx + rdx*8]
mov rdx, r12
shr rdx, 0x28
mov qword [rsp + 0x28], rax
mov rax, r9
movzx ecx, dl
movzx edx, r11b
mov rcx, qword [rbx + rcx*8]
xor rcx, qword [r14 + rdx*8]
lea rdx, [r13 + 0x31]
mov rbx, r10
xor rdx, rcx
mov rcx, rdi
shr rcx, 0x38
xor rdx, qword [r9 + rcx*8]
movzx ecx, bh
lea rbx, [0x1402c75a0]
xor rdx, qword [rbx + rcx*8]
mov rcx, r15
lea r9, [0x1402c6da0]
shr rcx, 0x10
lea rbx, [0x1402c65a0]
movzx ecx, cl
xor rdx, qword [r9 + rcx*8]
mov rcx, rsi
lea r9, [0x1402c4da0]
shr rcx, 0x18
movzx ecx, cl
xor rdx, qword [rbx + rcx*8]
mov rcx, r8
lea rbx, [0x1402c5da0]
shr rcx, 0x20
movzx ecx, cl
xor rdx, qword [rbx + rcx*8]
mov rcx, rbp
shr rcx, 0x30
movzx ecx, cl
xor rdx, qword [r9 + rcx*8]
mov rcx, r12
movzx r9d, r10b
shr rcx, 0x20
mov qword [rsp + 0x30], rdx
lea rdx, [0x1402c55a0]
movzx ecx, cl
mov rcx, qword [rbx + rcx*8]
lea rbx, [r13 + 0x41]
xor rcx, qword [r14 + r9*8]
lea r9, [0x1402c75a0]
xor rbx, rcx
mov rcx, r11
shr rcx, 0x38
xor rbx, qword [rax + rcx*8]
mov rcx, r15
movzx ecx, ch
xor rbx, qword [r9 + rcx*8]
mov rcx, rsi
lea r9, [0x1402c6da0]
shr rcx, 0x10
movzx ecx, cl
xor rbx, qword [r9 + rcx*8]
mov rcx, r8
lea r9, [0x1402c65a0]
shr rcx, 0x18
movzx ecx, cl
xor rbx, qword [r9 + rcx*8]
mov rcx, rbp
lea r9, [0x1402c4da0]
shr rcx, 0x28
movzx ecx, cl
xor rbx, qword [rdx + rcx*8]
mov rcx, rdi
lea rdx, [0x1402c65a0]
shr rcx, 0x30
movzx ecx, cl
xor rbx, qword [r9 + rcx*8]
mov rcx, r12
shr rcx, 0x18
mov qword [rsp + 0x38], rbx
movzx r9d, cl
movzx ecx, r15b
mov r9, qword [rdx + r9*8]
xor r9, qword [r14 + rcx*8]
lea rcx, [r13 + 0x51]
lea r14, [0x1402c75a0]
xor rcx, r9
mov r9, r10
lea rdx, [0x1402c5da0]
shr r9, 0x38
xor rcx, qword [rax + r9*8]
mov rax, rsi
mov r9, r8
movzx eax, ah
shr r9, 0x10
xor rcx, qword [r14 + rax*8]
movzx r9d, r9b
lea r14, [0x1402c6da0]
xor rcx, qword [r14 + r9*8]
mov r9, rbp
mov rax, r14
shr r9, 0x20
lea r14, [0x1402c55a0]
movzx r9d, r9b
xor rcx, qword [rdx + r9*8]
mov r9, rdi
lea rdx, [0x1402c65a0]
shr r9, 0x28
movzx r9d, r9b
xor rcx, qword [r14 + r9*8]
mov r9, r11
lea r14, [0x1402c4da0]
shr r9, 0x30
mov rbx, r14
movzx r9d, r9b
xor rcx, qword [r14 + r9*8]
mov r9, r12
shr r9, 0x10
movzx r14d, r9b
movzx r9d, sil
mov r14, qword [rax + r14*8]
lea rax, [0x1402c7da0]
xor r14, qword [rax + r9*8]
lea r9, [r13 + 0x61]
lea rax, [0x1402c45a0]
xor r9, r14
mov r14, r15
shr r14, 0x38
xor r9, qword [rax + r14*8]
mov rax, r8
movzx r8d, r8b
shr rsi, 0x38
movzx eax, ah
shr r15, 0x30
mov r14, rax
lea rax, [0x1402c75a0]
movzx r15d, r15b
xor r9, qword [rax + r14*8]
mov r14, rbp
mov rax, r12
shr rbp, 0x10
shr r14, 0x18
movzx eax, ah
movzx ebp, bpl
movzx r14d, r14b
xor r9, qword [rdx + r14*8]
mov r14, rdi
lea rdx, [0x1402c5da0]
shr rdi, 0x18
shr r14, 0x20
movzx edi, dil
movzx r14d, r14b
xor r9, qword [rdx + r14*8]
mov r14, r11
lea rdx, [0x1402c55a0]
shr r11, 0x20
shr r14, 0x28
movzx r11d, r11b
movzx r14d, r14b
xor r9, qword [rdx + r14*8]
mov r14, r10
lea rdx, [0x1402c65a0]
shr r10, 0x28
shr r14, 0x30
movzx r10d, r10b
movzx r14d, r14b
xor r9, qword [rbx + r14*8]
lea r14, [0x1402c75a0]
mov r12, qword [r14 + rax*8]
lea r14, [0x1402c7da0]
xor r12, qword [r14 + r8*8]
lea r8, [r13 + 0x71]
xor r8, r12
lea r12, [0x1402c45a0]
xor r8, qword [r12 + rsi*8]
lea rsi, [0x1402c6da0]
mov rax, qword [rsp + 0x20]
xor r8, qword [rsi + rbp*8]
xor r8, qword [rdx + rdi*8]
lea rdi, [0x1402c5da0]
mov rbp, r12
xor r8, qword [rdi + r11*8]
lea r11, [0x1402c55a0]
movzx edi, ah
xor r8, qword [r11 + r10*8]
xor r8, qword [rbx + r15*8]
lea rax, [0x1402c75a0]
mov r15, rcx
mov r11, r8
mov r10, qword [rax + rdi*8]
lea rdi, [0x1402c5da0]
mov rbx, qword [rsp + 0x28]
shr r11, 0x38
xor r10, qword [r12 + r11*8]
movzx r11d, byte [rsp + 0x40]
lea r12, [0x1402c4da0]
xor r10, qword [r14 + r11*8]
mov r11, qword [rsp + 0x28]
shr r11, 0x10
movzx r11d, r11b
xor r10, qword [rsi + r11*8]
mov r11, qword [rsp + 0x30]
movzx esi, bh
shr r11, 0x18
movzx r11d, r11b
xor r10, qword [rdx + r11*8]
mov r11, qword [rsp + 0x38]
shr r11, 0x20
movzx r11d, r11b
xor r10, qword [rdi + r11*8]
shr r15, 0x28
movzx r11d, r15b
lea r15, [0x1402c55a0]
xor r10, qword [r15 + r11*8]
mov r11, r9
shr r11, 0x30
movzx r11d, r11b
xor r10, qword [r12 + r11*8]
movzx r11d, byte [rsp + 0x20]
mov r12, rax
mov r15, r10
mov r10, qword [rsp + 0x40]
mov rdi, qword [r14 + r11*8]
lea r11, [0x1402c5da0]
shr r10, 0x38
xor rdi, qword [rbp + r10*8]
mov r10, qword [rsp + 0x30]
xor rdi, qword [rax + rsi*8]
lea rsi, [0x1402c6da0]
lea rax, [0x1402c55a0]
shr r10, 0x10
movzx r10d, r10b
xor rdi, qword [rsi + r10*8]
mov r10, qword [rsp + 0x38]
shr r10, 0x18
movzx r10d, r10b
xor rdi, qword [rdx + r10*8]
mov r10, rcx
shr r10, 0x20
movzx r10d, r10b
xor rdi, qword [r11 + r10*8]
mov r10, r9
shr r10, 0x28
movzx r10d, r10b
xor rdi, qword [rax + r10*8]
mov r10, r8
lea rax, [0x1402c4da0]
shr r10, 0x30
movzx r10d, r10b
xor rdi, qword [rax + r10*8]
mov rbx, qword [rsp + 0x40]
movzx r10d, byte [rsp + 0x28]
mov r11, rbx
shr r11, 0x30
movzx r11d, r11b
mov r11, qword [rax + r11*8]
xor r11, qword [r14 + r10*8]
mov r10, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
shr r10, 0x38
movzx esi, ah
mov rax, qword [rsp + 0x38]
xor r11, qword [rbp + r10*8]
mov r10, qword [rsp + 0x38]
xor r11, qword [r12 + rsi*8]
lea rsi, [0x1402c6da0]
lea r12, [0x1402c5da0]
shr r10, 0x10
movzx r10d, r10b
xor r11, qword [rsi + r10*8]
mov r10, rcx
movzx esi, byte [rsp + 0x30]
shr r10, 0x18
movzx r10d, r10b
xor r11, qword [rdx + r10*8]
mov r10, r9
shr r10, 0x20
movzx r10d, r10b
xor r11, qword [r12 + r10*8]
mov r10, r8
lea r12, [0x1402c55a0]
shr r10, 0x28
movzx r10d, r10b
xor r11, qword [r12 + r10*8]
mov r10, rbx
shr r10, 0x28
movzx r10d, r10b
mov r10, qword [r12 + r10*8]
xor r10, qword [r14 + rsi*8]
lea r12, [0x1402c4da0]
mov rsi, qword [rsp + 0x20]
shr rsi, 0x30
movzx esi, sil
xor r10, qword [r12 + rsi*8]
mov rsi, qword [rsp + 0x28]
mov r12, rbp
shr rsi, 0x38
xor r10, qword [rbp + rsi*8]
movzx esi, ah
lea rax, [0x1402c75a0]
xor r10, qword [rax + rsi*8]
mov rsi, rcx
lea rbp, [0x1402c6da0]
shr rsi, 0x10
movzx esi, sil
xor r10, qword [rbp + rsi*8]
mov rsi, r9
lea rbp, [0x1402c5da0]
shr rsi, 0x18
movzx esi, sil
xor r10, qword [rdx + rsi*8]
mov rsi, r8
mov rdx, rbp
shr rsi, 0x20
movzx esi, sil
xor r10, qword [rbp + rsi*8]
mov rsi, rbx
movzx ebp, byte [rsp + 0x38]
shr rsi, 0x20
movzx esi, sil
mov rsi, qword [rdx + rsi*8]
xor rsi, qword [r14 + rbp*8]
lea rdx, [0x1402c55a0]
mov rbp, qword [rsp + 0x20]
shr rbp, 0x28
movzx ebp, bpl
xor rsi, qword [rdx + rbp*8]
mov rbp, qword [rsp + 0x30]
lea rdx, [0x1402c65a0]
shr rbp, 0x38
xor rsi, qword [r12 + rbp*8]
movzx ebp, ch
xor rsi, qword [rax + rbp*8]
mov rbp, r9
lea rax, [0x1402c6da0]
shr rbp, 0x10
movzx ebp, bpl
xor rsi, qword [rax + rbp*8]
mov rbp, r8
mov rax, rdx
shr rbp, 0x18
movzx ebp, bpl
xor rsi, qword [rdx + rbp*8]
mov rbp, qword [rsp + 0x28]
lea rdx, [0x1402c4da0]
shr rbp, 0x30
movzx ebp, bpl
xor rsi, qword [rdx + rbp*8]
movzx ebp, cl
lea rdx, [0x1402c5da0]
mov qword [rsp + 0x40], rsi
mov rsi, rbx
shr rsi, 0x18
movzx esi, sil
mov rsi, qword [rax + rsi*8]
xor rsi, qword [r14 + rbp*8]
mov rax, r9
lea r14, [0x1402c6da0]
mov rbp, qword [rsp + 0x20]
shr rbp, 0x20
movzx ebp, bpl
xor rsi, qword [rdx + rbp*8]
mov rbp, qword [rsp + 0x38]
lea rdx, [0x1402c65a0]
shr rbp, 0x38
xor rsi, qword [r12 + rbp*8]
movzx ebp, ah
lea rax, [0x1402c75a0]
xor rsi, qword [rax + rbp*8]
mov rbp, r8
lea r12, [0x1402c55a0]
shr rbp, 0x10
lea rax, [0x1402c4da0]
movzx ebp, bpl
xor rsi, qword [r14 + rbp*8]
mov rbp, qword [rsp + 0x28]
shr rbp, 0x28
movzx ebp, bpl
xor rsi, qword [r12 + rbp*8]
mov rbp, qword [rsp + 0x30]
movzx r12d, r9b
shr r9, 0x38
shr rbp, 0x30
movzx ebp, bpl
xor rsi, qword [rax + rbp*8]
mov rbp, rbx
mov rax, r8
movzx r8d, r8b
shr rbp, 0x10
movzx ebp, bpl
mov r14, qword [r14 + rbp*8]
lea rbp, [0x1402c7da0]
xor r14, qword [rbp + r12*8]
mov rbp, qword [rsp + 0x20]
lea r12, [0x1402c45a0]
shr rbp, 0x18
movzx ebp, bpl
xor r14, qword [rdx + rbp*8]
mov rbp, rcx
lea rdx, [0x1402c5da0]
shr rcx, 0x30
shr rbp, 0x38
movzx ecx, cl
xor r14, qword [r12 + rbp*8]
movzx ebp, ah
lea rax, [0x1402c75a0]
xor r14, qword [rax + rbp*8]
mov rbp, qword [rsp + 0x28]
lea rax, [0x1402c75a0]
shr rbp, 0x20
movzx ebp, bpl
xor r14, qword [rdx + rbp*8]
mov rbp, qword [rsp + 0x30]
lea rdx, [0x1402c55a0]
shr rbp, 0x28
movzx ebp, bpl
xor r14, qword [rdx + rbp*8]
mov rbp, qword [rsp + 0x38]
lea rdx, [0x1402c4da0]
shr rbp, 0x30
movzx ebp, bpl
xor r14, qword [rdx + rbp*8]
movzx ebp, bh
lea rdx, [0x1402c65a0]
mov rbp, qword [rax + rbp*8]
lea rax, [0x1402c7da0]
xor rbp, qword [rax + r8*8]
mov r8, qword [rsp + 0x20]
lea rax, [0x1402c6da0]
mov rbx, qword [rsp + 0x38]
shr r8, 0x10
movzx r8d, r8b
shr rbx, 0x28
xor rbp, qword [rax + r8*8]
mov rax, qword [rsp + 0x28]
movzx ebx, bl
xor rbp, qword [r12 + r9*8]
shr rax, 0x18
movzx eax, al
xor rbp, qword [rdx + rax*8]
mov rdx, qword [rsp + 0x30]
lea rax, [0x1402c5da0]
shr rdx, 0x20
movzx edx, dl
xor rbp, qword [rax + rdx*8]
lea rax, [0x1402c55a0]
lea rdx, [0x1402c4da0]
mov r8, qword [rax + rbx*8]
xor r8, rbp
xor r8, qword [rdx + rcx*8]
add r13, 2
cmp r13, 0xa
jne 0x1400aaa30
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x190]
mov rax, r14
mov r15, rsi
mov r14, qword [rsp + 0x48]
mov qword [rsp + 0xc8], r8
mov qword [rsp + 0xb0], rdi
mov rdi, qword [rsp + 0x188]
mov qword [rsp + 0xb8], r15
sub r14, rbx
mov rsi, qword [rsp + 0x170]
mov qword [rsp + 0xc0], rax
lea rcx, [r14 + 0x20]
vmovdqu ymm1, ymmword [rsp + 0xb0]
vpxor ymm0, ymm1, ymmword [rsp + 0x70]
vmovdqu ymmword [rsp + 0xd0], ymm0
mov rax, qword [r14 + 0x20]
mov qword [rdi], rax
mov eax, ebx
mov rdi, qword [rsp + 0x188]
mov rdx, qword [rax + r14 + 0x18]
mov qword [rdi + rax - 8], rdx
mov rax, qword [rsp + 0x188]
lea r8, [rax + 8]
mov r13, rax
xor eax, eax
and r8, 0xfffffffffffffff8
sub r13, r8
sub rcx, r13
add r13d, ebx
and r13d, 0xfffffff8
mov edx, eax
add eax, 8
mov r9, qword [rcx + rdx]
mov qword [r8 + rdx], r9
cmp eax, r13d
jb 0x1400ab479
lea eax, [rbx*8]
vpxor xmm0, xmm0, xmm0
mov qword [rsi + 0x88], 0
bswap rax
mov qword [rsi + 0x80], rax
vmovdqu ymmword [rsi + 0x40], ymm0
vmovdqu ymmword [rsi + 0x60], ymm0
vzeroupper
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, pe_nt_image_headers64
lea rdi, [rax + 2]
sub rbp, r9
jmp 0x1400aa914