Function at 0x1002719
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbac
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x44], eax
push edi
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 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 - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0xf4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebx
push ebx
push ebx
push 0x1001240
call dword [sym.imp.GDI32.dll_CreateDCA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002826
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x4c
cmp dword [ebp + 0xc], ebx
lea eax, [ecx + 0x10]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], 0x120003
jbe 0x10027cc
mov esi, dword [ebp + 8]
shr ecx, 2
lea edi, [ebp - 0x18c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.GDI32.dll_ExtEscape]
push ebx
push ebx
lea ecx, [ebp - 0x19c]
push ecx
push eax
push 0x7306
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100281d
push 0x10
pop eax
lea ecx, [ebp - 0xbac]
push ecx
mov esi, 0x508
push esi
lea ecx, [ebp - 0x3c]
push ecx
push eax
push 0x7306
push dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x110004
mov dword [ebp - 0xbac], esi
call edi
test eax, eax
je 0x100282d
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
jmp 0x1002989
push 0x10
pop eax
lea ecx, [ebp - 0x6a4]
push ecx
push esi
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x110005
mov dword [ebp - 0x6a4], esi
push eax
jmp 0x1002948
cmp dword [ebp - 0xe4], 2
jne 0x10028ba
lea eax, [ebp - 0x10]
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 dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1002996
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1002996
cmp dword [ebp - 0xc], ebx
jne 0x10028ba
mov eax, 0x400
call fcn.01004900
cmp esp, ebx
mov dword [ebp - 0xc], esp
je 0x1002996
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x10]
lea eax, [ebp - 0x60]
push dword [ebp - 0xc]
push eax
call fcn.010022d5
test eax, eax
je 0x100299b
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push 0xf003f
push ebx
push 0x1001320
push ebx
lea eax, [ebp - 0xba8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100299b
push dword [ebp - 0x5a0]
lea eax, [ebp - 0x59c]
push eax
push 3
push ebx
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100299b
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100299b
lea eax, [ebp - 0x6a4]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push 0x10
push 0x7306
push dword [ebp - 4]
call edi
test eax, eax
je 0x1002852
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0xe4], 2
jne 0x1002986
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x100297c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], ebx
je 0x1002986
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 8]
lea esp, [ebp - 0xbb8]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp - 8], ebx
jmp 0x100295a
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 8], ebx
jmp 0x1002963