Function at 0x4090d8
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov dword [0x40cac0], eax
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00406cc4
call fcn.00408c9d
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
not al
and al, 1
push 0x100
mov byte [0x40ca8c], al
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x14c]
push eax
call fcn.004020db
cmp eax, esi
pop ecx
mov dword [section.MY_SIZE], eax
je 0x409147
mov dword [section..bss], eax
push 0xc
push 0x40ca90
call fcn.00406fb0
pop ecx
mov dword [0x40cbc8], eax
mov eax, dword [0x40ca60]
pop ecx
push dword [0x40ca98]
push dword [eax + 8]
push 0x40cac4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.00409394
test al, al
jne 0x409198
mov eax, dword [0x40ca60]
push esi
push dword [eax]
push dword [eax + 4]
push esi
call fcn.00408d85
add esp, 0x10
jmp 0x4092ea
push ebx
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call fcn.00407025
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
test al, al
pop ecx
je 0x40921e
push dword [0x40ca94]
lea eax, [ebp - 0x34c]
push dword [0x40ca90]
push 0x4015ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x34c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x409212
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push esi
push 0x4015e0
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call fcn.00406d2b
pop ecx
mov dword [ebp - 8], esi
mov eax, dword [0x40caac]
mov ecx, dword [eax]
test cl, 0x18
mov dword [ebp - 0x10], ecx
je 0x409281
mov eax, ecx
lea ecx, [ebp - 4]
push esi
and al, 8
push ecx
push esi
neg al
push 0xf003f
push esi
sbb eax, eax
push esi
push esi
push dword [0x40cab0]
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409281
push dword [0x40caa4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [0x40caa4]
push 1
push esi
push 0x4015d4
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
test byte [ebp - 0x10], 0x20
pop edi
pop ebx
je 0x4092e1
push 0x3c
lea eax, [ebp - 0x4c]
pop esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x3c], 0x40cbcc
mov dword [ebp - 0x30], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4092da
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00409327
jmp 0x4092ea
call fcn.00408ea2
test al, al
jne 0x4092ee
xor al, al
jmp 0x409324
push 0x11c
call fcn.00406d49
cmp eax, esi
pop ecx
je 0x40930b
mov ecx, eax
call fcn.004072e2
mov dword [0x40ccd8], eax
jmp 0x409311
mov dword [0x40ccd8], esi
call fcn.00405d98
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x40ccd4], eax
mov al, cl
pop esi
leave
ret