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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
xor ebx, ebx
push esi
push edi
lea eax, [ebp - 0xfc]
push eax
mov edi, ecx
mov dword [ebp - 0x2c], 0x14
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 1
mov dword [ebp - 0xfc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xec], 2
jne 0x1002438
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
je 0x10025c1
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x10025c1
mov eax, 0x400
call fcn.01004900
mov esi, esp
cmp esi, ebx
je 0x10025c1
push dword [ebp - 8]
lea eax, [ebp - 0x68]
push dword [ebp - 0xc]
mov ecx, edi
push esi
push eax
call fcn.010022d5
test eax, eax
je 0x10025b8
push ebx
push ebx
push ebx
push 0x1001240
call dword [sym.imp.GDI32.dll_CreateDCA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x100246d
push ebx
jmp 0x10025bb
push 0x10
pop ecx
lea edx, [ebp - 0x604]
push edx
mov eax, 0x508
push eax
mov dword [ebp - 0x604], eax
lea eax, [ebp - 0x54]
push eax
push ecx
push 0x7306
push dword [ebp - 0x28]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 0x110004
call dword [sym.imp.GDI32.dll_ExtEscape]
test eax, eax
jne 0x10025b8
lea eax, [ebp - 0x20]
push eax
mov esi, 0xf003f
push esi
push ebx
lea eax, [ebp - 0x600]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10025b8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x1001310
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10025af
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x1001308
push ebx
lea eax, [ebp - 0x600]
push eax
push 0x80000005
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10025af
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop edi
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
push 0x10012ec
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x40]
push eax
push edi
push ebx
push 0x10012d4
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push ebx
push 0x10012b8
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push 0x100129c
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x3c]
push eax
push edi
push ebx
push 0x1001280
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push 0x1001264
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push 0x1001248
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1001310
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x10025d1
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x10025db
push dword [ebp - 8]
call esi
lea esp, [ebp - 0x610]
pop edi
pop esi
pop ebx
leave
ret