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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xb8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov eax, dword [0x1400178f4]
test al, 1
jne 0x1400054a5
or eax, 1
mov dword [0x1400178f4], eax
mov rdi, qword [0x140017828]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14000543e
cmp rax, qword [rdi - 0x18]
jne 0x14000543e
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140005479
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14000545a
call fcn.140005f60
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
mov r8, rdi
lea rcx, [rbx + 0x18]
mov r9, rdx
call qword [0x1400121d0]
lea rax, [rbx + 0x18]
mov qword [0x140017848], rax
mov rdx, qword [0x140017830]
lea rcx, [0x140017840]
call fcn.14000da80
nop
lea rcx, [0x1400113f0]
call fcn.14000f010
nop
lea r8, [0x140012588]
lea rdx, str.DisableOutlookConnector
lea rcx, [0x140017840]
call fcn.14000e310
lea rdx, [rsp + 0x58]
mov qword [rsp + 0xf0], rdx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r12, [0x1400126f8]
mov rbp, r12
or rbx, 0xffffffffffffffff
shr rbp, 0x10
jne 0x14000551e
movzx edi, r12w
xor edx, edx
mov ecx, edi
call fcn.140005fc0
test rax, rax
je 0x14000553e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400060f0
jmp 0x14000553e
xor eax, eax
mov rcx, rbx
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.140006280
nop
mov eax, dword [0x1400178f0]
test al, 1
jne 0x14000556a
or eax, 1
mov dword [0x1400178f0], eax
lea rcx, [0x1400178c8]
call fcn.1400066c0
lea rcx, [0x140011270]
call fcn.14000f010
nop
xor r13d, r13d
mov rdi, r13
mov dword [rsp + 0xf0], 2
mov qword [rsp + 0x78], r13
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [0x1400177a0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400055ee
mov rdi, qword [rsp + 0x78]
mov dword [rsp + 0xf8], 4
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x108]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [rsp + 0xf0]
test rdi, rdi
je 0x140005603
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005623
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp esi, 1
sete al
test al, al
jne 0x1400059c2
mov eax, dword [0x1400178f4]
test al, 1
jne 0x1400056da
or eax, 1
mov dword [0x1400178f4], eax
mov rdi, qword [0x140017828]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140005673
cmp rax, qword [rdi - 0x18]
jne 0x140005673
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400056ae
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x14000568f
call fcn.140005f60
int3
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
mov r8, rdi
lea rcx, [rsi + 0x18]
mov r9, rdx
call qword [0x1400121d0]
lea rax, [rsi + 0x18]
mov qword [0x140017848], rax
mov rdx, qword [0x140017830]
lea rcx, [0x140017840]
call fcn.14000da80
nop
lea rcx, [0x1400113f0]
call fcn.14000f010
nop
lea r8, str.Outlook_Connector_is_enable__setting_the_disable_flag_to_1.
lea rdx, str.DisableOutlookConnector
lea rcx, [0x140017840]
call fcn.14000e310
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x70], rdx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
test rbp, rbp
jne 0x140005741
movzx edi, r12w
xor edx, edx
mov ecx, edi
call fcn.140005fc0
test rax, rax
je 0x140005761
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400060f0
jmp 0x140005761
xor eax, eax
mov rcx, rbx
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140006280
nop
mov eax, dword [0x1400178f0]
test al, 1
jne 0x14000578d
or eax, 1
mov dword [0x1400178f0], eax
lea rcx, [0x1400178c8]
call fcn.1400066c0
lea rcx, [0x140011270]
call fcn.14000f010
nop
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
lea r9, str.REG_DWORD
xor r8d, r8d
mov rdx, qword [0x1400177a0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005827
mov rdi, qword [rsp + 0x70]
mov dword [rsp + 0x100], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140005827
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005847
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
call fcn.140004690
test al, al
je 0x1400059c2
lea rax, [rsp + 0x68]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa8], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.IDS_Title
test rdx, 0xffffffffffff0000
jne 0x1400058bb
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140005fc0
test rax, rax
je 0x1400058d8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400060f0
jmp 0x1400058d8
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.140006280
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.14000a220
mov rsi, rax
lea rcx, section..data
mov rdx, qword [section..data]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, str.IDS_DisableOC
test rdx, 0xffffffffffff0000
jne 0x14000593a
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140005fc0
test rax, rax
je 0x140005957
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400060f0
jmp 0x140005957
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140006280
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.14000a220
mov r9d, 0x40
mov r8, qword [rsi]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400059a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400059c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, dword [0x1400178f4]
test al, 1
jne 0x140005a6b
or eax, 1
mov dword [0x1400178f4], eax
mov rdi, qword [0x140017828]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140005a04
cmp rax, qword [rdi - 0x18]
jne 0x140005a04
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140005a3f
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140005a20
call fcn.140005f60
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
mov r8, rdi
lea rcx, [rbx + 0x18]
mov r9, rdx
call qword [0x1400121d0]
lea rax, [rbx + 0x18]
mov qword [0x140017848], rax
mov rdx, qword [0x140017830]
lea rcx, [0x140017840]
call fcn.14000da80
nop
lea rcx, [0x1400113f0]
call fcn.14000f010
nop
lea r8, [0x1400127e4]
lea rdx, str.DisableOutlookConnector
lea rcx, [0x140017840]
add rsp, 0xb8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.14000e310