Function at 0x40ced0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489312
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xec], esi
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf8], eax
test edx, edx
je 0x40d1ba
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40cf50
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call edx
add esp, 8
test eax, eax
je 0x40d313
push 0xc
xor eax, eax
mov dword [ebp - 0xe8], 0
push 0x4a525c
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
call fcn.00408440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
push 0x2c
xor eax, eax
mov dword [ebp - 0xd0], 0
push str.Tencent_Technology_Shenzhen__Company_Limited
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
call fcn.00408440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
push 0x2d
xor eax, eax
mov dword [ebp - 0xb8], 0
push str.Tencent_Technology__Shenzhen__Company_Limited
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00408440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
push 0xa
xor eax, eax
mov dword [ebp - 0xa0], 0
push str.Adobe_Inc.
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.00408440
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
push 9
xor eax, eax
mov dword [ebp - 0x88], 0
push str.Sogou.com
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00408440
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push 0x2e
xor eax, eax
mov dword [ebp - 0x70], 0
push str.Beijing_Sogou_Technology_Development_Co.__Ltd.
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00408440
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
push 0x30
xor eax, eax
mov dword [ebp - 0x58], 0
push str._Beijing_Sogou_Technology_Development_Co.__Ltd._
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00408440
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404330
push fcn.004087f0
push 7
push 0x18
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 9
push eax
call fcn.00453ea1
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x40d30b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40d12c
mov eax, dword [edi]
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
cmovae esi, dword [ebp - 0x40]
cmp ecx, dword [edi + 0x10]
jne 0x40d2ff
mov edx, ecx
test edx, edx
je 0x40d165
sub esi, eax
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x40d2ff
add eax, 2
sub edx, 1
jne 0x40d150
lea ecx, [ebp - 0x1c]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40d1ae
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d1a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d531
push edx
push ecx
call fcn.00453c42
add esp, 8
mov edi, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xec]
push 0x40
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x44
push 0
push eax
call fcn.00455ce0
xor eax, eax
mov dword [ebp - 0x15c], 1
add esp, 0xc
mov word [ebp - 0x158], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x108], xmm0
cmp dword [ebp - 0xf4], eax
jne 0x40d389
cmp dword [ebp + 0x10], eax
je 0x40d389
call fcn.0040caf0
test eax, eax
je 0x40d389
push 0x38
lea eax, [ebp - 0x140]
mov dword [ebp - 0x144], 0x3c
push 0
push eax
call fcn.00455ce0
add esp, 0xc
mov dword [ebp - 0x140], 0x40
cmp dword [esi + 0x14], 8
jb 0x40d245
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x134], esi
jb 0x40d253
mov edi, dword [edi]
push 0
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x138], str.RunAs
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ecx, ecx
mov esi, 0x80004005
test eax, eax
cmovne esi, ecx
je 0x40d354
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x40d2d5
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d2d5
push eax
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0xf8]
and esi, 0x8000ffff
test eax, eax
je 0x40d2d5
push eax
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x40d2e2
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
add edi, 0x18
cmp edi, dword [ebp - 0x18]
jne 0x40d122
lea ecx, [ebp - 0x1c]
call fcn.00404690
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40d34d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d343
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d531
push edx
push ecx
call fcn.00453c42
add esp, 8
mov eax, 0x800704b4
jmp 0x40d2e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40d296
mov eax, dword [ebp - 0xf8]
mov esi, 0x80004004
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40d2d5
mov dword [eax], 0x4c7
jmp 0x40d2d5
push 1
xor eax, eax
mov dword [ebp - 0x28], 0
push 0x4a5278
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408440
mov dword [ebp - 4], 0xa
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40d3c4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00404760
push 2
push 0x4a527c
lea ecx, [ebp - 0x28]
call fcn.00404760
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40d3e9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00404760
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0xf4]
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x188]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
test edi, edi
je 0x40d4de
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
neg eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
jns 0x40d503
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x40d4a6
push str.CreateProcessWithTokenW
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x108]
push edx
lea edx, [ebp - 0x188]
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
push 0
push edi
call eax
jmp 0x40d4ef
mov esi, 0x80004002
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d29c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d522
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d536
jmp 0x40d522
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
test esi, esi
js 0x40d4a6
mov eax, dword [ebp - 0x104]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40d4ac
push eax
call edi
mov dword [ebp - 0x104], 0
jmp 0x40d4ac
push edx
push ecx
call fcn.00453c42
add esp, 8
jmp 0x40d29c
call fcn.004584af
call fcn.004584af
int3