joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f960
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
mov ecx, dword [rcx + 0x70]
test ecx, ecx
je 0x14001f9c2
xor r9d, r9d
lea edx, [rdi + 0x12]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x14001f9b0
mov rcx, qword [rbx + 0x30]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f9ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0x70], edi
jmp 0x14001f9c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001fa1f
mov rax, qword [rbx + 0x60]
test rax, rax
je 0x14001fa17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x40]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rdi
mov dword [rbx + 0x78], edi
jmp 0x14001fa1f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001fa7c
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x14001fa74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x38]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rdi
mov dword [rbx + 0x74], edi
jmp 0x14001fa7c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
call fcn.14001f150
mov rcx, qword [0x140075eb0]
test rcx, rcx
je 0x14001fa96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001faa5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14001fab4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001fac3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001fad2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400232d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [0x140075ea4], 9
jge 0x1400234a7
lea rbp, [0x1400761d0]
mov qword [rsp + 0x58], rbp
mov rcx, rbp
call fcn.14002a0dc
test eax, eax
jne 0x1400234cd
call fcn.140012730
mov rsi, rax
test rax, rax
je 0x14002349f
call fcn.1400234e0
mov ecx, dword [0x140075e04]
cmp ecx, 1
jne 0x14002335b
xor edi, edi
mov ebx, edi
test eax, eax
setne bl
add ebx, 3
cmp qword [rsi + 0x20], rdi
je 0x140023398
mov rcx, qword [rsi + 0x28]
test rcx, rcx
jmp 0x140023390
cmp ecx, 2
jne 0x14002336e
xor edi, edi
mov ebx, edi
test eax, eax
setne bl
add ebx, 5
jmp 0x140023383
cmp ecx, 4
jne 0x14002349f
xor edi, edi
mov ebx, edi
test eax, eax
setne bl
add ebx, 7
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023398
cmp qword [rsi + 0x28], rdi
je 0x140023398
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [rsp + 0x50], edi
mov esi, ebx
shl esi, 0x10
or esi, 0x10d001
cmp dword [0x140075ea4], 4
jne 0x1400233c9
cmp ebx, 7
jae 0x1400233c9
lfence
mov ecx, ebx
call fcn.1400282f0
mov ecx, 0xfd001
test al, al
cmove esi, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r9, [rsp + 0x50]
mov r8d, esi
mov edx, 0x22270c
lea rcx, [rsp + 0x68]
call fcn.14001ec30
test eax, eax
je 0x14002347e
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICPSC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002346e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.CurrentSetting
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002347e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002348e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002349f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbp
call fcn.14002a0e4
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.140029cb0
int3
Function at 0x140023f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024075
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.SystemManufacturer
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024075
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.SystemManufacturer
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024075
mov ecx, edi
lea rdx, [rsp + 0x40]
lea r8, str.LENOVO
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140024075
cmp rcx, 7
jne 0x140024000
xor ecx, ecx
call fcn.1400242d0
test al, al
je 0x140024075
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call fcn.140025100
test al, al
je 0x140024075
mov r8d, ebx
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140024ca0
mov edx, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rbx, rbx
je 0x14002406b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov bl, 1
jmp 0x140024077
xor bl, bl
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140024087
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400241f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov r9d, 0x20019
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICAMT
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002429e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.Counter
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002429e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Counter
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400242ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140024620
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x128
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x110], rax
xorps xmm0, xmm0
xor eax, eax
xor ecx, ecx
mov dword [rsp + 0x88], eax
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call fcn.14003c630
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x68]
call fcn.14003c9b8
test eax, eax
jne 0x140024777
lea r9, [rsp + 0x68]
lea r8, str._Y__m__d__H:_M:_S
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x90]
call fcn.14003e194
test rax, rax
je 0x140024777
xor ecx, ecx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCNotification
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400246ed
xor bl, bl
jmp 0x140024744
lea rcx, [rsp + 0x90]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140024700
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.OOBE
lea rax, [rsp + 0x90]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140024754
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x128
ret
xor al, al
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x128
ret
Function at 0x140024b20
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x128
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x110], rax
xorps xmm0, xmm0
xor eax, eax
xor ecx, ecx
mov dword [rsp + 0x88], eax
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call fcn.14003c630
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x68]
call fcn.14003c9b8
test eax, eax
jne 0x140024c77
lea r9, [rsp + 0x68]
lea r8, str._Y__m__d__H:_M:_S
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x90]
call fcn.14003e194
test rax, rax
je 0x140024c77
xor ecx, ecx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCNotification
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140024bed
xor bl, bl
jmp 0x140024c44
lea rcx, [rsp + 0x90]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140024c00
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x1400686e8]
lea rax, [rsp + 0x90]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140024c54
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x128
ret
xor al, al
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x128
ret
Function at 0x140025100
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [rsp + 0x30]
mov r8d, 8
mov edi, eax
xor ecx, ecx
lea rax, [rsp + 0x38]
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140025170
mov rcx, qword [rsp + 0x30]
cmp dword [rcx], 0
jne 0x140025176
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140025170
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
setne al
jmp 0x140025178
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140025c30
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x40], 0
lea rax, [rcx + 0x40]
mov rbx, rcx
jne 0x140025c67
mov r9, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x140025510]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
cmp dword [rbx + 0x44], 0
lea rax, [rbx + 0x44]
jne 0x140025c96
mov qword [rsp + 0x28], rax
lea r8, [0x1400256e0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
mov eax, dword [rbx + 0x64]
sub eax, 2
test eax, 0xfffffffd
jne 0x140025cd3
cmp qword [rbx + 0x30], 0
jne 0x140025cd3
lea rax, [rbx + 0x4c]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140026650]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x30], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140025ce0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, 0xf
mov rbx, rcx
call fcn.140026270
mov ecx, dword [rbx + 0x40]
xor edi, edi
test ecx, ecx
je 0x140025d48
xor r9d, r9d
lea edx, [rdi + 0x12]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x140025d37
mov rcx, qword [rbx]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140025d32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov dword [rbx + 0x40], edi
jmp 0x140025d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [rbx + 0x44], edi
je 0x140025d8f
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov dword [rbx + 0x44], edi
cmp dword [rbx + 0x4c], edi
je 0x140025dd6
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x30]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x30]
mov qword [rbx + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0x4c], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140025df0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp - 8], rax
mov eax, dword [rcx + 0x64]
xor edi, edi
dec eax
mov dword [rbp - 0xc], edi
mov dword [rbp - 0x18], edi
mov rbx, rcx
mov dword [rbp - 0x1c], edi
cmp eax, 1
ja 0x140025ec8
lea rax, [rbp - 0x30]
mov qword [rbp - 0x30], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICAMT
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025fb6
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.CurrentSetting
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025f83
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x18]
lea rax, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.CurrentSetting
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025f83
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x28]
mov qword [rbp - 0x28], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x20], edi
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICPSC
mov dword [rbp - 0x10], edi
mov rcx, 0xffffffff80000002
mov dword [rbp - 0x14], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025fb6
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.CurrentSetting
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025fac
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.CurrentSetting
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025fac
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rbx + 0x64]
lea eax, [rcx - 4]
cmp eax, 1
jbe 0x140025f9e
cmp ecx, 3
jne 0x140025f89
mov eax, dword [rbp - 0x20]
add eax, 0xfffffffb
cmp eax, 1
setbe al
jmp 0x140025fb8
mov rcx, qword [rbp - 0x30]
jmp 0x140025fb0
cmp dword [rbp - 0xc], 2
jne 0x140025fb6
mov eax, dword [rbp - 0x20]
add eax, 0xfffffffb
cmp eax, 1
ja 0x140025fb6
mov al, 1
jmp 0x140025fb8
mov eax, dword [rbp - 0x20]
add eax, 0xfffffffd
cmp eax, 3
setbe al
jmp 0x140025fb8
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
Function at 0x140026ac0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r14, rdx
xor r15d, r15d
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionCapabilityAccessManagerConsentStorewebcam_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140026cd9
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140026cd9
mov esi, r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.14002d0c0
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x48], 0x104
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140026cce
lea rcx, [rbp + 0x40]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140026ba0
lea rdi, [rbp + 0x40]
lea rdi, [rdi + rax*2]
mov rbx, qword [0x1400762a0]
test rbx, rbx
je 0x140026c7c
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x50]
call fcn.14002d0c0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
lea r9, [0x1400762a8]
mov r8, rdi
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140005690
nop
mov r8b, 1
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140005ec0
movzx ebx, al
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140026c65
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026d07
call fcn.14002a9dc
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
lea rcx, [rbp - 0x70]
call fcn.140005520
lea rcx, [rsp + 0x50]
call fcn.140005520
test bl, bl
jne 0x140026c9b
inc esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.14002d0c0
mov edx, esi
mov rcx, qword [rsp + 0x40]
jmp 0x140026b55
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionCapabilityAccessManagerConsentStorewebcam_
lea r8, str._s_s
mov edx, 0x4b0
mov rcx, r14
call fcn.1400126d0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140026cdb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140031340
int3