Function at 0x10056190
Capabilities:
Check for time delay via gettickcount
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6b91
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x54]
push esi
mov dword [ebp - 0x64], 0
lea edx, [esi + 0x24]
call fcn.10055830
add esp, 4
add eax, 4
mov dword [ebp - 4], 0
lea edi, [esi + 4]
cmp edi, eax
je 0x100561fc
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x100561f1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.10002b70
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [esi + 0x14], 0
jne 0x10056225
mov dword [esi + 0xc8], 0xffffff9c
mov eax, 0xffffff9c
jmp 0x1005697f
cmp dword [esi + 0x80], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x7c], 0
jle 0x1005629c
cmp dword [esi + 0x84], 8
lea eax, [esi + 0x70]
mov dword [ebp - 0xa0], 0xc
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 1
jb 0x10056265
mov eax, dword [eax]
push 0
push 0x80
push 4
lea ecx, [ebp - 0xa0]
push ecx
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x68]
cmp ecx, 0xffffffff
movzx eax, al
cmovne eax, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x68], eax
push 0x44
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.1008da10
mov ax, word [esi + 0x1c]
mov ecx, 1
mov word [ebp - 0xb4], ax
add esp, 0xc
mov eax, dword [esi + 0x60]
mov dword [ebp - 0xe4], 0x44
mov dword [ebp - 0xb8], ecx
lea edx, [ecx + 1]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1005632e
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008bff2
mov ecx, dword [ebp - 0x5c]
inc ecx
mov dword [ebp - 0xdc], eax
push ecx
push 0
push eax
call fcn.1008da10
lea eax, [esi + 0x50]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x1005630f
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x5c]
inc eax
push eax
push dword [ebp - 0xdc]
call fcn.100964eb
mov ecx, dword [ebp - 0xb8]
add esp, 0xc
mov edx, 2
cmp byte [ebp - 0x68], 0
je 0x10056349
mov eax, dword [ebp - 0x7c]
or ecx, 0x100
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x14]
xor ecx, ecx
inc eax
xorps xmm0, xmm0
mul edx
movups xmmword [ebp - 0x94], xmm0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008bff2
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [edi + 0x14], 8
jb 0x10056376
mov edi, dword [edi]
mov ecx, eax
sub ecx, edi
nop word [eax + eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x10056380
xor edi, edi
mov dword [ebp - 0x78], edi
cmp dword [esi + 0x38], edi
jle 0x100563ab
cmp dword [esi + 0x3c], 8
lea edi, [esi + 0x28]
mov dword [ebp - 0x78], edi
jb 0x100563ab
mov edi, dword [edi]
mov dword [ebp - 0x78], edi
mov eax, dword [ebp - 0x68]
movzx eax, al
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x70], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0xd4], 0
test eax, eax
jne 0x10056828
cmp dword [esi + 0x9c], eax
jne 0x1005643e
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xe4]
push eax
push edi
push 0
push 0
push dword [ebp - 0x5c]
push 0
push 0
push dword [ebp - 0x6c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xdc]
mov dword [esi + 0xcc], eax
test ecx, ecx
je 0x10056880
push ecx
call fcn.1008c032
add esp, 4
mov dword [ebp - 0xdc], 0
jmp 0x10056880
xor eax, eax
mov dword [ebp - 0x54], vtable.LString.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
push 0xb
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x50]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.__lowpriv__
call fcn.10002b70
cmp dword [ebp - 0x3c], 8
lea edi, [esi + 0x8c]
mov eax, 1
lea ecx, [ebp - 0x50]
cmovae ecx, dword [ebp - 0x50]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov eax, edi
jb 0x1005649b
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, dword [ebp - 0x40]
jne 0x100564c9
test edx, edx
je 0x10056544
sub eax, ecx
mov dword [ebp - 0x74], eax
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x100564c9
mov eax, dword [ebp - 0x74]
add ecx, 2
sub edx, 1
jne 0x100564b0
jmp 0x10056544
xor eax, eax
mov dword [ebp - 0x2c], vtable.LString.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xe
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.__mediumpriv__
call fcn.10002b70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x60], 3
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x1005651c
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, dword [ebp - 0x18]
jne 0x10056551
test edx, edx
je 0x10056544
sub eax, ecx
mov dword [ebp - 0x64], eax
nop dword [eax]
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x10056551
mov eax, dword [ebp - 0x64]
add ecx, 2
sub edx, 1
jne 0x10056530
cmp dword [esi + 0xb8], 0
mov byte [ebp - 0x55], 1
je 0x10056555
mov byte [ebp - 0x55], 0
test byte [ebp - 0x60], 2
je 0x10056563
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x55], 0
je 0x10056708
lea eax, [ebp - 0x64]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100567ea
lea eax, [ebp - 0x60]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x100566f8
movups xmm0, xmmword [str.S_1_16_4096]
push str.__mediumpriv__
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [0x100f10b8]
movq qword [ebp - 0x28], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
mov eax, edi
cmovae ecx, dword [ebp - 0x50]
cmp dword [edi + 0x14], 8
jb 0x10056602
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, dword [ebp - 0x40]
jne 0x1005662d
test edx, edx
je 0x10056627
sub eax, ecx
mov dword [ebp - 0x80], eax
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x1005662d
mov eax, dword [ebp - 0x80]
add ecx, 2
sub edx, 1
jne 0x10056613
mov byte [ebp - 0x55], 1
jmp 0x10056631
mov byte [ebp - 0x55], 0
lea ecx, [ebp - 0x54]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x55], 0
je 0x10056657
movups xmm0, xmmword [str.S_1_16_8192]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [0x100f10d0]
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x100566e3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x80], 0
push eax
mov dword [ebp - 0x80], 0x20
mov dword [ebp - 0x84], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x84]
push eax
push 0x19
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x100566da
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0x78]
push 0
push 0
push dword [ebp - 0x5c]
push 0
push 0
push dword [ebp - 0x6c]
push 0
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xcc], eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x64]
call edi
jmp 0x10056886
push dword [ebp - 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10056886
cmp dword [esi + 0xbc], 8
lea ecx, [esi + 0xa8]
jb 0x1005671d
mov ecx, dword [esi + 0xa8]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10056727
mov eax, dword [edi]
lea edx, [ebp - 0x5c]
push edx
push 0
push 2
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x100567de
push 1
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100567c2
cmp dword [esi + 0xbc], 8
lea eax, [esi + 0xa8]
jb 0x10056765
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x1005676d
mov edi, dword [edi]
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
push dword [ebp - 0x78]
push dword [ebp - 0x64]
push 0x400
push dword [ebp - 0x6c]
push 0
push 1
push eax
push 0x100eeb18
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
mov dword [esi + 0xcc], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10056886
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xcc], eax
call edi
jmp 0x10056886
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xcc], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x68], 0
je 0x100567fb
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x6c]
call fcn.1008c032
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
mov dword [esi + 0xc8], 0xffffffff
call eax
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0xc8]
jmp 0x1005697f
push 0
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xe4]
push eax
push edi
push dword [ebp - 0x60]
push 0x430
push dword [ebp - 0x5c]
push 0
push 0
push dword [ebp - 0x6c]
push 0
push dword [esi + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x60]
mov dword [esi + 0xcc], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x100567f0
mov edx, dword [esi + 0x68]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
mov dword [esi + 0xc4], eax
mov dword [esi + 0x48], ecx
test edx, edx
je 0x100568c1
mov edi, dword [esi + 0x44]
test edi, edi
je 0x100568c1
push edi
push eax
push ecx
call edx
mov ecx, dword [ebp - 0x94]
add esp, 0xc
mov eax, dword [esi + 0x20]
mov byte [ebp - 0x55], 0
test eax, eax
js 0x10056909
jne 0x10056954
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov ecx, 0xffffcfc7
cmovne ecx, dword [ebp - 0x5c]
mov dword [esi + 0xc0], ecx
mov ecx, dword [ebp - 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
push dword [ebp - 0x90]
call edi
cmp byte [ebp - 0x68], 0
je 0x10056925
push dword [ebp - 0x7c]
call edi
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
push dword [ebp - 0x6c]
mov dword [esi + 0xd4], eax
call fcn.1008c032
add esp, 4
cmp byte [ebp - 0x55], 0
je 0x10056973
mov dword [esi + 0xc8], 0xfffffed4
mov eax, 0xfffffed4
jmp 0x1005697f
imul eax, eax, 0x3e8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100568db
mov byte [ebp - 0x55], 1
jmp 0x10056903
mov dword [esi + 0xc8], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret