joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001cd40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x788]
sub rsp, 0x880
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rbp + 0x770], rax
xor esi, esi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x60], rsi
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftInternet_Explorer
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.18000f6c0
test eax, eax
jne 0x18001ceee
call fcn.180001c50
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x18001cdcd
mov ecx, 0x80004005
call fcn.1800019b0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov word [rsp + 0x70], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x72]
call fcn.1800306f0
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001ce47
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x18001ce47
cmp dword [rsp + 0x30], 0
jne 0x18001ce47
mov word [rsp + 0x70], si
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x18001ce50
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.180002740
mov rbx, qword [rsp + 0x38]
mov eax, dword [rbx - 0x10]
test eax, eax
jle 0x18001ced9
mov edx, 0x2e
mov rcx, rbx
call fcn.180030974
test rax, rax
je 0x18001ced9
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x18001ced9
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.18000f5e0
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.180030960
mov esi, eax
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001cece
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
jmp 0x18001cedd
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001ceee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18001cefe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1800305e0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18001cff0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x20], VarUI4FromDisp
call fcn.1800306f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x18001d05f
cmp dword [rsp + 0x28], 1
jne 0x18001d0cb
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret
cmp eax, 6
jne 0x18001d0cb
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x18001d0ae
dec eax
je 0x18001d091
dec eax
jne 0x18001d0cb
mov eax, 4
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret
mov eax, 3
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret
mov eax, 2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret

Function at 0x18001d0f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rbx
call fcn.18000f6c0
test eax, eax
jne 0x18001d169
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.EnableLUA
xor r8d, r8d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x60], ebx
setne bl
cmp qword [rsp + 0x30], 0
je 0x18001d17c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x180022730
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x18002275e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180023670
cmp byte [0x180072098], 0
jne 0x1800227a9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180022799
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180072098], 1
mov qword [0x180072090], rax
jmp 0x1800227b0
mov rax, qword [0x180072090]
mov byte [0x180072098], 1
jmp 0x1800227b0
mov rax, qword [0x180072090]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1800227cf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800236e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180023706
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180023706
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180023706
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180023520
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.18000f6c0
mov ebx, eax
test eax, eax
jne 0x180023637
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180023611
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180023520
mov ebx, eax
test eax, eax
jne 0x180023637
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800235c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180023626
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebp
call fcn.180022730
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180023647
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800305e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180023670
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x18002275e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180023670
cmp byte [0x180072098], 0
jne 0x1800227a9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180022799
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180072098], 1
mov qword [0x180072090], rax
jmp 0x1800227b0
mov rax, qword [0x180072090]
mov byte [0x180072098], 1
jmp 0x1800227b0
mov rax, qword [0x180072090]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1800227cf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800236e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180023706
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180023706
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180023706
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180023980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call fcn.180024f70
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180023a0c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call fcn.180024f70
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180023a0c
call fcn.180005af0
mov ebx, eax
jmp 0x180023b34
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180023a2d
call fcn.180005af0
jmp 0x180023b23
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180023a50
call fcn.180005af0
jmp 0x180023b23
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180023a72
mov ebx, 0x8007000e
jmp 0x180023b25
mov ecx, eax
test eax, eax
je 0x180023aaa
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180023aa0
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180023aaa
lea rcx, [rsp + 0x70]
call fcn.1800221f0
jmp 0x180023ab4
mov ecx, 0x80070216
call fcn.1800019b0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180023ac7
cmp qword [rsp + 0x70], 0
jne 0x180023ad6
mov ebx, 0x8007000e
jmp 0x180023b25
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180023b00
call fcn.180005af0
jmp 0x180023b23
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800237a0
mov ebx, eax
test rdi, rdi
je 0x180023b34
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180023b4b
lea rcx, [rsp + 0x70]
call fcn.180022860
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180024430
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x180024448
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x180024454
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x180024450
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180024f70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x58], rbx
mov eax, dword [0x180071c80]
test eax, eax
je 0x180024fbb
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180071c80]
test eax, eax
jne 0x180024fc4
call fcn.18000d3d0
test eax, eax
je 0x180024fda
lea rdx, [rsp + 0x58]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180024fde
xor eax, eax
jmp 0x180025026
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x20], rax
mov edi, ebx
test rax, rax
sete dil
test edi, edi
je 0x18002500a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x180025023
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x180027e10
Capabilities:
Capture webcam image

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x68]
mov rdi, rcx
cmp dword [rax - 0x10], 0
je 0x180027f21
cmp qword [rcx + 0x70], 0
je 0x180027f21
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov r9, qword [rdi + 0x68]
xor edx, edx
mov r8d, 0x101
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r8d, dword [rdi + 0x30]
mov rcx, qword [rdi + 0x38]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x38]
lea r9, [rsp + 0x40]
movsxd r8, eax
mov edx, 0x41d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x38]
lea r8, [rsp + 0x40]
mov r9d, 2
xor edx, edx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x40]
mov rdi, qword [rdi + 0x38]
mov edx, esi
call fcn.180029070
xor ecx, ecx
mov r9d, esi
mov qword [rsp + 0x30], rcx
lea edx, [rcx + 2]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ecx
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_TrackPopupMenu]
mov rsi, qword [rsp + 0x80]
test rbx, rbx
je 0x180027f04
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov eax, 1
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x60
pop rdi
ret

Function at 0x180027f40
Capabilities:
Capture webcam image

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov r9, qword [rdi + 0x58]
xor edx, edx
mov r8d, 0x101
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r8d, dword [rdi + 0x30]
xorps xmm0, xmm0
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
mov edx, 0x419
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x38]
lea r9, [rsp + 0x40]
movsxd r8, eax
mov edx, 0x41d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x38]
lea r8, [rsp + 0x40]
mov r9d, 2
xor edx, edx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x40]
mov rdi, qword [rdi + 0x38]
mov edx, esi
call fcn.180029070
xor ecx, ecx
mov r9d, esi
mov qword [rsp + 0x30], rcx
lea edx, [rcx + 2]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ecx
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_TrackPopupMenu]
test rbx, rbx
je 0x18002800f
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800305e0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x180028ac0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rsi, rdx
mov r15, rcx
test r8d, r8d
jne 0x180028b4e
mov r9, qword [rdx]
mov eax, r8d
test r9, r9
setne al
test eax, eax
jne 0x180028b04
mov ecx, 0x80004005
call fcn.1800019b0
int3
mov rax, qword [rcx + 8]
mov rdx, r9
sub rdx, rax
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x180028b24
add rax, 2
test cx, cx
jne 0x180028b10
jmp 0x180028b2b
sbb r8d, r8d
or r8d, 1
test r8d, r8d
jne 0x180028b4e
lea rdx, [r9 - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180028b44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x180028ca6
mov rdx, rsi
lea rcx, [r15 + 8]
call fcn.180004640
mov rcx, qword [r15 + 8]
sub rcx, 0x18
call fcn.1800062a0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180028c36
lea rcx, [rsp + 0x28]
call fcn.18000f460
nop
lea r8, [r15 + 8]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18000f000
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x180028bfb
cmp dword [rbx + 0x10], 0
jl 0x180028be9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x180028be9
call fcn.1800062a0
mov rbp, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x180028bdb
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x88], rax
jmp 0x180028bfb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x88]
call fcn.180002740
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180028c15
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180028c2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x88]
cmp dword [rbx - 8], 1
jle 0x180028c54
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x88]
call fcn.180001ad0
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180001530
lea rcx, [r15 + 0x40]
mov rdx, rax
call fcn.180026910
mov rcx, r15
call fcn.180028f60
mov ebp, eax
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180028c8d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180028ca4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180029be0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x20], VarUI4FromDisp
call fcn.1800306f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180029c51
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x180029c37
cmp eax, 4
jne 0x180029c51
cmp dword [rsp + 0x28], 0x5a
jb 0x180029c51
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800305e0
add rsp, 0x158
ret
Function at 0x18002b4e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r9d
mov r15d, r8d
mov r12d, edx
mov r13d, ecx
xor edi, edi
mov esi, edi
mov qword [rsp + 0x38], rdi
mov rbx, qword [0x1800722b8]
mov qword [rsp + 0x30], rdi
mov eax, dword [0x180071c80]
test eax, eax
je 0x18002b540
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180071c80]
test eax, eax
jne 0x18002b549
call fcn.18000d3d0
test eax, eax
je 0x18002b55f
lea rdx, [rsp + 0x30]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x18002b563
xor eax, eax
jmp 0x18002b5d4
test rbx, rbx
jne 0x18002b583
lea rcx, str.ImageList_Create
call fcn.18002b420
mov rbx, rax
test rax, rax
je 0x18002b5a4
mov qword [0x1800722b8], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8d, r15d
mov edx, r12d
mov ecx, r13d
call rbx
mov rsi, rax
mov qword [rsp + 0x38], rax
mov ebx, edi
test rsi, rsi
sete bl
test ebx, ebx
je 0x18002b5b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x18002b5d1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x18002b600
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov rbx, qword [0x1800722c0]
mov qword [rsp + 0x48], rsi
mov eax, dword [0x180071c80]
test eax, eax
je 0x18002b64d
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180071c80]
test eax, eax
jne 0x18002b656
call fcn.18000d3d0
test eax, eax
je 0x18002b66c
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x18002b670
xor eax, eax
jmp 0x18002b6c9
test rbx, rbx
jne 0x18002b690
lea rcx, str.ImageList_Destroy
call fcn.18002b420
mov rbx, rax
test rax, rax
je 0x18002b69b
mov qword [0x1800722c0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
mov ebx, esi
test edi, edi
sete bl
test ebx, ebx
je 0x18002b6ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x18002b6c7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret