Function at 0x14004df20
Capabilities:
Delete file
Persist via windows service
Query service status
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3a0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rbp, rdx
mov rbx, rcx
mov qword [r11 - 0x300], 7
xor r15d, r15d
mov qword [r11 - 0x308], r15
mov word [r11 - 0x318], r15w
lea r8d, [r15 + 0x11]
lea rdx, str.Service_Uninstall
lea rcx, [r11 - 0x320]
call fcn.140001870
nop
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
mov r14d, 1
mov r8d, r14d
lea edx, [r15 + 0x32]
mov rcx, rbx
call fcn.1400144a0
test rbp, rbp
je 0x14004e911
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], r15
mov word [rsp + 0x110], r15w
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], r15
mov word [rsp + 0xe8], r15w
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], r14d
lea rax, str.Parameter___i_:__s
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea edx, [r15 + 0x1e]
mov rcx, rbx
call fcn.1400144a0
lea r8d, [r15 + 0x22]
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0xe0]
call fcn.140001870
mov rsi, qword [rsp + 0xf8]
test rsi, rsi
je 0x14004e133
test rsi, rsi
je 0x14004e11c
cmp rsi, 0xffffffffffffffff
jbe 0x14004e08d
or rcx, 0xffffffffffffffff
jmp 0x14004e091
lea rcx, [rsi - 1]
lea rax, [rsp + 0xe8]
mov r12, qword [rsp + 0xe8]
mov r13, qword [rsp + 0x100]
cmp r13, 8
cmovae rax, r12
lea rdi, [rax + rcx*2]
nop word [rax + rax]
mov rcx, r14
lea rax, [0x1400ad338]
movzx edx, word [rdi]
nop dword [rax]
cmp word [rax], dx
je 0x14004e0f7
add rax, 2
sub rcx, 1
jne 0x14004e0d0
lea rcx, [rsp + 0xe0]
call fcn.1400016d0
cmp rdi, rax
je 0x14004e11c
sub rdi, 2
jmp 0x14004e0c0
lea rax, [rsp + 0xe8]
cmp r13, 8
cmovae rax, r12
sub rdi, rax
sar rdi, 1
cmp rdi, 0xffffffffffffffff
je 0x14004e11c
lea rax, [rdi + 1]
cmp rsi, rax
je 0x14004e133
mov r8, r14
lea rdx, [0x1400ad338]
lea rcx, [rsp + 0xe0]
call fcn.14000a130
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0xe0]
call fcn.14000a130
mov r8d, r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
jne 0x14004e175
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14004e1d8
mov r8d, 4
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14004e199
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14004e1cf
lea rdx, [rsp + 0x130]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14004e1be
mov edi, r15d
mov eax, dword [rsp + 0x134]
mov dword [rsp + 0x58], eax
jmp 0x14004e1c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x424
setne r12b
lea r13, str.Error___i__return_by_function___s_
test edi, edi
jne 0x14004e22b
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, str.The_Service_status_is___u_
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea edx, [rdi + 0x14]
mov rcx, rbx
call fcn.1400144a0
jmp 0x14004e26a
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
lea rax, str.Service_StateEx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
mov r8d, r14d
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
call fcn.1400144a0
test r12b, r12b
je 0x14004e280
mov r8d, 0x2710
mov rdx, rbp
mov rcx, rbx
call fcn.14004d210
lea r8, [rsp + 0x108]
mov rdx, rbp
mov rcx, rbx
call fcn.1400506c0
mov esi, eax
mov rdx, rbp
mov rcx, rbx
call fcn.14004dcb0
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e49a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov dword [rsp + 0x58], r14d
xor dil, dil
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e37a
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DeleteFlag
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx edi, dil
test eax, eax
cmove edi, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
jne 0x14004e3c2
lea rdi, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdi, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.EscribirDWORDRegistroHKLM_DELETEFLAGS
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, rdi
mov r8d, r14d
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
call fcn.1400144a0
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov dword [rsp + 0x58], 4
xor dil, dil
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e452
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx edi, dil
test eax, eax
cmove edi, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
jne 0x14004e49a
lea rdi, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdi, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.EscribirDWORDRegistroHKLM_START
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, rdi
mov r8d, r14d
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
call fcn.1400144a0
mov rdx, rbp
mov rcx, rbx
call fcn.140053bb0
test esi, esi
jne 0x14004e892
cmp qword [rsp + 0x120], 0
je 0x14004e892
mov qword [rsp + 0x50], r15
call fcn.140060550
movzx esi, al
test al, al
je 0x14004e553
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004e505
lea rcx, [rsp + 0x50]
call rax
test eax, eax
setne al
test al, al
jne 0x14004e553
jmp 0x14004e50e
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
lea rax, str.DeshabilitarWow64FsRedirection
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
mov r8d, r14d
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
call fcn.1400144a0
jmp 0x14004e88f
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 8
cmovae rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004e5bf
lea rdi, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdi, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteFile
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, rdi
mov r8d, r14d
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
call fcn.1400144a0
mov qword [rsp + 0x178], 7
mov qword [rsp + 0x170], r15
mov word [rsp + 0x160], r15w
lea rcx, [rsp + 0x158]
call fcn.140029dc0
mov r8d, 0xa
lea rdx, str.DRVSTORE_
lea rcx, [rsp + 0x158]
call fcn.14000a130
mov word [rsp + 0x180], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x182]
call fcn.1400719a0
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 8
cmovae rcx, qword [rsp + 0x110]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x180]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.140064fb8
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x180]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x130]
call fcn.140001870
nop
mov r8, r14
lea rdx, [0x1400ad33c]
lea rcx, [rsp + 0x130]
call fcn.14000a130
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], r15
mov word [rsp + 0x90], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x88]
call fcn.140001500
nop
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x60]
call fcn.140001500
nop
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x60]
mov edx, r14d
mov rcx, rbx
call fcn.14002cc40
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x158]
call fcn.140001720
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x60]
call fcn.140001500
lea rcx, [rsp + 0x60]
call fcn.14002d860
test sil, sil
je 0x14004e842
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004e7f8
mov rcx, qword [rsp + 0x50]
call rax
test eax, eax
setne al
test al, al
jne 0x14004e842
jmp 0x14004e801
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
lea rax, str.InvertirWow64FsRedirection
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
mov r8d, r14d
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, rbx
call fcn.1400144a0
nop
cmp qword [rsp + 0x150], 8
jb 0x14004e85a
mov rcx, qword [rsp + 0x138]
call fcn.140065920
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
cmp qword [rsp + 0x178], 8
jb 0x14004e88f
mov rcx, qword [rsp + 0x160]
call fcn.140065920
mov esi, r15d
test r12b, r12b
cmove esi, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.140020d20
nop
cmp qword [rsp + 0x100], 8
jb 0x14004e8bd
mov rcx, qword [rsp + 0xe8]
call fcn.140065920
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], r15
mov word [rsp + 0xe8], r15w
cmp qword [rsp + 0x128], 8
jb 0x14004e8f2
mov rcx, qword [rsp + 0x110]
call fcn.140065920
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], r15
mov word [rsp + 0x110], r15w
jmp 0x14004e94a
mov esi, 0x57
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
lea rax, str.Wrong_parameter
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea edx, [rsi - 0x4d]
mov rcx, rbx
call fcn.1400144a0
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
mov dword [rsp + 0x28], esi
lea rax, str.Return_code__0x_x_
mov qword [rsp + 0x20], rax
mov r8d, r14d
mov edx, 0x28
mov rcx, rbx
call fcn.1400144a0
lea r9, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r9, qword [rsp + 0xc0]
lea rax, str.Function_end
mov qword [rsp + 0x20], rax
mov r8d, r14d
mov edx, 0x32
mov rcx, rbx
call fcn.1400144a0
nop
cmp qword [rsp + 0xd8], 8
jb 0x14004e9d7
mov rcx, qword [rsp + 0xc0]
call fcn.140065920
mov eax, esi
jmp 0x14004e9d9
mov eax, esi
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140064b70
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret