Function at 0x406320
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 [0x49c250]
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.0045df50
push esi
lea eax, [ebp + 0x5bd]
push ebx
push eax
mov byte [ebp + 0x5bc], bl
call fcn.0045df50
push esi
lea eax, [ebp + 0x4b9]
push ebx
push eax
mov byte [ebp + 0x4b8], bl
call fcn.0045df50
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.0045dfe0
lea eax, [ebp + 0x6c0]
push eax
call fcn.00473f6d
add esp, 0x30
cmp byte [ebp + 0x6c0], 0x68
jne 0x4063e9
cmp byte [ebp + 0x6c1], 0x74
jne 0x4063e9
cmp byte [ebp + 0x6c2], 0x74
jne 0x4063e9
cmp byte [ebp + 0x6c3], 0x70
jne 0x4063e9
push str..html
jmp 0x406402
lea eax, [ebp + 0x6c0]
push 0x2e
push eax
call fcn.0045e790
pop ecx
pop ecx
cmp eax, ebx
je 0x406684
push eax
lea eax, [ebp + 0x3b4]
push eax
call fcn.0045dfe0
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 0x406684
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 0x406684
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 0x40667b
lea eax, [ebp + 0x1ac]
push eax
lea eax, [ebp + 0x2b0]
push 0x47c430
push eax
call fcn.0045f726
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 0x406684
lea eax, [ebp + 0x2b0]
push str._shellopencommand
push eax
call fcn.0045dff0
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 0x406677
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.0045dfe0
lea eax, [ebp + 0x7c4]
push eax
call fcn.00473f6d
lea eax, [ebp + 0x7c4]
push str..exe
push eax
call fcn.0045f6a0
add esp, 0x14
test eax, eax
je 0x40666e
lea eax, [ebp + 0x7c4]
push 0x47c410
push eax
call fcn.0045f6a0
pop ecx
pop ecx
test eax, eax
je 0x40666e
xor edi, edi
cmp dword [str._allusersprofile_], ebx
je 0x4065ab
mov esi, 0x499328
push dword [esi]
call fcn.0045e510
push eax
lea eax, [ebp + 0x7c4]
push eax
push dword [esi]
call fcn.0045f7e2
add esp, 0x10
test eax, eax
je 0x4065e9
inc edi
lea esi, [edi*8 + 0x499328]
cmp dword [esi], ebx
jne 0x406582
lea eax, [ebp + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045dfe0
pop ecx
pop ecx
lea eax, [ebp + 0x8c8]
push 0x25
push eax
call fcn.0045e790
pop ecx
pop ecx
cmp eax, ebx
je 0x406633
push dword [ebp - 0x64]
mov byte [eax], bl
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045dff0
pop ecx
pop ecx
jmp 0x406656
lea eax, [ebp + 0x4b8]
push eax
movsx eax, byte [ebp + 0x5bc]
push eax
mov esi, edi
shl esi, 3
push dword [esi + 0x49932c]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045f726
push dword [esi + 0x499328]
call fcn.0045e510
lea eax, [ebp + eax + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045dff0
add esp, 0x1c
jmp 0x4065c0
lea eax, [ebp + 0x8c8]
push 0x47c40c
push eax
call fcn.0045dff0
push dword [ebp - 0x64]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045dff0
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 0x406686
push dword [ebp - 0x60]
call esi
mov dword [ebp - 0x60], ebx
push ebx
call esi
jmp 0x406684
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.0045dfca
add ebp, 0x9d0
leave
ret 8