Function at 0x40585c
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
push edi
mov dword [ebp - 0x380], ecx
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x378], 0
push 0x104
push 0
lea eax, [ebp - 0x360]
push eax
call fcn.004245f0
add esp, 0xc
push 0x2e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004258e0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4058b2
xor al, al
jmp 0x405b5c
lea edx, [ebp - 0x364]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4058da
xor al, al
jmp 0x405b5c
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x360]
push edx
push 0
mov eax, dword [ebp - 0x364]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x364]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], str._s_shello
mov dword [ebp - 0x218], str.pencommand
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00425260
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x218]
push eax
call fcn.00425260
add esp, 4
lea ecx, [esi + eax + 1]
push ecx
call fcn.00433c24
add esp, 4
mov dword [ebp - 0x37c], eax
mov edx, dword [ebp - 0x37c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004255a0
add esp, 8
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004255b0
add esp, 8
push 0x1f4
push 0
lea ecx, [ebp - 0x214]
push ecx
call fcn.004245f0
add esp, 0xc
lea edx, [ebp - 0x360]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x364]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x214]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4059d1
xor al, al
jmp 0x405b5c
push 0x104
push 0
lea ecx, [ebp - 0x360]
push ecx
call fcn.004245f0
add esp, 0xc
mov dword [ebp - 0x18], 0x104
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x360]
push eax
push 0
mov ecx, dword [ebp - 0x364]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edx, dword [ebp - 0x364]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44c1e0
lea eax, [ebp - 0x360]
push eax
call fcn.004252e0
add esp, 8
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
jne 0x405a52
push 0x44c1e4
lea ecx, [ebp - 0x360]
push ecx
call fcn.004252e0
add esp, 8
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
jne 0x405a80
push 0x44c1e8
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x405a91
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x25c], 0x100
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x258]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x25c], 0x44
mov byte [ebp - 0x374], 0x57
mov byte [ebp - 0x373], 0x69
mov byte [ebp - 0x372], 0x6e
mov byte [ebp - 0x371], 0x53
mov byte [ebp - 0x370], 0x74
mov byte [ebp - 0x36f], 0x61
mov byte [ebp - 0x36e], 0x30
mov byte [ebp - 0x36d], 0x5c
mov byte [ebp - 0x36c], 0x44
mov byte [ebp - 0x36b], 0x65
mov byte [ebp - 0x36a], 0x66
mov byte [ebp - 0x369], 0x61
mov byte [ebp - 0x368], 0x75
mov byte [ebp - 0x367], 0x6c
mov byte [ebp - 0x366], 0x74
mov byte [ebp - 0x365], 0
cmp dword [ebp + 0xc], 0
je 0x405b36
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x254], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x360]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8