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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5675c3
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.00437969
push eax
lea ecx, [esp + 0x28]
call fcn.00402738
and dword [esp + 0x518], 0
call fcn.00437969
push eax
lea ecx, [esp + 0x1c]
call fcn.00402738
mov byte [esp + 0x518], 1
call fcn.00437969
push eax
lea ecx, [esp + 0x20]
call fcn.00402738
cmp dword [ebp + 8], 0
mov byte [esp + 0x518], 2
je 0x4217bb
mov edi, 0x599080
push edi
call fcn.00537ed9
pop ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.004023d5
jmp 0x4217c5
push edi
lea ecx, [esp + 0x1c]
call fcn.004024a4
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.0040b66d
mov byte [esp + 0x518], 3
mov ecx, dword [esp + 0x6c]
call fcn.00420f57
mov bl, al
lea eax, [esp + 0x70]
mov byte [esp + 0x518], 2
cmp dword [esp + 0x6c], eax
je 0x42180b
push dword [esp + 0x6c]
call fcn.0053786e
pop ecx
test bl, bl
je 0x4218f1
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42183e
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
jmp 0x421a4c
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push dword [esi]
push str._TEMP_DNAME___s__IP__s
push eax
call fcn.0040a7d8
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push 0x59d2e4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4219e3
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 0x4218e2
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [esp + 0xfc]
push 0x208
push eax
call fcn.0053c549
lea eax, [esp + 0x104]
push eax
call fcn.00537ed9
add esp, 0x14
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x24]
call fcn.004023d5
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4219e3
push dword [esp + 0x18]
mov esi, dword [esi]
push esi
lea eax, [esp + 0x2c]
push str._T:__s___s
push eax
call fcn.0040a7d8
add esp, 0x10
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [esp + 0x2c]
call fcn.00402372
mov byte [esp + 0x518], 4
call fcn.00437969
push eax
lea ecx, [esp + 0x18]
call fcn.00402738
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.00402446
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.0043599a
pop ecx
pop ecx
test eax, eax
je 0x421971
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004024a4
jmp 0x4219cb
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsescfg.exe
lea ecx, [esp + 0x24]
call fcn.00402372
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.00402446
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.0043599a
pop ecx
pop ecx
test eax, eax
je 0x4219bf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004024a4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00402760
push 0x38
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00538410
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.00402760
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402760
lea ecx, [edi - 0x10]
call fcn.00402760
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.0053780e
mov esp, ebp
pop ebp
ret