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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x48a220]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x60]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], 0
call fcn.00422fb0
mov al, byte [esi + 8]
xor ecx, ecx
mov edx, dword [esi + 4]
mov byte [esp + 0xb], al
mov dword [esp + 0xc], ecx
test edx, edx
je 0x418b8a
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x4189b6
mov byte [esp + 0xb], cl
jmp 0x418b8a
call fcn.0040fbc0
cmp eax, 3
jge 0x418a36
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x4189e4
cmp byte [0x48e7f0], al
jne 0x418feb
int3
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00410b40
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418fb4
cmp eax, 0xffffffff
je 0x418fb4
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
call fcn.004101e0
push dword [esp + 0x2c]
call fcn.004100b0
add esp, 0x14
mov dword [esp + 0x1c], 0
jmp 0x418fb4
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
jbe 0x418a87
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418a6d
cmp byte [0x48e7f0], al
jne 0x418ff2
int3
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.00410b40
lea ecx, [esp + 0x48]
call fcn.00410a90
jmp 0x418fb4
push 1
lea ecx, [esp + 0x6c]
call fcn.004230a0
test al, al
jne 0x418aed
mov byte [esp + 0x40], al
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418ab9
cmp byte [0x48e7f0], al
jne 0x418ff9
int3
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.00410b40
lea ecx, [esp + 0x40]
call fcn.00410a90
lea ecx, [esp + 0x68]
call fcn.00423080
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar ecx, 2
sar eax, 2
test eax, eax
je 0x419000
lea eax, [ecx*4]
push eax
push edx
push 0x20002
lea ecx, [esp + 0x74]
call fcn.00423120
test al, al
jne 0x418b7c
mov byte [esp + 0x50], al
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418b48
cmp byte [0x48e7f0], al
jne 0x41900a
int3
lea eax, [esp + 0x50]
mov ecx, edi
push eax
call fcn.00410b40
lea ecx, [esp + 0x50]
call fcn.00410a90
lea ecx, [esp + 0x68]
call fcn.00423080
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
mov ecx, 0x80000
mov byte [esp + 0xb], 1
mov dword [esp + 0xc], ecx
cmp byte [esi + 0x10], 0
mov eax, 0x4842e4
mov dword [esp + 0x94], 1
cmove eax, dword [esp + 0x70]
xor edx, edx
cmp byte [esi + 1], dl
mov dword [esp + 0x70], eax
mov eax, 5
cmovne eax, edx
mov word [esp + 0x98], ax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x418bcd
cmp dword [esi + 0x1c], edx
jne 0x418bcd
cmp dword [esi + 0x20], edx
je 0x418bf3
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x94], 0x101
mov dword [esp + 0xa8], eax
cmp dword [esi + 0x14], edx
je 0x418c02
or ecx, 0x1000004
mov dword [esp + 0xc], ecx
cmp byte [esi + 0x24], dl
je 0x418c11
or ecx, 0x1000000
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 0xd8], 7
push 0xffffffffffffffff
push eax
push dword [esp + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0xe0], edx
lea ecx, [esp + 0xd0]
movdqa xmmword [esp + 0xbc], xmm0
mov word [esp + 0xd0], ax
call fcn.00406670
mov eax, dword [esi + 0xc]
test eax, eax
je 0x418d7c
or dword [esp + 0xc], 0x400
push 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x418cea
mov byte [esp + 0xc], al
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418c98
cmp byte [0x48e7f0], al
jne 0x419011
int3
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.00410b40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418f7f
cmp eax, 0xffffffff
je 0x418f7f
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.004101e0
push dword [esp + 0x20]
call fcn.004100b0
add esp, 0x14
mov dword [esp + 0x10], 0
jmp 0x418f7f
cmp dword [esp + 0xd8], 8
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x6c]
push eax
movzx eax, byte [esp + 0x13]
lea ecx, [esp + 0xcc]
cmovae ecx, dword [esp + 0xcc]
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x418e30
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418d62
cmp byte [0x48e7f0], al
jne 0x419018
int3
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.00410b40
lea ecx, [esp + 0x58]
call fcn.00410a90
jmp 0x418f7f
cmp dword [esp + 0xd8], 8
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x6c]
push eax
movzx eax, byte [esp + 0x13]
lea ecx, [esp + 0xcc]
cmovae ecx, dword [esp + 0xcc]
push 0
push 0
push dword [esp + 0x1c]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x418e34
mov byte [esp + 0x20], al
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418dde
cmp byte [0x48e7f0], al
jne 0x41901f
int3
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00410b40
mov eax, dword [esp + 0x24]
test eax, eax
je 0x418f7f
cmp eax, 0xffffffff
je 0x418f7f
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.004101e0
push dword [esp + 0x34]
call fcn.004100b0
add esp, 0x14
mov dword [esp + 0x24], 0
jmp 0x418f7f
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xb0]
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.00422cf0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418ee5
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x418edb
mov esi, dword [esp + 0x28]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x418e9d
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x418ec1
cmp byte [0x48e7f0], al
jne 0x419026
int3
lea eax, [esp + 0x60]
mov ecx, edi
push eax
call fcn.00410b40
lea ecx, [esp + 0x60]
call fcn.00410a90
jmp 0x418f76
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x418ef6
push 0xffffffffffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
test esi, esi
je 0x418f2b
cmp esi, 0xffffffff
je 0x418f2b
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004101e0
add esp, 0x10
push esi
lea ecx, [esp + 0x3c]
call fcn.00410ad0
push eax
mov ecx, edi
call fcn.00410b40
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x418f76
cmp eax, 0xffffffff
je 0x418f76
call fcn.00410050
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.004101e0
push dword [esp + 0x4c]
call fcn.004100b0
add esp, 0x14
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x28]
call fcn.00422be0
cmp dword [esp + 0xd8], 8
jb 0x418f98
push dword [esp + 0xc4]
call fcn.004491f2
add esp, 4
xor eax, eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], eax
mov word [esp + 0xc4], ax
mov eax, dword [esp + 0xac]
test eax, eax
je 0x418fd5
push eax
call dword [0x48e7e4]
push dword [esp + 0xac]
call fcn.0044bdac
add esp, 4
mov ecx, dword [esp + 0xdc]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00449e44
mov esp, ebp
pop ebp
ret
push 1
call fcn.004495fc
push 1
call fcn.004495fc
push 1
call fcn.004495fc
push str.invalid_vector_T__subscript
call fcn.0044857a
push 1
call fcn.004495fc
push 1
call fcn.004495fc
push 1
call fcn.004495fc
push 1
call fcn.004495fc
push 1
call fcn.004495fc
int3