Function at 0x140056570
Capabilities:
Authenticate hmac
Encode data using xor
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x140130138]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
mov dword [rbp - 0x70], 1
lea rdx, [rcx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x1400565d3
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx]
lea r8, [rax + rcx*2]
mov rdx, rax
jmp 0x1400565db
mov rax, qword [rdx + 0x10]
lea r8, [rdx + rax*2]
lea r9, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140010cb0
nop
mov eax, dword [str.o_v_nj7]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400c9b08]
mov byte [rsp + 0x38], 0x5c
xor byte [rsp + 0x39], 0x34
xor byte [rsp + 0x3a], 0x35
xor byte [rsp + 0x3b], 0x36
xor al, 0x37
mov byte [rsp + 0x3c], al
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], r14b
lea rax, [rsp + 0x38]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140056640
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140010a10
nop
lea r12, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
setae byte [rsp + 0x30]
mov r13, qword [rsp + 0x50]
cmovae r12, r13
mov rdi, rbx
inc rdi
cmp byte [r12 + rdi], 0
jne 0x140056676
mov rcx, qword [rbp - 0x38]
mov qword [rsp + 0x78], rcx
movabs rdx, 0x7fffffffffffffff
mov rax, rdx
sub rax, rcx
cmp rax, rdi
jb 0x140056d42
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rax, qword [rbp - 0x48]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
lea rax, [rcx + rdi]
mov qword [rsp + 0x38], rax
mov r15d, reloc.WS2_32.dll_ntohs
lea r14, [rbp - 0x68]
cmp rax, r15
jbe 0x14005675d
mov r15, rax
or r15, 0xf
cmp r15, rdx
jbe 0x1400566ee
mov r15, rdx
jmp 0x1400566fa
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp r15, rcx
cmovb r15, rcx
mov rcx, r15
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x140056742
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140056d3c
mov rcx, rax
call fcn.1400bbea8
test rax, rax
je 0x14005673b
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov rax, qword [rsp + 0x38]
jmp 0x140056759
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140056756
call fcn.1400bbea8
mov r14, rax
mov rax, qword [rsp + 0x38]
jmp 0x140056759
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov r8, rdi
mov rdx, r12
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r14 + rdi]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x38]
mov byte [r14 + rax], 0
cmp byte [rsp + 0x30], 0
je 0x1400567cc
mov rdx, qword [rsp + 0x68]
inc rdx
mov rax, r13
cmp rdx, 0x1000
jb 0x1400567c4
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056c55
mov rcx, r13
call fcn.1400bbea0
cmp qword [rsi + 0x18], 8
jb 0x1400567e3
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsi]
lea r8, [rax + rcx*2]
mov rdx, rax
jmp 0x1400567ee
mov rax, qword [rsi + 0x10]
lea r8, [rsi + rax*2]
mov rdx, rsi
lea r9, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.140010cb0
nop
movups xmm0, xmmword [0x1400c9b10]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x1400c9b20]
movups xmmword [rsp + 0x60], xmm1
movzx eax, word [0x1400c9b30]
mov word [rsp + 0x70], ax
xor r14d, r14d
mov ecx, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14005698c
movdqa xmm5, xmmword [0x14011ea10]
movdqa xmm4, xmmword [0x1400c9c10]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [str.8888]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x54]
mov r8d, dword [rsp + 0x40]
nop word [rax + rax]
movd xmm2, ecx
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
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14011ea40]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14011ea40]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x20
jl 0x140056880
cmp ecx, 0x22
jge 0x1400569ce
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x22
jl 0x1400569a0
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140056c21
cmp qword [rsi + 0x18], 8
jb 0x1400569f6
mov rsi, qword [rsi]
lea r8, [rbp - 0x80]
mov rdx, rsi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140056c21
mov esi, dword [rbp - 0x58]
lea rdi, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdi, qword [rbp - 0x68]
movsd xmm0, qword [str.zYTQRhXNS_]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x1400c9b40]
mov word [rsp + 0x48], ax
cmp byte [reloc.WLDAP32.dll_Ordinal_60], r14b
je 0x140056a75
mov byte [rsp + 0x40], 0x49
xor byte [rsp + 0x41], 0x34
xor byte [rsp + 0x42], 0x35
xor byte [rsp + 0x43], 0x36
xor byte [rsp + 0x44], 0x37
xor byte [rsp + 0x45], 0x38
xor byte [rsp + 0x46], 0x39
xor byte [rsp + 0x47], 0x3a
xor byte [rsp + 0x48], 0x3b
xor byte [rsp + 0x49], 0x3c
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
lea rax, [rsp + 0x40]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140056a90
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140010a10
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
mov r9d, 2
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140056b1c
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056b17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056b17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
test dil, dil
jne 0x140056c21
mov eax, dword [str.gMES7]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400c9b48]
mov byte [rsp + 0x38], 0x54
xor byte [rsp + 0x39], 0x34
xor byte [rsp + 0x3a], 0x35
xor byte [rsp + 0x3b], 0x36
xor al, 0x37
mov byte [rsp + 0x3c], al
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
lea rax, [rsp + 0x38]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140056b70
mov r8, rbx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140010a10
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140056c05
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056c00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056c00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
test bl, bl
jne 0x140056c21
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x140056c23
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140056c61
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056c5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056c5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140056caf
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056caa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056caa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140056cfd
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056cf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056cf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bbe80
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001d50
nop
call fcn.140001df0
int3