Function at 0x413380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62a040]
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 0x62ae38
push 0xfffffffffffffff7
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
jns 0x41349c
cmp esi, 0xc0000022
je 0x4133fe
cmp esi, 0xc0000005
je 0x4133fe
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x4133ec
movzx eax, si
jmp 0x413408
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x41340c
mov eax, esi
jmp 0x413408
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x413417
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x413425
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x41346f
lfence
lfence
push dword [esi + 4]
push 0x5ca058
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 0x413710
lfence
jmp 0x41370b
push str.Unable_to_execute_the_program.
push 0x5ca058
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.0057c26f
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.004f61c0
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 0x4134f2
call fcn.004f9e40
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.0057e5b0
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 [0x5cd830]
mov dword [ecx + 4], eax
mov eax, dword [0x5cd834]
mov dword [ecx + 8], eax
mov eax, dword [0x5cd838]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5cd83c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5cd840]
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 0x413677
mov dword ds:[esp + 0x28], 0
call fcn.004f5a40
test al, al
jne 0x413689
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x4136fc
cmp esi, 0xc0000022
je 0x41365e
cmp esi, 0xc0000005
je 0x41365e
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x41364c
movzx eax, si
jmp 0x413668
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x41366c
mov eax, esi
jmp 0x413668
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x41369a
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x4136a5
mov dword [esp + 0x28], str.runas
nop
call fcn.004f5a40
test al, al
je 0x41360d
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4136fc
push eax
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x4136fc
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x4136e7
lfence
lfence
push dword [esi + 4]
push 0x5ca058
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 0x4136fc
lfence
call fcn.004f9e40
jmp 0x4136fc
push str.Unable_to_execute_the_program.
push 0x5ca058
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 0x413710
call fcn.004f9e40
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8