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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x5b0008]
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 - 0x338]
call fcn.00426250
lea eax, [ebp - 0x338]
push eax
push 0
push str.rdpmode
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor dl, dl
mov dword [ebp - 0x344], eax
xor cl, cl
call fcn.0042db40
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x63
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x340], edi
mov dword [0x5b3064], 0
mov byte [0x5b2e27], 0
mov byte [ebp - 0x339], 0
mov dword [ebp - 0x358], 0
nop word [eax + eax]
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call esi
mov dword [0x5b317c], eax
test eax, eax
je 0x42ddea
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x5b317c]
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x5b2e27], 0
je 0x42ddb0
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 [ebp - 0x34c], eax
call esi
push str.GlobalSessionEventUltraPreConnect
push 0
push 0
push 0
mov dword [ebp - 0x364], eax
call esi
push str.GlobalEndSessionEvent
push 0
push 0
push 0
mov dword [ebp - 0x368], eax
call esi
push str.GlobalSessionUltraPreConnect
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [0x5b3074], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x374], eax
test eax, eax
je 0x42de6f
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x358], eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
cmp byte [0x5b2e27], 0
mov ecx, dword [0x5b3074]
mov eax, dword [ebp - 0x364]
mov edx, dword [ebp - 0x368]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x384], ecx
mov dword [ebp - 0x380], eax
jne 0x42e4c6
cmp dword [0x5b2f44], 4
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jne 0x42e4c6
cmp dword [ebp - 0x344], 0
push 0x3e8
push 0
je 0x42dee7
lea eax, [ebp - 0x22c]
push eax
push 3
jmp 0x42def0
lea eax, [ebp - 0x384]
push eax
push 2
call ecx
cmp eax, 2
ja 0x42e0e7
je 0x42e009
sub eax, 0
je 0x42e4bf
sub eax, 1
jne 0x42e4ab
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 0x42df39
push 0
call eax
jmp 0x42dff5
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42df6d
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.0051a9e0
add esp, 8
test eax, eax
je 0x42e564
mov byte [eax], 0
push 0x569fe8
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.0051f3ce
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.0051f428
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x597578
push 0x104
push eax
call fcn.0051f428
add esp, 0xc
lea eax, [ebp - 0x118]
push str.cad.exe
push 0x104
push eax
call fcn.0051f428
add esp, 0xc
lea eax, [ebp - 0x118]
push 1
push 0
push 0x569fe8
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 0x42e4ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42e4ab
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 0x350], 0x103
mov eax, dword [ecx]
mov dword [ebp - 0x340], eax
nop dword [eax]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e09a
cmp byte [0x5b2e27], 0
jne 0x42e09a
lea ecx, [ebp - 0x350]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x350], 0x103
je 0x42e087
push 0x3a98
push dword [0x5b3064]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e079
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e08e
push eax
call ebx
jmp 0x42e08e
push 0x3e8
call esi
cmp dword [ebp - 0x350], 0x103
je 0x42e030
xor esi, esi
nop dword [eax]
cmp byte [0x5b2e27], 0
jne 0x42e0c7
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0x3e8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jg 0x42e0c7
cmp edi, 0xffffffff
je 0x42e0a0
mov edi, dword [ebp - 0x340]
xor dl, dl
push 1
mov ecx, edi
call fcn.0042e580
add esp, 4
mov byte [ebp - 0x339], 1
jmp 0x42e4ab
cmp eax, 0x102
jne 0x42e4ab
cmp dword [ebp - 0x344], 0
je 0x42e3e6
call fcn.0042d960
test al, al
je 0x42e3e6
cmp dword [0x5b3064], 0
jne 0x42e18c
call fcn.0042d960
test al, al
je 0x42e140
push 0
mov dl, 1
xor ecx, ecx
call fcn.0042e580
add esp, 4
mov byte [ebp - 0x339], 0
xor edi, edi
mov dword [ebp - 0x340], edi
jmp 0x42e4ab
or edi, 0xffffffff
xor esi, esi
cmp byte [0x5b2e27], 0
jne 0x42e16c
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0x3e8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jg 0x42e16c
cmp edi, 0xffffffff
je 0x42e145
push 0
xor dl, dl
mov dword [ebp - 0x340], edi
mov ecx, edi
call fcn.0042e580
add esp, 4
mov byte [ebp - 0x339], 0
jmp 0x42e4ab
cmp byte [ebp - 0x339], 1
jne 0x42e347
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
push str.wtsapi32
mov dword [ebp - 0x37c], esi
call ebx
mov edi, eax
mov dword [ebp - 0x378], edi
test edi, edi
je 0x42e1ce
push 0x59b46c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x37c], esi
xor eax, eax
mov dword [ebp - 4], 0
push str.wtsapi32
mov dword [ebp - 0x370], eax
call ebx
mov ebx, eax
mov dword [ebp - 0x36c], ebx
test ebx, ebx
je 0x42e204
push 0x59b490
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x370], eax
jmp 0x42e206
xor eax, eax
mov byte [ebp - 4], 1
test esi, esi
je 0x42e2fb
test eax, eax
je 0x42e2fb
lea eax, [ebp - 0x354]
mov dword [ebp - 0x348], 0
push eax
lea eax, [ebp - 0x348]
mov dword [ebp - 0x354], 0
push eax
push 1
xor edi, edi
push edi
push edi
call esi
test eax, eax
je 0x42e2c1
mov ecx, dword [ebp - 0x348]
xor ebx, ebx
cmp dword [ebp - 0x354], ebx
jbe 0x42e2b2
xor esi, esi
nop word [eax + eax]
test edi, edi
jne 0x42e2b2
push str.Console
push dword [esi + ecx + 4]
call fcn.0052c8bc
mov ecx, dword [ebp - 0x348]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x340]
jne 0x42e28a
cmp dword [esi + ecx], eax
jmp 0x42e29f
cmp dword [esi + ecx], eax
jne 0x42e2a6
mov eax, dword [esi + ecx + 8]
test eax, eax
je 0x42e2a1
cmp eax, 3
je 0x42e2a1
cmp eax, 2
jne 0x42e2a6
mov edi, 1
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 0x354]
jb 0x42e260
mov eax, dword [ebp - 0x370]
push ecx
call eax
mov ebx, dword [ebp - 0x36c]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x42e2d4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x42e2da
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x378]
test eax, eax
je 0x42e2ee
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42e329
jmp 0x42e335
mov byte [ebp - 4], 4
test ebx, ebx
je 0x42e30e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x42e314
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 5
test edi, edi
je 0x42e322
push edi
call ebx
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x340]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x35c], 0
push eax
push dword [0x5b3064]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42e3bf
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e374
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e380
push eax
call ebx
lea eax, [ebp - 0x338]
mov dword [0x5b3064], 0
push eax
push 0
push str.rdpmode
push str.admin
mov dword [0x5b3068], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3e8
mov dword [ebp - 0x344], eax
call esi
jmp 0x42e4ab
cmp dword [ebp - 0x35c], 0x103
je 0x42e4ab
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e374
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42e368
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
cmp edi, esi
je 0x42e3fe
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, 0xffffffff
je 0x42e4ab
mov eax, dword [0x5b3064]
mov dword [ebp - 0x360], 0
test eax, eax
jne 0x42e431
push eax
xor dl, dl
mov ecx, esi
call fcn.0042e580
mov edi, esi
add esp, 4
mov dword [ebp - 0x340], edi
jmp 0x42e4ab
lea ecx, [ebp - 0x360]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42e460
cmp dword [ebp - 0x360], 0x103
je 0x42e4ab
push 0x3a98
push dword [0x5b3064]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e46c
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e478
push eax
call ebx
lea eax, [ebp - 0x338]
mov dword [0x5b3064], 0
push eax
push 0
push str.rdpmode
push str.admin
mov dword [0x5b3068], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x344], eax
cmp byte [0x5b2e27], 0
jne 0x42e4c6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42deb9
mov byte [0x5b2e27], 1
mov esi, dword [ebp - 0x34c]
test esi, esi
je 0x42e4d7
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e518
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e4f8
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e504
push eax
call ebx
mov dword [0x5b3064], 0
mov dword [0x5b3068], 0
test esi, esi
je 0x42e51f
push esi
call ebx
mov eax, dword [ebp - 0x364]
test eax, eax
je 0x42e52c
push eax
call ebx
mov eax, dword [ebp - 0x368]
test eax, eax
je 0x42e539
push eax
call ebx
mov ecx, dword [0x5b3074]
test ecx, ecx
je 0x42e546
push ecx
call ebx
mov eax, dword [ebp - 0x358]
test eax, eax
je 0x42e557
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x374]
test eax, eax
je 0x42e564
push eax
call ebx
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.00519459
mov esp, ebp
pop ebp
ret