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

Disassembly:
test rcx, rcx
je 0x14005fa0e
push rbx
sub rsp, 0x480
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f9f6
mov r9, rbx
mov qword [rsp + 0x498], rsi
lea r8, [0x140323e00]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.14027b2c0
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 0x14005f9e5
mov qword [rsp + 0x4a0], rdi
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
je 0x14005f9c7
call fcn.14005ec50
mov rbx, rax
test rax, rax
je 0x14005f9c7
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f9c7
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x14005f9bf
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 0x14005f9bf
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.14012a2d4
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f950
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.14012a2b0
add rsp, 0x480
pop rbx
ret
Function at 0x14005f8a9
Capabilities:
Check if file exists
Enumerate processes
Terminate process

Disassembly:
test rcx, rcx
je 0x14005fa0e
push rbx
sub rsp, 0x480
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f9f6
mov r9, rbx
mov qword [rsp + 0x498], rsi
lea r8, [0x140323e00]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.14027b2c0
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 0x14005f9e5
mov qword [rsp + 0x4a0], rdi
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
je 0x14005f9c7
call fcn.14005ec50
mov rbx, rax
test rax, rax
je 0x14005f9c7
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f9c7
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x14005f9bf
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 0x14005f9bf
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.14012a2d4
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f950
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.14012a2b0
add rsp, 0x480
pop rbx
ret
Function at 0x14005fa10
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x480
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x14005fb2d
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005fb2d
mov r9, rbx
mov qword [rsp + 0x498], rdi
lea r8, [0x140323e10]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.14027b2c0
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 0x14005fb18
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
je 0x14005faff
call fcn.14005ec50
mov rbx, rax
test rax, rax
je 0x14005faff
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005faff
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14005fb13
mov rcx, rbx
call fcn.14012a2d4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005fab7
jmp 0x14005fb18
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x498]
mov eax, esi
jmp 0x14005fb2f
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop rsi
ret
Function at 0x14005fb50
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 [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor esi, esi
mov rbx, rdx
mov r14, rcx
test rcx, rcx
je 0x14005fd26
test rdx, rdx
je 0x14005fd26
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005fd26
mov r9, rbx
mov qword [rsp + 0x8f0], rbp
lea r8, [0x140323e20]
mov edx, 0x104
lea rcx, [rsp + 0x6a0]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.14027b2c0
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 0x14005fd11
mov qword [rsp + 0x8f8], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
je 0x14005fcf3
lea rdx, [rsp + 0x4c]
mov rcx, r14
call fcn.14027c4d8
test eax, eax
jne 0x14005fcf3
mov edx, dword [rsp + 0x28]
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005fcf3
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x438
call fcn.14027b2c0
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x260], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14005fcea
xor r8d, r8d
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x490]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14005fcb9
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14005fc85
jmp 0x14005fcea
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 0x14005fcea
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 0x14005fc11
mov rdi, qword [rsp + 0x8f8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x8f0]
mov eax, esi
jmp 0x14005fd28
xor eax, eax
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x8c0
pop r14
pop rsi
pop rbx
ret
Function at 0x14005ffc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
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 0x1400600a7
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400600b7
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044b740]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400600a7
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400600a7
add eax, 4
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14012a2dc
mov rbx, rax
test rax, rax
je 0x1400600a7
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [0x14044b740]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006009d
cmp dword [rsp + 0x30], eax
ja 0x1400600a7
mov rcx, rbx
call fcn.14012a2d4
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400600b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400600e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], ebx
lea rdx, str.SYSTEMCurrentControlSetControlSession_Manager
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400601d8
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400601e8
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044b730]
lea rdx, str.PendingFileRenameOperations
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400601d8
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400601d8
add eax, 0x108
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14012a2dc
mov rbx, rax
test rax, rax
je 0x1400601d8
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [0x14044b730]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.PendingFileRenameOperations
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400601ce
cmp dword [rsp + 0x30], eax
ja 0x1400601d8
mov rcx, rbx
call fcn.14012a2d4
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400601e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x50
pop rbx
ret
Function at 0x140060200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
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 0x1400602e9
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400602f9
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044b734]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400602e9
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400602e9
add eax, 0x108
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14012a2dc
mov rbx, rax
test rax, rax
je 0x1400602e9
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [0x14044b734]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400602df
cmp dword [rsp + 0x30], eax
ja 0x1400602e9
mov rcx, rbx
call fcn.14012a2d4
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400602f9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140060320
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
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 0x140060417
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140060427
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 0x140060417
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140060417
add eax, 0x108
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14012a2dc
mov rbx, rax
test rax, rax
je 0x140060417
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
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 0x14006040d
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14006040d
mov dword [rdi], eax
jmp 0x140060417
mov rcx, rbx
call fcn.14012a2d4
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140060427
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140060450
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1403a8088]
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 0x140060503
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 0x14006053e
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 0x140060540
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006053e
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.14012a2b0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140060560
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 [0x1403a8088]
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 0x14006061d
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 0x140060657
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 0x140060659
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140060657
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.14012a2b0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140060680
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403a8088]
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 0x140060734
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 0x140060775
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 0x140060777
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140060775
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140339970]
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.14012a2b0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400607a0
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 [0x1403a8088]
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 0x1400607e7
lea edi, [rax + 1]
jmp 0x140060966
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 0x140060817
mov edi, 1
jmp 0x140060966
xor esi, esi
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov ebx, esi
call fcn.14027b2c0
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 0x1400608d3
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.14027b2c0
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 0x140060870
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 0x140060966
nop dword [rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x160]
mov dword [rsp + 0x48], 0x104
call fcn.1400607a0
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 0x140060910
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140060976
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400609a0
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 [0x1403a8088]
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 0x140060ab4
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14027b2c0
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 0x140060aa9
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140060a5b
mov ebx, esi
lea edi, [rax + 1]
jmp 0x140060a5d
inc ebx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14027b2c0
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 0x140060a40
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.14012a2b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret