Function at 0x140040a60
Capabilities:
Create thread
Encode data using xor
Execute command
Query service status
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x1400e10c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor edi, edi
call fcn.140040910
lea rcx, [0x1400e25e0]
call fcn.1400551d0
cmp byte [0x1400e2810], dil
jne 0x140040b18
mov r8, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x49]
call fcn.140041480
movzx ecx, byte [rax + 0xa]
test cl, cl
je 0x140040aea
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor byte [rax + 6], 0x3e
xor byte [rax + 7], 0x3f
xor byte [rax + 8], 0x40
xor byte [rax + 9], 0x41
xor cl, 0x42
mov byte [rax + 0xa], cl
mov rdx, rax
mov rcx, r8
call fcn.14003c3c0
mov rcx, rax
lea rdx, [0x1400e2818]
call fcn.14003c590
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movups xmm0, xmmword [0x1400ceb30]
movups xmmword [rbp - 0x49], xmm0
mov eax, dword [0x1400ceb40]
mov dword [rbp - 0x39], eax
movzx eax, word [0x1400ceb44]
mov word [rbp - 0x35], ax
cmp byte [0x1400ceb45], dil
je 0x140040cc0
mov r8d, edi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140040c85
movdqa xmm5, xmmword [0x1400ced90]
movdqa xmm4, xmmword [0x1400cee80]
movdqa xmm6, xmmword [0x1400cedc0]
movdqa xmm0, xmmword [0x1400cee20]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x49]
mov edx, dword [rbp - 0x29]
movd xmm2, r8d
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400cede0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [r8 + 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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400cede0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140040b80
cmp r8d, 0x16
jge 0x140040cc0
movsxd rax, r8d
lea r9, [rbp - 0x49]
add r9, rax
nop
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x16
jl 0x140040c90
lea rcx, [rbp - 0x49]
call fcn.14003f000
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x17], dil
lea rdx, [rbp + 0x17]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140041a50
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.14003dd40
mov rdx, rax
lea rcx, [0x1400e25e0]
call fcn.140057130
lea rcx, [0x1400ceac0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
cmp byte [0x1400e2810], 0
jne 0x140040d95
mov r8, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x49]
call fcn.140041480
movzx ecx, byte [rax + 0xa]
test cl, cl
je 0x140040d67
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor byte [rax + 6], 0x3e
xor byte [rax + 7], 0x3f
xor byte [rax + 8], 0x40
xor byte [rax + 9], 0x41
xor cl, 0x42
mov byte [rax + 0xa], cl
mov rdx, rax
mov rcx, r8
call fcn.14003c3c0
mov rcx, rax
lea rdx, [0x1400e2818]
call fcn.14003c590
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140040910
mov dword [rbp - 0x49], 0x898f8ea8
mov word [rbp - 0x45], 0x100
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 4
jb 0x140040db0
mov byte [rbp - 0x44], 0
mov dword [rbp - 0x29], 0x839f9ba1
mov dword [rbp - 0x25], 0x9f94ae81
mov dword [rbp - 0x21], 0x8c9f91bf
mov word [rbp - 0x1d], reloc.WS2_32.dll_WSAStartup
mov byte [rbp - 0x1b], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0xc]
xor byte [rbp + rcx - 0x29], al
inc rcx
cmp rcx, 0xd
jb 0x140040df0
mov byte [rbp - 0x1b], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x140040e3b
xor r9d, r9d
lea r8d, [rax + 1]
mov dl, 0xb6
movzx ecx, dl
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
lea r8d, [r9 + 2]
mov dl, 0xb6
movzx ecx, dl
call qword [sym.imp.USER32.dll_keybd_event]
lea rcx, [0x1400ceac0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r9, rax
mov dword [rbp - 0x49], 0x949a9f8d
mov dword [rbp - 0x45], 0x73658b92
mov word [rbp - 0x41], 0x100
mov rcx, rdi
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 8
jb 0x140040e70
mov byte [rbp - 0x40], 0
mov r8d, 4
lea rdx, [rbp - 0x49]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rbp - 0x25], 1
jne 0x140041411
mov dword [rbp - 0x49], 0x898f8ea8
mov word [rbp - 0x45], 0x100
mov rcx, rdi
nop
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 4
jb 0x140040ec0
mov byte [rbp - 0x44], 0
mov dword [rbp - 0x29], 0x839f9ba1
mov dword [rbp - 0x25], 0x9f94ae81
mov dword [rbp - 0x21], 0x8c9f91bf
mov word [rbp - 0x1d], reloc.WS2_32.dll_WSAStartup
mov byte [rbp - 0x1b], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0xc]
xor byte [rbp + rcx - 0x29], al
inc rcx
cmp rcx, 0xd
jb 0x140040f00
mov byte [rbp - 0x1b], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140040f9a
mov dword [rbp - 0x49], 0x928e89bf
mov word [rbp - 0x45], Ordinal_143
mov byte [rbp - 0x43], 1
mov rcx, rdi
nop dword [rax + rax]
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 5
jb 0x140040f40
mov byte [rbp - 0x43], 0
mov dword [rbp - 0x29], 0x8e9397b9
mov dword [rbp - 0x25], 0x6067df9b
mov dword [rbp - 0x21], 0x25666f
mov byte [rbp - 0x1d], 1
mov rcx, rdi
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x29], al
inc rcx
cmp rcx, 0xb
jb 0x140040f70
mov byte [rbp - 0x1d], 0
mov r9d, 0x40
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x49], 0xcdc8cdcd
mov dword [rbp - 0x45], 0x100c8cb
mov rdx, rdi
nop word [rax + rax]
lea eax, [rdx - 6]
xor byte [rbp + rdx - 0x49], al
inc rdx
cmp rdx, 6
jb 0x140040fc0
mov byte [rbp - 0x42], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x79]
call fcn.140034f70
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [0x1400e25e0]
call fcn.1400512b0
mov rbx, rax
lea rax, [0x1400e28f8]
cmp rax, rbx
je 0x14004107c
mov rcx, qword [0x1400e28f8]
test rcx, rcx
je 0x140041051
mov rdx, qword [0x1400e2908]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14004103a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400410ad
mov rcx, r8
call fcn.1400ac900
xorps xmm0, xmm0
movdqu xmmword [0x1400e28f8], xmm0
mov qword [0x1400e2908], rdi
mov rax, qword [rbx]
mov qword [0x1400e28f8], rax
mov rax, qword [rbx + 8]
mov qword [0x1400e2900], rax
mov rax, qword [rbx + 0x10]
mov qword [0x1400e2908], rax
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400410b9
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400410b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400410b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ac900
call fcn.14003f1e0
mov rax, qword [0x1400e28f8]
cmp rax, qword [0x1400e2900]
je 0x1400410d5
mov qword [0x1400e2900], rax
mov dword [rbp - 0x49], 0x8f9799
mov byte [rbp - 0x45], 1
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 3
jb 0x1400410f0
mov byte [rbp - 0x45], 0
lea rcx, [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x3a98
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x49], 0xcecfa0e1
mov word [rbp - 0x45], __WSAFDIsSet
mov byte [rbp - 0x43], 1
mov rdx, rdi
nop dword [rax]
lea eax, [rdx - 6]
xor byte [rbp + rdx - 0x49], al
inc rdx
cmp rdx, 5
jb 0x140041130
mov byte [rbp - 0x43], 0
lea rdx, [rbp - 0x49]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14003c3c0
movdqa xmm0, xmmword [0x1400cee70]
movdqu xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x19], 0x224e47
mov byte [rbp - 0x15], 1
mov rdx, rdi
nop
lea ecx, [rdx - 6]
xor byte [rbp + rdx - 0x29], cl
inc rdx
cmp rdx, 0x13
jb 0x140041170
mov byte [rbp - 0x15], 0
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.14003c3c0
lea rdx, [0x14003c5b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x61a8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x49], 0xcfcfa0e1
mov word [rbp - 0x45], __WSAFDIsSet
mov byte [rbp - 0x43], 1
mov rdx, rdi
nop
lea eax, [rdx - 6]
xor byte [rbp + rdx - 0x49], al
inc rdx
cmp rdx, 5
jb 0x1400411c0
mov byte [rbp - 0x43], 0
lea rdx, [rbp - 0x49]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14003c3c0
movdqa xmm0, xmmword [0x1400cee60]
movdqu xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x19], 0x1002640
mov r8, rdi
nop dword [rax + rax]
lea ecx, [r8 - 9]
xor byte [rbp + r8 - 0x29], cl
inc r8
cmp r8, 0x12
jb 0x140041200
mov byte [rbp - 0x16], 0
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.14003c3c0
lea rdx, [0x14003c5b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x49], 0x8f9799
mov byte [rbp - 0x45], 1
mov rcx, rdi
nop dword [rax + rax]
lea eax, [rcx - 6]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 3
jb 0x140041250
mov byte [rbp - 0x45], 0
lea rcx, [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 8
call fcn.1400acf7c
lea rcx, [0x140040470]
mov qword [rax], rcx
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140041da0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140041402
cmp dword [rbp - 0x21], 0
je 0x1400413f6
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400413f6
call fcn.14002b0b0
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov qword [rbp + 7], rdi
mov ecx, 4
call fcn.1400acf7c
mov qword [rbp - 9], rax
lea rdx, [rax + 4]
mov qword [rbp + 7], rdx
xor ecx, ecx
mov dword [rax], ecx
mov qword [rbp - 1], rdx
mov rax, rdx
mov rcx, qword [rbp - 9]
sub rax, rcx
sar rax, 2
cmp rax, 1
jbe 0x140041330
lea rax, [rcx + 4]
cmp rax, rdx
je 0x140041330
mov qword [rbp - 1], rax
mov qword [rbp + 0xf], 7
and dword [rcx], 0x7f
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140041390
mov rax, qword [rbp + 7]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004137f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004137f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ac900
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rdi
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x1400413ce
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400413c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400413c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ac900
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400ac810
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x21], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x49], 0x928e89bf
mov word [rbp - 0x45], Ordinal_143
mov byte [rbp - 0x43], 1
lea rcx, [rbp - 0x49]
call fcn.140040a30
mov r8, rax
movdqa xmm0, xmmword [0x1400cef70]
movdqu xmmword [rbp - 0x79], xmm0
movdqa xmm1, xmmword [0x1400ceef0]
movdqu xmmword [rbp - 0x69], xmm1
mov dword [rbp - 0x59], 0x707468
mov byte [rbp - 0x55], 1
lea rcx, [rbp - 0x79]
call fcn.140040a00
mov r9d, reloc.WS2_32.dll_recv
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3