Function at 0x140041bc0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push r15
sub rsp, 0xb0
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor esi, esi
mov dword [rsp + 0x78], esi
lea rbx, [0x1401856e0]
mov rcx, qword [0x1401856e0]
cmp rcx, rbx
je 0x140041c2e
test byte [rcx + 0x44], 2
je 0x140041c2e
cmp byte [rcx + 0x41], 4
jb 0x140041c2e
lea edx, [rsi + 0xa]
lea r8, [0x140115e88]
mov rcx, qword [rcx + 0x38]
call fcn.140008110
lea r8, [0x140116ba0]
lea rdx, str.systemcurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call fcn.14006e650
test eax, eax
je 0x140041c79
mov rcx, qword [0x1401856e0]
cmp rcx, rbx
je 0x140041c79
test byte [rcx + 0x44], 2
je 0x140041c79
cmp byte [rcx + 0x41], 2
jb 0x140041c79
mov edx, 0xb
lea r8, [0x140115e88]
mov rcx, qword [rcx + 0x38]
call fcn.140008110
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011b
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x140041ff5
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BootExecute
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
je 0x140041cec
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140041ff5
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x78]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400253b0
nop
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x78]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400253b0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BootExecute
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
je 0x140041e2e
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140041dd2
mov rax, qword [rsp + 0x60]
sub rax, rcx
cmp rax, 0x1000
jb 0x140041dcc
test cl, 0x1f
je 0x140041d9f
call fcn.1400dddbc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140041dae
call fcn.1400dddbc
int3
sub rcx, rax
cmp rcx, 8
jae 0x140041dbd
call fcn.1400dddbc
int3
cmp rcx, 0x27
jbe 0x140041dc9
call fcn.1400dddbc
int3
mov rcx, rax
call fcn.1400b48f8
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140041e29
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 0x1000
jb 0x140041e24
test cl, 0x1f
je 0x140041df7
call fcn.1400dddbc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140041e06
call fcn.1400dddbc
int3
sub rcx, rax
cmp rcx, 8
jae 0x140041e15
call fcn.1400dddbc
int3
cmp rcx, 0x27
jbe 0x140041e21
call fcn.1400dddbc
int3
mov rcx, rax
call fcn.1400b48f8
jmp 0x140041ff5
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x50]
cmp byte [rcx], 0
je 0x140041e6d
mov rbx, rsi
movzx eax, byte [rcx]
test al, al
je 0x140041e62
movsx ecx, al
call fcn.1400e1e50
mov byte [rbx + rdi], al
inc rbx
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rbx + rcx]
test al, al
jne 0x140041e47
inc rbx
movzx eax, byte [rbx + rcx]
test al, al
jne 0x140041e47
movups xmm0, xmmword [str.iastorafsnative.exe]
movups xmmword [rsp + 0x88], xmm0
mov eax, dword [0x140116c48]
mov dword [rsp + 0x98], eax
mov r14d, esi
cmp byte [rdi], r14b
je 0x140041f38
mov rax, rdi
mov r15, rsi
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140041ea4
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.1400e1d4c
test rax, rax
jne 0x140041ee7
cmp esi, r14d
je 0x140041ee1
lea eax, [rbx + 1]
movsxd r8, eax
mov rax, qword [rsp + 0x38]
lea rdx, [rax + r15]
movsxd rcx, r14d
add rcx, rax
call fcn.1400d5540
inc r14d
add r14d, ebx
inc esi
add esi, ebx
movsxd r15, esi
lea rax, [rdi + r15]
cmp byte [rax], 0
jne 0x140041ea0
cmp esi, r14d
je 0x140041f38
movsxd rcx, r14d
mov rax, qword [rsp + 0x38]
mov byte [rcx + rax], 0
lea eax, [r14 + 1]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.BootExecute
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test rdi, rdi
je 0x140041f9d
mov rax, qword [rsp + 0x60]
sub rax, rdi
cmp rax, 0x1000
jb 0x140041f94
test dil, 0x1f
je 0x140041f67
call fcn.1400dddbc
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x140041f76
call fcn.1400dddbc
int3
sub rdi, rax
cmp rdi, 8
jae 0x140041f85
call fcn.1400dddbc
int3
cmp rdi, 0x27
jbe 0x140041f91
call fcn.1400dddbc
int3
mov rdi, rax
mov rcx, rdi
call fcn.1400b48f8
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140041ff5
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 0x1000
jb 0x140041fef
test cl, 0x1f
je 0x140041fc2
call fcn.1400dddbc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140041fd1
call fcn.1400dddbc
int3
sub rcx, rax
cmp rcx, 8
jae 0x140041fe0
call fcn.1400dddbc
int3
cmp rcx, 0x27
jbe 0x140041fec
call fcn.1400dddbc
int3
mov rcx, rax
call fcn.1400b48f8
nop
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b48a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret