Function at 0x6d4553a1
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x68
push ebx
mov dword [ebp - 0x10], eax
push esi
mov ebx, dword [ebp + 8]
push edi
mov byte [ebp - 1], al
cmp ebx, eax
je 0x6d4553f3
cmp ebx, 1
je 0x6d4553f3
cmp ebx, 2
jl 0x6d4553cd
cmp ebx, 3
jle 0x6d4553f3
cmp ebx, 4
je 0x6d4553ef
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ax, word [ecx]
test ax, ax
je 0x6d45541c
add ecx, 2
cmp word [ecx], 0
jne 0x6d455401
lea eax, [ecx + 2]
cmp word [eax], 0
je 0x6d4553f9
mov word [ecx], 0x20
mov ecx, eax
jmp 0x6d4553f9
lea edi, [ebp - 0x68]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov eax, dword [0x6d462fd8]
mov dword [ebp - 8], eax
test eax, eax
je 0x6d45544d
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp byte [eax + 0x6d462fdf], cl
jne 0x6d45544d
dec dword [ebp - 8]
jne 0x6d45543d
mov eax, dword [ebp - 8]
push 1
imul ax, ax, 5
add ax, 4
lea esi, [ebp - 8]
movzx ecx, ax
mov word [ebp - 0x36], ax
push ecx
call sym.MSVCRT20.dll_calloc
add esp, 8
mov edi, eax
mov dword [ebp - 0x34], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov esi, 0x6d462fe0
mov edi, dword [ebp - 0x34]
mov ecx, eax
shr ecx, 2
add edi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov esi, 0x6d4630e0
shl ecx, 2
mov eax, dword [ebp - 8]
shr ecx, 2
mov edx, dword [ebp - 0x34]
lea edi, [eax + edx + 4]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp byte [ebp - 1], cl
je 0x6d4554e4
xor edx, edx
mov eax, dword [ebp - 0x34]
inc ecx
cmp ecx, 2
mov byte [eax + ecx + 3], dl
jle 0x6d4554b2
xor eax, eax
mov ecx, 0xffffffff
lea edx, [eax*4]
mov esi, dword [ebp - 0x34]
add edx, dword [ebp - 8]
inc eax
cmp eax, 2
mov dword [edx + esi + 4], ecx
jle 0x6d4554c6
mov dword [ebp - 0x10], 8
call sym.MSVCRT20.dll___doserrno
mov esi, eax
call sym.MSVCRT20.dll__errno
lea ecx, [ebp - 0x68]
mov dword [eax], 0
lea eax, [ebp - 0x24]
mov dword [esi], 0
or byte [ebp - 0xf], 4
push eax
push ecx
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push 1
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call sym.MSVCRT20.dll_free
add esp, 4
test esi, esi
jne 0x6d45554e
push edi
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
jmp 0x6d4553e8
cmp ebx, 2
jne 0x6d45556e
push 0
call sym.MSVCRT20.dll__exit
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x6d4553e8
test ebx, ebx
jne 0x6d455595
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6d45555d
cmp ebx, 4
jne 0x6d4555ac
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
jmp 0x6d45555d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x6d45555d