Function at 0x401270
Capabilities:
Create process on windows
Create process suspended
Enumerate files on windows
Get common file path
Resume thread

Disassembly:
mov eax, dword [0x403020]
sub esp, 0x3a0
push ebx
xor ebx, ebx
push esi
push edi
test eax, eax
je 0x4013d1
lea eax, [esp + 0x2a8]
push ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str..
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x68]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4013c5
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, 0x4032cc
lea eax, [esp + 0x94]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401321
test cl, cl
je 0x40131d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401321
add eax, 2
add esi, 2
test cl, cl
jne 0x4012fd
xor eax, eax
jmp 0x401326
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401384
mov esi, 0x4032c8
lea eax, [esp + 0x94]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40135a
test cl, cl
je 0x401356
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40135a
add eax, 2
add esi, 2
test cl, cl
jne 0x401336
xor eax, eax
jmp 0x40135f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401384
test byte [esp + 0x68], 0x10
jne 0x401384
lea eax, [esp + 0x94]
push eax
call fcn.004011f0
mov ecx, dword [0x403020]
add esp, 4
cmp ecx, eax
je 0x401395
lea ecx, [esp + 0x68]
push ecx
push ebp
call edi
test eax, eax
je 0x4013c5
jmp 0x4012f1
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1a8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
pop ebp
jne 0x401437
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1a4]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1a8]
push ecx
push eax
call fcn.00401000
add esp, 0xc
test eax, eax
je 0x401534
lea edx, [esp + 0x1a4]
push edx
call fcn.004011f0
mov ecx, dword [0x403020]
add esp, 4
cmp ecx, eax
je 0x401437
push 0
push str.XMemPatch
push 0x40329c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3a0
ret 0x10
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0x44
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x10]
lea edx, [esp + 0x1a4]
push eax
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov edx, dword [0x403024]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push 4
push ecx
push edx
push eax
call fcn.00401090
mov ecx, dword [esp + 0x20]
mov eax, dword [0x4030ec]
add esp, 0x14
cmp ecx, eax
je 0x4014d5
push 0x64
call edi
inc esi
cmp esi, 0x14
jb 0x401493
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3a0
ret 0x10
mov eax, dword [0x40301c]
xor edi, edi
test eax, eax
jbe 0x401534
mov esi, 0x403024
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push 4
push edx
push eax
push ecx
call fcn.00401090
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xc8]
lea eax, [esi + 0x190]
add esp, 0x14
cmp edx, ecx
jne 0x401527
mov ecx, dword [esp + 0x10]
push 0
push 4
push eax
mov eax, dword [esi]
push eax
push ecx
call fcn.00401100
add esp, 0x14
mov eax, dword [0x40301c]
inc edi
add esi, 4
cmp edi, eax
jb 0x4014e5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3a0
ret 0x10