Function at 0x140041cc0
Capabilities:
Delete registry value
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140184e90]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r15b, dl
mov byte [rsp + 0x54], dl
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x50], r13d
lea rax, [rcx + 0x130]
mov qword [rbp - 0x78], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x160]
call fcn.140042f78
lea rcx, [rsi + 0x170]
call fcn.140042f78
lea edx, [r13 + 1]
mov rcx, rsi
call fcn.1400428e8
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rbx, [rsi + 0x1b0]
lea edx, [r13 + 0x5c]
mov rcx, qword [rbx]
call fcn.1400b3578
test rax, rax
jne 0x140041d72
or eax, 0xffffffff
jmp 0x140041d78
sub rax, qword [rbx]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14001f244
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r14d, 0x2001f
mov r9d, r14d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140041e9b
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140041e9b
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.14003a2d4
mov rbx, rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401849a8]
mov rdx, qword [0x1401849a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401849a8]
mov rax, qword [0x1401849a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rsp + 0x70]
call fcn.140002ba4
cmp qword [rbx + 0x18], 0x10
jb 0x140041e63
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140002ba4
lea r8, [0x14011b754]
lea rdx, [0x14011b758]
lea rcx, [rsp + 0x70]
call fcn.14000cb50
nop
lea rdx, [0x14014f7e8]
lea rcx, [rsp + 0x70]
call fcn.1400b8b68
nop
test r15b, r15b
je 0x140041ee1
lea r8, str._ver
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140016a58
nop
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140041edd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov r14d, r13d
lea rcx, [0x1401849a8]
mov rax, qword [0x1401849a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov esi, 1
mov r12d, 0x7ffe
mov dword [rbp - 0x80], r12d
mov ecx, esi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, ecx
jge 0x140041f2e
mov edx, r12d
lea rcx, [rsp + 0x58]
call fcn.140001f54
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0xc], r12d
jl 0x14004237f
mov dword [rbx - 0x10], r12d
mov word [rbx + 0xfffc], r13w
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400b1884
test eax, eax
js 0x140042374
cmp eax, dword [rbx - 0xc]
jg 0x140042374
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], r13w
cmp byte [0x14018d85d], r13b
jne 0x140041fe9
mov dword [rbp - 8], 0x1004c
mov dword [rbp - 4], 0x1000d
mov edx, 5
mov dword [rbp], edx
mov rcx, r13
lea r13, [0x140187da0]
lea r8, [0x140188b28]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 - 8]
mov word [r8 + rcx*2], ax
add rcx, rsi
cmp rcx, rdx
jl 0x140041fc8
mov byte [0x14018d85d], sil
xor r13d, r13d
lea r8, [0x140188b28]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.140016a58
nop
or edi, esi
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14004202f
cmp dword [rbx - 0x10], r13d
jl 0x14004202f
mov rcx, rbx
call fcn.1400b1a54
test rax, rax
je 0x14004202f
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140042160
cmp byte [0x14018d878], r13b
jne 0x140042089
mov dword [rbp + 8], 0x3004c
mov dword [rbp + 0xc], 0x1a001e
mov dword [rbp + 0x10], 9
mov rcx, r13
lea r13, [0x140187da0]
mov r15d, 5
lea rdx, [0x140188c80]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 + 8]
mov word [rdx + rcx*2], ax
add rcx, rsi
cmp rcx, r15
jl 0x140042064
mov byte [0x14018d878], sil
mov r15b, byte [rsp + 0x54]
xor r13d, r13d
lea r8, [0x140188c80]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140016a58
nop
or edi, 2
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400420d0
cmp dword [rbx - 0x10], r13d
jl 0x1400420d0
mov rcx, rbx
call fcn.1400b1a54
test rax, rax
je 0x1400420d0
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140042160
cmp byte [0x14018d86b], r13b
jne 0x14004211a
mov dword [rbp - 0x20], 0x11004c
mov edx, 3
mov dword [rbp - 0x1c], edx
mov rcx, r13
lea r13, [0x140187da0]
lea r8, [0x1401884c0]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 - 0x20]
mov word [r8 + rcx*2], ax
add rcx, rsi
cmp rcx, rdx
jl 0x1400420f9
mov byte [0x14018d86b], sil
xor r13d, r13d
lea r8, [0x1401884c0]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.140016a58
nop
or edi, 4
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14004215d
cmp dword [rbx - 0x10], r13d
jl 0x14004215d
mov rcx, rbx
call fcn.1400b1a54
test rax, rax
je 0x14004215d
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140042160
mov sil, r13b
test dil, 4
je 0x14004218e
and edi, 0xfffffffb
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140042185
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test dil, 2
je 0x1400421bc
and edi, 0xfffffffd
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400421b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, 1
test al, dil
je 0x1400421ee
and edi, 0xfffffffe
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400421e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test sil, sil
je 0x14004220b
mov r14d, r13d
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, 1
jmp 0x140042213
mov esi, 1
add r14d, esi
test r12d, r12d
mov r12d, 0x7ffe
je 0x140041f09
test r15b, r15b
je 0x1400422d3
lea r8, [0x140188650]
cmp byte [0x14018d877], r13b
jne 0x14004227a
mov dword [rbp - 0x18], 0x13004c
mov dword [rbp - 0x14], 0x70009
mov word [rbp - 0x10], r13w
mov rcx, r13
lea r13, [0x140187da0]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 - 0x18]
mov word [r8 + rcx*2], ax
add rcx, rsi
cmp rcx, 4
jl 0x140042258
mov byte [0x14018d877], sil
xor r13d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140016a58
nop
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400422cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
jmp 0x1400422d6
or edi, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x14018cd80]
imul ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, 0xd
cmp ecx, eax
jne 0x140042336
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140042351
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140042370
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14004238a
mov ecx, 0x80070057
call fcn.140001874
int3
mov ecx, 0x80070057
call fcn.140001874
nop
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400b0c90
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret