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

Disassembly:
push rsi
push rdi
sub rsp, 0xf8
lea rax, str.Removing_native_app_entry_from_registry
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 4
mov dx, 8
mov cx, 0xe0
call fcn.00011a90
lea rdx, str.RegistryMachineSYSTEMCurrentControlSetControlSession_Manager
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0x40], 0xffffffffffffffff
lea r8, [rsp + 0x98]
mov edx, 0xf003f
lea rcx, [rsp + 0x40]
call sub.ntdll.dll_NtOpenKey
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x33c93
lea rax, str.Opening_SessionManager_registry_key_failed
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0xec
call fcn.00011a90
jmp 0x34095
mov dword [rsp + 0x38], 0
lea rdx, str.BootExecute
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call sub.ntdll.dll_NtQueryValueKey
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc0000023
je 0x33d20
lea rax, str.Checking_BootExecute_registry_key_size_failed
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0xf8
call fcn.00011a90
mov rcx, qword [rsp + 0x40]
call fcn.00031670
jmp 0x34095
mov eax, dword [rsp + 0x38]
add rax, 2
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.00031600
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x33d78
lea rax, [0x0003b1e0]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0x102
call fcn.00011a90
mov rcx, qword [rsp + 0x40]
call fcn.00031670
jmp 0x34095
mov eax, dword [rsp + 0x38]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.0001be70
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call sub.ntdll.dll_NtQueryValueKey
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x33e12
lea rax, str.Reading_BootExecute_registry_key_failed
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0x10f
call fcn.00011a90
mov rcx, qword [rsp + 0x48]
call fcn.00031570
mov rcx, qword [rsp + 0x40]
call fcn.00031670
jmp 0x34095
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
shr eax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0xc8]
lea rcx, str.iastorafsnative.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x48]
add rax, 0xc
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x58]
mov ecx, eax
call fcn.00031600
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x33eae
lea rax, str.Memory_allocation_failed
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0x122
call fcn.00011a90
mov rcx, qword [rsp + 0x48]
call fcn.00031570
mov rcx, qword [rsp + 0x40]
call fcn.00031670
jmp 0x34095
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x3400b
mov rcx, qword [rsp + 0x68]
call fcn.000325b0
inc rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x33ef3
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x58]
cmp rax, rcx
jbe 0x33f54
lea rax, str.Buffer_overflow
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0x134
call fcn.00011a90
mov rcx, qword [rsp + 0x48]
call fcn.00031570
mov rcx, qword [rsp + 0x70]
call fcn.00031570
mov rcx, qword [rsp + 0x40]
call fcn.00031670
jmp 0x34095
mov rax, qword [rsp + 0x60]
add rax, rax
mov ecx, dword [rsp + 0x58]
sub rcx, qword [rsp + 0x50]
shl rcx, 1
mov r9, rax
mov r8, qword [rsp + 0x68]
mov rdx, rcx
mov rcx, qword [rsp + 0x78]
call fcn.0001bd80
mov rax, qword [rsp + 0x60]
add rax, rax
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.0001bbd0
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x68]
call fcn.0001c1f0
test rax, rax
jne 0x33fd1
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x34006
xor eax, eax
mov rcx, qword [rsp + 0x78]
mov word [rcx], ax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x3400b
jmp 0x33ebd
mov rcx, qword [rsp + 0x48]
call fcn.00031570
mov rax, qword [rsp + 0x50]
shl rax, 1
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call sub.ntdll.dll_NtSetValueKey
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x34081
lea rax, str.Setting_BootExecute_registry_key_failed
mov qword [rsp + 0x20], rax
mov r9d, 0xc
mov r8d, 2
mov dx, 8
mov cx, 0x15b
call fcn.00011a90
mov rcx, qword [rsp + 0x70]
call fcn.00031570
mov rcx, qword [rsp + 0x40]
call fcn.00031670
add rsp, 0xf8
pop rdi
pop rsi
ret