Function at 0x403640
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x26c
mov eax, dword [0x412050]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x72]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x78], ax
call fcn.00404cb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push str.SOFTWAREGIZMO2
push 0x80000001
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0x104
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4036ca
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Path
push eax
call edi
test eax, eax
je 0x403705
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
push str.SOFTWAREGIZMO2
push 0x80000002
call esi
test eax, eax
jne 0x40370c
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Path
push edx
call edi
test eax, eax
jne 0x40370c
mov esi, 1
jmp 0x40370e
xor esi, esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40371d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x403769
push str.GIZMO.exe
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00403500
test eax, eax
jne 0x403783
push 0x34
lea ecx, [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], ebx
call fcn.00404cb0
add esp, 0xc
lea eax, [esp + 0x28]
lea edx, [esp + 0x6c]
push eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00403dea
add esp, 0x26c
ret
push ebx
push str.Progman
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x14]
push edx
push ebx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x4037db
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00403dea
add esp, 0x26c
ret
push ebp
lea eax, [esp + 0x10]
push eax
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov edi, eax
call ebp
cmp edi, ebx
je 0x403823
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 3
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
cmp esi, ebx
jne 0x40382d
mov eax, 5
jmp 0x4038b7
push 0x3c
lea ecx, [esp + 0x38]
push ebx
push ecx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x3c], ebx
call fcn.00404cb0
xor eax, eax
add esp, 0xc
push str.advapi32.dll
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40389e
push str.CreateProcessWithTokenW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40389e
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push 0x40fe24
lea edx, [esp + 0x88]
push edx
push ebx
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4038aa
push eax
call ebp
cmp esi, ebx
je 0x4038b5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x278]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403dea
add esp, 0x26c
ret