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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
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 - 0x328]
call fcn.00426160
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 - 0x334], eax
xor cl, cl
call fcn.0042da20
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x63
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x330], edi
mov dword [0x5b3064], 0
mov byte [0x5b2e27], 0
mov byte [ebp - 0x329], 0
mov dword [ebp - 0x348], 0
nop word [eax + eax]
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call esi
mov dword [0x5b317c], eax
test eax, eax
je 0x42dcca
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 0x42dc90
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 - 0x33c], eax
call esi
push str.GlobalSessionEventUltraPreConnect
push 0
push 0
push 0
mov dword [ebp - 0x354], eax
call esi
push str.GlobalEndSessionEvent
push 0
push 0
push 0
mov dword [ebp - 0x358], 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 - 0x364], eax
test eax, eax
je 0x42dd4f
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x348], 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 - 0x354]
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x374], ecx
mov dword [ebp - 0x370], eax
jne 0x42e399
cmp dword [0x5b2f44], 4
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jne 0x42e399
cmp dword [ebp - 0x334], 0
push 0x3e8
push 0
je 0x42ddc7
lea eax, [ebp - 0x224]
push eax
push 3
jmp 0x42ddd0
lea eax, [ebp - 0x374]
push eax
push 2
call ecx
cmp eax, 2
ja 0x42dfb7
je 0x42dee0
sub eax, 0
je 0x42e392
sub eax, 1
jne 0x42e37e
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 0x42de19
push 0
call eax
jmp 0x42decc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42de4d
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00519d20
add esp, 8
test eax, eax
je 0x42e437
mov byte [eax], 0
push 0x569fa8
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051e70e
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051e768
push 0x597538
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051e768
push 0x59753c
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051e768
add esp, 0x30
lea eax, [ebp - 0x114]
push 1
push 0
push 0x569fa8
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 0x42e37e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42e37e
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x348]
mov dword [ebp - 0x340], 0x103
mov eax, dword [ecx]
mov dword [ebp - 0x330], eax
mov eax, dword [0x5b3064]
test eax, eax
je 0x42df6e
cmp byte [0x5b2e27], 0
jne 0x42df6e
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x340], 0x103
je 0x42df5b
push 0x3a98
push dword [0x5b3064]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42df4d
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42df62
push eax
call ebx
jmp 0x42df62
push 0x3e8
call esi
cmp dword [ebp - 0x340], 0x103
je 0x42df04
xor esi, esi
cmp byte [0x5b2e27], 0
jne 0x42df97
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 0x42df97
cmp edi, 0xffffffff
je 0x42df70
mov edi, dword [ebp - 0x330]
xor dl, dl
push 1
mov ecx, edi
call fcn.0042e460
add esp, 4
mov byte [ebp - 0x329], 1
jmp 0x42e37e
cmp eax, 0x102
jne 0x42e37e
cmp dword [ebp - 0x334], 0
je 0x42e2b6
call fcn.0042d840
test al, al
je 0x42e2b6
cmp dword [0x5b3064], 0
jne 0x42e05c
call fcn.0042d840
test al, al
je 0x42e010
push 0
mov dl, 1
xor ecx, ecx
call fcn.0042e460
add esp, 4
mov byte [ebp - 0x329], 0
xor edi, edi
mov dword [ebp - 0x330], edi
jmp 0x42e37e
or edi, 0xffffffff
xor esi, esi
cmp byte [0x5b2e27], 0
jne 0x42e03c
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 0x42e03c
cmp edi, 0xffffffff
je 0x42e015
push 0
xor dl, dl
mov dword [ebp - 0x330], edi
mov ecx, edi
call fcn.0042e460
add esp, 4
mov byte [ebp - 0x329], 0
jmp 0x42e37e
cmp byte [ebp - 0x329], 1
jne 0x42e217
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
push str.wtsapi32
mov dword [ebp - 0x36c], esi
call ebx
mov edi, eax
mov dword [ebp - 0x368], edi
test edi, edi
je 0x42e09e
push 0x59b3f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x36c], esi
xor eax, eax
mov dword [ebp - 4], 0
push str.wtsapi32
mov dword [ebp - 0x360], eax
call ebx
mov ebx, eax
mov dword [ebp - 0x35c], ebx
test ebx, ebx
je 0x42e0d4
push 0x59b418
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x360], eax
jmp 0x42e0d6
xor eax, eax
mov byte [ebp - 4], 1
test esi, esi
je 0x42e1cb
test eax, eax
je 0x42e1cb
lea eax, [ebp - 0x344]
mov dword [ebp - 0x338], 0
push eax
lea eax, [ebp - 0x338]
mov dword [ebp - 0x344], 0
push eax
push 1
xor edi, edi
push edi
push edi
call esi
test eax, eax
je 0x42e191
mov ecx, dword [ebp - 0x338]
xor ebx, ebx
cmp dword [ebp - 0x344], ebx
jbe 0x42e182
xor esi, esi
nop
test edi, edi
jne 0x42e182
push str.Console
push dword [esi + ecx + 4]
call fcn.0052bbfc
mov ecx, dword [ebp - 0x338]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x330]
jne 0x42e15a
cmp dword [esi + ecx], eax
jmp 0x42e16f
cmp dword [esi + ecx], eax
jne 0x42e176
mov eax, dword [esi + ecx + 8]
test eax, eax
je 0x42e171
cmp eax, 3
je 0x42e171
cmp eax, 2
jne 0x42e176
mov edi, 1
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 0x344]
jb 0x42e130
mov eax, dword [ebp - 0x360]
push ecx
call eax
mov ebx, dword [ebp - 0x35c]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x42e1a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x42e1aa
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x368]
test eax, eax
je 0x42e1be
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42e1f9
jmp 0x42e205
mov byte [ebp - 4], 4
test ebx, ebx
je 0x42e1de
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x42e1e4
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 5
test edi, edi
je 0x42e1f2
push edi
call ebx
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x330]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x34c], 0
push eax
push dword [0x5b3064]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42e28f
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e244
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e250
push eax
call ebx
lea eax, [ebp - 0x328]
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 - 0x334], eax
call esi
jmp 0x42e37e
cmp dword [ebp - 0x34c], 0x103
je 0x42e37e
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e244
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42e238
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
cmp edi, esi
je 0x42e2ce
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, 0xffffffff
je 0x42e37e
mov eax, dword [0x5b3064]
mov dword [ebp - 0x350], 0
test eax, eax
jne 0x42e304
push eax
xor dl, dl
mov ecx, esi
call fcn.0042e460
mov edi, esi
add esp, 4
mov dword [ebp - 0x330], edi
jmp 0x42e37e
lea ecx, [ebp - 0x350]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42e333
cmp dword [ebp - 0x350], 0x103
je 0x42e37e
push 0x3a98
push dword [0x5b3064]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e33f
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e34b
push eax
call ebx
lea eax, [ebp - 0x328]
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 - 0x334], eax
cmp byte [0x5b2e27], 0
jne 0x42e399
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42dd99
mov byte [0x5b2e27], 1
mov esi, dword [ebp - 0x33c]
test esi, esi
je 0x42e3aa
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e3eb
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5b3064]
test eax, eax
je 0x42e3cb
push eax
call ebx
mov eax, dword [0x5b3068]
test eax, eax
je 0x42e3d7
push eax
call ebx
mov dword [0x5b3064], 0
mov dword [0x5b3068], 0
test esi, esi
je 0x42e3f2
push esi
call ebx
mov eax, dword [ebp - 0x354]
test eax, eax
je 0x42e3ff
push eax
call ebx
mov eax, dword [ebp - 0x358]
test eax, eax
je 0x42e40c
push eax
call ebx
mov ecx, dword [0x5b3074]
test ecx, ecx
je 0x42e419
push ecx
call ebx
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x42e42a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x364]
test eax, eax
je 0x42e437
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.00518799
mov esp, ebp
pop ebp
ret