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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56841a
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
call fcn.00438647
push eax
lea ecx, [esp + 0x28]
call fcn.0042a80d
and dword [esp + 0x518], 0
call fcn.00438647
push eax
lea ecx, [esp + 0x1c]
call fcn.0042a80d
mov byte [esp + 0x518], 1
call fcn.00438647
push eax
lea ecx, [esp + 0x20]
call fcn.0042a80d
cmp dword [ebp + 8], 0
mov byte [esp + 0x518], 2
je 0x421ed3
mov edi, 0x5990a0
push edi
call fcn.00538bc9
pop ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.004023c0
jmp 0x421edd
push edi
lea ecx, [esp + 0x1c]
call fcn.0040248f
mov eax, dword [esi]
push 3
push eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
push eax
mov dword [esp + 0x78], ecx
call fcn.0040b658
mov byte [esp + 0x518], 3
mov ecx, dword [esp + 0x6c]
call fcn.0042166d
mov bl, al
lea eax, [esp + 0x70]
mov byte [esp + 0x518], 2
cmp dword [esp + 0x6c], eax
je 0x421f23
push dword [esp + 0x6c]
call fcn.0053855f
pop ecx
test bl, bl
je 0x422009
xor edi, edi
cmp dword [ebp + 8], edi
je 0x421f56
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
jmp 0x422164
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push dword [esi]
push str._TEMP_DNAME___s__IP__s
push eax
call fcn.0040a7c3
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push 0x59d2ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4220fb
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x28]
push eax
push edi
push str.BaseModulePath
push dword [esp + 0x28]
mov dword [esp + 0x40], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421ffa
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [esp + 0xfc]
push 0x208
push eax
call fcn.0053d239
lea eax, [esp + 0x104]
push eax
call fcn.00538bc9
add esp, 0x14
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x24]
call fcn.004023c0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4220fb
push dword [esp + 0x18]
mov esi, dword [esi]
push esi
lea eax, [esp + 0x2c]
push str._T:__s___s
push eax
call fcn.0040a7c3
add esp, 0x10
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [esp + 0x2c]
call fcn.0040235d
mov byte [esp + 0x518], 4
call fcn.00438647
push eax
lea ecx, [esp + 0x18]
call fcn.0042a80d
mov byte [esp + 0x518], 5
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.00436678
pop ecx
pop ecx
test eax, eax
je 0x422089
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040248f
jmp 0x4220e3
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsescfg.exe
lea ecx, [esp + 0x24]
call fcn.0040235d
mov byte [esp + 0x518], 6
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.00436678
pop ecx
pop ecx
test eax, eax
je 0x4220d7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040248f
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00402722
push 0x38
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00539100
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00402722
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [edi - 0x10]
call fcn.00402722
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.005384ff
mov esp, ebp
pop ebp
ret