Function at 0x40633b
Capabilities:
Create process on windows
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9d0]
sub esp, 0xa50
mov eax, dword [0x49a2a0]
xor eax, ebp
mov dword [ebp + 0x9cc], eax
mov eax, dword [ebp + 0x9d8]
push ebx
push esi
push edi
mov edi, 0x104
lea esi, [edi - 1]
xor ebx, ebx
push esi
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x8c9]
push ebx
push eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov byte [ebp + 0x8c8], bl
call fcn.0045cd40
push esi
lea eax, [ebp + 0x5bd]
push ebx
push eax
mov byte [ebp + 0x5bc], bl
call fcn.0045cd40
push esi
lea eax, [ebp + 0x4b9]
push ebx
push eax
mov byte [ebp + 0x4b8], bl
call fcn.0045cd40
push dword [ebp - 0x64]
lea eax, [ebp + 0x6c0]
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x7c], edi
call fcn.0045cdd0
lea eax, [ebp + 0x6c0]
push eax
call fcn.0047246d
add esp, 0x30
cmp byte [ebp + 0x6c0], 0x68
jne 0x406404
cmp byte [ebp + 0x6c1], 0x74
jne 0x406404
cmp byte [ebp + 0x6c2], 0x74
jne 0x406404
cmp byte [ebp + 0x6c3], 0x70
jne 0x406404
push str..html
jmp 0x40641d
lea eax, [ebp + 0x6c0]
push 0x2e
push eax
call fcn.0045d580
pop ecx
pop ecx
cmp eax, ebx
je 0x40669f
push eax
lea eax, [ebp + 0x3b4]
push eax
call fcn.0045cdd0
pop ecx
pop ecx
push edi
lea eax, [ebp + 0x5bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x4b8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40669f
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x3b4]
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x40669f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1ac]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406696
lea eax, [ebp + 0x1ac]
push eax
lea eax, [ebp + 0x2b0]
push 0x47a448
push eax
call fcn.0045e516
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push dword [ebp - 0x60]
call esi
lea eax, [ebp - 0x60]
push eax
push ebx
push SysReAllocString
mov dword [ebp - 0x60], ebx
call edi
test eax, eax
jne 0x40669f
lea eax, [ebp + 0x2b0]
push str._shellopencommand
push eax
call fcn.0045cde0
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push eax
push 0xf003f
push ebx
lea eax, [ebp + 0x2b0]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x60]
test eax, eax
jne 0x406692
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 0x68]
call esi
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0x7c4]
push eax
mov dword [ebp - 0x68], ebx
call fcn.0045cdd0
lea eax, [ebp + 0x7c4]
push eax
call fcn.0047246d
lea eax, [ebp + 0x7c4]
push str..exe
push eax
call fcn.0045e490
add esp, 0x14
test eax, eax
je 0x406689
lea eax, [ebp + 0x7c4]
push 0x47a428
push eax
call fcn.0045e490
pop ecx
pop ecx
test eax, eax
je 0x406689
xor edi, edi
cmp dword [str._allusersprofile_], ebx
je 0x4065c6
mov esi, 0x497328
push dword [esi]
call fcn.0045d300
push eax
lea eax, [ebp + 0x7c4]
push eax
push dword [esi]
call fcn.0045e5d2
add esp, 0x10
test eax, eax
je 0x406604
inc edi
lea esi, [edi*8 + 0x497328]
cmp dword [esi], ebx
jne 0x40659d
lea eax, [ebp + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045cdd0
pop ecx
pop ecx
lea eax, [ebp + 0x8c8]
push 0x25
push eax
call fcn.0045d580
pop ecx
pop ecx
cmp eax, ebx
je 0x40664e
push dword [ebp - 0x64]
mov byte [eax], bl
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045cde0
pop ecx
pop ecx
jmp 0x406671
lea eax, [ebp + 0x4b8]
push eax
movsx eax, byte [ebp + 0x5bc]
push eax
mov esi, edi
shl esi, 3
push dword [esi + 0x49732c]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045e516
push dword [esi + 0x497328]
call fcn.0045d300
lea eax, [ebp + eax + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045cde0
add esp, 0x1c
jmp 0x4065db
lea eax, [ebp + 0x8c8]
push 0x47a424
push eax
call fcn.0045cde0
push dword [ebp - 0x64]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045cde0
add esp, 0x10
push dword [ebp + 0x9dc]
lea eax, [ebp + 0x8c8]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
inc eax
jmp 0x4066a1
push dword [ebp - 0x60]
call esi
mov dword [ebp - 0x60], ebx
push ebx
call esi
jmp 0x40669f
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0x9cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cdba
add ebp, 0x9d0
leave
ret 8