Function at 0x140094518
Capabilities:
Copy file
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x970
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov qword [rsp + 0x60], rdx
movsxd r12, ecx
mov dword [rsp + 0x48], r12d
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], r12
mov rbx, r12
shl rbx, 3
lea rcx, [rbx + 0x18]
call fcn.1401ae494
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.140079034
mov r14, rax
mov qword [rsp + 0x70], rax
lea r15d, [rsi + 1]
test r12d, r12d
jle 0x14009462d
mov r13, rax
mov r12, qword [rsp + 0x60]
sub r13, r12
mov r14, qword [rsp + 0x50]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, qword [r12]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
lea rcx, [rdi + 0x18]
call fcn.1401ae494
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.140079034
mov qword [r12 + r13], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, qword [r12]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r12, [r12 + 8]
sub r14, r15
jne 0x1400945a8
mov r14, qword [rsp + 0x70]
mov r12d, dword [rsp + 0x48]
cmp r12d, r15d
jle 0x1400946dd
lea rdx, str._info
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x1400946dd
lea r8, str.Sep_20_2019
lea rdx, str.11:06:09
lea rcx, str.Compiled_on:__s___s_n
call fcn.140001090
lea rdx, str.8dbd0c956c004e5ece08359ed1a6f98040a12263
lea rcx, str.___Commit_Hash:__s_n
call fcn.140001090
lea rdx, str.2019_Sep_19_17:03:06_0700
lea rcx, str.___Commit_Date:__s_n
call fcn.140001090
xor ecx, ecx
call fcn.1400b1d90
mov rdx, rax
lea rcx, str.Using__s_n
call fcn.140001090
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x1400946ce
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add esi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x1400946b3
mov rcx, r14
call fcn.14007911c
xor eax, eax
jmp 0x14009597a
cmp r12d, 2
jle 0x1400947f4
lea rdx, str._faddr
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094765
mov qword [rsp + 0x58], rsi
mov rcx, qword [r14 + 0x10]
add rcx, 2
lea r8, [rsp + 0x58]
lea rdx, str._016llx
call fcn.140008aa8
mov r8, qword [rsp + 0x58]
call fcn.140079b18
lea rdx, [0x1402cffc0]
lea rcx, [0x1402311bc]
call fcn.140001090
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x1400946ce
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add esi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x140094745
jmp 0x1400946ce
cmp r12d, 2
jle 0x1400947f4
lea rdx, str._fdelta
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x1400947f4
mov qword [rsp + 0x58], rsi
lea r8, [rsp + 0x58]
lea rdx, str._lld
mov rcx, qword [r14 + 0x10]
call fcn.140008aa8
lea r8, [0x1400796dc]
sub r8, qword [rsp + 0x58]
call fcn.140079b18
lea rdx, [0x1402cffc0]
lea rcx, [0x1402311bc]
call fcn.140001090
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x1400946ce
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add esi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x1400947d4
jmp 0x1400946ce
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.14006b344
cmp r12d, 2
jle 0x140094853
lea rdx, str._exec
mov rcx, qword [r14 + 8]
call fcn.1401b7970
test eax, eax
jne 0x140094853
mov edi, dword [rsp + 0x48]
test edi, edi
jne 0x140094857
or edx, 0xffffffff
mov rcx, qword [r14 + 0x10]
call fcn.14007ea90
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14009483f
mov edi, esi
jmp 0x140094857
mov edx, 0x1000
mov rcx, qword [rsp + 0x50]
call fcn.1401ade00
mov rdi, rax
jmp 0x140094857
mov edi, dword [rsp + 0x48]
cmp r12d, 2
jle 0x1400948a5
lea rdx, str._b64exec
mov rcx, qword [r14 + 8]
call fcn.1401b7970
test eax, eax
jne 0x1400948a5
test edi, edi
jne 0x1400948a5
mov rcx, qword [r14 + 0x10]
mov r13d, 0x10000
test rcx, rcx
jne 0x140094889
mov rax, rsi
jmp 0x140094891
mov rdx, r13
call fcn.1401ade00
lea r8, [rsp + 0x50]
mov edx, eax
mov rcx, qword [r14 + 0x10]
call fcn.14007d210
mov edi, eax
jmp 0x1400948ab
mov r13d, 0x10000
cmp r12d, r15d
jle 0x140094939
lea rdx, str._nodeid
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094939
movups xmm0, xmmword [str.console.log_require__agentNodeId_____process.exit___]
movups xmmword [rsp + 0x600], xmm0
movups xmm1, xmmword [0x1402ac228]
movups xmmword [rsp + 0x610], xmm1
movups xmm0, xmmword [0x1402ac238]
movups xmmword [rsp + 0x620], xmm0
mov eax, dword [0x1402ac248]
mov dword [rsp + 0x630], eax
movzx eax, word [0x1402ac24c]
mov word [rsp + 0x634], ax
mov al, byte [0x1402ac24e]
mov byte [rsp + 0x636], al
mov ebx, gethostname
mov edx, ebx
lea rcx, [rsp + 0x600]
call fcn.14007ea90
mov qword [rsp + 0x50], rax
mov edi, ebx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x4c], esi
test r12d, r12d
jle 0x1400949eb
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [r14 + rax*8]
test rcx, rcx
je 0x1400949d7
mov edx, 0x103
call fcn.1401ade00
mov rdx, rax
cmp rax, 7
jbe 0x1400949aa
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [r14 + rax*8]
mov eax, dword [rcx]
cmp eax, dword [str._proxy:]
jne 0x1400949aa
movzx eax, word [rcx + 4]
cmp ax, word [0x1402ac254]
jne 0x1400949aa
mov al, byte [rcx + 6]
cmp al, byte [0x1402ac256]
jne 0x1400949aa
add rcx, 7
mov qword [rsp + 0x40], rcx
jmp 0x1400949d7
cmp rdx, 5
jb 0x1400949d7
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [r14 + rax*8]
mov eax, dword [rcx]
cmp eax, dword [str._tag:]
jne 0x1400949d7
mov al, byte [rcx + 4]
cmp al, byte [0x1402ac25c]
jne 0x1400949d7
add rcx, 5
mov qword [rsp + 0x58], rcx
mov eax, dword [rsp + 0x4c]
add eax, r15d
mov dword [rsp + 0x4c], eax
cmp eax, r12d
jl 0x140094953
cmp r12d, r15d
jle 0x140094bad
lea rdx, str._kvm0
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094acb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rax + 0x18]
call fcn.1400791e8
mov r12, rax
lea rax, [0x1400944a0]
mov qword [r12], rax
mov dword [r12 + 0x10], esi
xor edx, edx
mov r8d, 0x800
lea rcx, str.Shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
mov rdi, rsi
test rax, rax
je 0x140094a73
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140094a73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, rsi
test rdi, rdi
je 0x140094a8a
mov ecx, 2
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140094a90
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov rcx, r12
call fcn.140009dc0
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x1400946ce
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add esi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x140094aab
jmp 0x1400946ce
cmp r12d, r15d
jle 0x140094bad
lea rdx, str._kvm1
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094bad
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rax + 0x18]
call fcn.1400791e8
mov r12, rax
lea rax, [0x1400944a0]
mov qword [r12], rax
mov dword [r12 + 0x10], r15d
xor edx, edx
mov r8d, 0x800
lea rcx, str.Shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
mov rdi, rsi
test rax, rax
je 0x140094b53
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140094b53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, rsi
test rdi, rdi
je 0x140094b6a
mov ecx, 2
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140094b70
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov rcx, r12
call fcn.140009dc0
mov edi, esi
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x140095960
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add edi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp edi, eax
jl 0x140094b8d
jmp 0x140095960
cmp qword [rsp + 0x50], rsi
jne 0x140095878
test r12d, r12d
jle 0x140094bd4
lea rdx, str.__slave
mov rcx, qword [r14]
call fcn.1401b744c
test eax, eax
je 0x140095878
cmp r12d, r15d
jle 0x140094d9c
lea rdx, [0x140231f48]
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140095878
lea rdx, str.connect
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140095878
lea rdx, str.__slave
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140095878
cmp r12d, r15d
jle 0x140094d9c
lea rdx, str.state
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094cf1
call fcn.1400934cc
mov ebx, eax
cmp eax, r15d
jne 0x140094c5b
lea rcx, str.Stopped
jmp 0x140094cbb
cmp ebx, 2
jne 0x140094c69
lea rcx, str.Start_Pending
jmp 0x140094cbb
cmp ebx, 3
jne 0x140094c77
lea rcx, str.Stop_Pending
jmp 0x140094cbb
cmp ebx, 4
jne 0x140094c85
lea rcx, str.Running
jmp 0x140094cbb
cmp ebx, 5
jne 0x140094c93
lea rcx, str.Continue_Pending
jmp 0x140094cbb
cmp ebx, 6
jne 0x140094ca1
lea rcx, str.Pause_Pending
jmp 0x140094cbb
cmp ebx, 7
jne 0x140094caf
lea rcx, str.Paused
jmp 0x140094cbb
cmp ebx, 0x64
jne 0x140094cc0
lea rcx, str.Not_installed
call fcn.140001090
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x140094cea
mov rdi, r14
mov rcx, qword [rdi]
call fcn.14007911c
add esi, r15d
lea rdi, [rdi + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x140094ccf
mov esi, ebx
jmp 0x140095960
cmp r12d, r15d
jle 0x140094d9c
lea rdx, str._signcheck
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094d9c
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x850]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 5
jbe 0x140094da1
call fcn.140077834
lea rcx, [rsp + 0x850]
call fcn.14000c014
mov edx, eax
lea rcx, [0x1402398bc]
call fcn.140001090
mov eax, dword [0x1402cfc9c]
sub eax, r15d
mov dword [0x1402cfc9c], eax
test eax, eax
jg 0x140094d67
call fcn.1400b3130
mov edi, esi
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x140095960
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add edi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp edi, eax
jl 0x140094d7c
jmp 0x140095960
mov ebx, 0x104
cmp r12d, r15d
jle 0x140095206
lea rdx, str.start
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140094dd2
lea rdx, str._start
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094e0d
call fcn.14009356c
test eax, eax
jne 0x140094de7
lea rcx, str.Failed_to_start_mesh_agent
jmp 0x1400957bc
cmp eax, r15d
jne 0x140094df8
lea rcx, str.Started_the_mesh_agent
jmp 0x1400957bc
cmp eax, 2
jne 0x14009583f
lea rcx, str.Mesh_agent_already_running
jmp 0x1400957bc
cmp r12d, r15d
jle 0x140095206
lea rdx, str.stop
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140094e3e
lea rdx, str._stop
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094e60
call fcn.140093628
cmp eax, r15d
jne 0x140094e54
lea rcx, str.Stopped_mesh_agent
jmp 0x1400957bc
lea rcx, str.Failed_to_stop_mesh_agent
jmp 0x1400957bc
cmp r12d, r15d
jle 0x140095206
lea rdx, str.restart
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140094e91
lea rdx, str._restart
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094ed1
call fcn.140093628
call fcn.14009356c
test eax, eax
jne 0x140094eab
lea rcx, str.Failed_to_restart_mesh_agent
jmp 0x1400957bc
cmp eax, r15d
jne 0x140094ebc
lea rcx, str.Restarted_the_mesh_agent
jmp 0x1400957bc
cmp eax, 2
jne 0x14009583f
lea rcx, str.Mesh_agent_failed_to_stop
jmp 0x1400957bc
cmp r12d, r15d
jle 0x140095206
lea rdx, str._install
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140094f63
call fcn.140093628
lea rcx, str.Mesh_Agent
call fcn.140093414
lea rcx, [0x1402abc08]
call fcn.140093414
call fcn.140093288
cmp eax, r15d
lea rcx, str.Mesh_agent_installed
je 0x140094f23
lea rcx, str.Failed_to_install_mesh_agent
call fcn.140001090
mov r8d, ebx
lea rdx, [rsp + 0x640]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 5
jbe 0x14009583f
lea rcx, [rsp + 0x640]
call fcn.1400928b4
lea rcx, [rsp + 0x640]
call fcn.140092428
jmp 0x14009583f
cmp r12d, r15d
jle 0x140095206
lea rdx, str._remove
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x140094f98
lea rdx, str._uninstall
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x14009503b
call fcn.140093628
lea rcx, [0x1402abc08]
call fcn.140093414
lea rcx, str.Mesh_Agent
call fcn.140093414
mov dword [rsp + 0x4c], eax
test eax, eax
jne 0x140094fc6
lea rcx, str.Failed_to_uninstall_mesh_agent
jmp 0x140094fe0
cmp eax, r15d
jne 0x140094fd4
lea rcx, str.Mesh_agent_uninstalled
jmp 0x140094fe0
cmp eax, 2
jne 0x140094fe5
lea rcx, str.Mesh_agent_still_running
call fcn.140001090
lea rdx, [0x140231cd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea rdx, [0x140231cd8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov r8d, ebx
lea rdx, [rsp + 0x640]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 5
jbe 0x14009583f
lea rcx, [rsp + 0x640]
call fcn.1400928b4
jmp 0x14009583f
cmp r12d, r15d
jle 0x140095206
mov rdx, qword [r14 + 8]
mov rax, qword [rdx]
cmp rax, qword [str._update:]
jne 0x140095083
jmp 0x140095065
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [r14 + 8]
xor r8d, r8d
add rdx, 8
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140095056
call fcn.14009356c
jmp 0x14009583f
cmp r12d, r15d
jle 0x140095206
lea rdx, str._netinfo
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x1400950bc
lea rcx, [rsp + 0x70]
call fcn.14000bd0c
test eax, eax
jle 0x14009583f
mov rcx, qword [rsp + 0x70]
jmp 0x1400957bc
cmp r12d, r15d
jle 0x140095206
lea rdx, str._fullinstall
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140095121
mov r12, qword [rsp + 0x58]
test r12, r12
jne 0x1400950e8
mov rdi, rsi
jmp 0x1400950f6
mov rdx, rbx
mov rcx, r12
call fcn.1401ade00
mov rdi, rax
mov r13, qword [rsp + 0x40]
test r13, r13
jne 0x140095105
mov rax, rsi
jmp 0x140095110
mov rdx, rbx
mov rcx, r13
call fcn.1401ade00
mov dword [rsp + 0x20], edi
mov r9, r12
mov r8d, eax
mov rdx, r13
xor ecx, ecx
jmp 0x14009514d
cmp r12d, r15d
jle 0x140095206
lea rdx, str._fulluninstall
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140095157
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r15d
call fcn.1400937d8
jmp 0x14009583f
cmp r12d, r15d
jle 0x140095206
lea rdx, str._setfirewall
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x1400951b8
mov r8d, ebx
lea rdx, [rsp + 0x640]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140092b38
test eax, eax
jne 0x14009519c
lea rcx, str.Must_run_as_administrator
jmp 0x1400957bc
lea rcx, [rsp + 0x640]
call fcn.1400928b4
lea rcx, [rsp + 0x640]
call fcn.140092428
jmp 0x1400951fa
cmp r12d, r15d
jle 0x140095206
lea rdx, str._clearfirewall
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140095206
mov r8d, ebx
lea rdx, [rsp + 0x640]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140092b38
test eax, eax
je 0x140095190
lea rcx, [rsp + 0x640]
call fcn.1400928b4
lea rcx, str.Done
jmp 0x1400957bc
cmp r12d, 2
jne 0x140095716
lea rdx, str._nodeidhex
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x14009537f
mov dword [rsp + 0x48], esi
mov rbx, rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [0x140231cd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140095336
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NodeId
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14009532b
cmp dword [rsp + 0x48], esi
jbe 0x14009532b
mov ecx, dword [rsp + 0x48]
call fcn.1401ae494
mov rbx, rax
test rax, rax
jne 0x1400952eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edi, 0xfe
mov r9d, edi
mov ebx, 0x527
mov r8d, ebx
lea rdx, str.ServiceMain.c
xor ecx, ecx
call fcn.14007f3d4
mov r8d, ebx
lea rdx, str.ServiceMain.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401a83f8
int3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NodeId
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14009531c
cmp dword [rsp + 0x48], esi
jne 0x14009532b
mov rcx, rbx
call fcn.1401ad038
mov rbx, rsi
mov dword [rsp + 0x48], esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
mov rcx, rbx
jne 0x140095345
lea rcx, str.Not_defined__start_the_mesh_service_to_create_a_nodeid.
call fcn.140001090
mov edi, esi
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x140095960
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add edi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp edi, eax
jl 0x14009535f
jmp 0x140095960
cmp r12d, 2
jne 0x140095716
lea rdx, str._info
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x14009563a
mov dword [rsp + 0x40], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [0x140231cd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140095605
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rbx, [0x1402d0fc0]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NodeId
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
jne 0x140095423
lea rcx, str.NodeId:_____none_
call fcn.140001090
jmp 0x140095432
mov rdx, rbx
lea rcx, str.NodeId:_____s
call fcn.140001090
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MeshId
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x14009547e
mov rdx, rbx
lea rcx, str._r_nMeshId:_____s
call fcn.140001090
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AgentHash
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x1400954ca
mov rdx, rbx
lea rcx, str._r_nAgentHash:__s
call fcn.140001090
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MeshServerId
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x140095516
mov rdx, rbx
lea rcx, str._r_nServerId:___s
call fcn.140001090
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MeshServerUrl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x140095562
mov rdx, rbx
lea rcx, str._r_nServerUrl:__s
call fcn.140001090
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Proxy
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x1400955ae
mov rdx, rbx
lea rcx, str._r_nProxy:______s
call fcn.140001090
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1402311c4]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x1400955fa
mov rdx, rbx
lea rcx, str._r_nTag:________s
call fcn.140001090
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x140095960
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add edi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp edi, eax
jl 0x14009561a
jmp 0x140095960
cmp r12d, 2
jne 0x140095716
lea rdx, str._resetnodeid
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x140095716
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, [0x140231cd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400956d5
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 2]
xor r8d, r8d
lea rdx, str.ResetNodeId
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400956c8
lea rcx, str.NodeID_will_be_reset_next_time_the_Mesh_Agent_service_is_started.
call fcn.140001090
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400956e1
lea rcx, str.Error_writing_to_registry__try_running_as_administrator.
call fcn.140001090
mov edi, esi
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x140095960
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add edi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp edi, eax
jl 0x1400956f6
jmp 0x140095960
lea rcx, [0x1402abc08]
call fcn.140093414
cmp r12d, r15d
jle 0x1400957c3
lea rdx, str._recovery
mov rcx, qword [r14 + 8]
call fcn.1401b7970
test eax, eax
je 0x1400957c3
mov dword [rsp + 0x20], r15d
mov r9d, 3
lea r8, [0x14023222c]
or edx, 0xffffffff
mov rcx, qword [r14 + 8]
call fcn.14007e6d8
test eax, eax
je 0x1400957b5
mov edx, r15d
lea rcx, [0x1400944e4]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
nop
xor ecx, ecx
call fcn.140006018
mov qword [0x1402cfcf0], rax
mov dword [rax + 0x784], r15d
mov r8, r14
mov edx, r12d
call fcn.140007da8
call fcn.140008220
mov qword [0x1402cfcf0], rsi
jmp 0x14009583f
lea rcx, str.Mesh_Agent_available_switches:_r_n__run_______________Start_as_a_console_agent._r_n__connect___________Start_as_a_temporary_console_agent._r_n__start_____________Start_the_service._r_n__restart___________Restart_the_service._r_n__stop______________Stop_the_service._r_n__state_____________Display_the_running_state_of_the_service._r_n___signcheck________Perform_self_check._r_n___install__________Install_the_service_from_this_location._r_n___uninstall________Remove_the_service_from_this_location._r_n___nodeidhex________Return_the_current_agent_identifier._r_n___fullinstall______Copy_agent_into_program_files__install_and_launch._r_n___fulluninstall____Stop_agent_and_clean_up_the_program_files_location._r_n___proxy:host:port__Specifiy_an_HTTPS_proxy__after__fullinstall_only_._r_n___tag:xxx__________Specifiy_a_agent_tag___after__fullinstall_only_._r_n___resetnodeid______Reset_the_NodeID_next_time_the_service_is_started.
call fcn.140001090
jmp 0x14009583f
lea rax, str.Mesh_Agent_background_service
mov qword [rsp + 0x600], rax
lea rax, [0x140093108]
mov qword [rsp + 0x608], rax
mov qword [rsp + 0x610], rsi
mov qword [rsp + 0x618], rsi
mov dword [0x1402cfd60], r12d
mov qword [0x1402cfd58], r14
lea rcx, [rsp + 0x600]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x14009583f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
jne 0x14009583f
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov qword [rsp + 0x20], rsi
lea r9, [0x140095f5c]
xor r8d, r8d
lea edx, [r8 + 0x67]
xor ecx, ecx
call qword [sym.imp.USER32.dll_DialogBoxParamA]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x1400946ce
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add esi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x140095858
jmp 0x1400946ce
mov edx, r15d
lea rcx, [0x1400944e4]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
nop
mov ebx, esi
mov dword [rsp + 0x68], ebx
cmp r12d, r15d
jle 0x1400958b2
lea rdx, str.connect
mov rcx, qword [r14 + 8]
call fcn.1401b744c
mov ecx, 0x20
test eax, eax
cmove ebx, ecx
mov dword [rsp + 0x68], ebx
mov ecx, ebx
call fcn.140006018
mov qword [0x1402cfcf0], rax
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x28], edi
test rcx, rcx
jne 0x140095905
cmp r12d, r15d
jle 0x14009590c
lea rdx, [0x140231f48]
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
je 0x1400958fe
lea rdx, str.connect
mov rcx, qword [r14 + 8]
call fcn.1401b744c
test eax, eax
jne 0x14009590c
mov rax, qword [0x1402cfcf0]
mov dword [rax + 0x784], r15d
mov r8, r14
mov edx, r12d
call fcn.140007da8
mov rax, qword [0x1402cfcf0]
mov edi, dword [rax + 0x77c]
mov dword [rsp + 0x78], edi
call fcn.140008220
mov qword [0x1402cfcf0], rsi
mov rax, qword [r14 - 0x18]
shr rax, 3
test eax, eax
jle 0x14009595e
mov rbx, r14
mov rcx, qword [rbx]
call fcn.14007911c
add esi, r15d
lea rbx, [rbx + 8]
mov rax, qword [r14 - 0x18]
shr rax, 3
cmp esi, eax
jl 0x140095943
mov esi, edi
mov rcx, r14
call fcn.14007911c
mov eax, esi
jmp 0x14009597a
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.1401a5d00
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret