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

Disassembly:
push 0x2bc
mov eax, 0x4e7ff2
call fcn.004d1301
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 0x48e092
push 0x50f4b0
lea ecx, [ebp - 0x22c]
call dword [0x4fe438]
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 0x48e0b4
push 0x50f4b0
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 0x48e0d6
push 0x516538
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 0x48e105
mov dword [ebp - 0x230], 0xfffffff9
jmp 0x48e560
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x248]
lea ebx, [ebp - 0x24c]
call fcn.0048a49a
test eax, eax
pop ecx
pop ecx
jne 0x48e132
mov dword [ebp - 0x230], 0xfffffff8
jmp 0x48e560
mov eax, dword [ebp - 0x24c]
push dword [eax]
call fcn.0048a409
test eax, eax
pop ecx
je 0x48e2ca
lea eax, [ebp - 0x240]
push eax
call fcn.0048a519
test eax, eax
pop ecx
jne 0x48e168
mov dword [ebp - 0x230], 0xfffffffe
jmp 0x48e560
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push eax
call fcn.0048a5bc
test eax, eax
pop ecx
pop ecx
jne 0x48e18f
mov dword [ebp - 0x230], 0xfffffffd
jmp 0x48e560
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 0x48e1bc
mov dword [ebp - 0x230], 0xfffffff1
jmp 0x48e560
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 0x48e20e
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 0x48e233
push str.cant_create_environment_block_n
call esi
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x48e248
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 0x48e293
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 0x48e2a7
push dword [ebp - 0x234]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x260], ebx
je 0x48e560
push dword [ebp - 0x260]
push dword [ebp - 0x23c]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
jmp 0x48e560
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.0048a375
test eax, eax
pop ecx
je 0x48e556
cmp dword [ebp - 0x238], 2
jne 0x48e4f5
cmp dword [ebp - 0x240], 6
jb 0x48e4f5
push dword [ebp - 0x248]
call fcn.0048a42a
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
xor edi, edi
cmp eax, edi
jne 0x48e340
mov dword [ebp - 0x230], 0xfffffff6
jmp 0x48e560
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x48e367
mov dword [ebp - 0x230], 0xfffffff5
jmp 0x48e560
push dword [ebp - 0x238]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x240], eax
jne 0x48e392
mov dword [ebp - 0x230], 0xfffffff3
jmp 0x48e560
lea ecx, [ebp - 0x234]
push ecx
push 2
push eax
mov dword [ebp - 0x234], edi
call esi
test eax, eax
je 0x48e4dd
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 0x48e4c5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x48e4b9
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x48e4a6
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x48e411
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 0x48e47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x48e49a
call fcn.0048e66b
test eax, eax
je 0x48e49a
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x48e45c
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 0x48e49a
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 0x48e4b0
mov dword [ebp - 0x230], 0xfffffff0
jmp 0x48e4b0
mov dword [ebp - 0x230], 0xffffffef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x48e4cf
mov dword [ebp - 0x230], 0xffffffee
jmp 0x48e4cf
mov dword [ebp - 0x230], 0xffffffed
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48e4e7
mov dword [ebp - 0x230], 0xffffffec
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48e560
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x48e50a
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 0x48e54a
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 0x48e560
mov dword [ebp - 0x230], 0xffffffeb
jmp 0x48e560
mov dword [ebp - 0x230], 0xfffffff4
xor edi, edi
cmp dword [ebp - 0x248], edi
je 0x48e576
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], edi
je 0x48e58a
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], edi
je 0x48e59f
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.00448c17
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x240]
cmp ecx, edi
je 0x48e5f9
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.0048e6ec
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
pop ecx
jae 0x48e621
lea eax, [ebp - 0x228]
mov esi, dword [ebp - 0x240]
cmp esi, edi
je 0x48e640
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 0x48e64f
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.004d1384
ret