Function at 0x413400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x60]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0x62de38
push 0xfffffffffffffff7
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
jns 0x41351c
cmp esi, 0xc0000022
je 0x41347e
cmp esi, 0xc0000005
je 0x41347e
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x41346c
movzx eax, si
jmp 0x413488
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x41348c
mov eax, esi
jmp 0x413488
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x413497
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x4134a5
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x4134ef
lfence
lfence
push dword [esi + 4]
push 0x5cd020
push str.Unable_to_execute_the_program.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x413790
lfence
jmp 0x41378b
push str.Unable_to_execute_the_program.
push 0x5cd020
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.004f81c0
mov esi, eax
mov dword [esp + 0x14], 0x10000e
lea eax, [esp + 0x14]
mov dword [esp + 0x18], str.LastKey
mov ecx, dword [esi]
add ecx, 2
push ecx
push dword [esi + 4]
push 1
push 0
push eax
push dword [esp + 0x7c]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [esp + 0x68]
call dword [sym.imp.ntdll.dll_NtClose]
or ebx, 0xffffffff
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x413572
call fcn.004fbfa0
lea eax, [esp + 0x58]
push eax
call sym.SystemInformer.exe_PhGetSystemRoot
mov esi, dword [esp + 0x58]
push 0
push 0
mov dword [esp + 0x20], 0
lea eax, [esi + 0x18]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhCreateString3
push esi
push dword [esp + 0x60]
mov dword [esp + 0x18], eax
push dword [eax + 4]
call fcn.005831c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax + 4]
mov eax, dword [str._regedit.exe]
add ecx, esi
mov dword [ecx], eax
mov eax, dword [0x5d07f8]
mov dword [ecx + 4], eax
mov eax, dword [0x5d07fc]
mov dword [ecx + 8], eax
mov eax, dword [0x5d0800]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5d0804]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5d0808]
mov dword [ecx + 0x14], eax
lea eax, [esp + 0x58]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test dword [eax + 4], 1
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x800540
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 5
je 0x4136f7
mov dword ds:[esp + 0x28], 0
call fcn.004f7960
test al, al
jne 0x413709
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x41377c
cmp esi, 0xc0000022
je 0x4136de
cmp esi, 0xc0000005
je 0x4136de
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x4136cc
movzx eax, si
jmp 0x4136e8
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x4136ec
mov eax, esi
jmp 0x4136e8
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x41371a
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x413725
mov dword [esp + 0x28], str.runas
nop
call fcn.004f7960
test al, al
je 0x41368d
mov eax, dword [esp + 0x54]
test eax, eax
je 0x41377c
push eax
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x41377c
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x413767
lfence
lfence
push dword [esi + 4]
push 0x5cd020
push str.Unable_to_execute_the_program.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
mov eax, ebx
lea ecx, [esi - 8]
add esp, 0x18
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41377c
lfence
call fcn.004fbfa0
jmp 0x41377c
push str.Unable_to_execute_the_program.
push 0x5cd020
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x413790
call fcn.004fbfa0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 8