Function at 0x401b8f
Capabilities:
Copy file
Create pipe
Create process on windows
Delete file
Self delete
Set file attributes

Disassembly:
mov eax, 0x403157
call fcn.00402dd0
sub esp, 0x714
push ebx
push esi
push edi
mov esi, ecx
push 0x104
lea edi, [esi + 0x14]
push edi
push dword [0x406090]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xa18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x401be1
xor ecx, ecx
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00401310
mov edi, eax
jmp 0x401be3
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x401ed8
lea eax, [esi + 0xc]
push eax
push dword [esi + 0x10]
mov ecx, edi
call fcn.004016b8
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.00401119
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x10], ebx
pop ecx
je 0x401ed8
lea eax, [ebp - 0x4d8]
push eax
push str..bat
mov edi, 0x404410
push edi
mov ecx, esi
call fcn.00401ab6
lea eax, [ebp - 0x2d0]
push eax
push 0x404404
push edi
mov ecx, esi
call fcn.00401ab6
mov ax, word [esi + 0x14]
mov word [ebp - 0x84], ax
push 0xe
xor eax, eax
cmp dword [0x40609c], ebx
mov word [ebp - 0x82], 0x3a
mov word [ebp - 0x80], bx
pop ecx
lea edi, [ebp - 0x7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x401c82
push 0x4043fc
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [0x406098], ebx
je 0x401c9c
push 0x4043f4
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ed8
push 0x4043f0
push edi
mov ecx, esi
call fcn.00401b00
lea eax, [ebp - 0x2d0]
push eax
push edi
mov ecx, esi
call fcn.00401b00
push 0x4043e8
push edi
mov ecx, esi
call fcn.00401b00
lea eax, [ebp - 0x84]
push eax
push edi
mov ecx, esi
call fcn.00401b00
push 0x4043e0
push edi
mov ecx, esi
call fcn.00401b00
push str.DEL__
push edi
mov ecx, esi
call fcn.00401b00
lea eax, [ebp - 0x2d0]
push eax
push edi
mov ecx, esi
call fcn.00401b00
push 0x4043cc
push edi
mov ecx, esi
call fcn.00401b00
push str.DEL__
push edi
mov ecx, esi
call fcn.00401b00
lea eax, [ebp - 0x4d8]
push eax
push edi
mov ecx, esi
call fcn.00401b00
push 0x4043cc
push edi
mov ecx, esi
call fcn.00401b00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp - 0x2d0]
push eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401d8a
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401ed8
push 0x80
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 1
call edi
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call edi
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call edi
push 0x4043b0
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0x720]
push eax
call edi
push 0x4043f0
lea eax, [ebp - 0x720]
push eax
call edi
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0xc8], 0x44
lea edi, [ebp - 0xc4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [esi + 0x21c]
push eax
push ebx
push 0x28
push 1
push ebx
push ebx
lea eax, [ebp - 0x720]
push eax
push ebx
mov dword [ebp - 0x9c], 0x100
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x401e98
push 0x1770
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x1c]
call esi
cmp edi, ebx
jne 0x401edc
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2d0]
push eax
call esi
lea eax, [ebp - 0x4d8]
push eax
call esi
xor eax, eax
jmp 0x401edf
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret