Function at 0x422420
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b29d
mov eax, dword fs:[0]
push eax
mov eax, 0x1dd4
call fcn.00508c20
mov eax, dword [0x72400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1cd4], edx
mov eax, ecx
mov dword [ebp - 0x1cd8], eax
cmp dword [eax + 0x14], 8
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1cb8], esi
mov dword [eax + 0x10], 0
jb 0x422478
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [edx + 0x14], 8
mov dword [edx + 0x10], ecx
jb 0x42248a
mov eax, dword [edx]
jmp 0x42248c
mov eax, edx
push dword [ebp - 0x1cb8]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.00409230
mov eax, dword [esi]
push 0x410
mov dword [esi + 4], eax
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004e7b30
add esp, 0x14
lea eax, [ebp - 0x824]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4224dc
xor al, al
jmp 0x422ea8
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x86c]
call fcn.0040f910
push 1
push ecx
push 0x70fec0
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], 0
call fcn.00417bf0
mov edx, eax
cmp edx, 0xffffffff
jne 0x422516
xor bl, bl
jmp 0x422e88
mov edi, dword [ebp - 0x858]
lea ecx, [ebp - 0x86c]
mov esi, dword [ebp - 0x86c]
cmp edi, 8
mov eax, dword [ebp - 0x85c]
cmovae ecx, esi
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x86c]
cmovae eax, esi
lea eax, [eax + edx*2]
add eax, 2
lea edx, [ebp - 0x86c]
cmp edi, 8
cmovae edx, esi
sub ecx, eax
mov esi, eax
sar ecx, 1
sub esi, edx
push ecx
sar esi, 1
lea ecx, [ebp - 0x86c]
push esi
call fcn.0040f510
lea ecx, [ebp - 0x1c9c]
call fcn.004c52a0
xor eax, eax
mov dword [ebp - 0x888], 7
mov dword [ebp - 0x88c], 0
mov word [ebp - 0x89c], ax
lea eax, [ebp - 0x89c]
mov byte [ebp - 4], 1
push eax
push 6
push 3
lea ecx, [ebp - 0x1c9c]
call fcn.004c5190
mov dword [ebp - 0x870], 0xf
mov dword [ebp - 0x874], 0
mov byte [ebp - 0x884], 0
lea eax, [ebp - 0x884]
mov byte [ebp - 4], 2
push eax
sub esp, 8
lea ecx, [ebp - 0x1c9c]
call fcn.004c5220
mov dword [ebp - 0x1cd0], 0
mov dword [ebp - 0x1ccc], 0
mov dword [ebp - 0x1cc8], 0
push 0x9b800
lea ecx, [ebp - 0x1cd0]
mov byte [ebp - 4], 3
call fcn.0041bd90
mov eax, dword [ebp - 0x1cd0]
mov edi, dword [ebp - 0x1ccc]
sub edi, eax
push edi
push 0x5e0668
push eax
mov dword [ebp - 0x1cb4], edi
call fcn.004e80a0
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x1cc4], esi
mov dword [ebp - 0x1cc0], ebx
mov dword [ebp - 0x1cac], ecx
mov dword [ebp - 0x1cbc], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c0]
mov edx, dword [ebp - 0x1cd0]
push edi
call fcn.00423b60
lea ecx, [ebp - 0x1cc4]
add esp, 0x10
cmp ecx, eax
je 0x4226a6
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x1cc4], esi
mov dword [ebp - 0x1cc0], ebx
mov dword [ebp - 0x1cac], ecx
mov dword [ebp - 0x1cbc], ecx
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x8c0]
test ecx, ecx
je 0x4226c2
mov eax, dword [ebp - 0x8b8]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00408ce0
sub ebx, esi
cmp ebx, 4
jb 0x422e23
sar ebx, 2
xor edi, edi
mov dword [ebp - 0x1cb0], ebx
test ebx, ebx
je 0x42279b
mov ebx, dword [ebp - 0x88c]
mov ecx, dword [ebp - 0x874]
nop dword [eax]
mov esi, dword [esi + edi*4]
cmp ebx, 0x80
ja 0x422e23
cmp ecx, 0x80
ja 0x422e23
push 0x188
push 0
push esi
call fcn.004e7b30
add esp, 0xc
lea ecx, [ebp - 0x89c]
cmp dword [ebp - 0x888], 8
cmovae ecx, dword [ebp - 0x89c]
test ebx, ebx
je 0x422741
lea eax, [ebx + ebx]
push eax
push ecx
push esi
call fcn.004e80a0
add esp, 0xc
cmp dword [ebp - 0x870], 0x10
lea eax, [ebp - 0x884]
mov ecx, dword [ebp - 0x874]
lea edx, [esi + 0x100]
cmovae eax, dword [ebp - 0x884]
test ecx, ecx
je 0x422776
push ecx
push eax
push edx
call fcn.004e80a0
mov ecx, dword [ebp - 0x874]
add esp, 0xc
mov eax, dword [ebp + 0xc]
inc edi
mov dword [esi + 0x180], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x184], eax
mov esi, dword [ebp - 0x1cc4]
cmp edi, dword [ebp - 0x1cb0]
jb 0x4226f0
xor eax, eax
mov dword [ebp - 0x8b8], 7
mov dword [ebp - 0x8bc], 0
mov word [ebp - 0x8cc], ax
lea eax, [ebp - 0x8cc]
mov byte [ebp - 4], 5
push eax
push 6
push 3
lea ecx, [ebp - 0x1c9c]
call fcn.004c5190
xor eax, eax
mov dword [ebp - 0x828], 7
mov dword [ebp - 0x82c], 0
mov word [ebp - 0x83c], ax
lea eax, [ebp - 0x8cc]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x86c]
lea ecx, [ebp - 0x854]
call fcn.00428400
add esp, 4
mov esi, eax
lea eax, [ebp - 0x83c]
cmp eax, esi
je 0x422861
mov eax, dword [ebp - 0x828]
cmp eax, 8
jb 0x422838
inc eax
lea ecx, [ebp - 0x83c]
push eax
push dword [ebp - 0x83c]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x828], 7
push esi
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x82c], 0
mov word [ebp - 0x83c], ax
call fcn.004107b0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x840]
cmp eax, 8
jb 0x422883
inc eax
lea ecx, [ebp - 0x854]
push eax
push dword [ebp - 0x854]
call fcn.004120a0
sub esp, 0xc
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x1de0]
push eax
call fcn.00424fc0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1d90], 0
jne 0x4228ac
xor bl, bl
jmp 0x422dbd
push 0
push dword [ebp - 0x1cb4]
lea ecx, [ebp - 0x1de0]
push dword [ebp - 0x1cd0]
call fcn.00425900
lea ecx, [ebp - 0x1ddc]
call fcn.00426f60
test eax, eax
jne 0x4228ff
mov eax, dword [ebp - 0x1de0]
lea ecx, [ebp - 0x1de0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.00419860
push 0x710adc
lea ecx, [ebp - 0x854]
call fcn.0040f910
mov esi, eax
push 0x710adc
lea ecx, [ebp - 0x8b4]
mov byte [ebp - 4], 9
call fcn.0040f910
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x8fc]
call fcn.0041c150
push esi
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8e4]
call fcn.0041c0e0
add esp, 8
mov eax, dword [ebp - 0x8e8]
cmp eax, 8
jb 0x422970
inc eax
lea ecx, [ebp - 0x8fc]
push eax
push dword [ebp - 0x8fc]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x8e8], 7
mov dword [ebp - 0x8ec], 0
mov word [ebp - 0x8fc], ax
mov eax, dword [ebp - 0x8a0]
cmp eax, 8
jb 0x4229ab
inc eax
lea ecx, [ebp - 0x8b4]
push eax
push dword [ebp - 0x8b4]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x8a0], 7
mov dword [ebp - 0x8a4], 0
mov word [ebp - 0x8b4], ax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x840]
cmp eax, 8
jb 0x4229ea
inc eax
lea ecx, [ebp - 0x854]
push eax
push dword [ebp - 0x854]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x840], 7
mov word [ebp - 0x854], ax
lea eax, [ebp - 0x1d30]
push eax
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x1d30], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x402
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e7b30
mov eax, dword [ebp - 0x8d4]
add esp, 0xc
cmp eax, 0x200
ja 0x422a99
cmp dword [ebp - 0x8d0], 8
lea ecx, [ebp - 0x8e4]
cmovae ecx, dword [ebp - 0x8e4]
test eax, eax
je 0x422a6c
add eax, eax
push eax
push ecx
lea eax, [ebp - 0x414]
push eax
call fcn.004e80a0
add esp, 0xc
lea eax, [ebp - 0x1ce8]
push eax
lea eax, [ebp - 0x1d30]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x422ab9
cmp dword [ebp - 0x828], 8
lea ecx, [ebp - 0x83c]
cmovae ecx, dword [ebp - 0x83c]
call fcn.004218f0
xor bl, bl
jmp 0x422d82
push 0x1b77400
push dword [ebp - 0x1ce8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebp - 0x1ce8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1ce4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1ce8]
call esi
cmp dword [ebp - 0x828], 8
lea ecx, [ebp - 0x83c]
cmovae ecx, dword [ebp - 0x83c]
call fcn.004218f0
xor eax, eax
mov dword [ebp - 0x8a0], 7
mov dword [ebp - 0x8a4], 0
mov word [ebp - 0x8b4], ax
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], eax
mov word [ebp - 0x854], ax
mov dword [ebp - 0x1ca8], eax
mov dword [ebp - 0x1ca4], eax
mov dword [ebp - 0x1ca0], eax
lea eax, [ebp - 0x1ca8]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x8b4]
push eax
lea eax, [ebp - 0x854]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1cb4], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x422b97
mov eax, dword [ecx]
jmp 0x422b99
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x884]
push 0
push eax
call fcn.00408060
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x1cb0], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x422be1
mov eax, dword [ecx]
jmp 0x422be3
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x89c]
push edx
push eax
call fcn.0040f6c0
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x422c26
mov eax, dword [ecx]
jmp 0x422c28
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x86c]
push edx
push eax
call fcn.0040f6c0
mov byte [ebp - 4], 0x12
call fcn.0042c570
lea edx, [ebp - 0x86c]
push 0x70fec0
test al, al
jne 0x422caa
lea ecx, [ebp - 0x914]
call fcn.0041c210
lea ecx, [ebp - 0x89c]
mov byte [ebp - 4], 0x15
push ecx
mov edx, eax
lea ecx, [ebp - 0x8fc]
call fcn.0041c150
add esp, 8
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
jb 0x422c86
mov eax, dword [eax]
mov ecx, eax
call fcn.004218f0
lea ecx, [ebp - 0x8fc]
call fcn.0040f850
lea ecx, [ebp - 0x914]
call fcn.0040f850
xor bl, bl
jmp 0x422d61
lea ecx, [ebp - 0x8fc]
call fcn.0041c210
lea ecx, [ebp - 0x89c]
mov byte [ebp - 4], 0x17
push ecx
mov edx, eax
lea ecx, [ebp - 0x914]
call fcn.0041c150
add esp, 8
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x422cdc
mov eax, dword [eax]
mov ecx, eax
call fcn.004218f0
lea ecx, [ebp - 0x914]
call fcn.0040f850
lea ecx, [ebp - 0x8fc]
call fcn.0040f850
mov edx, dword [ebp - 0x1cd4]
lea ecx, [ebp - 0x8b4]
call fcn.00418610
mov edx, dword [ebp - 0x1cd8]
lea ecx, [ebp - 0x854]
call fcn.00418610
mov edx, dword [ebp - 0x1cb8]
lea eax, [ebp - 0x1ca8]
cmp eax, edx
je 0x422d5f
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1ca8]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x1ca4]
mov dword [ebp - 0x1ca8], eax
mov eax, dword [edx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1ca0]
mov dword [ebp - 0x1ca4], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x1ca0], eax
mov dword [edx + 8], ecx
mov bl, 1
lea ecx, [ebp - 0x1ca8]
call fcn.00407630
lea ecx, [ebp - 0x854]
call fcn.0040f850
lea ecx, [ebp - 0x8b4]
call fcn.0040f850
mov eax, dword [ebp - 0x8d0]
cmp eax, 8
jb 0x422da0
inc eax
lea ecx, [ebp - 0x8e4]
push eax
push dword [ebp - 0x8e4]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x8d0], 7
mov dword [ebp - 0x8d4], 0
mov word [ebp - 0x8e4], ax
lea ecx, [ebp - 0x1de0]
call fcn.00422390
mov eax, dword [ebp - 0x828]
cmp eax, 8
jb 0x422de6
inc eax
lea ecx, [ebp - 0x83c]
push eax
push dword [ebp - 0x83c]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x828], 7
mov word [ebp - 0x83c], ax
mov eax, dword [ebp - 0x8b8]
mov dword [ebp - 0x82c], 0
cmp eax, 8
jb 0x422e25
inc eax
lea ecx, [ebp - 0x8cc]
push eax
push dword [ebp - 0x8cc]
call fcn.004120a0
jmp 0x422e25
xor bl, bl
mov eax, dword [ebp - 0x1cc4]
test eax, eax
je 0x422e41
mov ecx, dword [ebp - 0x1cac]
sub ecx, eax
sar ecx, 2
push ecx
push eax
call fcn.00408ce0
lea ecx, [ebp - 0x1cd0]
call fcn.0040fff0
mov eax, dword [ebp - 0x870]
cmp eax, 0x10
jb 0x422e6a
inc eax
lea ecx, [ebp - 0x884]
push eax
push dword [ebp - 0x884]
call fcn.00408600
mov eax, dword [ebp - 0x888]
cmp eax, 8
jb 0x422e88
inc eax
lea ecx, [ebp - 0x89c]
push eax
push dword [ebp - 0x89c]
call fcn.004120a0
mov ecx, dword [ebp - 0x858]
cmp ecx, 8
jb 0x422ea6
inc ecx
push ecx
push dword [ebp - 0x86c]
lea ecx, [ebp - 0x86c]
call fcn.004120a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ce564
mov esp, ebp
pop ebp
ret