Function at 0x42a4f0
Capabilities:
Create process on windows
Read .ini file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56948b
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x328]
call fcn.00425a60
lea eax, [ebp - 0x328]
push eax
push 0
push str.rdpmode
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor dl, dl
mov dword [ebp - 0x338], eax
xor cl, cl
call fcn.00429bc0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], 0x63
mov dword [0x5d9d20], ebx
mov byte [0x5d9ca5], bl
mov byte [ebp - 0x329], bl
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call esi
mov dword [0x5d9d38], eax
test eax, eax
je 0x42a5ba
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x5d9d38]
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x5d9ca5], bl
je 0x42a581
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.GlobalSessionEventUltra
push 0
push 0
push 0
call esi
push str.GlobalSessionEventUltraCad
push 0
push 0
push 0
mov dword [0x5d9d38], eax
call esi
push str.GlobalSessionEventUltraPreConnect
push 0
push 0
push 0
mov dword [0x5d9d10], eax
call esi
push str.GlobalEndSessionEvent
push 0
push 0
push 0
mov dword [0x5d9d34], eax
call esi
push str.GlobalSessionUltraPreConnect
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [0x5d9d0c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x5d9d14], eax
test eax, eax
je 0x42a63a
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5d9d1c], eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
mov eax, dword [0x5d9d1c]
mov ecx, dword [0x5d9d0c]
mov edx, dword [0x5d9d10]
mov dword [ebp - 0x358], eax
mov eax, dword [0x5d9d34]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0x364], edx
cmp byte [0x5d9ca5], bl
jne 0x42ac9d
cmp dword [0x5d9d44], 4
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jne 0x42ac9d
cmp dword [ebp - 0x338], 0
push 0x3e8
push 0
je 0x42a6bb
lea eax, [ebp - 0x224]
push eax
push 3
jmp 0x42a6c4
lea eax, [ebp - 0x368]
push eax
push 2
call ecx
cmp eax, 2
ja 0x42a8c0
je 0x42a7d4
sub eax, 0
je 0x42ac96
sub eax, 1
jne 0x42ac82
push str.sas.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.SendSAS
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a70d
push 0
call eax
jmp 0x42a7c0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42a741
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0053eb80
add esp, 8
test eax, eax
je 0x42ad42
mov byte [eax], 0
push 0x584fd8
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.005417f5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0054184f
push 0x5b92c8
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0054184f
push str.cad.exe
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0054184f
add esp, 0x30
lea eax, [ebp - 0x114]
push 1
push 0
push 0x584fd8
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x42ac82
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42ac82
push dword [0x5d9d38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 0x340], 0x103
mov eax, dword [ecx]
mov dword [ebp - 0x330], eax
nop dword [eax + eax]
mov eax, dword [0x5d9d20]
test eax, eax
je 0x42a86a
cmp byte [0x5d9ca5], 0
jne 0x42a86a
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x340], 0x103
je 0x42a857
push 0x3a98
push dword [0x5d9d20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5d9d20]
test eax, eax
je 0x42a849
push eax
call edi
mov eax, dword [0x5d9d24]
test eax, eax
je 0x42a85e
push eax
call edi
jmp 0x42a85e
push 0x3e8
call esi
cmp dword [ebp - 0x340], 0x103
je 0x42a800
or ebx, 0xffffffff
xor esi, esi
nop
cmp byte [0x5d9ca5], 0
jne 0x42a89c
mov eax, dword [0x5e8cd8]
test eax, eax
je 0x42a886
call eax
mov ebx, eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jg 0x42a89c
cmp ebx, 0xffffffff
je 0x42a870
mov ecx, dword [ebp - 0x330]
xor dl, dl
push 1
mov dword [ebp - 0x334], ebx
call fcn.0042a070
add esp, 4
mov byte [ebp - 0x329], 1
jmp 0x42ac82
cmp eax, 0x102
jne 0x42ac82
cmp dword [ebp - 0x338], 0
je 0x42abb0
call fcn.00429a60
test al, al
je 0x42abb0
cmp dword [0x5d9d20], 0
jne 0x42a976
call fcn.00429a60
test al, al
je 0x42a91f
push 0
mov dl, 1
xor ecx, ecx
call fcn.0042a070
add esp, 4
mov dword [ebp - 0x330], 0
mov byte [ebp - 0x329], 0
jmp 0x42ac82
or ebx, 0xffffffff
xor esi, esi
cmp byte [0x5d9ca5], 0
jne 0x42a950
mov eax, dword [0x5e8cd8]
test eax, eax
je 0x42a93a
call eax
mov ebx, eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jg 0x42a950
cmp ebx, 0xffffffff
je 0x42a924
push 0
xor dl, dl
mov dword [ebp - 0x334], ebx
mov ecx, ebx
call fcn.0042a070
add esp, 4
mov dword [ebp - 0x330], ebx
mov byte [ebp - 0x329], 0
jmp 0x42ac82
cmp byte [ebp - 0x329], 1
jne 0x42ab11
xor esi, esi
push str.wtsapi32
mov dword [ebp - 0x360], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x42a9b6
push str.WTSEnumerateSessionsA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x360], esi
xor eax, eax
mov dword [ebp - 4], 0
push str.wtsapi32
mov dword [ebp - 0x354], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x42a9f6
push str.WTSFreeMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x354], ecx
jmp 0x42a9f8
xor ecx, ecx
mov byte [ebp - 4], 1
test esi, esi
je 0x42aade
test ecx, ecx
je 0x42aade
lea eax, [ebp - 0x344]
mov dword [ebp - 0x33c], 0
push eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x344], 0
push eax
push 1
xor edi, edi
push edi
push edi
call esi
test eax, eax
je 0x42aab1
mov ecx, dword [ebp - 0x33c]
xor ebx, ebx
cmp dword [ebp - 0x344], ebx
jbe 0x42aaa2
xor esi, esi
nop dword [eax]
test edi, edi
jne 0x42aaa2
push str.Console
push dword [esi + ecx + 4]
call fcn.0054cf39
mov ecx, dword [ebp - 0x33c]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x330]
jne 0x42aa7a
cmp dword [esi + ecx], eax
jmp 0x42aa8f
cmp dword [esi + ecx], eax
jne 0x42aa96
mov eax, dword [esi + ecx + 8]
test eax, eax
je 0x42aa91
cmp eax, 3
je 0x42aa91
cmp eax, 2
jne 0x42aa96
mov edi, 1
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 0x344]
jb 0x42aa50
mov eax, dword [ebp - 0x354]
push ecx
call eax
mov ebx, dword [ebp - 0x334]
mov eax, dword [ebp - 0x350]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x42aac4
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x35c]
test eax, eax
je 0x42aad8
push eax
call esi
test edi, edi
je 0x42aaf9
jmp 0x42ab05
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x42aaeb
push eax
call esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42aaf9
push edi
call esi
push dword [0x5d9d38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x348]
mov dword [ebp - 0x348], 0
push eax
push dword [0x5d9d20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42ab89
mov eax, dword [0x5d9d20]
test eax, eax
je 0x42ab3e
push eax
call edi
mov eax, dword [0x5d9d24]
test eax, eax
je 0x42ab4a
push eax
call edi
lea eax, [ebp - 0x328]
mov dword [0x5d9d20], 0
push eax
push 0
push str.rdpmode
push str.admin
mov dword [0x5d9d24], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3e8
mov dword [ebp - 0x338], eax
call esi
jmp 0x42ac82
cmp dword [ebp - 0x348], 0x103
je 0x42ac82
mov eax, dword [0x5d9d20]
test eax, eax
je 0x42ab3e
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42ab32
mov eax, dword [0x5e8cd8]
test eax, eax
je 0x42abc3
call eax
mov ebx, eax
mov dword [ebp - 0x334], ebx
cmp dword [ebp - 0x330], ebx
je 0x42abd7
push dword [0x5d9d38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp ebx, 0xffffffff
je 0x42ac82
mov eax, dword [0x5d9d20]
mov dword [ebp - 0x34c], 0
test eax, eax
jne 0x42ac08
push eax
xor dl, dl
mov ecx, ebx
call fcn.0042a070
add esp, 4
mov dword [ebp - 0x330], ebx
jmp 0x42ac82
lea ecx, [ebp - 0x34c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42ac37
cmp dword [ebp - 0x34c], 0x103
je 0x42ac82
push 0x3a98
push dword [0x5d9d20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5d9d20]
test eax, eax
je 0x42ac43
push eax
call edi
mov eax, dword [0x5d9d24]
test eax, eax
je 0x42ac4f
push eax
call edi
lea eax, [ebp - 0x328]
mov dword [0x5d9d20], 0
push eax
push 0
push str.rdpmode
push str.admin
mov dword [0x5d9d24], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x338], eax
cmp byte [0x5d9ca5], 0
jne 0x42ac9d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42a68d
mov byte [0x5d9ca5], 1
mov eax, dword [0x5d9d38]
test eax, eax
je 0x42acb2
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x5d9d38]
mov ecx, dword [0x5d9d20]
test ecx, ecx
je 0x42acf9
push 0x3a98
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5d9d20]
test eax, eax
je 0x42acd4
push eax
call edi
mov eax, dword [0x5d9d24]
test eax, eax
je 0x42ace0
push eax
call edi
mov eax, dword [0x5d9d38]
mov dword [0x5d9d20], 0
mov dword [0x5d9d24], 0
test eax, eax
je 0x42ad00
push eax
call edi
mov edx, dword [0x5d9d10]
test edx, edx
je 0x42ad0d
push edx
call edi
mov eax, dword [0x5d9d34]
test eax, eax
je 0x42ad19
push eax
call edi
mov ecx, dword [0x5d9d0c]
test ecx, ecx
je 0x42ad26
push ecx
call edi
mov eax, dword [0x5d9d1c]
test eax, eax
je 0x42ad36
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x5d9d14]
test eax, eax
je 0x42ad42
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret