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

Disassembly:
push 0xc0
mov eax, 0x4f825f
call fcn.004cb654
mov ebx, ecx
push ebx
lea edx, [ebx + 0x24]
lea ecx, [ebp - 0x2c]
call fcn.0043ced5
pop ecx
and dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.00440a86
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00440d86
cmp dword [ebx + 0x14], 0
jne 0x43d177
push 0xffffffffffffff9c
pop eax
mov dword [ebx + 0xe8], eax
jmp 0x43d740
xor eax, eax
mov byte [ebp - 0x48], 0
xor edi, edi
inc eax
mov dword [ebp - 0x64], edi
cmp dword [ebx + 0x84], edi
jle 0x43d1de
and dword [ebp - 0x84], edi
mov dword [ebp - 0x80], eax
lea eax, [ebx + 0x74]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x88], 0xc
jb 0x43d1a9
mov eax, dword [eax]
push 0
push 0x80
push 4
lea ecx, [ebp - 0x88]
push ecx
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 0x48]
push 1
cmp edi, 0xffffffff
movzx eax, al
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x48], eax
push 0x44
pop esi
push esi
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.004cd440
xor eax, eax
mov dword [ebp - 0xcc], esi
mov esi, dword [ebx + 0x64]
add esp, 0xc
lea ecx, [eax + 1]
mov ax, word [ebx + 0x1c]
mov dword [ebp - 0xa0], ecx
mov word [ebp - 0x9c], ax
push 2
pop edx
test esi, esi
je 0x43d263
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cac4e
push esi
push 0
push eax
mov dword [ebp - 0xc4], eax
call fcn.004cd440
lea eax, [ebx + 0x54]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x43d24a
mov eax, dword [eax]
push eax
push esi
push dword [ebp - 0xc4]
call fcn.004dd693
mov ecx, dword [ebp - 0xa0]
add esp, 0xc
push 2
pop edx
cmp byte [ebp - 0x48], 0
je 0x43d27b
or ecx, 0x100
mov dword [ebp - 0x90], edi
mov dword [ebp - 0xa0], ecx
xor eax, eax
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cac4e
pop ecx
lea ecx, [ebx + 4]
mov dword [ebp - 0x44], eax
cmp dword [ecx + 0x14], 8
jb 0x43d2a8
mov ecx, dword [ecx]
mov edx, eax
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x43d2ac
xor esi, esi
mov dword [ebp - 0x4c], esi
cmp dword [ebx + 0x38], esi
jle 0x43d2d6
lea esi, [ebx + 0x28]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], esi
jb 0x43d2d6
mov esi, dword [esi]
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x48]
and dword [ebp - 0x54], 0
movzx eax, al
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xf4], ecx
cmp dword [ebx + 0x40], ecx
jne 0x43d5f6
cmp dword [ebx + 0xa0], ecx
jne 0x43d360
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xcc]
push eax
push esi
mov esi, dword [ebp - 0x44]
push ecx
push ecx
push dword [ebp - 0x60]
push ecx
push ecx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc4], 0
mov dword [ebx + 0xec], eax
je 0x43d648
push dword [ebp - 0xc4]
call fcn.004cac49
and dword [ebp - 0xc4], 0
pop ecx
jmp 0x43d648
lea esi, [ebx + 0x8c]
push str.__lowpriv__
mov ecx, esi
call fcn.00440986
test al, al
jne 0x43d38a
push str.__mediumpriv__
mov ecx, esi
call fcn.00440986
test al, al
je 0x43d49b
cmp dword [ebx + 0xbc], 0
jne 0x43d49b
lea eax, [ebp - 0x50]
mov esi, 0x2000000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43d64e
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
push eax
push 2
push 0
push esi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x43d493
and dword [ebp - 0x58], 0
lea edi, [ebp - 0x38]
push 6
pop ecx
mov esi, str.S_1_16_4096
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebx + 0x8c]
push str.__mediumpriv__
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00440986
test al, al
je 0x43d40f
push 6
pop ecx
mov esi, str.S_1_16_8192
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x43d488
mov eax, dword [ebp - 0x58]
push eax
mov dword [ebp - 0x78], 0x20
mov dword [ebp - 0x7c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x19
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x43d47f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4c]
xor eax, eax
push eax
push eax
push dword [ebp - 0x60]
push eax
push eax
push dword [ebp - 0x44]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xec], eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x50]
jmp 0x43d5db
and dword [ebp - 0x40], 0
cmp dword [ebx + 0xd8], 0
jne 0x43d4d6
push 0x51f4e4
lea ecx, [ebp - 0x2c]
call fcn.004408e0
xor eax, eax
lea ecx, [ebx + 0xc8]
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044341f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00440d86
lea edi, [ebx + 0xac]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x43d4e6
mov ecx, dword [edi]
lea esi, [ebx + 0xc8]
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x43d4f6
mov edx, dword [esi]
lea eax, [ebx + 0x90]
cmp dword [eax + 0x14], 8
jb 0x43d504
mov eax, dword [eax]
lea edi, [ebp - 0x40]
push edi
push 0
push 2
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
lea edi, [ebx + 0xac]
test eax, eax
je 0x43d5df
and dword [ebp - 0x5c], 0
xor eax, eax
inc eax
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0x10
test eax, eax
mov ecx, 0x410
pop eax
cmovne eax, ecx
lea ecx, [ebp - 0x2c]
push 0x51f4e4
mov dword [ebp - 0x50], eax
call fcn.004408e0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0xc4]
call fcn.004426f7
test eax, eax
jne 0x43d56e
xor esi, esi
jmp 0x43d576
cmp dword [esi + 0x14], 8
jb 0x43d576
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x43d57e
mov edi, dword [edi]
lea eax, [ebx + 0x90]
cmp dword [eax + 0x14], 8
jb 0x43d58c
mov eax, dword [eax]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, dword [ebp - 0x50]
push 0
push dword [ebp - 0x5c]
push ecx
push dword [ebp - 0x44]
xor ecx, ecx
push 0
inc ecx
push ecx
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], eax
call fcn.00440d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x5c]
mov dword [ebx + 0xec], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x43d5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xec], eax
mov esi, dword [ebp - 0x44]
jmp 0x43d648
push ecx
push dword [ebx + 0x40]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ecx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xcc]
push eax
push esi
push dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
xor eax, eax
push 0x400
push dword [ebp - 0x60]
push eax
push eax
push esi
push eax
push dword [ebx + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x40]
mov dword [ebx + 0xec], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x54], 0
jne 0x43d680
cmp byte [ebp - 0x48], 0
je 0x43d659
push dword [ebp - 0x64]
call edi
push dword [ebp - 0x44]
call fcn.004cac49
or dword [ebx + 0xe8], 0xffffffff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xf4], eax
mov eax, dword [ebx + 0xe8]
jmp 0x43d740
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0x4c], ecx
test edx, edx
je 0x43d6a9
cmp dword [ebx + 0x44], 0
je 0x43d6a9
push dword [ebx + 0x44]
push eax
push ecx
call edx
mov ecx, dword [ebp - 0x74]
add esp, 0xc
mov eax, dword [ebx + 0x20]
mov byte [ebp - 0x39], 0
test eax, eax
js 0x43d6e4
jne 0x43d71a
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov ecx, 0xffffcfc7
cmovne ecx, dword [ebp - 0x4c]
mov dword [ebx + 0xe0], ecx
mov ecx, dword [ebp - 0x74]
push ecx
call edi
push dword [ebp - 0x70]
call edi
cmp byte [ebp - 0x48], 0
je 0x43d6f7
push dword [ebp - 0x64]
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [ebx + 0xf4], eax
call fcn.004cac49
cmp byte [ebp - 0x39], 0
pop ecx
je 0x43d737
mov eax, 0xfffffed4
jmp 0x43d16c
imul eax, eax, 0x3e8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43d6bf
xor eax, eax
inc eax
mov byte [ebp - 0x39], al
jmp 0x43d6e1
and dword [ebx + 0xe8], 0
xor eax, eax
call fcn.004cb5fe
ret