Function at 0x4ad09571
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad09a10
push 0x4ad1f1b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x20340
call fcn.4ad0225a
mov eax, dword [0x4ad33b78]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2027c], eax
xor ebx, ebx
mov dword [ebp - 0x20250], ebx
mov dword [ebp - 0x2024c], ebx
mov dword [ebp - 0x20248], ebx
mov dword [ebp - 0x20264], ebx
mov esi, 0x4ad09a00
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20260], ebx
mov dword [ebp - 0x20258], ebx
mov word [ebp - 0x4234], bx
mov word [ebp - 0x20234], bx
mov dword [ebp - 0x2025c], ebx
mov dword [ebp - 0x2023c], 0x10
mov dword [ebp - 0x202c0], 0x44
mov dword [ebp - 0x202bc], ebx
mov dword [ebp - 0x202b8], ebx
mov dword [ebp - 0x202b4], ebx
mov dword [ebp - 0x202b0], ebx
mov dword [ebp - 0x202ac], ebx
mov dword [ebp - 0x202a8], ebx
mov dword [ebp - 0x202a4], ebx
mov dword [ebp - 0x20294], ebx
mov word [ebp - 0x20290], 1
mov word [ebp - 0x2028e], bx
mov dword [ebp - 0x2028c], ebx
push 0xfffffffffffffff6
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call esi
mov dword [ebp - 0x20288], eax
push 0xfffffffffffffff5
call esi
mov dword [ebp - 0x20284], eax
push 0xfffffffffffffff4
call esi
mov dword [ebp - 0x20280], eax
mov eax, dword [ebp - 0x2027c]
cmp eax, ebx
je 0x4ad188a9
cmp word [eax], bx
je 0x4ad09728
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
xor edi, edi
inc edi
push ebx
push eax
call fcn.4ad02b6b
mov dword [ebp - 0x20244], eax
mov cx, word [eax]
cmp cx, 0x22
je 0x4ad0a19f
push 0x2000
cmp cx, word [0x4ad33b88]
je 0x4ad09aa1
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0x20244]
push eax
push ebx
call fcn.4ad09a21
cmp eax, edi
je 0x4ad09d0f
mov esi, dword [ebp - 0x20244]
cmp word [esi], bx
je 0x4ad09706
push esi
lea eax, [ebp - 0x20234]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x20234]
mov dword [ebp - 0x20248], eax
push ebx
push esi
call fcn.4ad01323
mov dword [ebp - 0x20244], eax
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
mov eax, dword [ebp - 0x20244]
cmp word [eax], bx
jne 0x4ad09697
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
cmp word [ebp - 0x4234], bx
je 0x4ad18a2b
cmp word [ebp - 0x4234], 0x22
je 0x4ad0975e
push 0x20
lea eax, [ebp - 0x4234]
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x4ad18a3f
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0x14234]
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x4234]
push eax
call fcn.4ad01349
test eax, eax
je 0x4ad09798
lea eax, [ebp - 0x4234]
push eax
call fcn.4ad01349
push eax
lea eax, [ebp - 0x4234]
push eax
call edi
pop ecx
pop ecx
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
mov byte [ebp - 0x2023d], bl
mov byte [ebp - 0x20235], bl
lea eax, [ebp - 0x20270]
push eax
lea eax, [ebp - 0x4234]
push eax
push 0x2b
call fcn.4ad01c99
cmp eax, 0xffffffff
jne 0x4ad09d16
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0xc234]
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x4234]
mov dword [ebp - 0x20320], eax
push eax
lea eax, [ebp - 0x20358]
push eax
call fcn.4ad0333f
cmp eax, ebx
je 0x4ad18b11
cmp eax, 3
je 0x4ad18b11
cmp eax, 2
je 0x4ad09d16
cmp eax, 5
je 0x4ad18afc
cmp byte [ebp - 0x20235], bl
jne 0x4ad09870
cmp byte [ebp - 0x2023d], bl
jne 0x4ad18b2f
lea eax, [ebp - 0x14234]
push eax
lea eax, [ebp - 0x1c234]
push eax
call edi
push 0x4ad05d8c
lea eax, [ebp - 0x1c234]
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x20248], ebx
je 0x4ad09864
push dword [ebp - 0x20248]
lea eax, [ebp - 0x1c234]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x1c234]
mov dword [ebp - 0x20248], eax
cmp dword [ebp - 0x20260], ebx
jne 0x4ad18c3a
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x20268], eax
lea ecx, [ebp - 0x2024c]
push ecx
push ebx
push ebx
push 2
push eax
mov edi, dword [sym.imp.USER32.dll_GetUserObjectInformationW]
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 0x2026c], eax
lea ecx, [ebp - 0x20250]
push ecx
push ebx
push ebx
push 2
push eax
call edi
mov eax, dword [ebp - 0x20250]
mov ecx, dword [ebp - 0x2024c]
lea eax, [ecx + eax + 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20254], eax
cmp eax, ebx
je 0x4ad09946
mov esi, eax
lea eax, [ebp - 0x2024c]
push eax
push dword [ebp - 0x2024c]
push esi
push 2
push dword [ebp - 0x20268]
call edi
test eax, eax
je 0x4ad09946
mov eax, dword [ebp - 0x2024c]
cmp eax, ebx
jbe 0x4ad0991e
shr eax, 1
mov ecx, esi
lea esi, [ecx + eax*2 - 2]
mov word [esi], 0x5c
inc esi
inc esi
lea eax, [ebp - 0x20250]
push eax
push dword [ebp - 0x20250]
push esi
push 2
push dword [ebp - 0x2026c]
call edi
test eax, eax
je 0x4ad09946
mov eax, dword [ebp - 0x20254]
mov dword [ebp - 0x202b8], eax
cmp byte [ebp - 0x20235], bl
jne 0x4ad18c48
lea eax, [ebp - 0x202d0]
push eax
lea eax, [ebp - 0x202c0]
push eax
push dword [ebp - 0x2025c]
push dword [ebp - 0x20264]
mov eax, dword [ebp - 0x2023c]
or eax, 0x400
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x20248]
lea eax, [ebp - 0x4234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp dword [ebp - 0x20260], ebx
jne 0x4ad18c4f
push dword [ebp - 0x20254]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, ebx
je 0x4ad116e1
push dword [ebp - 0x202cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x202d0], ebx
je 0x4ad099e5
push dword [ebp - 0x202d0]
cmp dword [ebp - 0x20258], ebx
jne 0x4ad0d907
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.4ad01305
pop edi
pop esi
pop ebx
leave
ret 4
inc eax
inc eax
mov dword [ebp - 0x20244], eax
lea eax, [ebp - 0x8234]
push eax
lea eax, [ebp - 0x20244]
push eax
push edi
call fcn.4ad09a21
cmp eax, edi
je 0x4ad09d0f
push 0x4ad09ccc
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad188b1
push 0x4ad09cb4
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad188bd
push 0x4ad09cb0
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad188c9
push dword [ebp - 0x8234]
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
cmp ax, 0x44
je 0x4ad188ee
push 0x4ad09ca4
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad1899a
push dword [ebp - 0x8234]
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
cmp ax, 0x49
je 0x4ad189a6
push dword [ebp - 0x8234]
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
cmp ax, 0x3f
je 0x4ad18a8b
push 0x4ad09c9c
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad189c0
push 0x4ad09c94
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad09cfd
push 0x4ad09c8c
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad189cc
push 0x4ad09c7c
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad189de
push 0x4ad09c68
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad189ea
push 0x4ad09c54
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad189f6
push 0x4ad09c44
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x4ad18a02
push 0x4ad09c38
lea eax, [ebp - 0x8234]
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x4ad18a0e
mov dword [ebp - 0x20258], edi
jmp 0x4ad09719
or dword [ebp - 0x20294], edi
or byte [ebp - 0x20290], 7
jmp 0x4ad09719
mov eax, edi
jmp 0x4ad099e7
mov byte [ebp - 0x2023d], 1
jmp 0x4ad09816
cmp dword [ebp - 0x202b4], ebx
jne 0x4ad096b1
push 0x4000
lea eax, [ebp - 0x10234]
push eax
lea eax, [ebp - 0x20244]
push eax
push edi
call fcn.4ad09a21
cmp eax, edi
je 0x4ad09d0f
lea eax, [ebp - 0x10234]
push eax
call fcn.4ad01349
test eax, eax
je 0x4ad0a1f8
lea eax, [ebp - 0x10234]
push eax
call fcn.4ad01349
push eax
lea eax, [ebp - 0x10234]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x10234]
mov dword [ebp - 0x202b4], eax
jmp 0x4ad09719
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad2ba04], eax
cmp byte [ebp - 0x20235], bl
jne 0x4ad1170b
cmp byte [0x4ad2fa64], bl
je 0x4ad18cb9
cmp eax, 0xc1
jne 0x4ad18cb9
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x20310]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20310], 0x3c
mov dword [ebp - 0x2030c], 0x88140
test byte [ebp - 0x2023c], 0x10
je 0x4ad1173f
mov dword [ebp - 0x2030c], 0x80140
lea eax, [ebp - 0x4234]
mov dword [ebp - 0x20300], eax
mov eax, dword [ebp - 0x202b4]
mov dword [ebp - 0x202e8], eax
lea eax, [ebp - 0x20234]
mov dword [ebp - 0x202fc], eax
mov eax, dword [ebp - 0x2025c]
mov dword [ebp - 0x202f8], eax
movzx eax, word [ebp - 0x20290]
mov dword [ebp - 0x202f4], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20310]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x202d4], eax
cmp eax, ebx
je 0x4ad18c5c
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4ad18cb9
mov eax, dword [ebp - 0x202d8]
mov dword [ebp - 0x202d0], eax
jmp 0x4ad099c5