Function at 0x140107140
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401f6080]
xor rax, rsp
mov qword [rbp - 8], rax
mov eax, dword [0x1401d1340]
xor ebx, ebx
cmp byte [0x1401d1345], bl
movsd xmm0, qword [str.fodlwgoXRZ5B]
mov edi, dword [reloc.WS2_32.dll_accept]
mov dword [rbp - 0x28], eax
movzx eax, word [0x1401d1344]
mov word [rbp - 0x24], ax
mov dword [rbp - 0x14], 4
mov dword [rbp - 0x18], 4
movsd qword [rbp - 0x30], xmm0
je 0x1401072e4
mov r8d, ebx
cmp edi, 2
jl 0x14010729a
movdqa xmm2, xmmword [0x1401d7e10]
mov r8d, 8
movdqa xmm4, xmmword [0x1401d8360]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401d7eb0]
psubd xmm2, xmm0
movd xmm0, dword [str.fodlwgoXRZ5B]
andps xmm2, xmmword [0x1401d7f20]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401d7fd0]
xorps xmm2, xmm0
movd dword [rbp - 0x30], xmm2
movdqa xmm2, xmmword [0x1401d7e30]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401d7eb0]
psubd xmm2, xmm0
movd xmm0, dword [rbp - 0x2c]
andps xmm2, xmmword [0x1401d7f20]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401d7fd0]
xorps xmm2, xmm0
movd dword [rbp - 0x2c], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x30]
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x1401072b0
lea rax, [rbp - 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14010748f
cmp byte [reloc.WLDAP32.dll_Ordinal_60], bl
mov rax, qword [str.vCEJTO_]
mov qword [rbp - 0x30], rax
je 0x14010744f
cmp edi, 2
jl 0x140107419
movdqa xmm3, xmmword [0x1401d7e10]
movdqa xmm2, xmmword [0x1401d7e30]
movdqa xmm1, xmm3
movdqa xmm5, xmmword [0x1401d8360]
movdqa xmm0, xmm3
mov eax, dword [0x1401d7fd0]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x30]
pmulld xmm0, xmmword [0x1401d7eb0]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmmword [0x1401d7f20]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
xorps xmm3, xmm1
movdqa xmm1, xmm2
pmuldq xmm0, xmm5
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movd dword [rbp - 0x30], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x2c]
pmulld xmm0, xmmword [0x1401d7eb0]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmmword [0x1401d7f20]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x2c], xmm2
jmp 0x14010744f
lea r8, [rbp - 0x30]
nop dword [rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, bl
inc ebx
sub al, cl
add al, 0x35
xor byte [r8 - 1], al
cmp ebx, 8
jl 0x140107420
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140107485
cmp dword [rbp - 0x10], 1
jne 0x140107485
call fcn.1400eeb90
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140175100
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret