Function at 0x421dc2
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push 0xc4
mov eax, 0x481bf4
call fcn.00466686
lea eax, [ebx + 0x28]
push eax
mov edx, ebx
lea ecx, [ebp - 0x30]
call fcn.00421b56
pop ecx
xor edi, edi
mov esi, ebx
mov dword [ebp - 4], edi
call fcn.00424f31
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042523a
cmp dword [ebx + 0x18], edi
jne 0x421e0b
push 0xffffffffffffff9c
pop eax
mov dword [ebx + 0x104], eax
jmp 0x4223a1
mov eax, dword [ebx + 0x94]
cmp eax, edi
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x60], edi
jle 0x421e61
push edi
push 0x80
push 4
lea eax, [ebp - 0x84]
push eax
push 7
push 0x40000000
lea eax, [ebx + 0x7c]
mov dword [ebp - 0x84], 0xc
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 1
call fcn.00425210
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x421e61
mov byte [ebp - 0x39], 1
push 0x44
pop esi
push esi
lea eax, [ebp - 0xd0]
push edi
push eax
call fcn.00467850
mov ax, word [ebx + 0x20]
mov word [ebp - 0xa0], ax
mov eax, dword [ebx + 0x70]
add esp, 0xc
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xa4], 1
cmp eax, edi
je 0x421edb
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e8ec
pop ecx
push esi
push 0
push eax
mov dword [ebp - 0xc8], eax
call fcn.00467850
add esp, 0xc
lea eax, [ebx + 0x58]
call fcn.00425210
push eax
push esi
push dword [ebp - 0xc8]
call fcn.004601d9
add esp, 0xc
cmp byte [ebp - 0x39], 0
je 0x421ef4
mov eax, dword [ebp - 0x60]
or dword [ebp - 0xa4], 0x100
mov dword [ebp - 0x94], eax
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e8ec
mov esi, eax
pop ecx
mov eax, ebx
mov dword [ebp - 0x5c], esi
call fcn.00425210
mov edx, esi
movzx ecx, word [eax]
inc eax
mov word [edx], cx
inc eax
inc edx
inc edx
test cx, cx
jne 0x421f24
xor edi, edi
cmp dword [ebx + 0x40], edi
mov dword [ebp - 0x54], edi
jle 0x421f48
lea eax, [ebx + 0x28]
call fcn.00425210
mov dword [ebp - 0x54], eax
cmp byte [ebp - 0x39], 0
mov dword [ebp - 0x58], edi
je 0x421f58
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x50], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x10c], eax
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x110], edi
cmp eax, edi
jne 0x422250
cmp dword [ebx + 0xb4], edi
jne 0x421fcf
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x54]
push edi
push edi
push dword [ebp - 0x58]
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
cmp dword [ebp - 0xc8], edi
je 0x42229d
push dword [ebp - 0xc8]
call fcn.004602fe
pop ecx
mov dword [ebp - 0xc8], edi
jmp 0x42229d
lea esi, [ebx + 0x9c]
mov ecx, 0x48d030
mov eax, esi
call fcn.00424e90
test al, al
jne 0x421ff9
mov ecx, str.__mediumpriv__
mov eax, esi
call fcn.00424e90
test al, al
je 0x422112
cmp dword [ebx + 0xd4], edi
jne 0x422112
lea eax, [ebp - 0x48]
push eax
mov esi, 0x2000000
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4222a2
lea eax, [ebp - 0x40]
push eax
push 1
push 2
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42210a
mov dword [ebp - 0x4c], edi
push 6
pop ecx
xor eax, eax
mov esi, str.S_1_16_4096
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, str.__mediumpriv__
lea eax, [ebx + 0x9c]
call fcn.00424e90
xor esi, esi
test al, al
je 0x422083
xor eax, eax
movzx ecx, word [eax + str.S_1_16_8192]
mov word [ebp + eax - 0x38], cx
inc eax
inc eax
cmp cx, si
jne 0x422070
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x4220ff
xor eax, eax
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4c]
push eax
mov dword [ebp - 0x74], 0x20
mov dword [ebp - 0x78], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x78]
push eax
push 0x19
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4220f6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x54]
push esi
push esi
push dword [ebp - 0x58]
push esi
push esi
push dword [ebp - 0x5c]
push esi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push dword [ebp - 0x48]
jmp 0x42223a
mov dword [ebp - 0x4c], edi
cmp dword [ebx + 0xf4], edi
jne 0x42214c
push 0x48bc00
lea eax, [ebp - 0x30]
push eax
call fcn.00424e0d
lea esi, [ebx + 0xdc]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.00424f31
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042523a
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea eax, [ebx + 0xbc]
push 2
lea esi, [ebx + 0xdc]
call fcn.00425210
push eax
mov eax, esi
call fcn.00425210
push eax
lea eax, [ebx + 0x9c]
call fcn.00425210
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x422242
push 1
push dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], 0x10
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4221ab
mov dword [ebp - 0x48], 0x410
push 0x48bc00
lea eax, [ebp - 0x30]
push eax
call fcn.00424e0d
push edi
lea eax, [ebp - 0x30]
mov edx, esi
mov dword [ebp - 4], 2
call fcn.00426993
test eax, eax
jne 0x4221d3
xor ecx, ecx
jmp 0x4221dc
mov eax, esi
call fcn.00425210
mov ecx, eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
push edi
push dword [ebp - 0x40]
lea eax, [ebx + 0xbc]
push dword [ebp - 0x48]
push dword [ebp - 0x5c]
push edi
push 1
call fcn.00425210
push eax
push ecx
lea eax, [ebx + 0x9c]
call fcn.00425210
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x50], eax
call fcn.0042523a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x40]
mov dword [ebx + 0x108], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42229d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
jmp 0x42229d
push edi
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x40]
push 0x400
push dword [ebp - 0x58]
push edi
push edi
push esi
push edi
push dword [ebx + 0x48]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x40]
mov dword [ebx + 0x108], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x50], edi
jne 0x4222d6
cmp byte [ebp - 0x39], 0
je 0x4222b1
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5c]
call fcn.004602fe
lea esi, [ebx + 0x104]
or dword [esi], 0xffffffff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x110], eax
mov eax, dword [esi]
jmp 0x4223a1
mov eax, dword [ebx + 0x78]
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x70]
mov dword [ebx + 0x100], edx
mov dword [ebx + 0x54], esi
cmp eax, edi
je 0x4222fb
mov ecx, dword [ebx + 0x4c]
cmp ecx, edi
je 0x4222fb
push ecx
push edx
push esi
call eax
add esp, 0xc
mov eax, dword [ebx + 0x24]
cmp eax, edi
mov byte [ebp - 0x41], 0
jl 0x422359
jne 0x422332
push 0xffffffffffffffff
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x48], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42234f
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0xfc], eax
jmp 0x422359
imul eax, eax, 0x3e8
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422313
mov byte [ebp - 0x41], 1
jmp 0x422359
mov dword [ebx + 0xfc], 0xffffcfc7
push dword [ebp - 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6c]
call esi
cmp byte [ebp - 0x39], 0
je 0x422374
push dword [ebp - 0x60]
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x5c]
mov dword [ebx + 0x110], eax
call fcn.004602fe
cmp byte [ebp - 0x41], 0
pop ecx
je 0x422399
mov eax, 0xfffffed4
jmp 0x421e00
mov dword [ebx + 0x104], edi
xor eax, eax
call fcn.00466709
ret