Function at 0x485780
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov eax, 0x1368
call fcn.00550140
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x26d]
mov byte [esp + 0x26c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x68]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x48586d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [esp + 0x64]
test al, al
jne 0x48585a
lea ecx, [esp + 0x64]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, str.Program_Files
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x48598f
mov edi, str.Internet_ExplorerIEXPLORE.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x270]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 8], eax
je 0x48598f
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x371]
mov byte [esp + 0x370], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x1374]
lea ecx, [esp + 0x370]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x26c]
push edx
push eax
push 0x5bee40
push 0x1000
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x24], edx
add esp, 0x14
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x137c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x10]
neg eax
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x20]
sbb eax, eax
push ecx
and al, 0xfc
push edx
push 0
add eax, 0xa
push 0
push 0
mov word [esp + 0x64], ax
push 0
push 0
lea eax, [esp + 0x38c]
push 0
push eax
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x485984
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48598f
push eax
call esi
pop edi
pop esi
add esp, 0x1368
ret 0xc