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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4d7830
xor eax, eax
push ebp
push 0x4d7ff5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x52d58c], 0x1869f
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x2a], 0
xor eax, eax
mov dword [0x523b80], eax
xor eax, eax
mov dword [0x523b84], eax
xor edx, edx
xor eax, eax
call fcn.004d7134
test al, al
je 0x4d7fc2
mov eax, dword [0x52d725]
mov dword [0x523b84], eax
mov eax, dword [0x52d58c]
mov dword [0x523b88], eax
mov dword [0x523b80], 7
cmp dword [0x52d58c], 5
je 0x4d78b3
cmp dword [0x52d58c], 6
je 0x4d78b3
cmp dword [0x52d58c], 0xc
jne 0x4d7fc2
mov dword [0x523b80], 8
mov eax, dword [0x52d725]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.00409dd8
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov edx, 0x52d72d
call fcn.0040544c
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x14]
pop edx
call fcn.004054f8
mov dword [0x523b80], 9
cmp byte [0x52d765], 0
je 0x4d7a1d
push dword [0x52d760]
push dword [0x52d75c]
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0047b0f8
test al, al
jle 0x4d7a1d
mov eax, dword [0x52d75c]
mov dword [ebp - 0x38], eax
mov eax, dword [0x52d760]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov edx, 0x4d8008
call fcn.0040caec
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x3c]
mov eax, 0x4d8018
call fcn.004c820c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x1c]
mov ecx, 0x4d8054
call fcn.004054f8
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
mov edx, 0x4d8060
mov eax, 0x4d8074
call fcn.004c820c
push dword [ebp - 0x5c]
push 0x4d8054
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040556c
push dword [ebp - 0x1c]
lea edx, [ebp - 0x60]
mov eax, 0x4d80d0
call fcn.004c81bc
push dword [ebp - 0x60]
push 0x4d8108
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040556c
push dword [ebp - 0x1c]
lea edx, [ebp - 0x64]
mov eax, 0x4d8118
call fcn.004c81bc
push dword [ebp - 0x64]
push 0x4d815c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040556c
push 0x40
lea edx, [ebp - 0x68]
mov eax, 0x4d8184
call fcn.004c81bc
mov eax, dword [ebp - 0x68]
call fcn.004056ac
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004056ac
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.00465c84
jmp 0x4d7fc2
mov byte [ebp - 0x21], 0
cmp byte [0x52d764], 0
je 0x4d7a8b
push dword [0x52d758]
push dword [0x52d754]
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0047b0f8
test al, al
jge 0x4d7a8b
mov byte [ebp - 0x21], 1
mov dword [0x523b80], 0xa
mov eax, dword [0x52d754]
mov dword [ebp - 0x48], eax
mov eax, dword [0x52d758]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov edx, 0x4d819c
call fcn.0040caec
mov eax, 0x52da54
mov edx, dword [ebp - 0x4c]
call fcn.0040523c
mov dl, 1
mov eax, dword [0x425abc]
call fcn.00425bc0
mov dword [ebp - 0x20], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0x20]
call fcn.00425c9c
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4d81b0
mov edx, 0x4d81c8
mov eax, dword [ebp - 0x20]
call fcn.00426488
push 0
lea eax, [ebp - 0x10]
push eax
mov edx, 0x4d81c8
mov ecx, 0x4d81f8
mov eax, dword [ebp - 0x20]
call fcn.00426488
push 0xffffffffffffffff
mov ecx, 0x4d8210
mov edx, 0x4d8228
mov eax, dword [ebp - 0x20]
call fcn.00426604
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xc], 0
je 0x4d7bed
cmp dword [ebp - 0x28], 0
jl 0x4d7b60
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x28]
call fcn.00409cec
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0xc]
call fcn.004054f8
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0047cb2c
mov eax, dword [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x78]
push eax
mov edx, 0x4d8228
mov ecx, 0x4d8260
mov eax, dword [ebp - 0x20]
call fcn.00426488
mov edx, dword [ebp - 0x78]
pop eax
call fcn.004055f8
je 0x4d7b60
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x29], 1
mov dword [0x523b80], 0xb
jmp 0x4d7bed
mov eax, dword [0x52d725]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x84]
call fcn.00409dd8
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0xc]
call fcn.004054f8
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.0047cb2c
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x10]
call fcn.004055f8
je 0x4d7bba
cmp dword [0x52d58c], 6
je 0x4d7bba
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x29], 1
mov dword [0x523b80], 0xc
jmp 0x4d7bed
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004055f8
je 0x4d7bed
lea eax, [ebp - 0xc]
call fcn.004051e8
lea eax, [ebp - 0x10]
call fcn.004051e8
push ebp
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004d77e8
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x10], 0
jne 0x4d7cf0
cmp dword [ebp - 0xc], 0
jne 0x4d7cf0
cmp byte [ebp - 0x21], 0
jne 0x4d7cf0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00405280
mov eax, dword [0x52d725]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c]
call fcn.00409dd8
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0xc]
call fcn.004054f8
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x10]
call fcn.0047cb2c
mov eax, dword [ebp - 0xc]
push eax
mov edx, 0x4d81c8
mov ecx, 0x4d81b0
mov eax, dword [ebp - 0x20]
call fcn.00426554
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x4d81c8
mov ecx, 0x4d81f8
mov eax, dword [ebp - 0x20]
call fcn.00426554
push ebp
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004d77e8
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov edx, 0x4d8228
mov ecx, 0x4d8210
mov eax, dword [ebp - 0x20]
call fcn.00426704
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x28]
call fcn.00409cec
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0xc]
call fcn.004054f8
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call fcn.0047cb2c
mov eax, dword [ebp - 0x90]
push eax
mov edx, 0x4d8228
mov ecx, 0x4d8260
mov eax, dword [ebp - 0x20]
call fcn.00426554
push ebp
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004d77e8
pop ecx
cmp eax, dword [ebp - 0x28]
jge 0x4d7d19
mov byte [ebp - 0x29], 1
mov byte [ebp - 0x2a], 1
mov byte [ebp - 0x21], 1
jmp 0x4d7e51
push 0xffffffffffffffff
mov ecx, 0x4d8278
mov edx, 0x4d8290
mov eax, dword [ebp - 0x20]
call fcn.00426604
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x4d7dc1
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x28]
call fcn.00409cec
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.0047cb2c
mov eax, dword [ebp - 0x9c]
push eax
push 0
lea eax, [ebp - 0xa4]
push eax
mov edx, 0x4d8290
mov ecx, 0x4d82b8
mov eax, dword [ebp - 0x20]
call fcn.00426488
mov edx, dword [ebp - 0xa4]
pop eax
call fcn.004055f8
je 0x4d7dc1
cmp byte [ebp - 0x21], 0
jne 0x4d7db7
push 0
lea eax, [ebp - 0xa8]
push eax
mov edx, 0x4d8290
mov ecx, 0x4d82b8
mov eax, dword [ebp - 0x20]
call fcn.00426488
cmp dword [ebp - 0xa8], 0
jne 0x4d7db7
xor eax, eax
jmp 0x4d7db9
mov al, 1
mov byte [ebp - 0x21], al
jmp 0x4d7e51
push ebp
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004d77e8
pop ecx
cmp eax, dword [ebp - 0x28]
jge 0x4d7ded
cmp dword [ebp - 0x28], 0
jl 0x4d7ded
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x29], 1
mov byte [ebp - 0x2a], 1
jmp 0x4d7e51
push ebp
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004d77e8
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov edx, 0x4d8290
mov ecx, 0x4d8278
mov eax, dword [ebp - 0x20]
call fcn.00426704
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 4]
call fcn.00409cec
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.0047cb2c
mov eax, dword [ebp - 0xac]
push eax
mov edx, 0x4d8290
mov ecx, 0x4d82b8
mov eax, dword [ebp - 0x20]
call fcn.00426554
mov eax, dword [ebp - 0x20]
call fcn.004042c8
cmp byte [ebp - 0x21], 0
je 0x4d7fbb
cmp byte [ebp - 0x29], 0
je 0x4d7e8e
lea edx, [ebp - 0xb4]
mov eax, 0x4d82d0
call fcn.004c81bc
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 8]
mov ecx, 0x4d8108
call fcn.004054f8
jmp 0x4d7eb1
lea edx, [ebp - 0xb8]
mov eax, 0x4d8314
call fcn.004c81bc
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 8]
mov ecx, 0x4d8108
call fcn.004054f8
push dword [ebp - 8]
lea edx, [ebp - 0xbc]
mov eax, 0x4d8118
call fcn.004c81bc
push dword [ebp - 0xbc]
push 0x4d815c
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040556c
push dword [ebp - 8]
push 0x4d8108
lea edx, [ebp - 0xc0]
mov eax, 0x4d83bc
call fcn.004c81bc
push dword [ebp - 0xc0]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040556c
cmp byte [ebp - 0x2a], 0
je 0x4d7f1c
lea edx, [ebp - 0x18]
mov eax, 0x4d83f4
call fcn.004c81bc
jmp 0x4d7f29
lea edx, [ebp - 0x18]
mov eax, 0x4d8184
call fcn.004c81bc
cmp byte [ebp - 0x29], 0
je 0x4d7f96
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.004056ac
push eax
mov eax, dword [ebp - 8]
call fcn.004056ac
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_MessageBoxA_1
cmp eax, 6
jne 0x4d7f96
push 5
push 0
push 0
lea eax, [ebp - 0xc8]
call fcn.004d6da8
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0xc4]
mov edx, 0x4d8414
call fcn.004054f8
mov eax, dword [ebp - 0xc4]
call fcn.004056ac
push eax
push 0x4d8438
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
mov dword [0x52da50], 0xffffffff
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.00465c84
jmp 0x4d7fc2
xor eax, eax
mov dword [0x523b80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7ffc
lea eax, [ebp - 0xc8]
mov edx, 0x20
call fcn.0040520c
lea eax, [ebp - 0x3c]
call fcn.004051e8
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.0040520c
ret