joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c1480
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040feb0
mov rcx, qword [rbp + 0x78]
call fcn.005c0910
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x5c14f5
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.004118c0
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.005c2700
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x5c1649
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.005c0e50
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.005c1800
test al, al
je 0x5c1629
lea rcx, [rbp + 0x70]
xor rdx, rdx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040fac0
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x5c1628
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.004111f0
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.005c0d70
test al, al
je 0x5c1614
mov rcx, qword [rbp + 0x70]
call fcn.004111f0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.00411290
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.005c1480
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x5c1588
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.005c0e50
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey_1
cmp byte [0x006f137c], 0
je 0x5c16a8
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.005c0e30
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.004111f0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.005c0d70
mov byte [rbp + 0x8f], al
jmp 0x5c16e7
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.005c0e30
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.004111f0
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.005c0d70
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040f800
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040f8e0
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret

Function at 0x5c17d0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.004111f0
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.005c0d70
add rsp, 0x20
pop rbx
ret
Function at 0x5c2fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0xb8]
call fcn.005c0e50
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
lea rdx, [rbp + 0x64]
call fcn.005c1800
test al, al
je 0x5c315d
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.005c2d80
lea rcx, [rbp + 0x58]
xor rdx, rdx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.0040fac0
xor rax, rax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x5c315c
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.004111f0
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov rcx, qword [rbp + 0xb0]
lea rcx, [rcx + rbp + 0x50]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov edx, eax
call fcn.005c0d70
test al, al
je 0x5c3149
mov rcx, qword [rbp + 0x58]
call fcn.004111f0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.00411290
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.005c2d80
add dword [rbp + 0x80], 1
cmp dword [rbp + 0x80], ebx
jne 0x5c30a0
nop
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0x88]
call fcn.005c0e50
nop
lea rcx, [rbp + 0x40]
call fcn.0040f800
lea rcx, [rbp + 0x58]
call fcn.0040f800
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret

