Function at 0x4104c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040fb80
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x22c], 0x63
mov dword [0x4ef1f8], ebx
mov byte [ebp - 0x219], bl
call fcn.00410450
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.GlobalSessionEventUltra
push ebx
push ebx
push ebx
call esi
push str.GlobalSessionEventUltraCad
push ebx
push ebx
push ebx
mov dword [0x544718], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
mov dword [0x54471c], eax
call esi
mov eax, dword [0x544734]
mov ecx, dword [0x54471c]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], ecx
jmp 0x410552
xor ebx, ebx
cmp dword [0x4eede0], 4
jne 0x41080b
push 0x3e8
push ebx
lea edx, [ebp - 0x234]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x41080b
dec eax
je 0x4106f0
sub eax, 0x101
jne 0x410552
mov eax, dword [ebp - 0x224]
inc eax
mov dword [ebp - 0x224], eax
cmp eax, 0x1e
jne 0x4105a2
mov dword [ebp - 0x224], ebx
mov eax, dword [0x54489c]
cmp eax, ebx
je 0x4105b5
call eax
mov dword [ebp - 0x220], eax
mov edi, eax
cmp dword [ebp - 0x22c], edi
je 0x4105c9
mov eax, dword [0x544718]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp edi, 0xffffffff
je 0x410552
mov eax, dword [0x4ef1f8]
mov dword [ebp - 0x228], ebx
cmp eax, ebx
jne 0x410611
push 0x3e8
call esi
cmp byte [ebp - 0x219], 0
je 0x4106d7
push 0x7d0
call esi
mov eax, edi
call fcn.00410140
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x22c], edi
jmp 0x410552
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4106a0
cmp dword [ebp - 0x228], 0x103
je 0x41068e
push 0x3e8
call esi
cmp byte [ebp - 0x219], 0
je 0x410646
push 0xfa0
call esi
mov edx, dword [0x4ef1f8]
push 0x3a98
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4ef1f8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x4ef1fc]
push ecx
call esi
mov eax, edi
call fcn.00410140
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x22c], edi
jmp 0x410552
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x22c], edi
jmp 0x410552
push 0x3e8
call esi
cmp byte [ebp - 0x219], 0
je 0x4106b7
push 0xfa0
call esi
mov eax, dword [0x4ef1f8]
cmp eax, ebx
je 0x4106c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4ef1fc]
cmp eax, ebx
je 0x4106d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00410140
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x22c], edi
jmp 0x410552
push str.sas.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.SendSAS
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410716
push 0
call eax
jmp 0x4107f7
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41074a
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004a9130
add esp, 8
test eax, eax
je 0x41086e
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 0x110], 0
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410760
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410770
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x110]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410790
mov cx, word [0x4ce6f4]
lea eax, [ebp - 0x110]
mov word [edi], cx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4107b0
mov edx, dword [str.cad.exe]
mov ecx, dword [0x4d6978]
push 1
push 0
mov dword [eax], edx
push 0x4ce44c
lea edx, [ebp - 0x110]
push edx
push str.open
mov dword [eax + 4], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
je 0x410550
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x410550
mov eax, dword [0x544718]
cmp eax, ebx
je 0x41081b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x4ef1f8]
cmp eax, ebx
je 0x410850
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4ef1f8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x410842
push eax
call esi
mov eax, dword [0x4ef1fc]
cmp eax, ebx
je 0x410856
push eax
call esi
jmp 0x410856
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x544718]
cmp eax, ebx
je 0x410862
push eax
call esi
mov eax, dword [0x54471c]
cmp eax, ebx
je 0x41086e
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret