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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10010]
mov eax, 0x10110
call fcn.1400a5130
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10160], rbx
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x10000], rax
mov rbx, r9
mov edi, r8d
movzx esi, dl
mov byte [rsp + 0x34], dl
mov r12, rcx
mov qword [rsp + 0x40], rcx
mov qword [rbp - 0x18], 0xf
xor r13d, r13d
mov qword [rbp - 0x20], r13
mov byte [rbp - 0x30], r13b
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r13
mov byte [rbp - 0x58], r13b
test r8d, r8d
js 0x1400109c5
cmp r8d, 1
jle 0x14001039d
cmp r8d, 2
jne 0x1400109c5
lea ecx, [r8 + 9]
call fcn.14001c740
test eax, eax
jne 0x1400102fd
cmp qword [rbp - 0x40], 0x10
jb 0x1400102d4
mov rcx, qword [rbp - 0x58]
call fcn.1400a58b8
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r13
mov byte [rbp - 0x58], 0
cmp qword [rbp - 0x18], 0x10
jb 0x1400109ec
mov rcx, qword [rbp - 0x30]
call fcn.1400a58b8
jmp 0x1400109ec
mov r8d, 0xd
lea rdx, str.veracrypt.sys
lea rcx, [rbp - 0x30]
call fcn.140007f10
mov r8d, 0xb
lea rdx, str.DumpFilters
lea rcx, [rbp - 0x58]
call fcn.140007f10
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlCrashControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140010396
lea rax, [0x1400cc930]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rax, str.VeraCrypt::BootEncryption::RegisterFilter:4746
mov qword [rsp + 0x58], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x48]
call fcn.1400a5d24
int3
mov r10, qword [rsp + 0x38]
jmp 0x140010411
mov r8d, 9
lea rdx, str.veracrypt
lea rcx, [rbp - 0x30]
call fcn.140007f10
mov r8d, 0xc
lea rdx, str.UpperFilters
lea rcx, [rbp - 0x58]
call fcn.140007f10
mov rcx, rbx
call fcn.14001b6c0
mov r10, rax
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x140010411
lea rax, [0x1400cc930]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x80], eax
lea rax, str.VeraCrypt::BootEncryption::RegisterFilter:4735
mov qword [rbp - 0x78], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x78]
call fcn.1400a5d24
int3
mov qword [rbp - 0x70], r10
test sil, sil
je 0x140010808
mov ebx, 0x10000
cmp edi, 2
je 0x14001053e
mov rdi, qword [rbp - 0x20]
inc rdi
mov eax, ebx
sub eax, edi
mov dword [rsp + 0x30], eax
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea rcx, [rbp]
lea rax, [rbp]
sub rdx, rax
lea rax, [rbx + 0x7ffefffe]
test rax, rax
je 0x140010474
movzx eax, byte [rdx + rcx]
test al, al
je 0x140010474
mov byte [rcx], al
inc rcx
dec rbx
jne 0x140010454
jmp 0x140010479
test rbx, rbx
jne 0x14001047c
dec rcx
mov byte [rcx], 0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea rax, [rbp + rdi]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x30]
mov r8d, 1
test eax, eax
cmovne ecx, r8d
mov dword [rsp + 0x30], ecx
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea eax, [rdi + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9d, [r8 + 6]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140010996
lea rax, [0x1400cc930]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rax, str.VeraCrypt::BootEncryption::RegisterFilter:4773
mov qword [rsp + 0x58], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x48]
call fcn.1400a5d24
int3
mov r13d, dword [rbp - 0x20]
inc r13d
mov qword [rbp - 0x80], rbx
mov rcx, rbx
call fcn.1400a6818
mov r12, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x14001059c
lea rax, str.bad_allocation
mov qword [rsp + 0x78], rax
lea r8d, [r12 + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400a566c
lea rdx, [0x1400cc300]
mov qword [rsp + 0x60], rdx
lea rdx, [0x1401432f8]
lea rcx, [rsp + 0x60]
call fcn.1400a5d24
nop
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call fcn.1400a6818
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400105f3
lea rax, str.bad_allocation
mov qword [rsp + 0x40], rax
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400a566c
lea rdx, [0x1400cc300]
mov qword [rsp + 0x48], rdx
lea rdx, [0x1401432f8]
lea rcx, [rsp + 0x48]
call fcn.1400a5d24
nop
mov eax, 0xfffe
sub eax, r13d
mov dword [rsp + 0x30], eax
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea r8, [rbp - 0x30]
test eax, eax
je 0x140010658
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
mov rdx, rbx
mov rcx, r12
call fcn.140008e90
mov byte [r13 + r12], 0
inc r13d
jmp 0x1400106db
movsxd r13, dword [rsp + 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
mov edi, ecx
mov ecx, r13d
test r13d, r13d
je 0x140010690
lea rax, [r13 + r12 - 1]
cmp byte [rax], 0
jne 0x140010690
dec rax
dec ecx
jne 0x140010684
lea r14d, [rcx + rdi]
lea r15d, [r14 + 2]
cmp r15d, ebx
jae 0x1400106db
test ecx, ecx
jne 0x1400106b7
mov rdx, rbx
mov rcx, r12
call fcn.140008e90
mov byte [rdi + r12], 0
lea r13d, [rdi + 1]
jmp 0x1400106db
mov eax, ecx
mov byte [rax + r12], 0
mov edx, 0xffff
sub edx, ecx
inc ecx
add rcx, r12
call fcn.140008e90
lea edx, [r14 + 1]
mov byte [rdx + r12], 0
mov r13d, r15d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov r9, qword [r9]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x30]
movzx ecx, byte [rsp + 0x34]
call fcn.14002c8d0
mov dword [rsp + 0x30], 0xfffe
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140010740
mov word [rsi], 0
jmp 0x14001076a
mov edx, dword [rsp + 0x30]
lea eax, [rdx - 1]
cmp byte [rax + rsi], 0
je 0x14001075d
mov byte [rdx + rsi], 0
mov eax, dword [rsp + 0x30]
inc eax
mov byte [rax + rsi], 0
jmp 0x14001076a
lea eax, [rdx - 2]
cmp byte [rax + rsi], 0
je 0x14001076a
mov byte [rdx + rsi], 0
mov rdx, rsi
mov rcx, r12
call fcn.140008360
test al, al
jne 0x1400107ef
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400107ef
lea rax, [0x1400cc930]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, str.VeraCrypt::BootEncryption::RegisterFilter:4824
mov qword [rsp + 0x70], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x60]
call fcn.1400a5d24
nop
mov rcx, rsi
call fcn.1400a6820
nop
mov rcx, r12
call fcn.1400a6820
xor r13d, r13d
jmp 0x140010996
mov qword [rsp + 0x20], r10
mov r9, qword [r12]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x30]
xor ecx, ecx
call fcn.14002c8d0
mov ebx, 0x10000
mov qword [rsp + 0x50], rbx
mov ecx, ebx
call fcn.1400a6818
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14001087b
lea rax, str.bad_allocation
mov qword [rsp + 0x40], rax
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400a566c
lea rdx, [0x1400cc300]
mov qword [rsp + 0x48], rdx
lea rdx, [0x1401432f8]
lea rcx, [rsp + 0x48]
call fcn.1400a5d24
nop
mov dword [rsp + 0x30], 0xfffe
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001098d
mov edx, dword [rsp + 0x30]
cmp edx, dword [rbp - 0x20]
jb 0x14001098d
lea eax, [rdx - 1]
cmp byte [rax + rdi], 0
je 0x1400108e4
mov byte [rdx + rdi], 0
mov eax, dword [rsp + 0x30]
inc eax
mov byte [rax + rdi], 0
add dword [rsp + 0x30], 2
jmp 0x1400108f5
lea eax, [rdx - 2]
cmp byte [rax + rdi], 0
je 0x1400108f5
mov byte [rdx + rdi], 0
inc dword [rsp + 0x30]
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140008430
test al, al
je 0x14001098d
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 7
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001098d
lea rax, [0x1400cc930]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, str.VeraCrypt::BootEncryption::RegisterFilter:4859
mov qword [rsp + 0x70], rax
lea rdx, [0x140143380]
lea rcx, [rsp + 0x60]
call fcn.1400a5d24
nop
mov rcx, rdi
call fcn.1400a6820
nop
lea rcx, [rbp - 0x70]
call fcn.140008500
nop
cmp qword [rbp - 0x40], 0x10
jb 0x1400109b0
mov rcx, qword [rbp - 0x58]
call fcn.1400a58b8
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r13
mov byte [rbp - 0x58], 0
jmp 0x1400102e4
lea rax, [0x1400ccb18]
mov qword [rbp - 0x70], rax
lea rax, str.VeraCrypt::BootEncryption::RegisterFilter:4751
mov qword [rbp - 0x68], rax
lea rdx, [0x140143520]
lea rcx, [rbp - 0x70]
call fcn.1400a5d24
nop
mov rcx, qword [rbp + 0x10000]
xor rcx, rsp
call fcn.1400a4e70
mov rbx, qword [rsp + 0x10160]
add rsp, 0x10110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret