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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x350
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x18029b200]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r15, rdx
mov r12, rcx
mov qword [rbp - 0x78], rdx
xor r13d, r13d
mov dword [rbp - 0x50], 0x208
movups xmm0, xmmword [str.juhj]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [0x180130800]
movups xmmword [rbp - 0x18], xmm1
movups xmm0, xmmword [0x180130810]
movups xmmword [rbp - 8], xmm0
movzx eax, word [0x180130820]
mov word [rbp + 8], ax
mov r8d, r13d
mov edi, dword [reloc.WS2_32.dll_accept]
cmp edi, 2
jl 0x1800679bf
movdqa xmm5, xmmword [0x18012b970]
movdqa xmm4, xmmword [0x180132540]
movdqa xmm6, xmmword [0x180132410]
movdqa xmm7, xmmword [0x1801324a0]
lea rcx, [rbp - 0x28]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x18
jl 0x1800678d0
cmp r8d, 0x19
jge 0x180067a04
movsxd rax, r8d
lea r9, [rbp - 0x28]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
sub ax, cx
add ax, 0x39
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x19
jl 0x1800679d0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006826e
movups xmm0, xmmword [str.u_HH]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [0x180130838]
movups xmmword [rbp - 0x18], xmm1
mov eax, dword [0x180130848]
mov dword [rbp - 8], eax
mov r8d, r13d
cmp edi, 2
jl 0x180067b6f
movdqa xmm5, xmmword [0x18012b970]
movdqa xmm4, xmmword [0x180132540]
movdqa xmm6, xmmword [0x180132410]
movdqa xmm7, xmmword [0x1801324a0]
lea rcx, [rbp - 0x28]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x10
jl 0x180067a80
cmp r8d, 0x12
jge 0x180067bb4
movsxd rax, r8d
lea r9, [rbp - 0x28]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
sub ax, cx
add ax, 0x39
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x12
jl 0x180067b80
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180068264
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
lea rax, [rbp + 0x10]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x180067c00
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x48]
call fcn.180059270
nop
movsd xmm0, qword [str.zSOUG_Q]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x180130858]
mov dword [rsp + 0x38], eax
movzx eax, word [0x18013085c]
mov word [rsp + 0x3c], ax
cmp byte [0x18013085d], 0
je 0x180067d80
mov r8d, r13d
cmp edi, 2
jl 0x180067d3b
movdqa xmm4, xmmword [0x180132540]
movdqa xmm2, xmmword [0x18012b970]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180132410]
psubd xmm2, xmm0
andps xmm2, xmmword [0x180132470]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
movd xmm0, dword [str.zSOUG_Q]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x180132400]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180132410]
psubd xmm2, xmm0
andps xmm2, xmmword [0x180132470]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x180067d50
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
lea r14, [rdx + rax*2]
lea rdi, [rbp - 0x48]
cmova rdi, qword [rbp - 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
cmp rdi, r14
jne 0x180067dc4
mov byte [rsp + 0x40], 0
jmp 0x180067ebe
sub r14, rdi
sar r14, 1
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x180068332
mov esi, reloc.WS2_32.dll_ntohs
cmp r14, rsi
jbe 0x180067e84
mov rsi, r14
or rsi, 0xf
cmp rsi, rax
jbe 0x180067e30
mov rsi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.18011e6b4
mov rcx, rax
test rax, rax
je 0x180067e6c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rsi
jmp 0x180067e89
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x180067e54
mov rax, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rsi
jmp 0x180067e89
cmp rcx, 0x1000
jb 0x180067e73
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180068338
jmp 0x180067e08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011e6b4
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rsi
jmp 0x180067e89
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
cmp rsi, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x180067eb4
movzx eax, byte [rdi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rdi, [rdi + 2]
sub rdx, 1
jne 0x180067ea1
mov qword [rsp + 0x50], r14
mov byte [r8 + r14], 0
lea rax, [rsp + 0x30]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x180067ec6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800406c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180067f4c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067f47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180067f47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011e6f0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rax, qword [rbp - 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1800593a0
nop
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rcx, qword [rsp + 0x68]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x28]
call fcn.18011df64
mov r8d, eax
test eax, eax
jne 0x180068010
mov edx, dword [rbp - 0x18]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x34], ecx
mov ecx, edx
shr ecx, 0xa
test cl, 1
je 0x180068005
mov eax, dword [rbp - 0x14]
cmp eax, 0xa000000c
jne 0x180067ff7
mov edx, 4
jmp 0x180068034
cmp eax, 0xa0000003
jne 0x180068005
mov edx, 0xa
jmp 0x180068034
shr edx, 4
and edx, 1
or edx, 2
jmp 0x180068034
mov dword [rsp + 0x34], 0xffff
sub eax, 2
je 0x18006802f
sub eax, 1
je 0x18006802f
sub eax, 0x32
je 0x18006802f
cmp eax, 0x46
mov edx, r13d
jne 0x180068034
mov edx, 1
mov dword [rsp + 0x30], r8d
lea rax, [0x180198a90]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edx, edx
je 0x180068134
cmp edx, 1
sete dil
lea rcx, [rsp + 0x68]
call fcn.18006aac0
test dil, dil
je 0x1800681a4
movsd xmm0, qword [0x180130860]
movsd qword [rsp + 0x30], xmm0
movzx ecx, word [0x180130868]
mov word [rsp + 0x38], cx
movzx eax, byte [0x18013086a]
mov byte [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
xor byte [rsp + 0x31], 0x3a
xor byte [rsp + 0x32], 0x3b
xor byte [rsp + 0x33], 0x3c
xor byte [rsp + 0x34], 0x3d
xor byte [rsp + 0x35], 0x3e
xor byte [rsp + 0x36], 0x3f
xor byte [rsp + 0x37], 0x40
xor cl, 0x41
mov byte [rsp + 0x38], cl
xor byte [rsp + 0x39], 0x42
xor al, 0x43
mov byte [rsp + 0x3a], al
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], r13
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800680e1
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.180035540
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x18006814a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068145
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180068145
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dil, 1
test r8d, r8d
jne 0x18006833e
jmp 0x18006805f
call fcn.18011e6f0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1800682fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006825a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006825a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x28]
call fcn.180046d40
mov r8, rax
mov rdx, r15
mov rcx, r12
call fcn.180069560
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x180068208
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068203
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180068203
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011e6f0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1800682fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006825a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006825a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011e6f0
jmp 0x1800682fb
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, word [0x180130878]
mov word [rsp + 0x38], ax
movsd xmm0, qword [0x180130870]
movzx eax, byte [0x18013087a]
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
xor byte [rsp + 0x31], 0x3a
xor byte [rsp + 0x32], 0x3b
xor byte [rsp + 0x33], 0x3c
xor byte [rsp + 0x34], 0x3d
xor byte [rsp + 0x35], 0x3e
xor byte [rsp + 0x36], 0x3f
xor byte [rsp + 0x37], 0x40
xor byte [rsp + 0x38], 0x41
xor byte [rsp + 0x39], 0x42
xor al, 0x43
mov byte [rsp + 0x3a], al
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], r13
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1800682e2
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.180035540
mov rax, r15
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.18011eca0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180040680
nop
call fcn.18001ba80
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.18006a950
int3