Function at 0x4062d5
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 [0x499020]
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.0045c060
push esi
lea eax, [ebp + 0x5bd]
push ebx
push eax
mov byte [ebp + 0x5bc], bl
call fcn.0045c060
push esi
lea eax, [ebp + 0x4b9]
push ebx
push eax
mov byte [ebp + 0x4b8], bl
call fcn.0045c060
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.0045c0f0
lea eax, [ebp + 0x6c0]
push eax
call fcn.0047178d
add esp, 0x30
cmp byte [ebp + 0x6c0], 0x68
jne 0x40639e
cmp byte [ebp + 0x6c1], 0x74
jne 0x40639e
cmp byte [ebp + 0x6c2], 0x74
jne 0x40639e
cmp byte [ebp + 0x6c3], 0x70
jne 0x40639e
push str..html
jmp 0x4063b7
lea eax, [ebp + 0x6c0]
push 0x2e
push eax
call fcn.0045c8a0
pop ecx
pop ecx
cmp eax, ebx
je 0x406639
push eax
lea eax, [ebp + 0x3b4]
push eax
call fcn.0045c0f0
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 0x406639
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 0x406639
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 0x406630
lea eax, [ebp + 0x1ac]
push eax
lea eax, [ebp + 0x2b0]
push 0x4793f0
push eax
call fcn.0045d7ab
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 0x406639
lea eax, [ebp + 0x2b0]
push str._shellopencommand
push eax
call fcn.0045c100
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 0x40662c
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.0045c0f0
lea eax, [ebp + 0x7c4]
push eax
call fcn.0047178d
lea eax, [ebp + 0x7c4]
push str..exe
push eax
call fcn.0045d870
add esp, 0x14
test eax, eax
je 0x406623
lea eax, [ebp + 0x7c4]
push 0x4793d0
push eax
call fcn.0045d870
pop ecx
pop ecx
test eax, eax
je 0x406623
xor edi, edi
cmp dword [str._allusersprofile_], ebx
je 0x406560
mov esi, 0x496328
push dword [esi]
call fcn.0045c620
push eax
lea eax, [ebp + 0x7c4]
push eax
push dword [esi]
call fcn.0045d8f6
add esp, 0x10
test eax, eax
je 0x40659e
inc edi
lea esi, [edi*8 + 0x496328]
cmp dword [esi], ebx
jne 0x406537
lea eax, [ebp + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045c0f0
pop ecx
pop ecx
lea eax, [ebp + 0x8c8]
push 0x25
push eax
call fcn.0045c8a0
pop ecx
pop ecx
cmp eax, ebx
je 0x4065e8
push dword [ebp - 0x64]
mov byte [eax], bl
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045c100
pop ecx
pop ecx
jmp 0x40660b
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.0045d7ab
push dword [esi + 0x496328]
call fcn.0045c620
lea eax, [ebp + eax + 0x7c4]
push eax
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045c100
add esp, 0x1c
jmp 0x406575
lea eax, [ebp + 0x8c8]
push 0x4793cc
push eax
call fcn.0045c100
push dword [ebp - 0x64]
lea eax, [ebp + 0x8c8]
push eax
call fcn.0045c100
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 0x40663b
push dword [ebp - 0x60]
call esi
mov dword [ebp - 0x60], ebx
push ebx
call esi
jmp 0x406639
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.0045c0da
add ebp, 0x9d0
leave
ret 8