Function at 0x5c3230
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rdx
mov qword [rbp + 0xf0], r8
nop
mov rax, qword [rbp + 0xe0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rax, qword [rax + 8]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xe0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0xe8]
call fcn.005c0e50
nop
mov rax, qword [rbp + 0xe0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
lea rdx, [rbp + 0x8c]
call fcn.005c1800
test al, al
je 0x5c353c
lea rcx, [rbp + 0x80]
xor rdx, rdx
mov r8d, dword [rbp + 0x90]
add r8d, 1
call fcn.0040fac0
rol bh, 0xe4
dec dword [rax + 0x33]
ror byte [rbx + 0x8c8d], 0
Function at 0x5c5350
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov dword [rbp + 0x2c], 0
mov rax, qword [rbp + 0x48]
movsxd rcx, dword [rbp + 0x2c]
mov ecx, dword [rax + rcx*4]
call fcn.005c52b0
mov rcx, qword [rbp + 0x40]
movsxd rdx, dword [rbp + 0x2c]
mov dword [rcx + rdx*4], eax
add dword [rbp + 0x2c], 1
cmp dword [rbp + 0x2c], 0x10
jne 0x5c5367
nop
mov dword [rbp + 0x2c], 0x10
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rbp + 0x2c]
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x2c]
mov eax, dword [rax + rcx*4 - 0xc]
xor eax, dword [rdx + r8*4 - 0x20]
mov rcx, qword [rbp + 0x40]
movsxd rdx, dword [rbp + 0x2c]
xor eax, dword [rcx + rdx*4 - 0x38]
mov rcx, qword [rbp + 0x40]
movsxd rdx, dword [rbp + 0x2c]
xor eax, dword [rcx + rdx*4 - 0x40]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rbp + 0x2c]
mov edx, dword [rbp + 0x28]
add edx, edx
mov r8d, dword [rbp + 0x28]
shr r8d, 0x1f
or edx, r8d
mov dword [rax + rcx*4], edx
add dword [rbp + 0x2c], 1
cmp dword [rbp + 0x2c], 0x50
jne 0x5c5394
nop
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x5ca4a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x10
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
xor rax, rax
mov ecx, dword [rbp + 0x30]
sub ecx, 1
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], ecx
jg 0x5ca4fa
add ecx, 1
mov rax, qword [rbp + 0x38]
movsxd rdx, dword [rbp + 0xc]
mov r8, qword [rbp + 0x20]
movsxd r9, dword [rbp + 0xc]
mov r10, qword [rbp + 0x28]
movsxd r11, dword [rbp + 0xc]
movzx r8, byte [r8 + r9]
xor r8b, byte [r10 + r11]
mov byte [rax + rdx], r8b
add dword [rbp + 0xc], 1
cmp dword [rbp + 0xc], ecx
jne 0x5ca4cc
nop
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x5d04b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov rax, qword [rbp + 0x70]
lea rax, [rax + rbp + 0x60]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rax, qword [rax + 0x68]
mov rcx, qword [rbp + 0x70]
lea rcx, [rcx + rbp + 0x60]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov ecx, dword [rcx + 0x48]
shr ecx, 1
movsxd rcx, ecx
lea rax, [rax + rcx]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x70]
lea rax, [rax + rbp + 0x60]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rcx, qword [rax + 0x68]
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x70]
lea rax, [rax + rbp + 0x60]
mov r8, rbp
neg r8
mov rax, qword [rax + r8]
mov r8d, dword [rax + 0x48]
shr r8d, 1
movsxd r8, r8d
call fcn.00408ce0
add qword [rbp + 0x30], 0x10
xor rax, rax
mov rcx, qword [rbp + 0x70]
lea rcx, [rcx + rbp + 0x60]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov ebx, dword [rcx + 0xa0]
add ebx, ebx
add ebx, ebx
sub ebx, 5
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], ebx
jg 0x5d061c
add ebx, 1
lea rax, [0x0064b1ac]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx]
shr ecx, 8
and ecx, 0xff
movsxd rcx, ecx
mov ecx, dword [rax + rcx*4]
mov edx, 8
call fcn.005ca220
mov esi, eax
lea rax, [0x0064b1ac]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx]
shr ecx, 0x10
and ecx, 0xff
movsxd rcx, ecx
mov ecx, dword [rax + rcx*4]
mov edx, 0x10
call fcn.005ca220
mov edi, eax
lea rax, [0x0064b1ac]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx]
shr ecx, 0x18
movsxd rcx, ecx
mov ecx, dword [rax + rcx*4]
mov edx, 0x18
call fcn.005ca220
mov rcx, qword [rbp + 0x30]
lea rdx, [0x0064b1ac]
mov r8, qword [rbp + 0x30]
mov r8d, dword [r8]
and r8d, 0xff
movsxd r8, r8d
mov edx, dword [rdx + r8*4]
xor edx, esi
xor edx, edi
xor edx, eax
mov dword [rcx], edx
add qword [rbp + 0x30], 4
add dword [rbp + 0x3c], 1
cmp dword [rbp + 0x3c], ebx
jne 0x5d056f
nop
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x5f8ce0
Capabilities:
Get hostname

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rcx, qword [rbp + 0x50]
call fcn.0040f800
mov dword [rbp + 0x34], 0
xor rcx, rcx
lea rdx, [rbp + 0x34]
call sub.kernel32.dll_GetComputerNameW
cmp dword [rbp + 0x34], 1
jb 0x5f8d68
mov ecx, dword [rbp + 0x34]
add ecx, 1
add ecx, ecx
mov ecx, ecx
call fcn.00408850
mov qword [rbp + 0x38], rax
nop
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x34]
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5f8d44
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x38]
call fcn.00411290
nop
mov rcx, qword [rbp + 0x38]
call fcn.00408880
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
jne 0x5f8d68
mov rcx, qword [rbp + 0x50]
lea rdx, [0x005f8db0]
call fcn.0056d440
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x5f8dd0
Capabilities:
Get hostname

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rcx, qword [rbp + 0x50]
call fcn.0040f800
mov dword [rbp + 0x34], 0
mov ecx, 3
xor rdx, rdx
lea r8, [rbp + 0x34]
call sub.kernel32.dll_GetComputerNameExW
cmp dword [rbp + 0x34], 1
jb 0x5f8e4a
mov ecx, dword [rbp + 0x34]
add ecx, 1
add ecx, ecx
mov ecx, ecx
call fcn.00408850
mov qword [rbp + 0x38], rax
nop
mov ecx, 3
mov rdx, qword [rbp + 0x38]
lea r8, [rbp + 0x34]
call sub.kernel32.dll_GetComputerNameExW
test eax, eax
je 0x5f8e40
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x38]
call fcn.00411290
nop
mov rcx, qword [rbp + 0x38]
call fcn.00408880
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x5f8f80
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x80], rcx
nop
mov byte [rbp + 0x4f], 0
lea rcx, [rbp + 0x50]
mov edx, 1
call fcn.00411480
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax]
call fcn.004111f0
mov rbx, rax
mov rcx, qword [rbp + 0x50]
call fcn.004111f0
mov rcx, rbx
mov rdx, rax
xor r8, r8
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [rbp + 0x58], eax
lea rcx, [rbp + 0x50]
mov edx, dword [rbp + 0x58]
call fcn.00411480
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax]
call fcn.004111f0
mov rbx, rax
mov rcx, qword [rbp + 0x50]
call fcn.004111f0
mov rcx, rbx
mov rdx, rax
mov r8d, dword [rbp + 0x58]
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne al
mov byte [rbp + 0x5f], al
cmp byte [rbp + 0x5f], 0
je 0x5f9049
cmp dword [rbp + 0x58], 0
jle 0x5f9049
lea rcx, [rbp + 0x50]
mov edx, dword [rbp + 0x58]
sub edx, 1
call fcn.00411480
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x50]
call fcn.0040fe30
lea rcx, [0x005f9128]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax]
mov r8d, 1
call fcn.00411b20
test eax, eax
jle 0x5f9096
lea rcx, [rbp + 0x38]
call fcn.005faba0
mov rcx, qword [rbp + 0x80]
lea rdx, [0x005f9128]
mov r8, qword [rbp + 0x38]
xor r9, r9
mov byte [rsp + 0x20], 0
call fcn.0056c910
mov byte [rbp + 0x5f], 1
cmp byte [rbp + 0x4f], 0
je 0x5f90be
mov rcx, qword [rbp + 0x80]
lea rdx, [0x005f9148]
lea r8, [0x005f915c]
xor r9, r9
mov byte [rsp + 0x20], 0
call fcn.0056c910
nop
lea rcx, [rbp + 0x38]
call fcn.0040f800
lea rcx, [rbp + 0x50]
call fcn.0040f800
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x5ff8c0
Capabilities:
Access the windows event log

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov dword [rbp + 0x80], r8d
mov word [rbp + 0x88], r9w
mov rcx, qword [rbp + 0x78]
call fcn.0040f990
nop
mov rcx, qword [rbp + 0x78]
call fcn.004111f0
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x70]
cmp dword [rax + 0x10], 0
jne 0x5ff91f
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax + 8]
call fcn.004111f0
xor rcx, rcx
mov rdx, rax
call sub.advapi32.dll_RegisterEventSourceW
mov rcx, qword [rbp + 0x70]
mov dword [rcx + 0x10], eax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 0x10]
movzx rdx, word [rbp + 0x80]
movzx r8, word [rbp + 0x88]
mov r9d, dword [rbp + 0x90]
mov qword [rsp + 0x20], 0
mov word [rsp + 0x28], 1
mov dword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
call sub.advapi32.dll_ReportEventW
nop
lea rcx, [rbp + 0x78]
call fcn.0040f800
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x601980
Capabilities:
Create service

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0x98], rbp
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
mov qword [rbp + 0x110], r8
nop
lea rcx, [rbp + 0xa0]
mov edx, 3
lea r8, [0x00601d14]
mov rax, qword [0x006532b8]
mov r9, qword [rax]
lea rax, [0x00601d24]
mov qword [rsp + 0x20], rax
call fcn.00411770
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0x128], 0
je 0x601a29
mov rax, qword [rbp + 0x108]
lea rbx, [rax + 0x128]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x108]
call qword [rbx]
mov rax, qword [rbp + 0x108]
mov eax, dword [rax + 0x118]
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0
jbe 0x601a55
lea rax, [rbp + 0xbc]
mov qword [rbp + 0xb0], rax
jmp 0x601a60
mov qword [rbp + 0xb0], 0
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0xf8], 0
jne 0x601a7e
mov qword [rbp + 0xa8], 0
jmp 0x601a98
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xf8]
call fcn.004111f0
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0x10]
call fcn.004111f0
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0x90]
call fcn.006004f0
mov rcx, qword [rbp + 0x90]
call fcn.004111f0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x108]
call fcn.006009a0
mov dword [rbp + 0x70], eax
mov rcx, qword [rbp + 0x108]
call fcn.00600a20
mov dword [rbp + 0x74], eax
mov rcx, qword [rbp + 0x108]
call fcn.00600aa0
mov ebx, eax
mov rcx, qword [rbp + 0xa0]
call fcn.004111f0
mov rsi, rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xe0]
call fcn.004111f0
mov rdi, rax
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0x88]
call fcn.00600830
mov rcx, qword [rbp + 0x88]
call fcn.004111f0
mov r13, rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xf0]
call fcn.004111f0
mov rcx, qword [rbp + 0x110]
mov rdx, qword [rbp + 0x78]
mov r8, qword [rbp + 0x80]
mov r9d, 0xf01ff
mov r10d, dword [rbp + 0x70]
mov dword [rsp + 0x20], r10d
mov r10d, dword [rbp + 0x74]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov r10, qword [rbp + 0xb0]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x50], r13
mov r10, qword [rbp + 0xa8]
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x60], rax
call sub.advapi32.dll_CreateServiceW
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x108]
mov ecx, dword [rbp + 0xbc]
mov dword [rax + 0x118], ecx
cmp qword [rbp + 0xc8], 0
jne 0x601be1
call fcn.0043ebc0
nop
nop
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0x138], 0
je 0x601c33
mov rax, qword [rbp + 0x108]
lea rbx, [rax + 0x138]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x108]
call qword [rbx]
jmp 0x601c33
nop
mov rcx, qword [rbp + 0xc8]
call sub.advapi32.dll_CloseServiceHandle
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040f8e0
lea rcx, [rbp + 0xa0]
call fcn.0040f800
lea rsp, [rbp + 0xd0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x601d40
Capabilities:
Delete service

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x70], r8
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x148], 0
je 0x601d7c
mov rax, qword [rbp + 0x68]
lea rbx, [rax + 0x148]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x68]
call qword [rbx]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x10]
call fcn.004111f0
mov rcx, qword [rbp + 0x70]
mov rdx, rax
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x601dac
call fcn.0043ebc0
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x601dbf
call fcn.0043ebc0
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x158], 0
je 0x601dec
mov rax, qword [rbp + 0x68]
lea rbx, [rax + 0x158]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x68]
call qword [rbx]
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret
Function at 0x607010
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov byte [rbp + 0x3f], 1
mov rax, qword [rbp + 0x50]
cmp byte [rax + 0x9c], 0
jne 0x6071dc
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0xa0]
call fcn.0050e6d0
mov rax, qword [rbp + 0x50]
mov dword [rax + 0xb0], 0x1000
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0xa8]
mov rax, qword [rbp + 0x50]
mov edx, dword [rax + 0xb0]
call fcn.004088b0
jmp 0x6071b8
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x70]
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax + 0xa8]
mov rax, qword [rbp + 0x50]
mov r8d, dword [rax + 0xb0]
mov rax, qword [rbp + 0x50]
lea r9, [rax + 0x98]
mov rax, qword [rbp + 0x50]
lea rax, [rax + 0xd8]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadFile_1
test eax, eax
setne al
mov byte [rbp + 0x3e], al
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x78], eax
cmp byte [rbp + 0x3e], 0
je 0x6070fe
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + 0xa8]
mov r8, qword [rbp + 0x50]
mov r8d, dword [r8 + 0x98]
mov rax, qword [rax]
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x50]
call fcn.00607600
jmp 0x6071b8
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x78], 0xea
jne 0x60719a
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + 0xa8]
mov r8, qword [rbp + 0x50]
mov r8d, dword [r8 + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x20]
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x70]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov rax, qword [rbp + 0x50]
lea rax, [rax + 0xb0]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x607188
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0xa8]
mov rax, qword [rbp + 0x50]
mov edx, dword [rax + 0xb0]
call fcn.004088b0
jmp 0x6071b8
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x78], eax
mov byte [rbp + 0x3f], 0
jmp 0x6071b8
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x78], 0x3e5
jne 0x6071b4
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x9c], 1
jmp 0x6071b8
mov byte [rbp + 0x3f], 0
mov rcx, qword [rbp + 0x50]
call fcn.00605200
test al, al
je 0x6071dc
cmp byte [rbp + 0x3f], 0
je 0x6071dc
mov rax, qword [rbp + 0x50]
cmp byte [rax + 0x9c], 0
je 0x60706e
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x6071f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0xf0]
call sub.kernel32.dll_ResetEvent
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x70]
mov rax, qword [rbp + 0x50]
lea rdx, [rax + 0xd8]
mov rax, qword [rbp + 0x50]
lea r8, [rax + 0x98]
or r9d, 0xffffffff
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
setne al
mov byte [rbp + 0x3f], al
cmp byte [rbp + 0x3f], 0
jne 0x60735e
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x78], eax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x78], 0xea
jne 0x60735e
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + 0xa8]
mov r8, qword [rbp + 0x50]
mov r8d, dword [r8 + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x20]
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x70]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov rax, qword [rbp + 0x50]
lea rax, [rax + 0xb0]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
setne al
mov byte [rbp + 0x3f], al
cmp byte [rbp + 0x3f], 0
je 0x607352
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0xa8]
mov rax, qword [rbp + 0x50]
mov edx, dword [rax + 0xb0]
call fcn.004088b0
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x70]
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax + 0xa8]
mov rax, qword [rbp + 0x50]
mov r8d, dword [rax + 0xb0]
mov rax, qword [rbp + 0x50]
lea r9, [rax + 0x98]
mov rax, qword [rbp + 0x50]
lea rax, [rax + 0xd8]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadFile_1
test eax, eax
setne al
mov byte [rbp + 0x3f], al
cmp byte [rbp + 0x3f], 0
jne 0x60735e
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x78], eax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x78], 0x3e5
jne 0x60735e
mov byte [rbp + 0x3f], 1
jmp 0x6073a2
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x78], eax
cmp byte [rbp + 0x3f], 0
je 0x6073a2
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + 0xa8]
mov r8, qword [rbp + 0x50]
mov r8d, dword [r8 + 0x98]
mov rax, qword [rax]
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x50]
call fcn.00607600
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x9c], 0
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x40]
pop rbp
ret