Function at 0x46f0b0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591bf7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x140
mov eax, dword [0x67706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov al, byte [ebx + 8]
mov esi, dword [ebx + 0x10]
mov byte [ebp - 0x8e], al
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xa0], eax
xor eax, eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
push 0x6637c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00452f40
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x2c]
push eax
call fcn.005813c0
mov edx, dword [ebp - 0x18]
test eax, eax
sete al
mov byte [ebp - 0x8d], al
cmp edx, 8
jb 0x46f18c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f17c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9b3
push edx
push ecx
call fcn.00487ad0
mov al, byte [ebp - 0x8d]
add esp, 8
test al, al
je 0x46f2b1
lea ecx, [ebp - 0x2c]
call fcn.0045c7bf
mov esi, eax
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x46f1d0
mov ecx, eax
call fcn.0044e0e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x46f20a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f200
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9b8
push edx
push ecx
call fcn.00487ad0
add esp, 8
mov esi, dword [ebp - 0x98]
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x98], ecx
push eax
call fcn.00453190
call fcn.0045db53
add esp, 0x18
test al, al
jne 0x46f4bb
sub esp, 8
lea ecx, [ebp - 0x150]
call fcn.004498fc
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44]
call fcn.0045cc8a
push 0
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0045eb1b
add esp, 4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46f270
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.0044acff
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x46f2ce
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f2c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9bd
jmp 0x46f2c4
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x44]
call fcn.00452dd0
jmp 0x46f210
push edx
push ecx
call fcn.00487ad0
add esp, 8
push ecx
mov edx, str._File_Not_Found.
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.0045ed7e
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46f300
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.0044acff
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x46f349
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f33f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9c2
push edx
push ecx
call fcn.00487ad0
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x46f387
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f37d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9c7
push edx
push ecx
call fcn.00487ad0
add esp, 8
lea eax, [ebp - 0x140]
push 0x6637e0
push eax
call fcn.0044b527
lea eax, [ebp - 0x140]
push str.f:develop_service_bchelpercore_service_dispatcher_servicedispatcher.cpp
push eax
call fcn.0044b527
lea eax, [ebp - 0x140]
push 0x663824
push eax
call fcn.0044b527
add esp, 0x18
lea ecx, [ebp - 0x140]
push 0x56
call fcn.0044dc3b
lea eax, [ebp - 0x140]
push 0x663828
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x150]
mov dl, 1
call fcn.004714a0
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x154], eax
lea ecx, [ebp - 0x138]
call fcn.0044ab2f
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x154], eax
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x144], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x154], eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0xe8], vtable.std::ios_base.0
call fcn.00474556
add esp, 4
mov byte [ebp - 0x8d], 0
jmp 0x46f959
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x46f4e2
lea ecx, [ebp - 0x94]
call fcn.0046e600
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 6
test eax, eax
je 0x46f7f5
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0045cc8a
push str.__service
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.0045c9ac
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x46f518
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x46f520
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x46f528
mov edi, dword [edi]
cmp dword [0x6810f8], 8
mov ecx, 0x6810e4
push 0
cmovae ecx, dword [0x6810e4]
push 0
push esi
push 0
push 0
push eax
movzx eax, byte [ebp - 0x8e]
push 0
xor eax, 1
add eax, 2
push eax
push 0x10
push 0xf01ff
push edi
push ecx
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edx, dword [ebp - 0x60]
mov esi, eax
cmp edx, 8
jb 0x46f5a6
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f59c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9cc
push edx
push ecx
call fcn.00487ad0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp edx, 8
jb 0x46f5f8
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f5ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9d1
push edx
push ecx
call fcn.00487ad0
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test esi, esi
jne 0x46f807
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x46f63c
mov eax, dword [ebp - 0x94]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x8d], 1
jmp 0x46f952
sub esp, 8
lea ecx, [ebp - 0x150]
call fcn.004498fc
push esi
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 8
call fcn.0044c0e3
lea eax, [ebp - 0x140]
push 0x6655a0
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x2c]
mov edx, esi
call fcn.0045c6db
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x140]
call fcn.00459c70
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x46f6c7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f6bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9d6
push edx
push ecx
call fcn.00487ad0
add esp, 8
lea eax, [ebp - 0x140]
push 0x6637e0
push eax
call fcn.0044b527
lea eax, [ebp - 0x140]
push str.f:develop_service_bchelpercore_service_dispatcher_servicedispatcher.cpp
push eax
call fcn.0044b527
lea eax, [ebp - 0x140]
push 0x663824
push eax
call fcn.0044b527
add esp, 0x18
lea ecx, [ebp - 0x140]
push 0x66
call fcn.0044dc3b
lea eax, [ebp - 0x140]
push 0x663828
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x150]
mov dl, 1
call fcn.004714a0
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x154], eax
lea ecx, [ebp - 0x138]
call fcn.0044ab2f
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x154], eax
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x144], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x154], eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0xe8], vtable.std::ios_base.0
call fcn.00474556
mov eax, dword [ebp - 0x94]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x8d], 0
jmp 0x46f952
cmp byte [ebx + 0xc], al
je 0x46f93c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
push eax
push 2
push esi
mov dword [ebp - 0x98], 0x7530
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x58], 0x1e
mov dword [ebp - 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x46f93c
sub esp, 8
lea ecx, [ebp - 0x150]
call fcn.004498fc
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.0045c6db
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x140]
call fcn.00459c70
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x46f8cd
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f8c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9db
push edx
push ecx
call fcn.00487ad0
add esp, 8
lea eax, [ebp - 0x140]
push 0x6637e0
push eax
call fcn.0044b527
lea eax, [ebp - 0x140]
push str.f:develop_service_bchelpercore_service_dispatcher_servicedispatcher.cpp
push eax
call fcn.0044b527
lea eax, [ebp - 0x140]
push 0x663824
push eax
call fcn.0044b527
add esp, 0x18
lea ecx, [ebp - 0x140]
push 0x7a
call fcn.0044dc3b
lea eax, [ebp - 0x140]
push 0x663828
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x150]
mov dl, 1
call fcn.004714a0
lea ecx, [ebp - 0x150]
call fcn.0044942b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [ebp - 0x94]
mov byte [ebp - 0x8d], 1
test eax, eax
je 0x46f959
push eax
call esi
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x46f98f
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f985
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f9e0
push edx
push ecx
call fcn.00487ad0
add esp, 8
mov al, byte [ebp - 0x8d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00487463
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
call fcn.004a0555
int3