Function at 0x140010b80
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbp
mov eax, 0xa0a0
call fcn.1400755f0
sub rsp, rax
mov rax, qword [0x1400c0140]
xor rax, rsp
mov qword [rsp + 0xa080], rax
lea rax, [rsp + 0x70]
mov rbp, rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010bd6
xor eax, eax
jmp 0x140010ce6
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0b8], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140010e1c
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140010e1c
mov qword [rsp + 0xa098], rdi
mov edi, ebx
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x2080]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov edx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x64], 0x1000
mov dword [rsp + 0x68], 0x3fff
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x80], bx
mov word [rsp + 0x2080], bx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea rdx, str.RegRead_HKCU_software_xswloader_
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x140010cff
inc edi
cmp edi, dword [rsp + 0x60]
jb 0x140010c50
mov rdi, qword [rsp + 0xa098]
mov rbx, qword [rsp + 0xa0b8]
mov rcx, qword [rsp + 0xa080]
xor rcx, rsp
call fcn.140063080
add rsp, 0xa0a0
pop rbp
ret
lea rdx, str._r_nXSWKIT_Infection_Detected:__r_n
mov rcx, rbp
mov qword [rsp + 0xa0c0], rsi
mov qword [rsp + 0xa090], r12
call fcn.140018560
mov edi, ebx
mov rcx, qword [rax]
mov rsi, rax
mov r12d, 4
movsxd rcx, dword [rcx + 4]
test byte [rcx + rax + 0x10], 6
jne 0x140010d49
mov rcx, qword [rcx + rax + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r12d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov rsi, qword [rsp + 0xa0c0]
test edi, edi
je 0x140010d75
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], rbx
jne 0x140010d6d
or edx, r12d
xor r8d, r8d
call fcn.140003090
lea rdx, str._r_n_
mov rcx, rbp
call fcn.140018560
lea rdx, [rsp + 0x2080]
mov rcx, rax
call fcn.140018560
lea rdx, [0x14008f830]
mov rcx, rax
call fcn.140018560
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140018560
lea rdx, [0x14008dd90]
mov rcx, rax
call fcn.140018560
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rax + 0x10], 6
jne 0x140010de5
mov rcx, qword [rcx + rax + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r12d
mov rax, qword [rdi]
mov r12, qword [rsp + 0xa090]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x140010e12
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140010e0a
or edx, 4
xor r8d, r8d
call fcn.140003090
mov eax, 1
jmp 0x140010cd6
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140010cde