Function at 0x140041230
Capabilities:
Query service status
Start service
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14009e018]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x140041309
mov ecx, 0x35eda5fb
call fcn.14001a490
mov edx, 0x5017
movzx ecx, word [rax]
xor cx, dx
mov word [rbp + 0x17], cx
movzx ecx, word [rax + 2]
xor cx, dx
mov word [rbp + 0x19], cx
movzx ecx, word [rax + 4]
xor cx, dx
mov word [rbp + 0x1b], cx
movzx eax, word [rax + 6]
xor ax, dx
mov word [rbp + 0x1d], ax
xor ebx, ebx
mov word [rbp + 0x1f], bx
mov rcx, qword [0x1400a34c0]
test rcx, rcx
je 0x1400412f9
lea rdx, [rbp + 0x17]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rdx + rax*2], bx
jne 0x1400412d0
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
lea rdx, [rbp + 0x17]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
jmp 0x1400415ea
lea rax, [rbp - 0x19]
mov qword [rbp - 0x29], rax
lea r8, [rbp - 0x29]
lea rcx, [rbp - 1]
call fcn.14003a9c0
nop
mov rdx, qword [0x1400a34c0]
add rdx, 0x10
cmp qword [rdx + 0x18], 8
jb 0x140041334
mov rdx, qword [rdx]
mov r8d, 0x14
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x21], rax
test rax, rax
jne 0x1400413e1
mov ecx, 0x35369776
call fcn.14001a490
mov edx, 0x5017
movzx ecx, word [rax]
xor cx, dx
mov word [rbp + 0x17], cx
movzx ecx, word [rax + 2]
xor cx, dx
mov word [rbp + 0x19], cx
movzx ecx, word [rax + 4]
xor cx, dx
mov word [rbp + 0x1b], cx
movzx eax, word [rax + 6]
xor ax, dx
mov word [rbp + 0x1d], ax
xor ebx, ebx
mov word [rbp + 0x1f], bx
mov rcx, qword [0x1400a34c0]
test rcx, rcx
je 0x1400413ce
lea rdx, [rbp + 0x17]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdx + rax*2], bx
jne 0x1400413a5
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
lea rdx, [rbp + 0x17]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
or ebx, 0xe0ff0000
jmp 0x1400415d9
lea rax, [rbp - 0x21]
mov qword [rbp - 0x29], rax
lea r8, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call fcn.14003a9c0
nop
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140041465
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140041465
mov ecx, 0x147c7f5e
call fcn.14001a490
mov edx, 0x5017
movzx ecx, word [rax]
xor cx, dx
mov word [rbp + 0x17], cx
movzx ecx, word [rax + 2]
xor cx, dx
mov word [rbp + 0x19], cx
movzx ecx, word [rax + 4]
xor cx, dx
mov word [rbp + 0x1b], cx
movzx eax, word [rax + 6]
xor ax, dx
mov word [rbp + 0x1d], ax
xor ebx, ebx
mov word [rbp + 0x1f], bx
lea rcx, [rbp + 0x17]
call fcn.14003ade0
jmp 0x1400415bc
lea rdx, [rbp + 0x27]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14004153f
nop dword [rax + rax]
mov eax, dword [rbp + 0x2b]
cmp eax, 4
je 0x140041538
cmp eax, 2
jne 0x1400414b1
lea ecx, [rax + 0x62]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x27]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140041480
jmp 0x14004153f
mov ecx, 0x73d6597b
call fcn.14001a490
mov edx, 0x5017
movzx ecx, word [rax]
xor cx, dx
mov word [rbp + 0x17], cx
movzx ecx, word [rax + 2]
xor cx, dx
mov word [rbp + 0x19], cx
movzx ecx, word [rax + 4]
xor cx, dx
mov word [rbp + 0x1b], cx
movzx eax, word [rax + 6]
xor ax, dx
mov word [rbp + 0x1d], ax
xor ebx, ebx
mov word [rbp + 0x1f], bx
mov rcx, qword [0x1400a34c0]
test rcx, rcx
je 0x14004152e
lea rdx, [rbp + 0x17]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdx + rax*2], bx
jne 0x140041505
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
lea rdx, [rbp + 0x17]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0xe0010001
jmp 0x1400415c7
xor ebx, ebx
jmp 0x1400415c9
mov ecx, 0x5919a95
call fcn.14001a490
mov edx, 0x5017
movzx ecx, word [rax]
xor cx, dx
mov word [rbp + 0x17], cx
movzx ecx, word [rax + 2]
xor cx, dx
mov word [rbp + 0x19], cx
movzx ecx, word [rax + 4]
xor cx, dx
mov word [rbp + 0x1b], cx
movzx eax, word [rax + 6]
xor ax, dx
mov word [rbp + 0x1d], ax
xor ebx, ebx
mov word [rbp + 0x1f], bx
mov rcx, qword [0x1400a34c0]
test rcx, rcx
je 0x1400415bc
lea rdx, [rbp + 0x17]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdx + rax*2], bx
jne 0x140041593
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
lea rdx, [rbp + 0x17]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov ebx, eax
cmp byte [rbp - 0x11], 0
jne 0x1400415d9
lea rcx, [rbp - 0x11]
call fcn.140041670
nop
cmp byte [rbp - 1], 0
jne 0x1400415e8
lea rcx, [rbp - 1]
call fcn.140041670
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140051aa0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rbp
ret