Function at 0x129c0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x16f20]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x60
xor edi, edi
push 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0xc0000001
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, esi
je 0x12a25
mov edi, 0x15234
or esi, 0xffffffff
mov ecx, eax
sub edi, eax
mov ebx, 0x18
mov edx, dword [edi + ecx]
mov ebp, edx
xor ebp, esi
mov dword [ecx], ebp
add ecx, 4
sub ebx, 1
mov esi, edx
jne 0x12a08
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
xor esi, esi
push str.RemoveTrace
push str.__s_
call fcn.00012710
add esp, 8
cmp dword [esp + 0x14], esi
je 0x12beb
mov ecx, dword [esp + 0x24]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
lea edx, [esp + 0x30]
push edx
push 0xf003f
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call ebp
test eax, eax
jl 0x12bdf
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.Enum
lea ecx, [esp + 0x2c]
push ecx
call ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], edx
push 0xf003f
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x40], eax
call ebp
test eax, eax
jl 0x12bdf
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x12ace
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0x15854
lea eax, [esp + 0x2c]
push eax
call ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push 2
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
jne 0x12bdf
mov ecx, dword [esp + 0x18]
push esi
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x12bdf
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
push edi
push 2
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x12bdf
cmp dword [edi + 4], 1
jne 0x12bdf
mov eax, dword [esp + 0x10]
push eax
call fcn.00010ad0
test eax, eax
jl 0x12bdf
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x18], esi
call ebx
lea eax, [esp + 0x30]
push eax
push 0xf003f
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x40], esi
call ebp
test eax, eax
jl 0x12bdf
lea esi, [edi + 0xc]
push esi
push str._RemoveTrace_Enum:__S
call fcn.00012710
add esp, 8
push esi
lea edx, [esp + 0x2c]
push edx
call ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
push 0xf003f
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x40], eax
call ebp
test eax, eax
jl 0x12bdd
mov eax, dword [esp + 0x34]
test eax, eax
je 0x12bc5
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [esp + 0x10]
push eax
call fcn.00010ad0
test eax, eax
jl 0x12bdd
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x12bfa
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, esi
je 0x12c06
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret