Function at 0x4062b3
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 [0x498fe0]
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.0045bd70
push esi
lea eax, [ebp + 0x5bd]
push ebx
push eax
mov byte [ebp + 0x5bc], bl
call fcn.0045bd70
push esi
lea eax, [ebp + 0x4b9]
push ebx
push eax
mov byte [ebp + 0x4b8], bl
call fcn.0045bd70
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.0045be00
lea eax, [ebp + 0x6c0]
push eax
call fcn.0047149d
add esp, 0x30
cmp byte [ebp + 0x6c0], 0x68
jne 0x40637c
cmp byte [ebp + 0x6c1], 0x74
jne 0x40637c
cmp byte [ebp + 0x6c2], 0x74
jne 0x40637c
cmp byte [ebp + 0x6c3], 0x70
jne 0x40637c
push str..html
jmp 0x406395
lea eax, [ebp + 0x6c0]
push 0x2e
push eax
call fcn.0045c5b0
pop ecx
pop ecx
cmp eax, ebx
je 0x406617
push eax
lea eax, [ebp + 0x3b4]
push eax
call fcn.0045be00
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 0x406617
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x3b4]
push eax
push SysReAllocStringLen
call edi
test eax, eax
jne 0x406617
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 0x40660e
lea eax, [ebp + 0x1ac]
push eax
lea eax, [ebp + 0x2b0]
push 0x4793f0
push eax
call fcn.0045d4bb
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 SysReAllocStringLen
mov dword [ebp - 0x60], ebx
call edi
test eax, eax
jne 0x406617
lea eax, [ebp + 0x2b0]
push str._shellopencommand
push eax
call fcn.0045be10
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 0x40660a
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.0045be00
lea eax, [ebp + 0x7c4]
push eax
call fcn.0047149d
lea eax, [ebp + 0x7c4]
push str..exe
push eax
call fcn.0045d580
add esp, 0x14
test eax, eax
je 0x406601
lea eax, [ebp + 0x7c4]
push 0x4793d0
push eax
call fcn.0045d580
pop ecx
pop ecx
test eax, eax
je 0x406601
xor edi, edi
cmp dword [str._allusersprofile_], ebx
je 0x40653e
mov esi, 0x496328
push dword [esi]
call fcn.0045c330
push eax
lea eax, [ebp + 0x7c4]
push eax
push dword [esi]
call fcn.0045d606
add esp, 0x10
test eax, eax
je 0x40657c
inc edi
lea esi, [edi*8 + 0x496328]
cmp dword [esi], ebx
jne 0x406515
lea eax, [ebp + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045be00
pop ecx
pop ecx
lea eax, [ebp + 0x8c8]
push 0x25
push eax
call fcn.0045c5b0
pop ecx
pop ecx
cmp eax, ebx
je 0x4065c6
push dword [ebp - 0x64]
mov byte [eax], bl
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045be10
pop ecx
pop ecx
jmp 0x4065e9
lea eax, [ebp + 0x4b8]
push eax
movsx eax, byte [ebp + 0x5bc]
push eax
mov esi, edi
shl esi, 3
push dword [esi + 0x49632c]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045d4bb
push dword [esi + 0x496328]
call fcn.0045c330
lea eax, [ebp + eax + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045be10
add esp, 0x1c
jmp 0x406553
lea eax, [ebp + 0x8c8]
push 0x4793cc
push eax
call fcn.0045be10
push dword [ebp - 0x64]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045be10
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 0x406619
push dword [ebp - 0x60]
call esi
mov dword [ebp - 0x60], ebx
push ebx
call esi
jmp 0x406617
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.0045bdea
add ebp, 0x9d0
leave
ret 8