Function at 0x427a20
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b54ce
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x4e83f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x427b7d
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408180
mov byte [ebp - 4], 1
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x421
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004046f0
mov esi, eax
push str.WechatHelper::CheckSecondaryLogonStatus
push esi
mov byte [ebp - 4], 2
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x427b30
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x427b26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42842b
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x427b7d
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x427b73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428430
push edx
push ecx
call fcn.004395b0
add esp, 8
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x427c72
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov ebx, eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 3
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 4
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x428
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
push str.OpenSCManager_fail__errno_
push esi
mov byte [ebp - 4], 5
call fcn.00405680
add esp, 8
mov ecx, esi
push ebx
call fcn.004054e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
lea ecx, [ebp - 0x44]
call fcn.004050d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004050d0
jmp 0x4282f3
push 0xf01ff
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
jne 0x427d65
call fcn.0043cc60
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x4282d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov ebx, eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 6
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 7
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x42e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
push str.OpenService_fail__errno_
push esi
mov byte [ebp - 4], 8
call fcn.00405680
add esp, 8
mov ecx, esi
push ebx
call fcn.004054e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
lea ecx, [ebp - 0x44]
call fcn.004050d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004050d0
xor ebx, ebx
jmp 0x4282d1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x427e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x427e21
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282d1
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 9
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 0xa
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x434
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 0xb
push str.QueryServiceConfig_check_buf_size_fail
jmp 0x42829e
mov edi, dword [ebp - 0x14]
push edi
call fcn.0043998f
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x428213
push edi
push 0
push ebx
call fcn.0046c7a0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x427f3c
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282d1
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov ebx, eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 0x10
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x43f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
push str.QueryServiceConfig_fail__errno_
push esi
mov byte [ebp - 4], 0x11
call fcn.00405680
add esp, 8
mov ecx, esi
push ebx
call fcn.004054e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
lea ecx, [ebp - 0x44]
call fcn.004050d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004050d0
mov ebx, dword [ebp - 0x48]
jmp 0x4282d1
cmp dword [ebx + 4], 4
je 0x427fd9
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282d1
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 0x13
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x443
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 0x14
push str.service_is_not_disable
jmp 0x42829e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4280db
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282d1
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov ebx, eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 0x16
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x449
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
push str.ChangeServiceConfig_fail__errno_
push esi
mov byte [ebp - 4], 0x17
call fcn.00405680
add esp, 8
mov ecx, esi
push ebx
call fcn.004054e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
lea ecx, [ebp - 0x44]
call fcn.004050d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004050d0
mov ebx, dword [ebp - 0x48]
jmp 0x4282d1
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282d1
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x18
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408180
mov byte [ebp - 4], 0x19
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x44c
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004046f0
mov esi, eax
push str.change_seclogon_start_type_to_auto_start
push esi
mov byte [ebp - 4], 0x1a
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x18
cmp edx, 0x10
jb 0x4281bd
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4281b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428435
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4282d1
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x428204
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42843a
push edx
push ecx
call fcn.004395b0
add esp, 8
jmp 0x4282d1
xor ebx, ebx
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4282d1
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], bl
call fcn.00408180
mov byte [ebp - 4], 0xd
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x43a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 0xe
push str.new_service_config_fail
push esi
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.004057a0
lea ecx, [ebp - 0x44]
call fcn.004050d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004050d0
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4282e6
push eax
call esi
test ebx, ebx
je 0x4282f3
push ebx
call fcn.00439998
add esp, 4
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42840f
push 0x78
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcwechat_helper.cc
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0x1b
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
call fcn.00408180
mov byte [ebp - 4], 0x1c
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x1b0]
push 0x45a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004046f0
mov esi, eax
push str.WechatHelper::CheckSecondaryLogonStatus_end
push esi
mov byte [ebp - 4], 0x1d
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1b0]
call fcn.004057a0
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x4283cd
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4283c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42843f
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x42840f
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x428405
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428444
push edx
push ecx
call fcn.004395b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004395be
mov esp, ebp
pop ebp
ret
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
int3