Function at 0x1037443
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
xor edi, edi
mov eax, 0x1012658
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x103745c
sub eax, ecx
push ebx
sar eax, 1
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [eax + 0x105]
mov eax, dword [esi]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x103763e
mov edx, dword [esi + 8]
cmp edx, edi
je 0x103763e
cmp word [eax], di
je 0x103763e
cmp word [edx], di
je 0x103763e
lea eax, [ecx + ecx]
push eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1037633
mov ebx, dword [0x10491bc]
jmp 0x10374e0
push dword [esi + 8]
mov dword [ebp - 0x28], ebx
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x103757a
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x10374c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x3001f
push edi
push edi
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x103764a
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1037513
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push 0x1024110
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x103764a
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push 0x1013370
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call ebx
mov dword [ebp + 0xc], eax
sub eax, edi
je 0x1037582
dec eax
dec eax
jne 0x1037645
jmp 0x10375bd
mov dword [ebp + 0xc], edi
jmp 0x10376b2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x103762e
push eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov dword [ebp - 4], eax
cmp eax, edi
je 0x103762e
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push edi
push 0x1013370
push dword [ebp + 8]
call ebx
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x103764a
lea eax, [ebp - 0x20]
push eax
push dword [esi]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.01033c36
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x1037645
push dword [ebp - 0x20]
push eax
push 7
push edi
push 0x1013370
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x103764a
push dword [esi]
mov dword [ebp - 0x1c], 1
push 0x1012658
push 0x10376d8
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call fcn.0100f6f5
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xc]
push dword [esi + 8]
call fcn.01011eff
cmp eax, edi
je 0x1037645
mov ecx, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [ecx], eax
jmp 0x1037645
cmp dword [ebp + 0xc], edi
jne 0x103764a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x1037645
mov dword [ebp + 0xc], 0x57
cmp dword [ebp + 0xc], edi
je 0x1037698
cmp dword [ebp - 0x18], 1
jne 0x1037667
push dword [esi]
push dword [ebp + 8]
call fcn.010335f4
push edi
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
cmp dword [ebp - 0x1c], edi
je 0x1037698
cmp dword [ebp - 4], edi
je 0x103768a
push dword [ebp - 0x2c]
push dword [ebp - 4]
push 7
push edi
push 0x1013370
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
jmp 0x1037698
push 0x1013370
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp dword [ebp - 4], edi
je 0x10376a5
push dword [ebp - 4]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [ebp - 0x14], edi
je 0x10376b2
push dword [ebp - 0x14]
call sym.spoolsv.exe_PrvDllFreeSplMem
pop esi
pop ebx
cmp dword [ebp - 0xc], edi
je 0x10376c1
push dword [ebp - 0xc]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [ebp - 8], edi
pop edi
je 0x10376d0
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 8