Function at 0x1007d050
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
push eax
call dword [sym.imp.psklutil.dll_Ordinal_300]
mov esi, eax
xor ebx, ebx
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
jne 0x1007d07e
mov eax, reloc.pskreg.dll_Ordinal_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServices_
push reloc.pskreg.dll_Ordinal_2
call dword [sym.imp.psklutil.dll_Ordinal_723]
add esp, 0x14
test eax, eax
jne 0x1007d439
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
call fcn.10086f60
add esp, 0xc
test eax, eax
jne 0x1007d427
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.pskalloc.dll_Pmalloc]
lea eax, [edx + edx + 2]
push ebx
push eax
call edi
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
cmp esi, ebx
je 0x1007d427
push ebx
push 0x208
mov dword [esp + 0x20], 0x104
call edi
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x1007d41d
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x34], ebx
jbe 0x1007d413
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x5c], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1007d404
lea edx, [esp + 0x1c]
push edx
xor ecx, ecx
push 0x20019
push ecx
mov word [edi], cx
mov eax, dword [esp + 0x2c]
push esi
push eax
call dword [sym.imp.psklutil.dll_Ordinal_723]
add esp, 0x14
test eax, eax
jne 0x1007d404
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
push str.ImagePath
push ecx
call dword [sym.imp.psklutil.dll_Ordinal_722]
add esp, 0x18
cmp eax, 0xea
jne 0x1007d1ff
mov eax, dword [esp + 0x10]
add eax, 2
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.pskalloc.dll_Pmalloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x1007d3ee
push edi
call dword [sym.imp.pskalloc.dll_Pfree]
mov edx, dword [esp + 0x14]
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x30]
push ecx
push 0
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
push str.ImagePath
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, esi
test eax, eax
jne 0x1007d3ee
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
cmp dword [esp + 0x28], 2
jne 0x1007d2e4
call fcn.1007bfe0
mov ebx, eax
mov dword [esp + 0x2c], ebx
cmp ebx, 0xffffffff
je 0x1007d2e4
mov eax, dword [esp + 0x18]
add eax, eax
push 0
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.pskalloc.dll_Pmalloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x1007d2d9
mov esi, dword [esp + 0x18]
shr esi, 1
push ebx
mov ebx, dword [esp + 0x18]
dec esi
call fcn.1007bf70
add esp, 4
test eax, eax
jne 0x1007d454
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1007d454
push edi
call dword [sym.imp.pskalloc.dll_Pfree]
mov edx, dword [esp + 0x1c]
add esp, 4
lea eax, [edx*4]
push 0
push eax
call dword [sym.imp.pskalloc.dll_Pmalloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x1007d2cb
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
dec esi
push ecx
call fcn.1007bf70
add esp, 4
test eax, eax
jne 0x1007d44c
push edi
call dword [sym.imp.pskalloc.dll_Pfree]
add esp, 4
xor edi, edi
push edi
call dword [sym.imp.pskalloc.dll_Pfree]
mov ebx, dword [esp + 0x30]
add esp, 4
push ebx
call dword [sym.imp.psklutil.dll_Ordinal_561]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push ecx
push edi
call dword [sym.imp.pscr80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1007d3ee
mov esi, dword [esp + 0x3c]
lea esi, [esi + esi + 0x50]
push 0
push esi
call dword [sym.imp.pskalloc.dll_Pmalloc]
add esp, 8
mov ebx, eax
mov eax, dword [0x1011ee28]
cmp eax, 0x1011ee28
je 0x1007d347
test byte [eax + 0x1c], 1
je 0x1007d347
cmp byte [eax + 0x19], 3
jb 0x1007d347
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
push 0x100988d8
push 0x30
push ecx
push edx
mov edx, edi
call fcn.100699d0
add esp, 0x14
test ebx, ebx
je 0x1007d3ee
xor eax, eax
mov word [esi + ebx - 2], ax
mov eax, str.HKLM_
mov edx, ebx
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1007d360
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1007d372
mov eax, dword [esp + 0x30]
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007d392
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1007d3a2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.psklutil.dll_Ordinal_301]
mov esi, eax
add esp, 4
test esi, esi
je 0x1007d3e0
mov ecx, dword [ebp + 8]
call fcn.100018b0
push esi
call dword [sym.imp.pskalloc.dll_Pfree]
add esp, 4
push ebx
call dword [sym.imp.pskalloc.dll_Pfree]
mov edi, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.psklutil.dll_Ordinal_721]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
add esp, 4
inc ebx
mov dword [esp + 0x40], ebx
cmp ebx, dword [esp + 0x34]
jb 0x1007d11d
push edi
call dword [sym.imp.pskalloc.dll_Pfree]
add esp, 4
push esi
call dword [sym.imp.pskalloc.dll_Pfree]
add esp, 4
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.psklutil.dll_Ordinal_721]
mov esi, dword [esp + 0x48]
add esp, 4
push esi
call dword [sym.imp.pskalloc.dll_Pfree]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1007d486
test dx, dx
je 0x1007d482
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1007d486
add eax, 4
add ecx, 4
test dx, dx
jne 0x1007d460
xor eax, eax
jmp 0x1007d48b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1007d2cb
push esi
call dword [sym.imp.pskalloc.dll_Pfree]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
jmp 0x1007d2d2