Function at 0x1001b540
Capabilities:
Create process on windows
Create process suspended
Delete file
Get common file path
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004705b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3a0
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x1001b5a1
xor eax, eax
jmp 0x1001b7f0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x34c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b5c5
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x34c]
call fcn.10001570
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x338]
mov eax, edx
mov ecx, dword [ebp - 0x33c]
sub eax, ecx
push 0x13
push str.LDSBoxHeadless.exe
cmp eax, 0x13
jb 0x1001b62e
cmp edx, 0x10
lea esi, [ebp - 0x34c]
lea eax, [ecx + 0x13]
cmovae esi, dword [ebp - 0x34c]
add esi, ecx
mov dword [ebp - 0x33c], eax
push esi
call fcn.10021fc0
add esp, 0xc
mov byte [esi + 0x13], 0
jmp 0x1001b648
mov byte [ebp - 0x334], 0
lea ecx, [ebp - 0x34c]
push dword [ebp - 0x334]
push 0x13
call fcn.1000aa80
cmp dword [ebp - 0x338], 0x10
lea eax, [ebp - 0x330]
push eax
lea esi, [ebp - 0x34c]
cmovae esi, dword [ebp - 0x34c]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1001b7b6
lea eax, [ebp - 0x228]
push eax
push 0
push 0x10057be4
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1001b7b6
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001b7b6
push 0
lea eax, [ebp - 0x334]
push eax
push 0x7e380
push 0x100961a0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001b6f4
cmp dword [ebp - 0x334], 0x7e380
mov byte [ebp - 0x3a9], 1
je 0x1001b6fb
mov byte [ebp - 0x3a9], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x3a9], 0
je 0x1001b7b6
push 1
push esi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1001b7b6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
push 0x40
lea eax, [ebp - 0x394]
mov dword [ebp - 0x398], 0x44
push 0
push eax
call fcn.10022540
add esp, 0xc
lea ecx, [ebp - 0x3a8]
cmp dword [ebp - 0x338], 0x10
lea eax, [ebp - 0x34c]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x398]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push eax
movups xmmword [ebp - 0x3a8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x64
call esi
push dword [ebp - 0x3a8]
call edi
push dword [ebp - 0x3a4]
call edi
mov esi, 1
jmp 0x1001b7b8
xor esi, esi
mov edx, dword [ebp - 0x338]
cmp edx, 0x10
jb 0x1001b7ee
mov ecx, dword [ebp - 0x34c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001b7e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b80e
push edx
push ecx
call fcn.1001f82e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001f7ed
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10027d53
int3