Function at 0x1000a930
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ba81b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
lea eax, [ebp - 0x4e4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.1000c880
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
push 0x10208aac
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1ac]
push ecx
call fcn.1000fe50
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
push 1
push 0x40
push 2
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x194]
call fcn.1000c420
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1ac]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c4]
call fcn.10006dd0
nop
lea ecx, [ebp - 0x194]
call fcn.1000c3a0
movzx ecx, al
test ecx, ecx
je 0x1000aceb
push str._echo_off_n
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
push str.:CheckProcess_n
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
push str.set__ProcessName
lea ecx, [ebp - 0x194]
push ecx
call fcn.1000fe90
add esp, 8
mov edx, dword [ebp + 8]
push edx
push eax
call fcn.100101b0
add esp, 8
push 0x10208ad8
push eax
call fcn.1000fe90
add esp, 8
push str.set__ProcessPath
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.100101b0
add esp, 8
push 0x10208af0
push eax
call fcn.1000fe90
add esp, 8
push str.set__BackupProcessPath
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.1000c880
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 5
push str._backup.exe__n
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1dc]
push eax
call fcn.1000fe50
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.100101b0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1dc]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1f4]
call fcn.10006dd0
nop
push str.set__DLLPath
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.100101b0
add esp, 8
push 0x10208b30
push eax
call fcn.1000fe90
add esp, 8
push str.set__BackupDLLPath
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x224]
call fcn.1000c880
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 7
push str._backup.dll__n
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.1000fe50
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.100101b0
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20c]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call fcn.10006dd0
nop
push str.if_not_exist___ProcessPath_____n
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
push str.____echo_Process_file_not_found__restoring_from_backup..._n
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
push str.____copy__Y___BackupProcessPath_____ProcessPath___n
lea ecx, [ebp - 0x194]
push ecx
call fcn.1000fe90
add esp, 8
push 0x10208bf8
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
push str.if_not_exist___DLLPath_____n
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
push str.____echo_DLL_file_not_found__restoring_from_backup..._n
lea ecx, [ebp - 0x194]
push ecx
call fcn.1000fe90
add esp, 8
push str.____copy__Y___BackupDLLPath_____DLLPath___n
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
push 0x10208c7c
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
push str.tasklist__FI__IMAGENAME_eq__ProcessName____findstr__I___ProcessName____nul_n
lea ecx, [ebp - 0x194]
push ecx
call fcn.1000fe90
add esp, 8
push str.if__ERRORLEVEL__neq_0___n
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
push str.____start______ProcessPath___n
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
push 0x10208d0c
lea ecx, [ebp - 0x194]
push ecx
call fcn.1000fe90
add esp, 8
push str.timeout__t_30__nobreak__nul_n
lea edx, [ebp - 0x194]
push edx
call fcn.1000fe90
add esp, 8
push str.goto_CheckProcess_n
lea eax, [ebp - 0x194]
push eax
call fcn.1000fe90
add esp, 8
lea ecx, [ebp - 0x194]
call fcn.1000c360
nop
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebp - 0x254]
call fcn.1000c880
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 9
push str.monitor.bat
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.1000fe50
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.10006d10
push eax
push str.cmd.exe__B__c___s_
lea edx, [ebp - 0x694]
push edx
call fcn.10009100
add esp, 0xc
lea ecx, [ebp - 0x23c]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x254]
call fcn.10006dd0
nop
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x26c]
call fcn.1000c880
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 0xa
push str._backup.dll
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.1000fe50
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x26c]
call fcn.10006dd0
nop
lea ecx, [ebp - 0xe4]
call fcn.10006d10
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp + 0x10]
call fcn.10006d10
mov dword [ebp - 0x6c], eax
push 0
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000ae01
push str.Failed_to_create_backup_DLL._Please_check_the_DLL_path:
push 0x1023d9a0
call fcn.1000fe90
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.100101b0
add esp, 8
mov dword [ebp - 0x70], eax
push 0x100101f0
mov ecx, dword [ebp - 0x70]
call fcn.1000c640
nop
lea edx, [ebp - 0x4e4]
push edx
lea ecx, [ebp - 0x284]
call fcn.1000c880
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0xd
push str._backup.exe
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.1000fe50
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x284]
call fcn.10006dd0
nop
lea ecx, [ebp - 0xcc]
call fcn.10006d10
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0xc]
call fcn.10006d10
mov dword [ebp - 0x80], eax
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000aeab
push str.Failed_to_create_backup_EXE._Please_check_the_EXE_path:
push 0x1023d9a0
call fcn.1000fe90
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.100101b0
add esp, 8
mov dword [ebp - 0x84], eax
push 0x100101f0
mov ecx, dword [ebp - 0x84]
call fcn.1000c640
nop
push 0x44
push 0
lea eax, [ebp - 0x328]
push eax
call fcn.10191e30
add esp, 0xc
mov dword [ebp - 0x328], 0x44
mov dword [ebp - 0x2fc], 1
xor ecx, ecx
mov word [ebp - 0x2f8], cx
xor edx, edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.1000c880
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 0x10
push 0x10208df8
mov edx, dword [ebp - 0x8c]
push edx
lea eax, [ebp - 0x29c]
push eax
call fcn.1000fe50
add esp, 0xc
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 0x11
push 1
push 0x40
push 1
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x3e0]
call fcn.1000b2e0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x29c]
call fcn.10006dd0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2b4]
call fcn.10006dd0
nop
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3e0]
call fcn.1000b260
movzx eax, al
test eax, eax
je 0x1000afb9
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.1000b340
lea ecx, [ebp - 0x3e0]
call fcn.1000b220
nop
cmp dword [ebp - 0x10], 0
je 0x1000b017
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000a8f0
add esp, 4
movzx eax, al
test eax, eax
je 0x1000b017
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3e0]
call fcn.1000b1f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.10006dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.1000b1c0
nop
jmp 0x1000b1b2
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x328]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x694]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000b089
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3e0]
call fcn.1000b1f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.10006dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.1000b1c0
nop
jmp 0x1000b1b2
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.1000c880
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 0x15
push str.monitor.pid
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.1000fe50
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0x16
push 1
push 0x40
push 2
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x594]
call fcn.1000c420
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2cc]
call fcn.10006dd0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2e4]
call fcn.10006dd0
nop
lea ecx, [ebp - 0x594]
call fcn.1000c3a0
movzx ecx, al
test ecx, ecx
je 0x1000b149
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0x594]
call fcn.1000c480
lea ecx, [ebp - 0x594]
call fcn.1000c360
nop
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x594]
call fcn.1000b1c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3e0]
call fcn.1000b1f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.10006dd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.10006dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.1000b1c0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret