Function at 0x530270
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x530278
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040436c
xor eax, eax
push ebp
push 0x5304f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x530352
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x20]
call fcn.00536728
push dword [ebp - 0x20]
push 0x530508
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404278
mov eax, dword [ebp - 0x1c]
call fcn.0040437c
push eax
call sub.kernel32.dll_WinExec
push 1
lea eax, [ebp - 0x28]
call fcn.00536728
push dword [ebp - 0x28]
push 0x530528
push dword [ebp - 4]
push 0x530544
lea eax, [ebp - 0x2c]
call fcn.00480968
push dword [ebp - 0x2c]
push 0x530558
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00404278
mov eax, dword [ebp - 0x24]
call fcn.0040437c
push eax
call sub.kernel32.dll_WinExec
lea eax, [ebp - 0x18]
mov ecx, 0x530564
mov edx, dword [ebp - 4]
call fcn.00404204
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409f0c
test al, al
je 0x530348
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.00403fd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53035c
mov dl, 1
mov eax, dword [0x4783fc]
call fcn.004784fc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5304c8
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0047859c
xor ecx, ecx
mov edx, 0x530574
mov eax, dword [ebp - 8]
call fcn.00478604
test al, al
je 0x53046f
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x5305a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0xc], 7
jne 0x5303f6
mov edx, dword [ebp - 0x10]
dec edx
lea eax, [ebp - 0x14]
call fcn.004044ec
cmp dword [ebp - 0x10], 1
jbe 0x5303f6
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x5305a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.004097e8
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004097e8
mov eax, dword [ebp - 0x34]
pop edx
call fcn.0040d240
test eax, eax
jne 0x53043f
push dword [ebp - 0x14]
push 0x5305cc
push dword [ebp - 4]
push 0x5305dc
push 0x5305dc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404278
mov eax, dword [ebp - 0x14]
call fcn.004041b8
inc eax
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040437c
push eax
push 7
push 0
push 0x5305a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
call fcn.0047856c
mov eax, dword [ebp - 8]
call fcn.0047856c
xor ecx, ecx
mov edx, 0x5305e8
mov eax, dword [ebp - 8]
call fcn.00478604
test al, al
je 0x5304b2
push 0x530624
push dword [ebp - 4]
push 0x530644
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404278
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00478b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5304cf
mov eax, dword [ebp - 8]
call fcn.00403198
ret