Function at 0x40c440
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xab8
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x80], edx
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x60], ebx
call fcn.0041fe90
mov al, byte [esi + 0x24]
xor edx, edx
mov byte [ebp - 0x51], al
mov dword [ebp - 0x58], edx
cmp dword [0x4b6f68], edx
jne 0x40c4c9
push 0x64
call fcn.00460c38
add esp, 4
mov ecx, eax
call fcn.00414b20
mov edx, eax
mov edi, 0x4b6f68
mov dword [ebp - 0x60], edx
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [ebp - 0x5c]
test eax, eax
je 0x40c4c7
test edx, edx
je 0x40c4c7
mov ecx, edx
call fcn.00414ff0
push dword [ebp - 0x60]
call fcn.00460c6b
add esp, 4
xor edx, edx
mov eax, dword [0x4b6f68]
cmp dword [eax], 3
jl 0x40c4e8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40c4e8
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x40c63a
mov byte [ebp - 0x51], bl
cmp byte [esi + 0x2c], 0
mov eax, 0x492d38
mov dword [ebp - 0xa0], 1
cmove eax, dword [ebp - 0xc4]
xor ecx, ecx
cmp byte [esi + 0x1c], cl
mov dword [ebp - 0xc4], eax
mov eax, 5
cmovne eax, ecx
mov word [ebp - 0x9c], ax
cmp dword [esi + 0x34], ecx
jne 0x40c52b
cmp dword [esi + 0x38], ecx
jne 0x40c52b
cmp dword [esi + 0x3c], ecx
je 0x40c5a1
test bl, 0x10
je 0x40c53e
lea ecx, [ebp - 0x23c]
and ebx, 0xffffffef
call fcn.00419d30
test bl, 0x20
je 0x40c551
lea ecx, [ebp - 0x2ec]
and ebx, 0xffffffdf
call fcn.00419d30
test bl, 0x40
je 0x40c564
lea ecx, [ebp - 0x39c]
and ebx, 0xffffffbf
call fcn.00419d30
test bl, bl
jns 0x40c579
lea ecx, [ebp - 0x44c]
and ebx, 0xffffff7f
call fcn.00419d30
mov eax, dword [esi + 0x34]
or dword [ebp - 0xa0], 0x100
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x8c], eax
cmp dword [esi + 0x30], 0
je 0x40c609
or edx, 4
cmp dword [0x4b6f68], 0
mov dword [ebp - 0x58], edx
jne 0x40c5f9
push 0x64
call fcn.00460c38
add esp, 4
mov ecx, eax
call fcn.00414b20
mov edx, eax
mov edi, 0x4b6f68
mov dword [ebp - 0x60], edx
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [ebp - 0x5c]
test eax, eax
je 0x40c5f6
test edx, edx
je 0x40c5f6
mov ecx, edx
call fcn.00414ff0
push dword [ebp - 0x60]
call fcn.00460c6b
add esp, 4
mov edx, dword [ebp - 0x58]
mov eax, dword [0x4b6f68]
cmp dword [eax], 5
jge 0x40c609
or edx, 0x1000000
mov eax, edx
xorps xmm0, xmm0
or eax, 0x1000000
cmp byte [esi + 0x40], 0
movups xmmword [ebp - 0xdc], xmm0
cmove eax, edx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x58], eax
jne 0x40c7a2
mov dword [ebp - 0x5c], 0
jmp 0x40c7b3
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x40c657
push 0
mov ecx, edi
call fcn.0040b850
jmp 0x40cb63
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
cmp esi, edi
je 0x40c68f
push 1
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40c675
mov byte [0], al
test bl, 2
je 0x40c688
lea ecx, [ebp - 0x18c]
and ebx, 0xfffffffd
call fcn.00419d30
add esi, 4
cmp esi, edi
jne 0x40c660
push 1
lea ecx, [ebp - 0xcc]
call fcn.0041ff60
test al, al
jne 0x40c6ee
test bl, 4
je 0x40c6b0
lea ecx, [ebp - 0x664]
call fcn.0041a5d0
mov esi, dword [ebp - 0x5c]
mov ecx, esi
push 0
call fcn.0040b850
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40c6db
push eax
call dword [0x4b68bc]
push dword [ebp - 0x88]
call fcn.00461100
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x74]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar ecx, 2
sar eax, 2
test eax, eax
je 0x40cb95
mov edx, dword [ebp - 0x88]
test edx, edx
je 0x40c750
push 0
push 0
lea eax, [ecx*4]
push eax
push edi
push 0x20002
push 0
push edx
call dword [0x4b68b4]
test eax, eax
setne al
test al, al
je 0x40c750
mov edi, dword [ebp - 0x5c]
mov edx, 0x80000
mov byte [ebp - 0x51], 1
mov dword [ebp - 0x58], edx
jmp 0x40c4e8
test bl, 8
je 0x40c760
lea ecx, [ebp - 0x71c]
call fcn.0041a5d0
mov esi, dword [ebp - 0x5c]
mov ecx, esi
push 0
call fcn.0040b850
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40c6db
push eax
call dword [0x4b68bc]
push dword [ebp - 0x88]
call fcn.00461100
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [ebp - 0x5c], eax
jb 0x40c7b3
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push dword [ebp - 0x80]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00401cc4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40c92e
or dword [ebp - 0x58], 0x400
push 0
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x40c870
test ebx, 0x100
je 0x40c812
lea ecx, [ebp - 0x7d4]
call fcn.0041a5d0
push 0
mov ecx, edi
call fcn.0040b850
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40cb53
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x40cb9f
add eax, eax
cmp eax, 0x1000
jb 0x40cb4a
test cl, 0x1f
jne 0x40cba4
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40cba9
sub ecx, eax
cmp ecx, 4
jb 0x40cbae
cmp ecx, 0x23
jbe 0x40cb48
jmp 0x40cbb3
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x5c]
movzx eax, byte [ebp - 0x51]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x20]
push dword [ebp - 0x58]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x60]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x40c9d2
test ebx, 0x400
je 0x40c8d3
lea ecx, [ebp - 0x88c]
and ebx, 0xfffffbff
call fcn.0041a5d0
test ebx, 0x200
je 0x40c812
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x40c812
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x1000
jb 0x40c920
test cl, 0x1f
jne 0x40cbb8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40cbbd
sub ecx, eax
cmp ecx, 4
jb 0x40cbc2
cmp ecx, 0x23
ja 0x40cbc7
mov ecx, eax
push ecx
call fcn.00460c6b
add esp, 4
jmp 0x40c812
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x5c]
movzx eax, byte [ebp - 0x51]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
push 0
push dword [ebp - 0x58]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40c9d5
test ebx, 0x1000
je 0x40c97e
lea ecx, [ebp - 0x944]
and ebx, 0xffffefff
call fcn.0041a5d0
test ebx, 0x800
je 0x40c812
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x40c812
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x1000
jb 0x40c920
test cl, 0x1f
jne 0x40cb9f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40cb9f
sub ecx, eax
cmp ecx, 4
jb 0x40cb9f
cmp ecx, 0x23
jbe 0x40c91e
jmp 0x40cb9f
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x70], 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.00420270
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40caec
push dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x40cae3
test ebx, 0x2000
je 0x40ca36
lea ecx, [ebp - 0x4fc]
and ebx, 0xffffdfff
call fcn.00419d30
lea ecx, [ebp - 0x70]
call fcn.00420450
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040b850
test ebx, 0x4000
je 0x40ca60
lea ecx, [ebp - 0x5ac]
and ebx, 0xffffbfff
call fcn.00419d30
cmp byte [ebp - 0x7c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
je 0x40ca70
call esi
jmp 0x40ca73
mov eax, dword [ebp - 0x78]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x40cab2
cmp byte [ebp - 0x7c], 0
je 0x40ca8f
call esi
jmp 0x40ca92
mov eax, dword [ebp - 0x78]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cac5
test ebx, 0x8000
je 0x40cac5
lea ecx, [ebp - 0x9fc]
jmp 0x40cac0
test ebx, 0x10000
je 0x40cac5
lea ecx, [ebp - 0xab4]
call fcn.0041a5d0
push 0
mov ecx, edi
call fcn.0040b850
lea ecx, [ebp - 0x7c]
call fcn.0040b910
lea ecx, [ebp - 0x70]
call fcn.00420120
jmp 0x40c81b
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x40cafc
push 0xffffffffffffffff
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x70], 0
test ebx, ebx
je 0x40cb33
cmp ebx, 0xffffffff
je 0x40cb33
call fcn.0041d5e0
mov edx, eax
mov esi, dword [edx]
call fcn.0041df60
mov ecx, dword [ebp + 4]
push eax
push ecx
lea eax, [ebp - 0x70]
mov ecx, edx
push eax
push ebx
call dword [esi + 8]
push ebx
mov ecx, edi
call fcn.0040b850
lea ecx, [ebp - 0x70]
call fcn.00420120
jmp 0x40c81b
mov ecx, eax
push ecx
call fcn.00460c6b
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40cb82
push eax
call dword [0x4b68bc]
push dword [ebp - 0x88]
call fcn.00461100
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c27
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0045f7fc
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
int3