Function at 0x14000fd50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov r13, r8
mov r15, rdx
mov r14, rcx
mov r12d, 1
mov ecx, r12d
mov edx, 0x58
mov r8d, 0x4d525356
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140010a28
xorps xmm0, xmm0
mov qword [rsp + 0x300], rbx
movups xmmword [rdi], xmm0
xor eax, eax
movabs rbx, 0xfffff78000000320
movups xmmword [rdi + 0x10], xmm0
mov rcx, r15
mov qword [rsp + 0x308], rsi
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
mov qword [rdi + 0x50], rax
mov byte [rdi + 1], r12b
mov rbx, qword [rbx]
call fcn.140003f00
movzx eax, byte [r15]
cmp eax, 0x2f
ja case.0x14000fe0c.1
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x10a98]
mov ecx, dword [rdx + rax*4 + 0x10a44]
add rcx, rdx
jmp rcx
xor esi, esi
cmp byte [r14 + 0xa3], sil
jne 0x14000ff4c
mov byte [rdi + 1], sil
lea r8, [r14 + 0x3a4]
movzx r9d, byte [r14 + 0x3e4]
xorps xmm0, xmm0
movzx r10d, byte [r15 + 1]
xor ecx, ecx
mov eax, dword [r15 + 2]
mov edx, r12d
movups xmmword [rsp + 0x60], xmm0
lea r8, [r8 + r9*2]
mov qword [rbp - 0x70], rcx
add r9, 2
mov dword [rsp + 0x60], eax
shr r9, 1
cmp byte [r10 + r14 + 0x2a4], 3
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
jne 0x14000ff00
mov eax, dword [r8]
lea r8, [r8 - 4]
mov ecx, edx
inc edx
mov dword [rsp + rcx*4 + 0x60], eax
sub r9, r12
jne 0x14000fe71
movzx ecx, word [r14 + 0xb0]
mov edx, 0xe
movzx r8d, word [r14 + r10*2 + 0xa6]
movzx eax, word [r14 + r10*2 + 0xa4]
movzx r9d, word [r14 + 0xac]
shl r8d, 0x10
mov dword [rsp + 0x20], ecx
or r8d, eax
lea rcx, [rsp + 0x60]
call fcn.14000c650
movzx eax, byte [r14 + 0x3e4]
lea r8, [r14 + 0x3a4]
mov edx, esi
lea r9, [rax + 2]
shr r9, 1
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, edx
lea r8, [r8 - 4]
inc edx
mov ecx, dword [rsp + rax*4 + 0x60]
mov dword [r8 + 4], ecx
sub r9, r12
jne 0x14000fee0
mov ecx, dword [rsp + rdx*4 + 0x60]
jmp 0x14000ff49
mov eax, dword [r8]
lea r8, [r8 - 4]
mov ecx, edx
inc edx
mov dword [rsp + rcx*4 + 0x60], eax
sub r9, r12
jne 0x14000ff00
movzx eax, byte [r14 + 0x3e4]
lea r8, [r14 + 0x3a4]
mov edx, esi
lea r9, [rax + 2]
shr r9, 1
lea r8, [r8 + rax*2]
mov eax, edx
lea r8, [r8 - 4]
inc edx
mov ecx, dword [rsp + rax*4 + 0x60]
mov dword [r8 + 4], ecx
sub r9, r12
jne 0x14000ff30
mov ecx, dword [rsp + rdx*4 + 0x60]
mov dword [rdi + 2], ecx
cmp byte [r14 + 0xa3], r12b
jb 0x1400109b7
mov byte [rdi + 1], sil
mov esi, r12d
mov r9d, dword [r13]
mov eax, r9d
and eax, 0xfffffff8
cmp eax, 8
jbe 0x14000ff8f
nop
lea ecx, [rsi*8]
add rcx, r15
call fcn.140003f00
mov r9d, dword [r13]
inc esi
mov eax, r9d
shr eax, 3
cmp esi, eax
jb 0x14000ff70
mov eax, dword [r15 + 2]
xorps xmm1, xmm1
xorps xmm0, xmm0
mov r10d, r9d
shr r10d, 3
mov r8d, r12d
movups xmmword [rbp + 0x30], xmm1
mov dword [rbp + 0x30], eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x60], xmm1
movups xmmword [rbp + 0x70], xmm1
cmp r10d, r12d
jbe 0x140010004
lea eax, [r8 - 1]
lea ecx, [rax + rax*2]
lea eax, [rcx + rcx]
lea edx, [r8*8]
inc r8d
lea rcx, [rbp - 0x20]
add rcx, rax
mov eax, dword [rdx + r15]
mov dword [rcx], eax
movzx eax, word [rdx + r15 + 4]
mov word [rcx + 4], ax
cmp r8d, r10d
jb 0x14000ffd3
movzx ecx, byte [r15 + 6]
mov edx, 4
and cl, 6
mov eax, 2
cmp cl, dl
movzx r8d, r12b
cmovne edx, eax
imul eax, r10d, 0xfffffffe
sub eax, edx
add eax, r9d
cmp cl, 2
lea r9d, [rax - 4]
cmovne r9d, eax
mov esi, r9d
mov dword [rsp + 0x58], r9d
shr esi, 2
lea edx, [rsi - 1]
test edx, edx
je 0x14001006c
nop word [rax + rax]
dec edx
movzx ecx, r8b
inc r8b
lea eax, [rdx*4]
mov eax, dword [rbp + rax - 0x20]
mov dword [rbp + rcx*4 + 0x30], eax
test edx, edx
jne 0x140010050
movzx eax, byte [r15 + 1]
mov qword [rbp - 0x68], rax
cmp byte [rax + r14 + 0x2a4], 3
jne 0x1400102a3
xorps xmm0, xmm0
xorps xmm1, xmm1
xor r15d, r15d
mov edx, r15d
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x80], xmm1
movups xmmword [rbp + 0x90], xmm1
movups xmmword [rbp + 0xa0], xmm1
movups xmmword [rbp + 0xb0], xmm1
movups xmmword [rbp + 0xc0], xmm1
test r9d, r9d
je 0x1400100e7
nop dword [rax]
mov ecx, edx
inc edx
movzx eax, byte [rbp + rcx + 0x30]
xor al, 0x69
mov byte [rbp + rcx + 0x80], al
cmp edx, r9d
jb 0x1400100d0
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x100
call fcn.140001b70
movzx eax, byte [rbp - 0x68]
lea rcx, [r14 + 0x14f8]
mov dword [rsp + 0x40], eax
xor r9d, r9d
mov qword [rsp + 0x38], rcx
lea rax, str.RegistryMACHINESystemCurrentControlSetMultiKeyDumps
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0xd0]
lea rax, [0x140001328]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x100
mov dword [rsp + 0x20], 0x800
call fcn.140003570
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x60]
mov dword [rbp - 0x50], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x50]
mov qword [rbp - 0x48], r15
mov edx, 0x20019
mov dword [rbp - 0x38], 0x40
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400101f1
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x100
call fcn.140001b70
test esi, esi
je 0x1400101c9
mov r15d, esi
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x100
call fcn.140001b70
sub r15, r12
jne 0x1400101b0
mov r9d, dword [rsp + 0x58]
lea r8, [rbp + 0x80]
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0xd0]
call fcn.1400041c0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor dl, dl
test esi, esi
je 0x14001021d
nop word [rax + rax]
dec esi
movzx ecx, dl
inc dl
lea eax, [rsi*4]
mov eax, dword [rbp + rax + 0x80]
mov dword [rbp + rcx*4 - 0x20], eax
test esi, esi
jne 0x140010200
mov eax, dword [rbp - 0x20]
mov dword [rdi + 2], eax
mov eax, dword [r13]
and eax, 0xfffffff8
cmp eax, 8
jbe 0x1400109b7
mov esi, 0x4d2
nop dword [rax + rax]
lea eax, [r12 + r12*2]
movzx r8d, r12w
lea eax, [rax*2 - 2]
imul r8d, esi
mov ecx, eax
lea r9d, [r12*8 - 8]
mov eax, dword [rbp + rax - 0x20]
mov dword [r9 + rdi + 8], eax
movzx eax, word [rbp + rcx - 0x1c]
xor r8w, bx
mov word [r9 + rdi + 0xc], ax
lea rcx, [rdi + 8]
lea eax, [r12*8 - 2]
add rcx, r9
mov word [rax + rdi + 8], r8w
call fcn.140003f00
mov eax, dword [r13]
inc r12d
shr eax, 3
cmp r12d, eax
jb 0x140010240
jmp 0x1400109b7
xor dl, dl
test esi, esi
je 0x1400102ca
nop dword [rax]
dec esi
movzx ecx, dl
inc dl
lea eax, [rsi*4]
mov eax, dword [rbp + rax + 0x30]
mov dword [rbp + rcx*4 - 0x20], eax
test esi, esi
jne 0x1400102b0
mov eax, dword [rbp - 0x20]
mov dword [rdi + 2], eax
mov eax, dword [r13]
and eax, 0xfffffff8
cmp eax, 8
jbe 0x1400109b7
mov esi, 0x4d2
nop word [rax + rax]
lea eax, [r12 + r12*2]
movzx r8d, r12w
lea eax, [rax*2 - 2]
imul r8d, esi
mov ecx, eax
lea r9d, [r12*8 - 8]
mov eax, dword [rbp + rax - 0x20]
mov dword [r9 + rdi + 8], eax
movzx eax, word [rbp + rcx - 0x1c]
xor r8w, bx
mov word [r9 + rdi + 0xc], ax
lea rcx, [rdi + 8]
lea eax, [r12*8 - 2]
add rcx, r9
mov word [rax + rdi + 8], r8w
call fcn.140003f00
mov eax, dword [r13]
inc r12d
shr eax, 3
cmp r12d, eax
jb 0x1400102f0
jmp 0x1400109b7
cmp byte [r14 + 0xa3], 0
jne 0x1400103bc
mov byte [rdi + 1], 0
movzx eax, byte [r15 + 1]
cmp byte [rax + r14 + 0x2a4], 3
jne 0x1400103aa
movzx r8d, word [r14 + rax*2 + 0xa6]
mov edx, r12d
movzx ecx, word [r14 + 0xb0]
movzx eax, word [r14 + rax*2 + 0xa4]
movzx r9d, word [r14 + 0xac]
shl r8d, 0x10
mov dword [rsp + 0x20], ecx
or r8d, eax
lea rcx, [r15 + 2]
call fcn.14000c650
movzx eax, word [r15 + 2]
mov word [rdi + 2], ax
movzx eax, word [r15 + 4]
mov word [rdi + 4], ax
cmp byte [r14 + 0xa3], r12b
jb 0x1400104e3
mov byte [rdi + 1], 0
mov ecx, dword [r15 + 2]
mov dword [rdi + 2], ecx
movzx eax, byte [r15 + 1]
cmp byte [rax + r14 + 0x2a4], 3
jne 0x1400104e3
mov eax, 0x69ad
xor edx, edx
xor cx, ax
mov r8d, 0x100
mov word [rdi + 2], cx
mov eax, 0x5c9f
xor word [rdi + 4], ax
lea rcx, [rbp + 0xd0]
call fcn.140001b70
movzx eax, byte [r15 + 1]
lea rcx, [r14 + 0x14f8]
mov dword [rsp + 0x40], eax
xor r9d, r9d
mov qword [rsp + 0x38], rcx
lea rax, str.RegistryMACHINESystemCurrentControlSetMultiKeyDumps
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0xd0]
lea rax, [0x140001328]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x100
mov dword [rsp + 0x20], 0x800
call fcn.140003570
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x60]
mov dword [rbp - 0x50], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x40], rax
xor r15d, r15d
mov dword [rbp - 0x38], 0x40
lea r8, [rbp - 0x50]
mov qword [rbp - 0x48], r15
mov edx, 0x20019
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400104e3
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x100
call fcn.140001b70
mov rcx, qword [rsp + 0x50]
lea r9d, [r15 + 4]
lea r8, [rdi + 2]
lea rdx, [rbp + 0xd0]
call fcn.1400041c0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov esi, 8
jmp 0x1400109bb
movzx edx, byte [r15 + 1]
cmp byte [rdx + r14 + 0x2a4], 3
jae 0x14001052a
cmp dl, 0x3f
jbe 0x14001051b
cmp byte [r14 + 0xa3], 0
je 0x14001052a
cmp dl, 0x7f
jbe 0x14001051b
cmp byte [r14 + 0xa3], 2
je 0x14001052a
movzx edx, word [r14 + rdx*2 + 0xa4]
mov byte [rdi + 1], 0
jmp 0x14001052f
mov edx, 0x101
xor r15d, r15d
mov word [rdi + 2], dx
mov word [rdi + 4], r15w
lea esi, [r15 + 8]
jmp 0x1400109bb
movzx eax, byte [r15 + 1]
cmp al, 0x3f
jbe 0x140010573
cmp byte [r14 + 0xa3], 0
je 0x140010565
cmp al, 0x7f
jbe 0x140010573
cmp byte [r14 + 0xa3], 2
jne 0x140010573
xor r15d, r15d
mov edx, 0x101
movzx ecx, r15w
jmp 0x1400105c1
mov rdx, rax
movzx eax, byte [rax + r14 + 0x2a4]
cmp al, 3
jb 0x140010591
xor r15d, r15d
mov ecx, 3
movzx edx, r15w
jmp 0x1400105c1
movzx edx, word [r14 + rdx*2 + 0xa4]
and al, 3
movzx ecx, al
mov r8d, 0xff00
movzx eax, dx
mov byte [rdi + 1], 0
shl ax, 2
or cx, ax
shr dx, 0xe
movzx eax, bx
and ax, r8w
or dx, ax
mov rax, rdi
mov esi, 8
mov word [rax + 2], dx
mov word [rax + 4], cx
jmp 0x1400109bb
mov byte [rdi + 1], 0
mov esi, 8
mov dword [rdi + 2], 0x4007c07
jmp 0x1400109bb
cmp byte [r14 + 0xa3], r12b
jb 0x140010678
movzx eax, word [r15 + 2]
mov r9d, 0x10
movzx edx, word [r15 + 4]
movzx r8d, al
shl r8d, 8
shr eax, 8
or r8d, eax
bswap edx
nop dword [rax + rax]
mov ecx, edx
mov eax, r8d
shl ecx, 8
xor ecx, edx
shl eax, 0x14
and ecx, 0xfff00000
shr r8d, 1
xor ecx, eax
mov eax, edx
shl ecx, 0xb
shr eax, 1
mov edx, ecx
or edx, eax
mov eax, r8d
mov ecx, edx
shl eax, 0x14
shl edx, 8
xor edx, ecx
shr r8d, 1
and edx, 0xfff00000
shr ecx, 1
xor edx, eax
shl edx, 0xb
or edx, ecx
sub r9, r12
jne 0x140010620
mov word [rdi + 2], dx
movzx eax, word [r15 + 4]
mov word [rdi + 4], ax
mov byte [rdi + 1], r9b
mov esi, 8
jmp 0x1400109bb
movzx eax, byte [r15 + 1]
cmp byte [rax + r14 + 0x2a4], 0
jne 0x1400106cd
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
mov byte [rdi + 1], 0
mov dword [rdi + 2], 0x1234abcd
movzx eax, byte [r15 + 1]
mov byte [rax + r14 + 0x2a4], 0
movzx ecx, byte [r15 + 1]
movzx eax, word [r15 + 2]
mov word [r14 + rcx*2 + 0xa4], ax
mov esi, 8
jmp 0x1400109bb
movzx eax, byte [r15 + 1]
cmp byte [rax + r14 + 0x2a4], 0
jne 0x1400106cd
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
mov byte [rdi + 1], 0
mov dword [rdi + 2], 0x1234abcd
movzx eax, byte [r15 + 1]
mov byte [rax + r14 + 0x2a4], r12b
jmp 0x1400106ba
movzx eax, byte [r15 + 1]
cmp byte [rax + r14 + 0x2a4], 0
jne 0x1400106cd
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
mov byte [rdi + 1], 0
mov dword [rdi + 2], 0x1234abcd
movzx eax, byte [r15 + 1]
mov byte [rax + r14 + 0x2a4], 2
jmp 0x1400106ba
movzx eax, byte [r15 + 1]
cmp byte [rax + r14 + 0x2a4], 0
jne 0x1400106cd
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
mov byte [rdi + 1], 0
mov dword [rdi + 2], 0x1234abcd
movzx eax, byte [r15 + 1]
mov byte [rax + r14 + 0x2a4], 3
jmp 0x1400106ba
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a4]
cmp word [r14 + 0xa8], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a6]
cmp word [r14 + 0xaa], ax
jmp 0x14001069f
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a4]
cmp word [r14 + 0xa8], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a6]
cmp word [r14 + 0xaa], ax
jmp 0x1400106f4
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a4]
cmp word [r14 + 0xa8], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a6]
cmp word [r14 + 0xaa], ax
jmp 0x14001072d
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a4]
cmp word [r14 + 0xa8], ax
jne 0x1400106cd
movzx eax, word [r14 + 0x3a6]
cmp word [r14 + 0xaa], ax
jmp 0x14001076e
movzx eax, byte [r15 + 1]
test byte [rax + r14 + 0x2a4], 0xfd
jne 0x1400106cd
movzx eax, word [r15 + 4]
cmp word [r14 + 0xac], ax
jne 0x1400106cd
mov byte [rdi + 1], 0
mov ecx, 0xffff
mov dword [rdi + 2], 0x1234abcd
mov esi, 8
movzx eax, byte [r15 + 1]
add word [r14 + rax*2 + 0xa4], cx
jmp 0x1400109bb
mov byte [rdi + 1], 0
movzx ecx, byte [r14 + 0xa3]
test ecx, ecx
je 0x140010919
sub ecx, r12d
je 0x140010908
cmp ecx, r12d
jne 0x1400106cd
mov dword [rdi + 2], 0xa7030300
mov esi, 8
jmp 0x1400109bb
mov dword [rdi + 2], 0xb2030002
mov esi, 8
jmp 0x1400109bb
mov dword [rdi + 2], 0xa7030400
mov esi, 8
jmp 0x1400109bb
mov byte [rdi + 1], 0
movzx ecx, byte [r15 + 1]
mov eax, dword [r15 + 2]
shr rcx, 1
mov dword [r14 + rcx*2 + 0x3a4], eax
movzx eax, byte [r15 + 1]
movzx ecx, byte [r14 + 0xa3]
shr al, 1
mov byte [r14 + 0x3e4], al
test ecx, ecx
je 0x140010919
sub ecx, r12d
je 0x140010908
cmp ecx, r12d
jne 0x1400106cd
mov dword [rdi + 2], 0xa0030002
mov esi, 8
jmp 0x1400109bb
mov byte [rdi + 1], 0
mov esi, 8
movzx eax, byte [r15 + 1]
shr rax, 1
movzx eax, word [r14 + rax*2 + 0x3a4]
mov word [rdi + 2], ax
movzx eax, byte [r15 + 1]
shr rax, 1
movzx eax, word [r14 + rax*2 + 0x3a6]
mov word [rdi + 4], ax
jmp 0x1400109bb
mov byte [rdi + 1], 0xf
jmp 0x1400109b7
mov byte [rdi + 1], 0
mov esi, dword [r13]
movzx eax, byte [rdi + 5]
mov rcx, rdi
add al, byte [rdi + 4]
add al, byte [rdi + 3]
add al, byte [rdi + 2]
add al, byte [rdi + 1]
mov byte [rdi], al
mov word [rdi + 6], bx
call fcn.140003f00
mov eax, dword [r13]
mov rdx, rdi
mov ecx, esi
add rcx, 2
cmp rcx, rax
cmovae ecx, eax
mov dword [r13], ecx
mov r8d, ecx
mov rcx, qword [rbp + 0x218]
call fcn.140001820
mov eax, dword [r13]
mov edx, 0x4d525356
mov rcx, rdi
mov dword [r14 + 0x436], eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rsi, qword [rsp + 0x308]
mov rbx, qword [rsp + 0x300]
mov rdi, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret