joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002580
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800025c7
xor al, al
jmp 0x180002669
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800025f1
xor al, al
jmp 0x180002669
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180002661
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180002661
mov al, 1
jmp 0x180002669
jmp 0x180002667
xor al, al
add rsp, 0x78
ret

Function at 0x180002970
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18001fb40]
mov qword [rsp + 0x28], rax
jmp 0x180002990
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800029bf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800029bd
call sub.KERNEL32.dll_GetLastError
jmp 0x1800029c1
jmp 0x180002982
xor eax, eax
add rsp, 0x38
ret
Function at 0x180003260
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001fb58], eax
je 0x18000328d
mov eax, 0x10dd
jmp 0x1800034a6
cmp dword [0x18001fb5c], 0
je 0x1800032a1
mov eax, dword [0x18001fb5c]
jmp 0x1800034a6
cmp qword [rsp + 0x78], 0
jne 0x1800032b3
mov eax, 0x57
jmp 0x1800034a6
cmp qword [rsp + 0x70], 0
jne 0x1800032c5
mov eax, 6
jmp 0x1800034a6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800032f7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18001fb5c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18001fb60], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800034a6
mov ecx, 0x30
call fcn.180005dd8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180003369
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18001fb5c], eax
cmp qword [rsp + 0x30], 0
je 0x180003354
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180005e14
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18001fb60], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800034a6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180003230
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180003230
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1800033c6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1800033e3
mov dword [rsp + 0x20], 9
cmp dword [0x18001fb50], 0
je 0x1800033de
jmp 0x18000332a
jmp 0x180003320
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180003410
mov dword [rsp + 0x20], 9
cmp dword [0x18001fb50], 0
je 0x18000340b
jmp 0x18000332a
jmp 0x180003320
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180003447
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180003320
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x18001fb70]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18001fb70], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800034b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001fb58], eax
je 0x1800034cb
mov eax, 0x10dd
jmp 0x1800035f0
mov rax, qword [0x18001fb70]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003575
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180003540
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180003540
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180001cd0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180005e14
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800034d7
mov qword [0x18001fb70], 0
call fcn.180002730
mov rax, qword [0x18001fb68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800035d9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180005e14
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180003591
mov qword [0x18001fb68], 0
mov dword [0x18001fb58], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003b20
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18001fb5c], 0
je 0x180003b3d
mov eax, dword [0x18001fb5c]
jmp 0x180003c03
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180003b50
xor eax, eax
jmp 0x180003c03
mov ecx, 0x10
call fcn.180005dd8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180003bbe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180003ba3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180005e14
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18001fb5c], eax
mov qword [0x18001fb60], 0
mov eax, dword [rsp + 0x20]
jmp 0x180003c03
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180003bd8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180003b79
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18001fb68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18001fb68], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x180003cf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x180003d1d
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180003d3d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180003eb6
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180003d74
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180003eb6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180003d92
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180003eb6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x180003dbe
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x180003e9a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x180015428]
mov rcx, rax
call fcn.18000a2a0
test eax, eax
jne 0x180003e95
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x180003e23
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x180003e25
jmp 0x180003e9a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x180003e6b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x180003e6d
jmp 0x180003e9a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180003e87
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180003eb6
jmp 0x180003db4
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180003eb6
add rsp, 0x78
ret
Function at 0x180003ec0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180013db0
jmp 0x180003f08
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180003f27
jmp 0x180003fcb
cmp dword [rsp + 0x68], 0x1000
jne 0x180003f4c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180003f4c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180003f4e
jmp 0x180003ef3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180003f84
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180003f84
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180003f89
jmp 0x180003ef3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180003ef3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x180003fcd
xor eax, eax
add rsp, 0x88
ret

Function at 0x180004220
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180013db0
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x18000426a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004332
cmp dword [rsp + 0x60], 0x1000
jne 0x18000428f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18000428f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x1800042a0
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004332
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800042c7
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004332
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800042fb
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004332
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180004316
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180004332
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180004332
add rsp, 0x78
ret
Function at 0x18000e518
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000e548
xor eax, eax
jmp 0x18000e60b
mov rbp, rbx
cmp word [rax], si
je 0x18000e56d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000e554
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000e550
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000e438
movsxd r14, eax
test eax, eax
jne 0x18000e5ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000e541
mov rcx, r14
call fcn.18000ba70
mov rdi, rax
test rax, rax
jne 0x18000e5c4
xor ecx, ecx
call fcn.18000ba34
jmp 0x18000e5a0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000e438
test eax, eax
jne 0x18000e5f5
mov rcx, rdi
call fcn.18000ba34
jmp 0x18000e5ff
xor ecx, ecx
call fcn.18000ba34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180013540
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180013568
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180013568
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002f80
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1068
call fcn.1400717e0
sub rsp, rax
mov rax, qword [0x1400a0008]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, r9
mov r14, qword [rsp + 0x10d0]
mov edi, r8d
mov r15, qword [rsp + 0x10d8]
mov ebp, edx
mov rsi, rcx
cmp r8d, dword [rsp + 0x10c0]
jg 0x140003087
mov edx, 0x5c
call fcn.14005b510
test rax, rax
mov r8d, 0x800
lea rcx, [rax + 1]
cmovne rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14005b890
xor edx, edx
lea rcx, [rsp + 0x850]
mov r8d, 0x800
call fcn.14005b890
call fcn.140002d30
mov qword [rsp + 0x28], r15
lea rdx, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x20], 0
mov r8d, 0x800
mov rcx, qword [rax]
call fcn.14005f6e4
cmp qword [rbx + 0x18], 0x10
jb 0x140003040
mov rbx, qword [rbx]
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
lea r9, str._s__s__d____d_:_trace__s_n
mov dword [rsp + 0x38], edi
lea rcx, [rsp + 0x850]
mov dword [rsp + 0x30], ebp
mov edx, 0x800
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
call fcn.140002d40
lea rcx, [rsp + 0x850]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14003aa30
add rsp, 0x1068
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e5d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rdi
push r14
push r15
sub rsp, 0x48
lea rax, [r11 + 0x18]
mov dword [r11 + 0x18], 4
mov qword [r11 - 0x40], rax
lea r9, [r11 + 0x20]
lea rax, [r11 + 8]
mov r14d, edx
mov rdi, rcx
mov qword [r11 - 0x48], rax
mov rcx, qword [rcx + 0x20]
lea rdx, str.Mode
xor r15d, r15d
xor r8d, r8d
xor bl, bl
mov dword [r11 + 8], r15d
mov dword [r11 + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [rdi + 0x18], bl
je 0x14000e719
mov qword [rsp + 0x78], rbp
mov ebp, dword [rsp + 0x70]
cmp dword [rdi + 0x1c], ebp
je 0x14000e714
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x80], r15d
mov dword [rsp + 0x70], r15d
call qword [sym.imp.MaxxAudioAPOShell64.dll_WavesFX_Preset_GetActive]
test al, al
je 0x14000e714
mov eax, ebp
mov qword [rsp + 0x40], rsi
mov ecx, r15d
sub eax, 1
je 0x14000e696
sub eax, 1
je 0x14000e691
sub eax, 1
je 0x14000e68a
cmp eax, 1
jne 0x14000e696
lea ecx, [rax + 1]
jmp 0x14000e696
mov ecx, 1
jmp 0x14000e696
mov ecx, 3
mov r8d, dword [rsp + 0x70]
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
sub ecx, edx
lea eax, [rcx + rcx*4]
lea esi, [r8 + rax*2]
cmp dword [rsp + 0x80], r15d
jne 0x14000e6ca
cmp r8d, esi
je 0x14000e6ca
mov r9b, 1
jmp 0x14000e6cd
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call fcn.14000e790
lea rax, str.Orientation_Sound_Mode_for_Output_Mode__0__has_been_changed_to__d
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
lea r8, [0x1400a4128]
mov r9d, 5
mov qword [rsp + 0x20], r15
mov edx, 0xb1
mov dword [rdi + 0x1c], ebp
lea rcx, str...SharedAutoOrientationControl_Lenovo.cpp
mov bl, 1
call fcn.140002ed0
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
cmp byte [rdi + 0x18], r15b
je 0x14000e774
test r14d, r14d
je 0x14000e774
mov r9, qword [rdi + 0x28]
xor edx, edx
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x14000e774
mov dword [rsp + 0x30], eax
lea r8, [0x1400a4128]
lea rax, str.Error:_Failed_to_register_for_registry_change_notification__Error_code___d_
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, str...SharedAutoOrientationControl_Lenovo.cpp
mov edx, 0xbc
mov qword [rsp + 0x20], r15
call fcn.140002ed0
movzx eax, bl
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rbx
ret
Function at 0x14000edd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
lea rax, str.CBaseThread::Start
mov qword [rsp + 0x30], rax
lea rsi, [0x1400848d0]
mov rbx, rcx
mov qword [rsp + 0x28], rsi
lea r8, [0x1400a4128]
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 3]
lea edx, [rdi + 0x25]
lea rcx, str...SharedBaseThread.cpp
call fcn.140002ed0
mov byte [rbx + 0x1c], dil
cmp qword [rbx + 0x10], rdi
jne 0x14000ee6f
lea rax, str.CreateEvent
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 3]
mov qword [rsp + 0x28], rsi
lea r8, [0x1400a4128]
lea edx, [rdi + 0x2b]
mov qword [rsp + 0x20], rdi
lea rcx, str...SharedBaseThread.cpp
call fcn.140002ed0
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
cmp rax, rdi
je 0x14000eedb
cmp qword [rbx + 8], rdi
jne 0x14000eecd
mov r9d, 3
lea rax, [0x140085310]
mov qword [rsp + 0x30], rax
lea r8, [0x1400a4128]
mov qword [rsp + 0x28], rsi
lea rcx, str...SharedBaseThread.cpp
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 0x30]
call fcn.140002ed0
lea rax, [rbx + 0x18]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14000ed20]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
cmp qword [rbx + 0x10], rdi
je 0x14000eedb
mov al, 1
cmp qword [rbx + 8], rdi
jne 0x14000eedf
movzx eax, dil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140010f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140010f63
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140010faa
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140010fa5
nop
cmp rbx, rcx
jae 0x140010faa
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140010f90
cmp rbx, rcx
jb 0x140010fae
xor eax, eax
jmp 0x140010fba
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015310
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400a0008]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, str.CDirectShowCameraImp::Disconnect
xor esi, esi
mov qword [rsp + 0x30], rax
lea r8, [0x1400a4128]
lea rax, [0x1400848d0]
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea rcx, str...SharedDirectShowCamera.cpp
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rsi
mov edx, 0xf8
call fcn.140002ed0
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2 + 0x60], si
jne 0x140015376
test rax, rax
je 0x1400153c2
lea rax, [rsp + 0x48]
mov r8d, 3
lea rdx, [rbx + 0x60]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.1400027e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x1400153c2
call fcn.14005d86c
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400153d5
mov qword [rbx + 0x28], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400153e8
mov qword [rbx + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400153fb
mov qword [rbx + 0x30], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001540e
mov qword [rbx + 0x18], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140015421
mov qword [rbx + 0x10], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140015434
mov qword [rbx + 8], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbx + 0x40]
mov word [rbx + 0x38], si
xor r8d, r8d
lea rdx, [0x1400861f0]
call fcn.140015860
mov word [rbx + 0x60], si
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14003aa30
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret