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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c03bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
lea eax, [ebp - 0x4bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
lea ecx, [ebp - 0x4bc]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.1000ced0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
push 0x1021008c
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.10010380
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 - 0x16c]
call fcn.1000cad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x184]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x19c]
call fcn.10007640
nop
lea ecx, [ebp - 0x16c]
call fcn.1000ca50
movzx ecx, al
test ecx, ecx
je 0x1000b473
push str._echo_off_n
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push str.:CheckProcess_n
lea eax, [ebp - 0x16c]
push eax
call fcn.100103c0
add esp, 8
push 0x102100b8
mov ecx, dword [ebp + 8]
push ecx
push str.set__ProcessName
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
push eax
call fcn.100103c0
add esp, 8
push 0x102100d0
mov eax, dword [ebp + 0xc]
push eax
push str.set__ProcessPath
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
push eax
call fcn.100103c0
add esp, 8
lea edx, [ebp - 0x4bc]
push edx
lea ecx, [ebp - 0x1cc]
call fcn.1000ced0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
push str._backup.exe__n
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1b4]
push edx
call fcn.10010380
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
push ecx
push str.set__BackupProcessPath
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b4]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1cc]
call fcn.10007640
nop
push 0x10210110
mov eax, dword [ebp + 0x10]
push eax
push str.set__DLLPath
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
push eax
call fcn.100103c0
add esp, 8
lea edx, [ebp - 0x4bc]
push edx
lea ecx, [ebp - 0x1fc]
call fcn.1000ced0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 7
push str._backup.dll__n
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x1e4]
push edx
call fcn.10010380
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x40]
push ecx
push str.set__BackupDLLPath
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1e4]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1fc]
call fcn.10007640
nop
push str.if_not_exist___ProcessPath_____n
lea eax, [ebp - 0x16c]
push eax
call fcn.100103c0
add esp, 8
push str.____echo_Process_file_not_found__restoring_from_backup..._n
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
push str.____copy__Y___BackupProcessPath_____ProcessPath___n
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push 0x102101d8
lea eax, [ebp - 0x16c]
push eax
call fcn.100103c0
add esp, 8
push str.if_not_exist___DLLPath_____n
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
push str.____echo_DLL_file_not_found__restoring_from_backup..._n
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push str.____copy__Y___BackupDLLPath_____DLLPath___n
lea eax, [ebp - 0x16c]
push eax
call fcn.100103c0
add esp, 8
push 0x1021025c
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
push str.tasklist__FI__IMAGENAME_eq__ProcessName____findstr__I___ProcessName____nul_n
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push str.if__ERRORLEVEL__neq_0___n
lea eax, [ebp - 0x16c]
push eax
call fcn.100103c0
add esp, 8
push str.____start______ProcessPath___n
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
push 0x102102ec
lea edx, [ebp - 0x16c]
push edx
call fcn.100103c0
add esp, 8
push str.timeout__t_30__nobreak__nul_n
lea eax, [ebp - 0x16c]
push eax
call fcn.100103c0
add esp, 8
push str.goto_CheckProcess_n
lea ecx, [ebp - 0x16c]
push ecx
call fcn.100103c0
add esp, 8
lea ecx, [ebp - 0x16c]
call fcn.1000ca10
nop
lea edx, [ebp - 0x4bc]
push edx
lea ecx, [ebp - 0x22c]
call fcn.1000ced0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 9
push str.monitor.bat
mov ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.10010380
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.100075a0
push eax
push str.cmd.exe__B__c___s_
lea eax, [ebp - 0x66c]
push eax
call fcn.100098b0
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call fcn.10007640
nop
lea ecx, [ebp - 0x4bc]
push ecx
lea ecx, [ebp - 0x244]
call fcn.1000ced0
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 0xa
push str._backup.dll
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.10010380
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x244]
call fcn.10007640
nop
push 0
lea ecx, [ebp - 0xbc]
call fcn.100075a0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.100075a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000b579
push 0x100106c0
mov edx, dword [ebp + 0x10]
push edx
push str.Failed_to_create_backup_DLL._Please_check_the_DLL_path:
push 0x10245a60
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
mov ecx, eax
call fcn.1000ccb0
nop
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x25c]
call fcn.1000ced0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 0xd
push str._backup.exe
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.10010380
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x25c]
call fcn.10007640
nop
push 0
lea ecx, [ebp - 0xa4]
call fcn.100075a0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100075a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000b60d
push 0x100106c0
mov ecx, dword [ebp + 0xc]
push ecx
push str.Failed_to_create_backup_EXE._Please_check_the_EXE_path:
push 0x10245a60
call fcn.100103c0
add esp, 8
push eax
call fcn.10010690
add esp, 8
mov ecx, eax
call fcn.1000ccb0
nop
push 0x44
push 0
lea edx, [ebp - 0x300]
push edx
call fcn.10197940
add esp, 0xc
mov dword [ebp - 0x300], 0x44
mov dword [ebp - 0x2d4], 1
xor eax, eax
mov word [ebp - 0x2d0], ax
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
lea edx, [ebp - 0x4bc]
push edx
lea ecx, [ebp - 0x28c]
call fcn.1000ced0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0x10
push 0x102103d8
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.10010380
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0x11
push 1
push 0x40
push 1
mov ecx, dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x3b8]
call fcn.1000ba10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x274]
call fcn.10007640
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28c]
call fcn.10007640
nop
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3b8]
call fcn.1000b990
movzx edx, al
test edx, edx
je 0x1000b700
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.1000ba70
lea ecx, [ebp - 0x3b8]
call fcn.1000b950
nop
cmp dword [ebp - 0x10], 0
je 0x1000b75e
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1000b090
add esp, 4
movzx edx, al
test edx, edx
je 0x1000b75e
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3b8]
call fcn.1000b920
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa4]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.10007640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.1000b8f0
nop
jmp 0x1000b8e1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x300]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x66c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000b7d0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3b8]
call fcn.1000b920
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa4]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.10007640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.1000b8f0
nop
jmp 0x1000b8e1
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.1000ced0
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 0x15
push str.monitor.pid
mov edx, dword [ebp - 0x74]
push edx
lea eax, [ebp - 0x2a4]
push eax
call fcn.10010380
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 0x16
push 1
push 0x40
push 2
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x56c]
call fcn.1000cad0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2a4]
call fcn.10007640
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2bc]
call fcn.10007640
nop
lea ecx, [ebp - 0x56c]
call fcn.1000ca50
movzx eax, al
test eax, eax
je 0x1000b878
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x56c]
call fcn.1000cb30
lea ecx, [ebp - 0x56c]
call fcn.1000ca10
nop
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x56c]
call fcn.1000b8f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3b8]
call fcn.1000b920
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa4]
call fcn.10007640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.10007640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.1000b8f0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret