joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f259
Capabilities:
Check if file exists
Enumerate processes
Terminate process

Disassembly:
test rcx, rcx
je 0x14005f3be
push rbx
sub rsp, 0x480
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f3a6
mov r9, rbx
mov qword [rsp + 0x498], rsi
lea r8, [0x14031edd0]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.14004e9f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.1402767a0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005f395
mov qword [rsp + 0x4a0], rdi
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
je 0x14005f377
call fcn.14005e600
mov rbx, rax
test rax, rax
je 0x14005f377
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f377
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x14005f36f
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14005f36f
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140125e14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f300
mov rdi, qword [rsp + 0x4a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x480
pop rbx
ret
Function at 0x14005f3c0
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x480
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x14005f4dd
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f4dd
mov r9, rbx
mov qword [rsp + 0x498], rdi
lea r8, [0x14031ede0]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.14004e9f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.1402767a0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005f4c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
je 0x14005f4af
call fcn.14005e600
mov rbx, rax
test rax, rax
je 0x14005f4af
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f4af
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14005f4c3
mov rcx, rbx
call fcn.140125e14
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f467
jmp 0x14005f4c8
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x498]
mov eax, esi
jmp 0x14005f4df
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop rsi
ret
Function at 0x14005f500
Capabilities:
Check if file exists
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x8c0
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor esi, esi
mov rbx, rdx
mov r14, rcx
test rcx, rcx
je 0x14005f6d6
test rdx, rdx
je 0x14005f6d6
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f6d6
mov r9, rbx
mov qword [rsp + 0x8f0], rbp
lea r8, [0x14031edf0]
mov edx, 0x104
lea rcx, [rsp + 0x6a0]
call fcn.14004e9f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.1402767a0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005f6c1
mov qword [rsp + 0x8f8], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
je 0x14005f6a3
lea rdx, [rsp + 0x4c]
mov rcx, r14
call fcn.1402779b8
test eax, eax
jne 0x14005f6a3
mov edx, dword [rsp + 0x28]
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005f6a3
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x438
call fcn.1402767a0
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x260], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14005f69a
xor r8d, r8d
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x490]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14005f669
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14005f635
jmp 0x14005f69a
mov r8d, dword [rsp + 0x28]
xor esi, esi
xor edx, edx
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14005f69a
lea edx, [rsi + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f5c1
mov rdi, qword [rsp + 0x8f8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x8f0]
mov eax, esi
jmp 0x14005f6d8
xor eax, eax
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x8c0
pop r14
pop rsi
pop rbx
ret
Function at 0x14005f970
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0
mov rdi, r8
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005fa57
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005fa67
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044378c]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005fa57
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005fa57
add eax, 4
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.140125a94
mov rbx, rax
test rax, rax
je 0x14005fa57
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1402767a0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [0x14044378c]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005fa4d
cmp dword [rsp + 0x30], eax
ja 0x14005fa57
mov rcx, rbx
call fcn.140125e14
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005fa67
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14005fa90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0
mov rdi, r8
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005fb79
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005fb89
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x140443780]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005fb79
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005fb79
add eax, 0x108
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.140125a94
mov rbx, rax
test rax, rax
je 0x14005fb79
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1402767a0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [0x140443780]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005fb6f
cmp dword [rsp + 0x30], eax
ja 0x14005fb79
mov rcx, rbx
call fcn.140125e14
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005fb89
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14005fbb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0
mov rdi, r9
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005fca7
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005fcb7
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, reloc.WS2_32.dll_closesocket
lea rdx, str.identity
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005fca7
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005fca7
add eax, 0x108
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.140125a94
mov rbx, rax
test rax, rax
je 0x14005fca7
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1402767a0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, reloc.WS2_32.dll_closesocket
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.identity
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005fc9d
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005fc9d
mov dword [rdi], eax
jmp 0x14005fca7
mov rcx, rbx
call fcn.140125e14
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005fcb7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14005fce0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov r15, r9
mov qword [rsp + 0x50], rdi
mov r14, r8
mov dword [rsp + 0x58], edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
mov rsi, rcx
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, 2
jne 0x14005fd93
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14005fdce
lea rax, [rsp + 0x50]
mov rdx, rbp
lea r9d, [rdi + 2]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 4]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x14005fdd0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005fdce
mov eax, dword [rsp + 0xd0]
lea r9d, [rbx + 1]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005fdf0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, qword [rsp + 0xd0]
lea rax, [rsp + 0x50]
xor edi, edi
mov qword [rsp + 0x20], rax
mov r15d, r9d
mov qword [rsp + 0x50], rdi
mov r14, r8
mov dword [rsp + 0x58], edi
mov rbp, rdx
mov rsi, rcx
lea r9d, [rdi + 2]
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, 2
jne 0x14005fead
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14005fee7
lea rax, [rsp + 0x50]
mov rdx, rbp
lea r9d, [rdi + 2]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 4]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x14005fee9
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005fee7
mov eax, dword [rsp + 0xd8]
mov r9d, r15d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14005ff10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edi, edi
mov dword [rsp + 0x60], 3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov rbp, rdx
mov dword [rsp + 0x58], edi
mov rsi, rcx
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, 2
jne 0x14005ffc4
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140060005
lea rax, [rsp + 0x50]
mov rdx, rbp
lea r9d, [rdi + 2]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 4]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x140060007
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140060005
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Start
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060030
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor edi, edi
mov rsi, rdx
mov qword [rsp + 0x40], rdi
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140060077
lea edi, [rax + 1]
jmp 0x1400601f6
lea rax, [rsp + 0x40]
mov r9d, 0x20006
mov r8d, 4
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400600a7
mov edi, 1
jmp 0x1400601f6
xor esi, esi
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov ebx, esi
call fcn.1402767a0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x140060163
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
lea rcx, [rsp + 0x50]
test eax, eax
mov r8d, 0x208
cmove ebx, esi
xor edx, edx
call fcn.1402767a0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140060100
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov ebx, esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400601f6
nop dword [rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x160]
mov dword [rsp + 0x48], 0x104
call fcn.140060030
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x160]
inc ebx
mov qword [rsp + 0x30], rsi
test eax, eax
mov qword [rsp + 0x28], rsi
mov edi, eax
mov qword [rsp + 0x20], rsi
cmovne ebx, esi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400601a0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140060206
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060230
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
mov dword [rsp + 0x48], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov edi, esi
mov qword [rsp + 0x20], rax
mov ebx, esi
lea r9d, [rsi + 3]
lea r8d, [rsi + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140060344
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1402767a0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x140060339
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400602eb
mov ebx, esi
lea edi, [rax + 1]
jmp 0x1400602ed
inc ebx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1402767a0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1400602d0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140060370
Capabilities:
Modify service
Query service status
Start service

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x90
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x60], ebx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x14006053c
mov r8d, 0xf01ff
mov qword [rsp + 0xb0], rdi
lea rdx, str.WSearch
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400604f9
mov qword [rsp + 0xa0], rbp
mov ebp, ebx
mov qword [rsp + 0xa8], rsi
nop
xor eax, eax
lea rdx, [rsp + 0x68]
mov rcx, rdi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400604cc
cmp dword [rsp + 0x6c], 4
je 0x1400604e9
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov ecx, dword [rsp + 0x60]
call fcn.140125a94
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1402767a0
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1400604ad
cmp dword [rsi + 4], 4
jne 0x1400604ad
mov qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x48], rbx
or edx, 0xffffffff
mov qword [rsp + 0x40], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 3]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400604e4
test rsi, rsi
je 0x1400604cc
mov rcx, rsi
call fcn.140125e14
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0xa
jl 0x1400603f0
jmp 0x1400604e9
mov ebx, 1
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140060510
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0xb0]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop r14
ret
mov eax, ebx
jmp 0x14006051a
Function at 0x140060540
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140060639
lea r8d, [rsi + 0x24]
mov qword [rsp + 0x68], rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400605fe
mov ebx, esi
nop
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400605e5
cmp dword [rsp + 0x24], 1
je 0x1400605fe
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400605f9
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x1400605a0
jmp 0x1400605fe
mov esi, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140060615
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x68]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
mov eax, esi
jmp 0x14006061c