Function at 0x43ff51
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.004857c0
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 0x43ffd6
mov eax, 0x4ef940
lea esi, [ebp - 0x38]
call fcn.0042c8b0
xor esi, esi
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0042be63
cmp edi, esi
je 0x43fff2
push 0x4ef940
lea eax, [ebp - 0x38]
push eax
call fcn.0042be63
cmp dword [ebp + 8], esi
je 0x440011
push 0x4ebf24
lea eax, [ebp - 0x38]
push eax
call fcn.0042be63
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.0042be63
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 0x44003d
mov dword [ebp - 8], 0xfffffff9
jmp 0x440347
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
lea ebx, [ebp - 0x1c]
call fcn.00444a23
test eax, eax
pop ecx
pop ecx
jne 0x440062
mov dword [ebp - 8], 0xfffffff8
jmp 0x440347
mov eax, dword [ebp - 0x1c]
push dword [eax]
call fcn.004448fb
test eax, eax
pop ecx
je 0x44018b
lea edi, [ebp - 0x14]
call fcn.00444b69
test eax, eax
jne 0x44008d
mov dword [ebp - 8], 0xfffffffe
jmp 0x440347
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00444c05
test eax, eax
pop ecx
pop ecx
jne 0x4400ab
mov dword [ebp - 8], 0xfffffffd
jmp 0x440347
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 0x440347
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 0x440106
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 0x440128
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 0x440134
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 0x440163
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x440171
push dword [ebp + 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x50], edi
je 0x440347
push dword [ebp - 0x50]
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
jmp 0x440347
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.00444825
add esp, 0xc
test eax, eax
je 0x440340
cmp dword [ebp + 8], 2
jne 0x440308
cmp dword [ebp - 0x10], 6
jb 0x440308
push dword [ebp - 0x18]
call fcn.0044491c
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, edi
jne 0x4401e5
mov dword [ebp - 8], 0xfffffff6
jmp 0x440347
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x440203
mov dword [ebp - 8], 0xfffffff5
jmp 0x440347
push dword [ebp - 0x10]
push edi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x4c], eax
jne 0x440225
mov dword [ebp - 8], 0xfffffff3
jmp 0x440347
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 0x440301
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 0x4402fc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4402fc
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x4402f3
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x440290
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 0x4402e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x422
jne 0x4402f3
call fcn.0044037e
test eax, eax
je 0x4402f3
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4402cc
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 0x4402f3
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 0x440347
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x440314
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 0x440347
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
and dword [ebp - 8], edi
jmp 0x440347
mov dword [ebp - 8], 0xfffffff4
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x440353
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0xc], edi
je 0x44035d
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x1c], edi
je 0x44036b
push dword [ebp - 0x1c]
call fcn.00485474
pop ecx
push edi
push 1
lea esi, [ebp - 0x38]
call fcn.00407c5b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret