Function at 0x4247e0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1e0e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x4e5728]
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.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42493d
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 1
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x421
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403c10
mov esi, eax
push str.WechatHelper::CheckSecondaryLogonStatus
push esi
mov byte [ebp - 4], 2
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4248f0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4248e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4251eb
push edx
push ecx
call fcn.004678ef
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 0x42493d
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424933
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4251f0
push edx
push ecx
call fcn.004678ef
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 0x424a32
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4250a6
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 4
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x428
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
push str.OpenSCManager_fail__errno_
push esi
mov byte [ebp - 4], 5
call fcn.00404ba0
add esp, 8
mov ecx, esi
push ebx
call fcn.00404a00
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
lea ecx, [ebp - 0x44]
call fcn.00404580
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404580
jmp 0x4250b3
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 0x424b25
call fcn.0043c150
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 7
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x42e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
push str.OpenService_fail__errno_
push esi
mov byte [ebp - 4], 8
call fcn.00404ba0
add esp, 8
mov ecx, esi
push ebx
call fcn.00404a00
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
lea ecx, [ebp - 0x44]
call fcn.00404580
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404580
xor ebx, ebx
jmp 0x425091
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 0x424be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x424be1
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0xa
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x434
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
mov byte [ebp - 4], 0xb
push str.QueryServiceConfig_check_buf_size_fail
jmp 0x42505e
mov edi, dword [ebp - 0x14]
push edi
call fcn.004678fd
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x424fd3
push edi
push 0
push ebx
call fcn.00472f00
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 0x424cfc
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0x10
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x43f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
push str.QueryServiceConfig_fail__errno_
push esi
mov byte [ebp - 4], 0x11
call fcn.00404ba0
add esp, 8
mov ecx, esi
push ebx
call fcn.00404a00
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
lea ecx, [ebp - 0x44]
call fcn.00404580
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404580
mov ebx, dword [ebp - 0x48]
jmp 0x425091
cmp dword [ebx + 4], 4
je 0x424d99
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0x13
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x443
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
mov byte [ebp - 4], 0x14
push str.service_is_not_disable
jmp 0x42505e
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 0x424e9b
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0x16
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x449
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
push str.ChangeServiceConfig_fail__errno_
push esi
mov byte [ebp - 4], 0x17
call fcn.00404ba0
add esp, 8
mov ecx, esi
push ebx
call fcn.00404a00
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
lea ecx, [ebp - 0x44]
call fcn.00404580
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404580
mov ebx, dword [ebp - 0x48]
jmp 0x425091
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0x19
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x44c
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403c10
mov esi, eax
push str.change_seclogon_start_type_to_auto_start
push esi
mov byte [ebp - 4], 0x1a
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x18
cmp edx, 0x10
jb 0x424f7d
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424f73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4251f5
push edx
push ecx
call fcn.004678ef
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 0x425091
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424fc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4251fa
push edx
push ecx
call fcn.004678ef
add esp, 8
jmp 0x425091
xor ebx, ebx
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x425091
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0xd
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x43a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c10
mov esi, eax
mov byte [ebp - 4], 0xe
push str.new_service_config_fail
push esi
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00404e00
lea ecx, [ebp - 0x44]
call fcn.00404580
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404580
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4250a6
push eax
call esi
test ebx, ebx
je 0x4250b3
push ebx
call fcn.00467906
add esp, 4
call fcn.0043c150
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4251cf
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.004082b0
push 3
push 0x4ba7a4
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.004082b0
mov byte [ebp - 4], 0x1c
call fcn.0043c150
mov edi, eax
lea ecx, [ebp - 0x1b0]
push 0x45a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00403c10
mov esi, eax
push str.WechatHelper::CheckSecondaryLogonStatus_end
push esi
mov byte [ebp - 4], 0x1d
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1b0]
call fcn.00404e00
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x42518d
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425183
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4251ff
push edx
push ecx
call fcn.004678ef
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 0x4251cf
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4251c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425204
push edx
push ecx
call fcn.004678ef
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.00467bb3
mov esp, ebp
pop ebp
ret
call fcn.00476379
call fcn.00476379
call fcn.00476379
call fcn.00476379
call fcn.00476379
call fcn.00476379
int3