Function at 0x11ad4
Capabilities:
Persist via windows service
Print debug messages
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
push ebx
push esi
push edi
push 8
pop ecx
mov esi, 0x118bc
lea edi, [ebp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
mov eax, dword [0x15058]
pop ecx
mov esi, 0x118e0
lea edi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x118f4
lea edi, [ebp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1a
pop ecx
mov esi, 0x11904
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x11970
mov dword [ebp + 0x70], eax
mov byte [ebp - 0x45], bl
movsw word es:[edi], word [esi]
call sub.ntoskrnl.exe_DbgPrint
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc0]
mov dword [esp], 0x11984
push eax
call esi
push 0x11a48
lea eax, [ebp - 0xa0]
push eax
call esi
push 0x11a60
lea eax, [ebp - 0x90]
push eax
call esi
push 0x11a74
lea eax, [ebp - 0x98]
push eax
call esi
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xb8]
push eax
push 0xf003f
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0xb8], 0x18
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xac], 0x240
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x11bcb
push 0x11a84
call sub.ntoskrnl.exe_DbgPrint
pop ecx
jmp 0x12216
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x6c], ebx
push ebx
jmp 0x12178
cmp eax, ebx
je 0x11bf1
cmp eax, 0x80000005
je 0x11bf1
cmp eax, 0xc0000023
jne 0x12209
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, 0x206b6444
push edi
push dword [ebp - 0x44]
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x58], eax
je 0x12209
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x5c]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
jl 0x121ff
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
push edi
add eax, 0x22
push eax
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x54], eax
je 0x121ff
mov ecx, dword [ebp - 0x58]
lea esi, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0xc]
shr ecx, 1
push 8
lea edi, [eax + ecx*2]
pop ecx
lea esi, [ebp + 0x2c]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0xd0]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
push 0xf003f
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 0x4d], bl
mov dword [ebp - 0x88], 0x18
mov dword [ebp - 0x7c], 0x240
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x11d6f
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x4c]
call edi
cmp eax, 0xc0000034
je 0x11d6f
cmp eax, ebx
je 0x11d05
cmp eax, 0x80000005
je 0x11d05
cmp eax, 0xc0000023
jne 0x121e8
push 0x206b6444
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
je 0x121e8
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0xa0]
push esi
push 2
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
jl 0x121b3
push 0x12
lea eax, [esi + 0xc]
push eax
push 0x11aa8
call dword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp eax, 0x12
jne 0x11d56
mov byte [ebp - 0x4d], 1
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jl 0x121f5
push ebx
push dword [ebp - 0x54]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp byte [ebp - 0x4d], bl
je 0x12161
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
push 0x206b6444
add eax, 0x14
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x54], edi
je 0x121ff
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0xc]
mov eax, ecx
shr ecx, 2
lea esi, [edx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0xc]
shr ecx, 1
push 5
lea edi, [eax + ecx*2]
pop ecx
push eax
lea eax, [ebp - 0xd8]
lea esi, [ebp + 0x50]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp - 0x5c]
push ebx
push ebx
mov dword [ebp - 0x84], eax
push ebx
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x80], eax
push ebx
lea eax, [ebp - 0x88]
push eax
push 0xf003f
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x88], 0x18
mov dword [ebp - 0x7c], 0x240
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
jl 0x121d0
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
je 0x11f57
cmp eax, ebx
je 0x11e61
cmp eax, 0x80000005
je 0x11e61
cmp eax, 0xc0000023
jne 0x121c3
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x206b6444
push dword [ebp - 0x44]
push ebx
call esi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x68], edi
je 0x121c3
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x90]
push edi
push 2
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x121b7
mov eax, dword [edi + 8]
sub eax, 4
mov dword [ebp - 0x60], ebx
je 0x11edc
lea eax, [edi + 0xc]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x64], eax
push 8
push dword [ebp - 0x64]
push 0x11abc
call dword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp eax, 8
mov eax, dword [edi + 8]
je 0x11f36
inc dword [ebp - 0x60]
add dword [ebp - 0x64], 2
sub eax, 4
cmp dword [ebp - 0x60], eax
jb 0x11eb5
mov eax, dword [edi + 8]
add eax, 8
push 0x206b6444
push eax
push ebx
mov byte [ebp - 0x45], 1
mov dword [ebp - 0x60], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x121b7
mov ecx, dword [0x11ac4]
mov dword [eax], ecx
mov ecx, dword [0x11ac8]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
lea esi, [edi + 0xc]
lea edi, [eax + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
push dword [ebp - 0x68]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
mov esi, dword [ebp - 0x64]
jmp 0x11f95
push 0x206b6444
push eax
push ebx
mov dword [ebp - 0x60], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x121b7
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0x70]
mov edi, eax
jmp 0x11f17
push 0xa
pop eax
push 0x206b6444
push eax
push ebx
mov byte [ebp - 0x45], 1
mov dword [ebp - 0x60], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
je 0x121c3
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x11acc]
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [esi], eax
mov eax, dword [0x11ad0]
mov dword [esi + 4], eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x90]
push esi
push 7
push ebx
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
push ebx
push esi
jl 0x121c1
call edi
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jl 0x121d6
push ebx
push dword [ebp - 0x54]
call edi
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
push 0x206b6444
add eax, 0xc
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x54], edi
je 0x121ff
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0xc]
mov eax, ecx
shr ecx, 2
lea esi, [edx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0xc]
shr ecx, 1
lea edi, [eax + ecx*2]
lea esi, [ebp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0xc8]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
push 0xf003f
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x88], 0x18
mov dword [ebp - 0x7c], 0x240
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x12157
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
je 0x12157
cmp eax, ebx
je 0x120a8
cmp eax, 0x80000005
je 0x120a8
cmp eax, 0xc0000023
jne 0x121e8
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, 0x206b6444
push edi
push dword [ebp - 0x44]
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x121e8
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x121de
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jl 0x121f5
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
push edi
add eax, 0x68
push eax
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x121f5
mov edx, dword [ebp - 0x68]
push 0x1a
pop ecx
mov edi, eax
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [edx + 8]
lea esi, [edx + 0xc]
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x68]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
lea eax, [ebp - 0xe0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push dword [ebp - 0x70]
call esi
push ebx
push dword [ebp - 0x68]
call esi
push ebx
push dword [ebp - 0x54]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x5c]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, 0x8000001a
jne 0x11bdb
push dword [ebp - 0x5c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jge 0x1219e
mov eax, dword [ebp + 0x7c]
mov dword [eax], ebx
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.00013f40
add ebp, 0x74
leave
ret 4
push ebx
push esi
jmp 0x121e2
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x121c3
call edi
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jge 0x121ff
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push dword [ebp - 0x54]
call edi
jmp 0x121ff
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jge 0x121ff
push ebx
push dword [ebp - 0x54]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 0x5c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jge 0x1221f
mov eax, dword [ebp + 0x7c]
mov dword [eax], 0xc0000001
xor al, al
jmp 0x121a1