Function at 0x140001b68
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
lea rbp, [rax - 0x3b8]
sub rsp, 0x4a0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, qword [0x1400055d0]
lea rax, [rsp + 0x58]
xor esi, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x78], rsi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionTelephonyProviders
mov rcx, 0xffffffff80000002
lea r9d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001c2d
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r14d, [rsi + 4]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x50], r14d
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.NumProviders
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140001c60
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400024f0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
lea r13, str._s_d
mov edi, esi
mov r12d, 0x200
cmp dword [rbp - 0x80], esi
jbe 0x140001dd1
lea r9, str.ProviderFilename
mov dword [rsp + 0x20], edi
mov r8, r13
lea rcx, [rbp - 0x70]
mov rdx, r12
call fcn.1400010a8
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rbp + 0x190]
mov dword [rsp + 0x50], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001dc6
lea rdx, str.RemoteSP.TSP
mov word [rbp + 0x38e], si
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140001dc6
lea r9, str.ProviderID
mov dword [rsp + 0x20], edi
mov r8, r13
lea rcx, [rbp - 0x70]
mov rdx, r12
call fcn.1400010a8
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.TAPI32.dll_lineRemoveProvider]
nop dword [rax + rax]
test eax, eax
jne 0x140001c1c
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionTelephony
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001c2d
mov eax, dword [rsp + 0x60]
lea r9, str.Provider
mov r8, r13
mov dword [rsp + 0x20], eax
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.1400010a8
mov rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x70]
call fcn.1400017f8
inc edi
cmp edi, dword [rbp - 0x80]
jb 0x140001c78
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NextProviderID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001c1c
cmp qword [rsp + 0x78], rsi
jne 0x140001e4e
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionTelephony
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001c2d
mov eax, dword [rsp + 0x60]
lea r9, str.Provider
mov r8, r13
mov dword [rsp + 0x20], eax
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.1400010a8
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x70]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140001eb9
mov rcx, qword [rsp + 0x78]
jmp 0x140001c21
mov eax, esi
jmp 0x140001f32
lea r9, str.Server
mov dword [rsp + 0x20], eax
mov r8, r13
lea rcx, [rbp - 0x70]
mov rdx, r12
call fcn.1400010a8
mov rax, rbx
mov ecx, esi
cmp word [rbx], si
je 0x140001eec
inc ecx
lea rax, [rax + 2]
cmp word [rax], si
jne 0x140001ee1
lea eax, [rcx*2 + 2]
mov r9d, 1
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002031
xor ecx, ecx
call fcn.140001490
mov rbx, rax
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
test rbx, rbx
jne 0x140001ebd
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x74]
mov dword [rsp + 0x28], r14d
lea rdx, str.NumServers
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x140002036
lea rax, [0x1400055e8]
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.ConnectionOrientedOnly
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x140002036
lea rax, [0x1400055dc]
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.NoDSQuery
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002031
lea r8, [rsp + 0x60]
xor edx, edx
lea rcx, str.RemoteSP.TSP
call qword [sym.imp.TAPI32.dll_lineAddProviderW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, 1
jmp 0x140001c2f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140001c1c