Function at 0x4e5050
Capabilities:
Create process on windows
Switch active desktop
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x42e
push 0
push 0
dec ecx
jne 0x4e5059
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
call fcn.00405f48
xor eax, eax
push ebp
push 0x4e5759
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x4e5774
lea edx, [ebp - 0x214c]
mov eax, ebx
call fcn.0040c63c
push dword [ebp - 0x214c]
push 0x4e5790
lea eax, [ebp - 0x2148]
mov edx, 3
call fcn.004063ec
mov edx, dword [ebp - 0x2148]
mov ecx, 0x4e57a0
mov eax, dword [ebp - 4]
call fcn.004bd7a8
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4e57c4
mov edx, 0x4e57d8
mov eax, dword [ebp - 8]
call fcn.004bd7a8
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4e57c4
mov edx, 0x4e580c
mov eax, dword [ebp - 8]
call fcn.004bd7a8
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x4e57c4
mov edx, 0x4e5848
mov eax, dword [ebp - 8]
call fcn.004bd7a8
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4e57c4
mov edx, 0x4e5870
mov eax, dword [ebp - 8]
call fcn.004bd7a8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e57c4
mov edx, 0x4e588c
mov eax, dword [ebp - 8]
call fcn.004bd7a8
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
call fcn.0040c8ec
test al, al
jne 0x4e514d
mov dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.0040c8ec
test al, al
jne 0x4e5163
mov dword [ebp - 0x50], 0xf
mov dl, 1
mov eax, dword [0x41f298]
call fcn.004247b4
mov dword [ebp - 0x5c], eax
mov dl, 1
mov eax, dword [0x41f298]
call fcn.004247b4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x4e58b0
mov edx, 0x4e58c4
mov eax, dword [ebp - 0x10]
call fcn.0040a21c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4e58b0
mov edx, 0x4e58c4
mov eax, dword [ebp - 0x14]
call fcn.0040a21c
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
call fcn.004bd8d4
test al, al
je 0x4e5711
lea edx, [ebp - 0x2154]
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x3d8]
call fcn.00476948
mov eax, dword [ebp - 0x2154]
lea edx, [ebp - 0x2150]
call fcn.0040d03c
mov eax, dword [ebp - 0x2150]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x28]
call fcn.004bd4a8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e5223
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4e5223
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x20]
call fcn.004056d0
test eax, eax
je 0x4e522c
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x10
jne 0x4e5711
mov eax, dword [ebp - 0x1c]
mov edx, 0x4e58d8
call fcn.00406594
jne 0x4e5249
call fcn.004e11ac
call fcn.004034f0
mov eax, 0x7530
call fcn.00403518
lea edx, [ebp - 0x2158]
call fcn.0040c63c
mov ecx, dword [ebp - 0x2158]
lea eax, [ebp - 0x2c]
mov edx, 0x4e58f0
call fcn.0040631c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov dword [ebp - 0x54], eax
push 0
push 0x10000000
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
call fcn.00405fec
push eax
call sub.user32.dll_CreateDesktopW
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x30]
mov eax, 0x4e5910
call fcn.004be264
lea edx, [ebp - 0x34]
mov eax, 0x4e5924
call fcn.004be264
call fcn.004e1540
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x68]
jne 0x4e5711
cmp dword [ebp - 0x68], 0xa
jle 0x4e52ea
mov dword [ebp - 0x68], 0xa
mov eax, dword [ebp - 0x68]
test eax, eax
jle 0x4e5597
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], 1
lea ebx, [ebp - 0x1b04]
lea eax, [ebp - 0x2144]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x64]
dec edx
mov eax, dword [ebp - 0x5c]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 0x4e5950
mov eax, dword [ebp - 0x24]
call fcn.0040a21c
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x44]
call fcn.00405fb4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4e5359
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4e5359
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
call fcn.004056d0
test eax, eax
je 0x4e5362
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4e5584
mov eax, ebx
xor ecx, ecx
mov edx, 0x44
call fcn.00403a48
mov eax, dword [ebp - 0x74]
xor ecx, ecx
mov edx, 0x10
call fcn.00403a48
mov dword [ebx], 0x44
mov eax, dword [ebp - 0x2c]
call fcn.00405fec
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x74]
xor edx, edx
mov dword [eax], edx
lea ecx, [ebp - 0x215c]
mov esi, dword [ebp - 0x64]
dec esi
mov edx, esi
mov eax, dword [ebp - 0x60]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x215c]
mov edx, 0x4e5910
call fcn.00406594
jne 0x4e541f
mov eax, dword [ebp - 0x74]
push eax
push ebx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x4e596c
push dword [ebp - 0x24]
push 0x4e5980
lea eax, [ebp - 0x2160]
mov edx, 3
call fcn.004063ec
mov eax, dword [ebp - 0x2160]
call fcn.00405fec
push eax
mov eax, dword [ebp - 0x30]
call fcn.00405fec
push eax
call sub.kernel32.dll_CreateProcessW
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
jmp 0x4e5584
lea ecx, [ebp - 0x2164]
mov edx, esi
mov eax, dword [ebp - 0x60]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2164]
mov edx, 0x4e5990
call fcn.00406594
jne 0x4e549b
mov eax, dword [ebp - 0x74]
push eax
push ebx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x4e5980
push dword [ebp - 0x34]
push 0x4e59a4
push dword [ebp - 0x24]
push 0x4e5980
lea eax, [ebp - 0x2168]
mov edx, 5
call fcn.004063ec
mov eax, dword [ebp - 0x2168]
call fcn.00405fec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
jmp 0x4e5584
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, dword [ebp - 0x60]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [0x4f67c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e5584
inc eax
mov dword [ebp - 0x70], eax
xor esi, esi
lea ecx, [ebp - 0x216c]
mov eax, dword [0x4f67c4]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x216c]
mov edx, dword [ebp - 0x38]
call fcn.00406594
jne 0x4e557a
lea ecx, [ebp - 0x2170]
mov eax, dword [0x4f6808]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2170]
call fcn.0040cd44
test al, al
je 0x4e557a
mov eax, dword [ebp - 0x74]
push eax
push ebx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x4e5980
lea ecx, [ebp - 0x2178]
mov eax, dword [0x4f6808]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2178]
push 0x4e59a4
push dword [ebp - 0x24]
push 0x4e5980
lea eax, [ebp - 0x2174]
mov edx, 5
call fcn.004063ec
mov eax, dword [ebp - 0x2174]
call fcn.00405fec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
inc esi
dec dword [ebp - 0x70]
jne 0x4e54c3
inc dword [ebp - 0x64]
add dword [ebp - 0x74], 0x10
add ebx, 0x44
dec dword [ebp - 0x6c]
jne 0x4e530e
cmp dword [ebp - 0x50], 0
jle 0x4e55e8
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_SwitchDesktop
mov eax, dword [ebp - 0x50]
add eax, eax
lea eax, [eax + eax*4]
test eax, eax
jle 0x4e55cd
mov dword [ebp - 0x6c], eax
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
push 0x64
call sub.kernel32.dll_Sleep_2
dec dword [ebp - 0x6c]
jne 0x4e55b5
mov eax, dword [ebp - 0x50]
sub dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
push eax
call sub.user32.dll_SwitchDesktop
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
mov eax, dword [ebp - 0x4c]
add eax, eax
lea eax, [eax + eax*4]
test eax, eax
jle 0x4e560f
mov dword [ebp - 0x6c], eax
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
push 0x64
call sub.kernel32.dll_Sleep_2
dec dword [ebp - 0x6c]
jne 0x4e55f7
mov eax, dword [ebp - 0x68]
test eax, eax
jle 0x4e5700
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], 1
lea eax, [ebp - 0x2144]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x64]
dec edx
mov eax, dword [ebp - 0x5c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4e5659
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4e5659
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
call fcn.004056d0
test eax, eax
je 0x4e5662
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4e56f0
mov eax, dword [ebp - 0x74]
cmp dword [eax], 0
jbe 0x4e56f0
xor eax, eax
push ebp
push 0x4e56e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x12
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_PostThreadMessageW
push 0
push 0
push 0x10
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_PostThreadMessageW
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
push 0x64
call sub.kernel32.dll_Sleep_2
push 0
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e56f0
inc dword [ebp - 0x64]
add dword [ebp - 0x74], 0x10
dec dword [ebp - 0x6c]
jne 0x4e562d
mov eax, dword [ebp - 0x58]
call fcn.004bc9f0
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_CloseDesktop
mov eax, dword [ebp - 0x5c]
call fcn.0040428c
mov eax, dword [ebp - 0x60]
call fcn.0040428c
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x3cc], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5760
lea eax, [ebp - 0x2178]
mov edx, 0xd
call fcn.00405f58
lea eax, [ebp - 0x44]
mov edx, 0x11
call fcn.00405f58
ret