Function at 0x404720
Capabilities:
Copy file
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x456688
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0042d67b
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x404765
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebp
mov ecx, dword [edi + 0xa8]
push ecx
push str.APN_Stub
lea edx, [esp + 0x20]
push str._s__s
push edx
call fcn.0040f030
add esp, 0x10
cmp dword [esp + 0x30], ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebp
je 0x404a1e
push 0x460700
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00405060
mov byte [esp + 0x28], 1
cmp dword [esp + 0x30], ebp
jne 0x4048f0
lea ecx, [esp + 0x30]
push ecx
call fcn.00404f70
add esp, 4
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], ebp
jne 0x40486c
mov edi, dword [edi + 0xb0]
cmp edi, ebp
je 0x404805
push str.Failed_to_register_in_RunOnce__unable_to_get_current_module_path.
push 1
push edi
call fcn.00417320
mov eax, dword [esp + 0x3c]
add esp, 0xc
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40484b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404aa4
mov esi, dword [esp + 0x1c]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4048c9
mov edi, dword [edi + 0xb0]
cmp edi, ebp
je 0x404897
push str.Failed_to_register_in_RunOnce__unable_to_make_a_copy_of_Stub.
push 1
push edi
call fcn.00417320
add esp, 0xc
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
lea eax, [esi - 0x10]
jmp 0x404832
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4048f4
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x34], ebp
je 0x404907
mov byte [esp + 0x28], 0
lea eax, [esi - 0x10]
jmp 0x404832
push ebp
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00403e90
mov byte [esp + 0x28], 3
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x404933
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x28], 4
mov ebp, dword [esp + 0x34]
push ebp
push esi
lea ecx, [esp + 0x38]
push str.__s___s__runonce
push ecx
call fcn.0040f030
mov esi, dword [esp + 0x40]
mov eax, dword [esi - 0xc]
mov ebx, dword [esp + 0x28]
lea edx, [eax + eax + 2]
push edx
push esi
push ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00421420
add esp, 0x1c
test eax, eax
je 0x4049b5
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
mov ecx, SysReAllocString
call fcn.00421420
add esp, 0xc
test eax, eax
je 0x4049b5
mov edi, dword [edi + 0xb0]
test edi, edi
je 0x4049b5
push str.Failed_to_register_in_RunOnce__unable_to_write_registry_value.
push 1
push edi
call fcn.00417320
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404a8c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ecx
push 2
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [esp + 0x18]
cmp eax, ebp
jne 0x404a48
mov edx, dword [esp + 0x30]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebp
je 0x404a59
push eax
call edi
lea eax, [esp + 0x34]
push eax
push 2
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [esp + 0x48], ebp
call esi
cmp eax, ebp
jne 0x404a81
mov ecx, dword [esp + 0x34]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x404a8c
push eax
call edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8