Function at 0x140001070
Capabilities:
Create service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [r11 - 0x298]
sub rsp, 0x370
mov rax, qword [0x140012008]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r13d, r13d
mov qword [r11 + 0x10], rdi
mov r14d, r13d
mov esi, r13d
mov r12, rcx
mov r15, rcx
nop word [rax + rax]
mov edx, r14d
lea rcx, str.write:__d_n
call fcn.140001010
movups xmm0, xmmword [r15]
lea rcx, [r15 + 0x80]
mov r8d, 0xa
mov rax, qword [rcx + 0x70]
lea rdx, [rbp + 0x50]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [r15 + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [r15 + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [r15 + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [r15 + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [r15 + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [r15 + 0x70]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmmword [rdx - 0x10], xmm1
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rax
mov eax, dword [rcx + 0x78]
xorps xmm0, xmm0
mov dword [rdx + 0x78], eax
movzx eax, word [rcx + 0x7c]
mov ecx, r14d
mov word [rdx + 0x7c], ax
xor eax, eax
mov dword [rbp + 0x40], eax
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], eax
mov byte [rbp - 0x2d], al
mov eax, dword [str.mykeya]
mov dword [rsp + 0x70], eax
movzx eax, word [0x140007358]
mov word [rsp + 0x74], ax
movzx eax, byte [0x14000735a]
mov byte [rsp + 0x76], al
mov word [rbp + 0x14e], r13w
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rdx, [rsp + 0x70]
mov r8, rax
dec rdx
nop dword [rax]
cmp byte [rdx + 1], r13b
lea rdx, [rdx + 1]
jne 0x140001200
xor ecx, ecx
nop dword [rax]
movzx eax, byte [r8 + rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140001210
lea rax, [rsp + 0x70]
dec rax
nop dword [rax + rax]
cmp byte [rax + 1], r13b
lea rax, [rax + 1]
jne 0x140001230
movzx ecx, word [0x14000735c]
xor edx, edx
mov word [rax], cx
movzx ecx, byte [0x14000735e]
mov byte [rax + 2], cl
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140001521
mov r8d, 0x104
lea rdx, [rbp + 0x150]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000152d
mov qword [rsp + 0x60], r13
lea rax, [rbp + 0x150]
mov qword [rsp + 0x58], r13
lea r8, [rbp + 0x50]
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x48], r13
mov r9d, 0xf003f
mov qword [rsp + 0x40], r13
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14000152d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc r14d
inc rsi
add r15, 0xfe
cmp rsi, 0x127
jl 0x1400010c0
mov edx, r14d
lea rcx, str.write:__d_n
call fcn.140001010
imul eax, r14d, 0xfe
lea rdx, [rbp - 0x20]
mov r8d, 0xa
mov word [rbp + 0x9c], r13w
movsxd rcx, eax
movups xmm0, xmmword [rcx + r12]
mov eax, dword [rcx + r12 + 0x48]
movups xmm1, xmmword [rcx + r12 + 0x10]
mov dword [rbp + 0x98], eax
xor eax, eax
movaps xmmword [rbp + 0x50], xmm0
movups xmm0, xmmword [rcx + r12 + 0x20]
mov dword [rbp + 0x40], eax
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], eax
mov byte [rbp - 0x2d], al
mov eax, dword [str.mykeya]
movaps xmmword [rbp + 0x70], xmm0
movsd xmm0, qword [rcx + r12 + 0x40]
mov dword [rsp + 0x70], eax
movzx eax, word [0x140007358]
movaps xmmword [rbp + 0x60], xmm1
movups xmm1, xmmword [rcx + r12 + 0x30]
mov ecx, r14d
mov word [rsp + 0x74], ax
movsd qword [rbp + 0x90], xmm0
xorps xmm0, xmm0
movzx eax, byte [0x14000735a]
movups xmmword [rbp - 0x20], xmm0
mov byte [rsp + 0x76], al
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movaps xmmword [rbp + 0x80], xmm1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rsp + 0x70]
mov r8, rax
dec rcx
cmp byte [rcx + 1], r13b
lea rcx, [rcx + 1]
jne 0x1400013f2
xor edx, edx
nop
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001400
lea rcx, [rsp + 0x70]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r13b
lea rcx, [rcx + 1]
jne 0x140001420
movzx eax, word [0x14000735c]
xor edx, edx
mov word [rcx], ax
movzx eax, byte [0x14000735e]
mov byte [rcx + 2], al
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140001533
mov r8d, 0x104
lea rdx, [rbp + 0x150]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000153f
mov qword [rsp + 0x60], r13
lea rax, [rbp + 0x150]
mov qword [rsp + 0x58], r13
lea r8, [rbp + 0x50]
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x48], r13
mov r9d, 0xf003f
mov qword [rsp + 0x40], r13
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14000153f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.___Payload_written._n
call fcn.140001010
mov rdi, qword [rsp + 0x3a8]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140005a60
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.failed_to_open_SC_manager
call fcn.140001010
call fcn.140005a10
int3
lea rcx, str.failed_to_open_SC_manager
call fcn.140001010
call fcn.140005a10
int3