Function at 0x401580
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Delete file
Get common file path
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4117a3
mov eax, dword fs:[0]
push eax
sub esp, 0xef8
mov eax, dword [0x41607c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0xeac], ebx
push 0x206
lea ecx, [ebp - 0x482]
xor eax, eax
push ebx
mov dword [ebp - 4], ebx
push ecx
mov word [ebp - 0x484], ax
call fcn.0040f530
push 0x206
lea eax, [ebp - 0x68a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x68c], dx
call fcn.0040f530
add esp, 0x18
push 0x104
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 0x6f0043
mov dword [ebp - 0x20], 0x53006d
mov dword [ebp - 0x1c], 0x650070
mov dword [ebp - 0x18], 0x63
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [ebp - 0x68c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x7fe
lea eax, [ebp - 0xe8a]
xor ecx, ecx
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x48], 0x730025
mov dword [ebp - 0x44], 0x6d0076
mov dword [ebp - 0x40], 0x610064
mov dword [ebp - 0x3c], 0x650074
mov dword [ebp - 0x38], 0x640069
mov dword [ebp - 0x34], 0x640025
mov dword [ebp - 0x30], 0x6c002e
mov dword [ebp - 0x2c], 0x67006f
mov word [ebp - 0x28], cx
mov word [ebp - 0xe8c], dx
call fcn.0040f530
push 0x206
lea edx, [ebp - 0x27a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x27c], cx
call fcn.0040f530
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x70], 0x730025
mov dword [ebp - 0x6c], 0x2f0020
mov dword [ebp - 0x68], 0x200041
mov dword [ebp - 0x64], 0x43002f
mov dword [ebp - 0x60], 0x220020
mov dword [ebp - 0x5c], 0x730025
mov dword [ebp - 0x58], 0x200022
mov dword [ebp - 0x54], 0x20003e
mov dword [ebp - 0x50], 0x730025
mov word [ebp - 0x4c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea ecx, [ebp - 0x68c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x27c]
push eax
call edi
add esp, 0x10
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x401724
lea eax, [ebp + 8]
lea ecx, [ebp - 0x27c]
push ecx
push eax
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xe8c]
push ecx
call edi
push 0x44
lea edx, [ebp - 0xf04]
push ebx
push edx
call fcn.0040f530
xor eax, eax
mov dword [ebp - 0xebc], eax
mov dword [ebp - 0xeb8], eax
mov dword [ebp - 0xeb4], eax
mov dword [ebp - 0xeb0], eax
add esp, 0x20
lea eax, [ebp - 0xf04]
push eax
mov dword [ebp - 0xf04], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea edx, [ebp - 0xebc]
push edx
lea eax, [ebp - 0xf04]
push eax
push ebx
push ebx
push 0x10
push ebx
xor ecx, ecx
push ebx
mov word [ebp - 0xed4], cx
push ebx
lea ecx, [ebp - 0xe8c]
push ecx
push ebx
mov dword [ebp - 0xed8], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0xebc]
push 0x1b773f
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, ebx
je 0x40195f
mov eax, dword [ebp - 0xeb8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0xebc]
push ecx
call edi
xor edx, edx
mov dword [ebp - 0xe94], 7
mov dword [ebp - 0xe98], ebx
mov word [ebp - 0xea8], dx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
lea eax, [ebp - 0x27c]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4018f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xeac], eax
cmp eax, 0xffffffff
jne 0x4018a2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 7
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov eax, 0x4141f4
mov word [esi], cx
call fcn.00401e90
cmp dword [ebp - 0xe94], 8
jb 0x40187a
mov edx, dword [ebp - 0xea8]
push edx
call fcn.0040b62c
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0xe94], edi
mov dword [ebp - 0xe98], ebx
mov word [ebp - 0xea8], ax
jb 0x40198b
mov ecx, dword [ebp + 8]
push ecx
jmp 0x401983
add eax, 2
push eax
call fcn.0040b12f
mov edx, dword [ebp - 0xeac]
add edx, 2
push edx
mov ebx, eax
push 0
push ebx
call fcn.0040f530
mov ecx, dword [ebp - 0xeac]
add esp, 0x10
push 0
lea eax, [ebp - 0xeac]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0xea8]
push edx
call fcn.00405040
push ebx
call fcn.0040b621
add esp, 8
xor ebx, ebx
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0xea8]
mov word [esi], cx
call fcn.00401b60
mov edi, 8
cmp dword [ebp - 0xe94], edi
jb 0x40193b
mov edx, dword [ebp - 0xea8]
push edx
call fcn.0040b62c
add esp, 4
xor eax, eax
mov dword [ebp - 0xe94], 7
mov dword [ebp - 0xe98], ebx
mov word [ebp - 0xea8], ax
cmp dword [ebp + 0x1c], edi
jb 0x40198b
mov ecx, dword [ebp + 8]
push ecx
jmp 0x401983
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov eax, 0x4141f4
mov word [esi], dx
call fcn.00401e90
cmp dword [ebp + 0x1c], 8
jb 0x40198b
mov eax, dword [ebp + 8]
push eax
call fcn.0040b62c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b13a
mov esp, ebp
pop ebp
ret