Function at 0x1400031a0
Capabilities:
Create service
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x28], xmm6
xor edx, edx
movaps xmmword [rax - 0x38], xmm7
xor ecx, ecx
movaps xmmword [rax - 0x48], xmm8
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebx, ebx
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400038da
movups xmm0, xmmword [0x140083540]
mov qword [rsp + 0x110], rsi
mov r8d, ebx
movups xmm1, xmmword [0x140083550]
mov esi, dword [reloc.WS2_32.dll_accept]
lea r15d, [rbx + 4]
mov qword [rsp + 0x118], r14
lea r12d, [rbx + 0x1f]
movups xmmword [rbp - 0x19], xmm0
movsd xmm0, qword [0x140083560]
movsd qword [rbp + 7], xmm0
movups xmmword [rbp - 9], xmm1
cmp esi, 2
jl 0x140003373
movdqa xmm0, xmmword [0x1400e9f30]
lea rcx, [rbp - 0x15]
movdqa xmm5, xmmword [0x1400e9ec0]
mov edx, ebx
movdqa xmm4, xmmword [0x1400e9f60]
movdqa xmm7, xmmword [0x1400e9ee0]
movdqa xmmword [rbp - 0x29], xmm0
mov r8d, dword [rbp - 0x29]
movd xmm6, r15d
movd xmm8, r12d
nop
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
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
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400e9f10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
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
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x28
jl 0x140003270
jmp 0x1400033aa
lea r9, [rbp - 0x19]
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0x28
jl 0x140003380
mov eax, dword [0x140083528]
mov r8d, ebx
movsd xmm0, qword [str.VM_WcV_M._.C]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x14008352c]
mov byte [rbp - 0x2d], al
movsd qword [rbp - 0x39], xmm0
cmp esi, 2
jl 0x1400034df
movdqa xmm2, xmmword [0x1400e9ec0]
mov r8d, 8
movdqa xmm4, xmmword [0x1400e9f60]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400e9ed0]
movdqa xmm0, xmm2
mov eax, dword [0x1400e9f30]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r15d
movd xmm5, r12d
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e9ee0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
movd xmm1, dword [str.VM_WcV_M._.C]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
pxor xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rbp - 0x39], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e9ee0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
movd xmm1, dword [rbp - 0x35]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
pxor xmm2, xmm1
movd dword [rbp - 0x35], xmm2
mov eax, r8d
lea r9, [rbp - 0x39]
add r9, rax
nop dword [rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x1400034f0
mov eax, dword [0x140083538]
mov r8d, ebx
movsd xmm0, qword [str.VM_WcYLV6_0C]
mov dword [rbp - 0x21], eax
movzx eax, byte [0x14008353c]
mov byte [rbp - 0x1d], al
movsd qword [rbp - 0x29], xmm0
cmp esi, 2
jl 0x140003656
movdqa xmm2, xmmword [0x1400e9ec0]
mov r8d, 8
movdqa xmm4, xmmword [0x1400e9f60]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400e9ed0]
movdqa xmm0, xmm2
mov eax, dword [0x1400e9f30]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r15d
movd xmm5, r12d
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e9ee0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
movd xmm1, dword [str.VM_WcYLV6_0C]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
pxor xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rbp - 0x29], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e9ee0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
movd xmm1, dword [rbp - 0x25]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
pxor xmm2, xmm1
movd dword [rbp - 0x25], xmm2
mov eax, r8d
lea r9, [rbp - 0x29]
add r9, rax
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x140003660
mov qword [rsp + 0x60], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x58], rbx
lea r8, [rbp - 0x39]
mov qword [rsp + 0x50], rbx
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x48], rbx
mov r9d, 0x10030
mov qword [rsp + 0x40], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000372f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, r14
mov rsi, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400038c5
mov eax, dword [0x140083538]
movsd xmm0, qword [str.VM_WcYLV6_0C]
mov dword [rbp - 0x21], eax
movzx eax, byte [0x14008353c]
mov byte [rbp - 0x1d], al
movsd qword [rbp - 0x29], xmm0
cmp esi, 2
jl 0x140003871
movdqa xmm2, xmmword [0x1400e9ec0]
mov ebx, 8
movdqa xmm4, xmmword [0x1400e9f60]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400e9ed0]
movdqa xmm0, xmm2
mov eax, dword [0x1400e9f30]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r15d
movd xmm5, r12d
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e9ee0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
movd xmm1, dword [str.VM_WcYLV6_0C]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
pxor xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rbp - 0x29], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400e9ee0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
movd xmm1, dword [rbp - 0x25]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
pxor xmm2, xmm1
movd dword [rbp - 0x25], xmm2
mov eax, ebx
lea r9, [rbp - 0x29]
add r9, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
inc ebx
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp ebx, 0xd
jl 0x140003880
mov r8d, 0x10030
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
jmp 0x1400036f7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, 0xffffffffffffffff
jmp 0x1400036f7
cmp dword [reloc.WS2_32.dll_accept], 2
mov eax, dword [0x140083588]
movups xmm0, xmmword [0x140083568]
mov dword [rbp + 7], eax
movups xmm1, xmmword [0x140083578]
movzx eax, word [0x14008358c]
movups xmmword [rbp - 0x19], xmm0
mov word [rbp + 0xb], ax
movups xmmword [rbp - 9], xmm1
jl 0x140003a64
movdqa xmm0, xmmword [0x1400e9f30]
lea rcx, [rbp - 0x15]
movdqa xmm5, xmmword [0x1400e9ec0]
mov r15d, 4
movdqa xmm4, xmmword [0x1400e9f60]
mov r12d, Ordinal_33
movdqa xmm7, xmmword [0x1400e9ee0]
movdqa xmmword [rbp - 0x29], xmm0
mov edx, dword [rbp - 0x29]
movd xmm6, r15d
movd xmm8, r12d
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
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
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400e9f10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400e9f10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x20
jl 0x140003960
cmp ebx, 0x26
jge 0x140003a9d
movsxd rax, ebx
lea r8, [rbp - 0x19]
add r8, rax
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
inc ebx
sub al, cl
add al, 0x37
xor byte [r8 - 1], al
cmp ebx, 0x26
jl 0x140003a70
lea rcx, [rbp - 0x19]
call fcn.140003140
mov rax, 0xffffffffffffffff
jmp 0x140003707