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

Disassembly:
push 0x2bc
mov eax, 0x4ee93c
call fcn.004d76d5
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 0x49394a
push 0x50e590
lea ecx, [ebp - 0x22c]
call dword [0x506424]
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 0x49396c
push 0x50e590
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 0x49398e
push 0x50e594
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 0x4939bd
mov dword [ebp - 0x230], 0xfffffff9
jmp 0x493e18
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x248]
lea ebx, [ebp - 0x24c]
call fcn.0048fcad
test eax, eax
pop ecx
pop ecx
jne 0x4939ea
mov dword [ebp - 0x230], 0xfffffff8
jmp 0x493e18
mov eax, dword [ebp - 0x24c]
push dword [eax]
call fcn.0048fc1c
test eax, eax
pop ecx
je 0x493b82
lea eax, [ebp - 0x240]
push eax
call fcn.0048fd2c
test eax, eax
pop ecx
jne 0x493a20
mov dword [ebp - 0x230], 0xfffffffe
jmp 0x493e18
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push eax
call fcn.0048fdcf
test eax, eax
pop ecx
pop ecx
jne 0x493a47
mov dword [ebp - 0x230], 0xfffffffd
jmp 0x493e18
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 0x493a74
mov dword [ebp - 0x230], 0xfffffff1
jmp 0x493e18
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 0x493ac6
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 0x493aeb
push str.cant_create_environment_block_n
call esi
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x493b00
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 0x493b4b
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 0x493b5f
push dword [ebp - 0x234]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x260], ebx
je 0x493e18
push dword [ebp - 0x260]
push dword [ebp - 0x23c]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
jmp 0x493e18
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.0048fb88
test eax, eax
pop ecx
je 0x493e0e
cmp dword [ebp - 0x238], 2
jne 0x493dad
cmp dword [ebp - 0x240], 6
jb 0x493dad
push dword [ebp - 0x248]
call fcn.0048fc3d
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
xor edi, edi
cmp eax, edi
jne 0x493bf8
mov dword [ebp - 0x230], 0xfffffff6
jmp 0x493e18
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x493c1f
mov dword [ebp - 0x230], 0xfffffff5
jmp 0x493e18
push dword [ebp - 0x238]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x240], eax
jne 0x493c4a
mov dword [ebp - 0x230], 0xfffffff3
jmp 0x493e18
lea ecx, [ebp - 0x234]
push ecx
push 2
push eax
mov dword [ebp - 0x234], edi
call esi
test eax, eax
je 0x493d95
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 0x493d7d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x493d71
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x493d5e
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x493cc9
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 0x493d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x493d52
call fcn.00493f23
test eax, eax
je 0x493d52
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x493d14
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 0x493d52
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 0x493d68
mov dword [ebp - 0x230], 0xfffffff0
jmp 0x493d68
mov dword [ebp - 0x230], 0xffffffef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x493d87
mov dword [ebp - 0x230], 0xffffffee
jmp 0x493d87
mov dword [ebp - 0x230], 0xffffffed
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x493d9f
mov dword [ebp - 0x230], 0xffffffec
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x493e18
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x493dc2
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 0x493e02
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 0x493e18
mov dword [ebp - 0x230], 0xffffffeb
jmp 0x493e18
mov dword [ebp - 0x230], 0xfffffff4
xor edi, edi
cmp dword [ebp - 0x248], edi
je 0x493e2e
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], edi
je 0x493e42
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], edi
je 0x493e57
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.0044a4cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x240]
cmp ecx, edi
je 0x493eb1
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.00493fa4
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
pop ecx
jae 0x493ed9
lea eax, [ebp - 0x228]
mov esi, dword [ebp - 0x240]
cmp esi, edi
je 0x493ef8
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 0x493f07
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.004d7758
ret