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

Disassembly:
push 0x2bc
mov eax, 0x49c90f
call fcn.00487961
mov esi, ecx
lea ecx, [ebp - 0x22c]
mov ebx, edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x25c], ecx
lea edi, [ebp - 0x258]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
push ecx
lea eax, [ebp - 0x2c4]
push eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x23c], ecx
call sub.MSVCR80.dll_memset
xor eax, eax
inc eax
mov dword [ebp - 0x29c], eax
mov word [ebp - 0x298], ax
xor eax, eax
add esp, 0xc
cmp word [esi], 0x22
mov dword [ebp - 0x2c8], 0x44
setne al
mov edi, eax
test edi, edi
je 0x468654
push 0x4b1258
lea ecx, [ebp - 0x22c]
call dword [0x4a9398]
push esi
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
test edi, edi
je 0x468676
push 0x4b1258
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
test ebx, ebx
je 0x468698
push 0x4b125c
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebx
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [ebp - 0x248]
push eax
mov edi, 0xf01ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
test eax, eax
jne 0x4686c7
mov dword [ebp - 0x230], 0xfffffff9
jmp 0x468b22
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x248]
lea ebx, [ebp - 0x24c]
call fcn.00466a49
test eax, eax
pop ecx
pop ecx
jne 0x4686f4
mov dword [ebp - 0x230], 0xfffffff8
jmp 0x468b22
mov eax, dword [ebp - 0x24c]
push dword [eax]
call fcn.004669b8
test eax, eax
pop ecx
je 0x46888c
lea eax, [ebp - 0x240]
push eax
call fcn.00466ac8
test eax, eax
pop ecx
jne 0x46872a
mov dword [ebp - 0x230], 0xfffffffe
jmp 0x468b22
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push eax
call fcn.00466b6b
test eax, eax
pop ecx
pop ecx
jne 0x468751
mov dword [ebp - 0x230], 0xfffffffd
jmp 0x468b22
push dword [ebp - 0x238]
xor ebx, ebx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x238], eax
jne 0x46877e
mov dword [ebp - 0x230], 0xfffffff1
jmp 0x468b22
lea ecx, [ebp - 0x23c]
push ecx
push edi
push eax
call esi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x278]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x27c], 0x20
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jne 0x4687d0
push str.cant_load_user_profile_n
call esi
push ebx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x234], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, ebx
jne 0x4687f5
push str.cant_create_environment_block_n
call esi
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x46880a
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x2c8]
push ecx
push ebx
push dword [ebp - 0x234]
push 0x400
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, ebx
je 0x468855
push dword [ebp - 0x258]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x25c]
call esi
mov dword [ebp - 0x230], ebx
cmp dword [ebp - 0x234], ebx
je 0x468869
push dword [ebp - 0x234]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x260], ebx
je 0x468b22
push dword [ebp - 0x260]
push dword [ebp - 0x23c]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
jmp 0x468b22
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
lea ebx, [ebp - 0x240]
lea edi, [ebp - 0x238]
call fcn.00466924
test eax, eax
pop ecx
je 0x468b18
cmp dword [ebp - 0x238], 2
jne 0x468ab7
cmp dword [ebp - 0x240], 6
jb 0x468ab7
push dword [ebp - 0x248]
call fcn.004669d9
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
xor edi, edi
cmp eax, edi
jne 0x468902
mov dword [ebp - 0x230], 0xfffffff6
jmp 0x468b22
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x468929
mov dword [ebp - 0x230], 0xfffffff5
jmp 0x468b22
push dword [ebp - 0x238]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x240], eax
jne 0x468954
mov dword [ebp - 0x230], 0xfffffff3
jmp 0x468b22
lea ecx, [ebp - 0x234]
push ecx
push 2
push eax
mov dword [ebp - 0x234], edi
call esi
test eax, eax
je 0x468a9f
lea eax, [ebp - 0x23c]
push eax
push 1
push 2
push edi
push 0x18b
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x468a87
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x468a7b
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x468a68
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x4689d3
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x2c8]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [ebp - 0x23c]
call esi
cmp eax, edi
jne 0x468a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x468a5c
call fcn.00468c2d
test eax, eax
je 0x468a5c
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x468a1e
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x2c8]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [ebp - 0x23c]
call esi
cmp eax, edi
je 0x468a5c
push dword [ebp - 0x258]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x25c]
call esi
mov dword [ebp - 0x230], edi
jmp 0x468a72
mov dword [ebp - 0x230], 0xfffffff0
jmp 0x468a72
mov dword [ebp - 0x230], 0xffffffef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x468a91
mov dword [ebp - 0x230], 0xffffffee
jmp 0x468a91
mov dword [ebp - 0x230], 0xffffffed
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x468aa9
mov dword [ebp - 0x230], 0xffffffec
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x468b22
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x468acc
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x25c]
push ecx
xor edi, edi
lea ecx, [ebp - 0x2c8]
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]
cmp eax, edi
je 0x468b0c
push dword [ebp - 0x258]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x25c]
call esi
mov dword [ebp - 0x230], edi
jmp 0x468b22
mov dword [ebp - 0x230], 0xffffffeb
jmp 0x468b22
mov dword [ebp - 0x230], 0xfffffff4
xor edi, edi
cmp dword [ebp - 0x248], edi
je 0x468b38
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], edi
je 0x468b4c
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], edi
je 0x468b61
push dword [ebp - 0x24c]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push 0x1fe
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [ebp - 0x230]
lea eax, [ebp - 0x210]
push str.from1ver0.3errcode_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [ebp - 0x244]
call fcn.00448a6b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x240]
cmp ecx, edi
je 0x468bbb
mov eax, dword [ecx]
push str.duba_createprocess_by_svc
call dword [eax + 0xc]
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x244]
call fcn.00468cae
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
pop ecx
jae 0x468be3
lea eax, [ebp - 0x228]
mov esi, dword [ebp - 0x240]
cmp esi, edi
je 0x468c02
mov edx, dword [esi]
push eax
push str.cmdline
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp esi, edi
mov byte [ebp - 4], 0
je 0x468c11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x230]
call fcn.004879e4
ret