Function at 0x43fe90
Capabilities:
Create process on windows
Impersonate user
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0xb0]
push esi
push eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], esi
mov word [ebp - 0x34], si
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
call fcn.00486d70
xor eax, eax
inc eax
mov dword [ebp - 0x88], eax
mov word [ebp - 0x84], ax
xor eax, eax
add esp, 0xc
cmp word [ebx], 0x22
mov dword [ebp - 0xb4], 0x44
setne al
mov edi, eax
cmp edi, esi
je 0x43ff15
mov eax, 0x4f3e38
lea esi, [ebp - 0x38]
call fcn.0042cdeb
xor esi, esi
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0042c38c
cmp edi, esi
je 0x43ff31
push 0x4f3e38
lea eax, [ebp - 0x38]
push eax
call fcn.0042c38c
cmp dword [ebp + 8], esi
je 0x43ff50
push 0x4f0424
lea eax, [ebp - 0x38]
push eax
call fcn.0042c38c
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.0042c38c
lea eax, [ebp - 0x18]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jne 0x43ff7c
mov dword [ebp - 8], 0xfffffff9
jmp 0x440286
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
lea ebx, [ebp - 0x1c]
call fcn.00444972
test eax, eax
pop ecx
pop ecx
jne 0x43ffa1
mov dword [ebp - 8], 0xfffffff8
jmp 0x440286
mov eax, dword [ebp - 0x1c]
push dword [eax]
call fcn.0044484a
test eax, eax
pop ecx
je 0x4400ca
lea edi, [ebp - 0x14]
call fcn.00444ab8
test eax, eax
jne 0x43ffcc
mov dword [ebp - 8], 0xfffffffe
jmp 0x440286
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00444b54
test eax, eax
pop ecx
pop ecx
jne 0x43ffea
mov dword [ebp - 8], 0xfffffffd
jmp 0x440286
push dword [ebp - 0x10]
mov ebx, 0x400
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x440286
lea eax, [ebp - 0xc]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
call esi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x6c], 0x20
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x440045
push str.cant_load_user_profile_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor edi, edi
push edi
push dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x440067
push str.cant_create_environment_block_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x440073
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push edi
push dword [ebp + 8]
push ebx
push edi
push edi
push edi
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4400a2
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x4400b0
push dword [ebp + 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x50], edi
je 0x440286
push dword [ebp - 0x50]
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
jmp 0x440286
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.00444774
add esp, 0xc
test eax, eax
je 0x44027f
cmp dword [ebp + 8], 2
jne 0x440247
cmp dword [ebp - 0x10], 6
jb 0x440247
push dword [ebp - 0x18]
call fcn.0044486b
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, edi
jne 0x440124
mov dword [ebp - 8], 0xfffffff6
jmp 0x440286
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x440142
mov dword [ebp - 8], 0xfffffff5
jmp 0x440286
push dword [ebp - 0x10]
push edi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x4c], eax
jne 0x440164
mov dword [ebp - 8], 0xfffffff3
jmp 0x440286
lea ecx, [ebp + 8]
push ecx
push 2
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x440240
lea eax, [ebp - 0xc]
push eax
push 1
push 2
push edi
push 0x18b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x44023b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x44023b
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x440232
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4401cf
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [ebp - 0xc]
call ebx
cmp eax, edi
jne 0x440225
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x422
jne 0x440232
call fcn.004402bd
test eax, eax
je 0x440232
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x44020b
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [ebp - 0xc]
call ebx
cmp eax, edi
je 0x440232
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
mov dword [ebp - 8], edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [ebp + 8]
call esi
push dword [ebp - 0x4c]
call esi
jmp 0x440286
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x440253
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x440286
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
and dword [ebp - 8], edi
jmp 0x440286
mov dword [ebp - 8], 0xfffffff4
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x440292
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0xc], edi
je 0x44029c
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x1c], edi
je 0x4402aa
push dword [ebp - 0x1c]
call fcn.00486f20
pop ecx
push edi
push 1
lea esi, [ebp - 0x38]
call fcn.00407e9d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret