Function at 0x423420
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1088
mov eax, dword fs:[0]
push eax
mov eax, 0x1298
call fcn.00476910
mov eax, dword [0x503074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4c965c
push str.ChpqWmiExModule::Install
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
xor esi, esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x423499
push 0x28
call fcn.00475970
add esp, 4
mov esi, eax
push str.ChpqWmiExModule::Install
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
lea eax, [ebp - 0x12a0]
mov dword [ebp - 0x12a0], 0
mov dword [ebp - 0x1244], eax
lea ecx, [ebp - 0x1248]
lea eax, [ebp - 0x1248]
mov dword [ebp - fcn.0042e400], vtable.std::_Func_impl_class__lambda_c716729d1c67f23e0652095bf775f87f___class_std::allocator_int___void___.0
mov dword [ebp - 0x1224], eax
lea eax, [ebp - 0x1298]
push eax
mov dword [ebp - 0x1274], 0
call fcn.0042e400
mov dword [ebp - 0x1274], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1224]
test ecx, ecx
je 0x423514
mov edx, dword [ecx]
lea eax, [ebp - 0x1248]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x1224], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x423533
mov edx, dword [ecx]
lea eax, [ebp - 0x1248]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x129c]
mov dword [ebp - 0x1244], eax
lea ecx, [ebp - 0x1248]
lea eax, [ebp - 0x1248]
mov dword [ebp - 0x129c], 0
mov dword [ebp - 0x1224], eax
lea eax, [ebp - 0x1270]
push eax
mov dword [ebp - fcn.0042e3d0], vtable.std::_Func_impl_class__lambda_a2c6961159842de9c6213e2dbb5f6184___class_std::allocator_int___void___.0
mov dword [ebp - 0x124c], 0
call fcn.0042e3d0
mov dword [ebp - 0x124c], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1224]
test ecx, ecx
je 0x4235b5
mov edx, dword [ecx]
lea eax, [ebp - 0x1248]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x1224], ecx
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4235d4
mov edx, dword [ecx]
lea eax, [ebp - 0x1248]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004247c0
test eax, eax
je 0x4235ee
mov edi, 1
jmp 0x423768
push 0x104
lea eax, [ebp - 0x21e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42374b
cmp eax, 0x104
je 0x42374b
mov ecx, 0x22
mov word [ebp - 0x220], cx
mov word [ebp + eax*2 - 0x21e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x423746
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov word [ebp + eax - 0x220], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x129c], eax
test eax, eax
jne 0x42369c
push ecx
lea edx, [ebp - 0x1220]
mov ecx, 0xd80a
call fcn.00430160
add esp, 4
test eax, eax
jne 0x423696
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0x1220]
push 0x400
push eax
call fcn.004924d3
add esp, 0xc
push eax
call int.0040cf20
add esp, 4
mov eax, dword [ebp - 0x129c]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push 0x4d11e8
push 0x50c040
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x12a0], eax
test eax, eax
jne 0x42373a
push ecx
lea edx, [ebp - 0xa20]
mov ecx, 0xd80b
call fcn.00430160
add esp, 4
test eax, eax
jne 0x423710
push str.Could_not_create_service
lea eax, [ebp - 0xa20]
push 0x400
push eax
call fcn.004924d3
add esp, 0xc
push eax
call int.0040cf20
add esp, 4
push 0x50c040
lea eax, [ebp - 0xa20]
push eax
push str.szBuf:__s__m_szServiceName:__s
push str.ChpqWmiExModule::Install
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
xor edi, edi
jmp 0x423768
mov edi, 1
call fcn.004237e0
jmp 0x423768
call fcn.00475ef6
push eax
push str.Failed_to_GetModuleFileName__._dwFLen:_0x_08lX
push str.ChpqWmiExModule::Install
push 2
xor edi, edi
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
lea ecx, [ebp - 0x1270]
call fcn.00402190
lea ecx, [ebp - 0x1298]
call fcn.00402190
mov ecx, 0x4c99f0
test edi, edi
mov eax, 0x4c99e4
cmove eax, ecx
push eax
push str.Result:__s
push str.ChpqWmiExModule::Install
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x4237be
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004756da
mov esp, ebp
pop ebp
ret