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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x496200]
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 + 0x18], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0
call fcn.004146b0
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 0x40d5d1
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x40d6eb
mov byte [esp + 0xb], cl
cmp byte [esi + 0x10], 0
mov eax, 0x492450
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 0x40d614
cmp dword [esi + 0x1c], edx
jne 0x40d614
cmp dword [esi + 0x20], edx
je 0x40d63a
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 0x40d649
or ecx, 0x1000004
mov dword [esp + 0xc], ecx
cmp byte [esi + 0x24], dl
je 0x40d658
or ecx, 0x1000000
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 0xd8], 7
push 0xffffffffffffffff
push eax
push dword [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0xe0], edx
lea ecx, [esp + 0xd0]
movdqa xmmword [esp + 0xbc], xmm0
mov word [esp + 0xd0], ax
call fcn.004042d0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40d990
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 0x40d8fe
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d8ac
cmp byte [0x49ec78], al
je 0x40d8ab
jmp 0x40dc18
call fcn.0040fd00
cmp eax, 3
jge 0x40d76b
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d719
cmp byte [0x49ec78], al
jne 0x40dc1f
int3
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040d3b0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40dbe1
cmp eax, 0xffffffff
je 0x40dbe1
call fcn.00409c90
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.0040a0b0
push dword [esp + 0x34]
call fcn.00409ee0
add esp, 0x14
mov dword [esp + 0x24], 0
jmp 0x40dbe1
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
jbe 0x40d7bc
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d7a2
cmp byte [0x49ec78], al
jne 0x40dc26
int3
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.0040d3b0
lea ecx, [esp + 0x48]
call fcn.0040d300
jmp 0x40dbe1
push ecx
lea ecx, [esp + 0x6c]
call fcn.00414780
test al, al
jne 0x40d807
mov byte [esp + 0x40], al
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d7ed
cmp byte [0x49ec78], al
jne 0x40dc2d
int3
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.0040d3b0
lea ecx, [esp + 0x40]
call fcn.0040d300
jmp 0x40dbe1
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
mov dword [esp + 0x14], edx
test eax, eax
je 0x40dc34
mov edx, dword [esp + 0xac]
test edx, edx
je 0x40d86d
push 0
push 0
lea eax, [ecx*4]
push eax
push dword [esp + 0x20]
push 0x20002
push 0
push edx
call dword [0x49eb44]
test eax, eax
setne al
test al, al
je 0x40d86d
mov ecx, 0x80000
mov byte [esp + 0xb], 1
mov dword [esp + 0xc], ecx
jmp 0x40d5d1
mov byte [esp + 0x50], 0
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d891
cmp byte [0x49ec78], al
jne 0x40dc3e
int3
lea eax, [esp + 0x50]
mov ecx, edi
push eax
call fcn.0040d3b0
lea ecx, [esp + 0x50]
call fcn.0040d300
jmp 0x40dbe1
int3
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040d3b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40dbac
cmp eax, 0xffffffff
je 0x40dbac
call fcn.00409c90
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
call fcn.0040a0b0
push dword [esp + 0x2c]
call fcn.00409ee0
add esp, 0x14
mov dword [esp + 0x1c], 0
jmp 0x40dbac
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 0x40da44
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d976
cmp byte [0x49ec78], al
jne 0x40dc45
int3
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.0040d3b0
lea ecx, [esp + 0x58]
call fcn.0040d300
jmp 0x40dbac
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 0x40da48
mov byte [esp + 0xc], al
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40d9f2
cmp byte [0x49ec78], al
jne 0x40dc4c
int3
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.0040d3b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40dbac
cmp eax, 0xffffffff
je 0x40dbac
call fcn.00409c90
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.0040a0b0
push dword [esp + 0x20]
call fcn.00409ee0
add esp, 0x14
mov dword [esp + 0x10], 0
jmp 0x40dbac
mov esi, dword [esp + 0x20]
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.0040e400
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40db12
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x40db08
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 0x40dab5
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 0x40dad9
cmp byte [0x49ec78], al
jne 0x40dc53
int3
lea eax, [esp + 0x60]
mov ecx, edi
push eax
call fcn.0040d3b0
lea ecx, [esp + 0x60]
call fcn.0040d300
lea ecx, [esp + 0x28]
call fcn.0040e310
lea ecx, [esp + 0xc4]
call fcn.004039a0
jmp 0x40dbe1
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x40db23
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 0x40db58
cmp esi, 0xffffffff
je 0x40db58
call fcn.00409c90
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0040a0b0
add esp, 0x10
push esi
lea ecx, [esp + 0x3c]
call fcn.0040d340
push eax
mov ecx, edi
call fcn.0040d3b0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40dba3
cmp eax, 0xffffffff
je 0x40dba3
call fcn.00409c90
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.0040a0b0
push dword [esp + 0x4c]
call fcn.00409ee0
add esp, 0x14
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x28]
call fcn.0040e310
cmp dword [esp + 0xd8], 8
jb 0x40dbc5
push dword [esp + 0xc4]
call fcn.0042f386
add esp, 4
xor eax, eax
mov dword [esp + 0xd8], 7
mov word [esp + 0xc4], ax
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xac]
test eax, eax
je 0x40dc02
push eax
call dword [0x49eb4c]
push dword [esp + 0xac]
call fcn.004307ae
add esp, 4
mov ecx, dword [esp + 0xdc]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00430b83
mov esp, ebp
pop ebp
ret
push 1
call fcn.004333d3
push 1
call fcn.004333d3
push 1
call fcn.004333d3
push 1
call fcn.004333d3
push str.invalid_vector_T__subscript
call fcn.0042ea01
push 1
call fcn.004333d3
push 1
call fcn.004333d3
push 1
call fcn.004333d3
push 1
call fcn.004333d3
int3