Function at 0x140046410
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
movups xmm3, xmmword [str.__SB_YK_gyv]
xor ebx, ebx
mov eax, dword [0x140100280]
movsd xmm0, qword [0x140100278]
cmp word [0x140100282], bx
mov edi, dword [reloc.WS2_32.dll_accept]
movups xmmword [rsp + 0x50], xmm3
mov dword [rsp + 0x68], eax
movsd qword [rsp + 0x60], xmm0
je 0x1400465a9
mov r8d, ebx
cmp edi, 2
jl 0x140046559
movdqa xmm2, xmmword [0x140100610]
mov r8d, 8
movdqa xmm4, xmmword [0x1401006c0]
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 [0x140100640]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x140100630]
paddw xmm2, xmmword [0x140100650]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x50], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140100640]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x58]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140100650]
xorps xmm2, xmm0
movq qword [rsp + 0x58], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x50]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x33
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0xe
jl 0x140046570
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140046907
movsd xmm0, qword [0x140100358]
mov eax, ebx
cmp byte [reloc.WS2_32.dll_accept], al
movaps xmmword [rsp + 0x290], xmm7
movups xmm7, xmmword [str.aQXSZZHwSZWQ_]
setne al
cmp word [0x140100362], bx
movsd qword [rsp + 0x60], xmm0
mov dword [rbp + 0x1b0], eax
mov eax, dword [0x140100360]
mov dword [rsp + 0x68], eax
movups xmmword [rsp + 0x50], xmm7
je 0x140046774
cmp edi, 2
jl 0x14004672f
movdqa xmm2, xmmword [0x140100610]
mov ebx, 8
movdqa xmm4, xmmword [0x1401006c0]
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 [0x140100640]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, qword [0x140100650]
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm1, xmm7
paddw xmm3, xmm2
movdqa xmm2, xmmword [0x140100630]
xorps xmm3, xmm1
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movq qword [rsp + 0x50], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140100640]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, qword [0x140100650]
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x58]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rsp + 0x58], xmm3
movsxd rax, ebx
lea r8, [rsp + 0x50]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x33
add cx, bx
inc ebx
xor word [r8 - 2], cx
cmp ebx, 0xe
jl 0x140046740
mov rcx, qword [rbp + 0x1b8]
lea rax, [rbp + 0x1b0]
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [reloc.WS2_32.dll_accept], 0
movaps xmm7, xmmword [rsp + 0x290]
je 0x1400468fa
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0x100
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x14029c150]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, byte [rbp - 0x70]
lea rdx, [rsp + 0x70]
movups xmm0, xmmword [0x140100200]
mov byte [rsp + 0x50], al
mov ecx, Ordinal_79
movzx eax, byte [rbp - 0x6e]
xor r8d, r8d
mov byte [rsp + 0x51], al
movzx eax, byte [rbp - 0x6c]
mov byte [rsp + 0x52], al
lea r9d, [rcx - 0x49]
movzx eax, byte [rbp - 0x6a]
mov byte [rsp + 0x53], al
movzx eax, byte [rbp - 0x68]
mov byte [rsp + 0x54], al
movzx eax, byte [rbp - 0x66]
mov byte [rsp + 0x55], al
movzx eax, byte [rbp - 0x64]
mov byte [rsp + 0x56], al
movzx eax, byte [rbp - 0x62]
mov byte [rsp + 0x57], al
movzx eax, byte [rbp - 0x60]
mov byte [rsp + 0x58], al
movzx eax, byte [rbp - 0x5e]
mov byte [rsp + 0x59], al
movzx eax, byte [rbp - 0x5c]
mov byte [rsp + 0x5a], al
movzx eax, byte [rbp - 0x5a]
mov byte [rsp + 0x5b], al
movzx eax, byte [rbp - 0x58]
mov byte [rsp + 0x5c], al
movzx eax, byte [rbp - 0x56]
mov byte [rsp + 0x5d], al
movzx eax, byte [rbp - 0x54]
mov byte [rsp + 0x5e], al
movzx eax, byte [rbp - 0x52]
movups xmmword [rsp + 0x70], xmm0
xor word [rsp + 0x72], 0x34
xor word [rsp + 0x74], 0x35
xor word [rsp + 0x76], 0x36
xor word [rsp + 0x78], 0x37
xor word [rsp + 0x7a], 0x38
xor word [rsp + 0x7c], 0x39
xor word [rsp + 0x7e], 0x3a
mov byte [rsp + 0x5f], al
movzx eax, byte [rbp - 0x50]
mov byte [rsp + 0x60], al
movzx eax, byte [rbp - 0x4e]
mov byte [rsp + 0x61], al
movzx eax, byte [rbp - 0x4c]
mov byte [rsp + 0x62], al
movzx eax, byte [rbp - 0x4a]
mov byte [rsp + 0x63], al
movzx eax, word [0x140100210]
xor ax, 0x3b
mov word [rsp + 0x70], cx
mov rcx, qword [rbp + 0x1b8]
mov word [rbp - 0x80], ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], reloc.WS2_32.dll_sendto
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret