joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eb080
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x1402e29c0]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x1402dc9f4]
test eax, eax
je 0x1400eb0cf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402dc9f4]
test eax, eax
jne 0x1400eb0d8
call fcn.140024684
test eax, eax
je 0x1400eb0f4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402d35a8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400eb0fe
or rax, 0xffffffffffffffff
jmp 0x1400eb160
test rbx, rbx
jne 0x1400eb11e
lea rcx, str.PropertySheetW
call fcn.1400eb178
mov rbx, rax
test rax, rax
je 0x1400eb12b
mov qword [0x1402e29c0], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x1400eb142
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400eb144
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400eb15d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400f7a3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r12
mov rax, qword [0x1402d4b00]
xor rax, rbp
mov qword [rbp], rax
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, rcx
test rdx, rdx
jne 0x1400f7a80
xor eax, eax
jmp 0x1400f7bad
test r8, r8
je 0x1400f7a79
call fcn.14002bd2c
mov r8, rdi
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400f7a79
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400f7a79
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400f7bd3
mov rcx, rax
call fcn.1401d99b0
lea r15d, [rax + 1]
lea ecx, [r15 + r15]
movsxd r8, ecx
lea rdx, [r8 + 0x10]
cmp r8, rdx
sbb rcx, rcx
test rdx, rcx
je 0x1400f7b66
lea rcx, [r8 + 0x10]
cmp r8, rcx
sbb rax, rax
and rax, rcx
cmp rax, 0x400
lea rax, [r8 + 0x10]
ja 0x1400f7b44
cmp r8, rax
sbb rcx, rcx
and rcx, rax
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400f7b22
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1401ceab0
sub rsp, rax
lea rdi, [rsp + 0x20]
test rdi, rdi
je 0x1400f7bd9
mov dword [rdi], 0xcccc
jmp 0x1400f7b60
cmp r8, rax
sbb rcx, rcx
and rcx, rax
call fcn.1401dad74
mov rdi, rax
test rax, rax
je 0x1400f7b69
mov dword [rax], 0xdddd
add rdi, 0x10
jmp 0x1400f7b69
mov rdi, rbx
test rdi, rdi
je 0x1400f7bd9
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.1400189f8
test rax, rax
je 0x1400f7b91
mov rdx, rax
mov rcx, r12
call fcn.1400fa200
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x1400f7bab
call fcn.1401daac4
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1401ce180
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop rbp
ret
call fcn.1400177e4
int3
call fcn.1400177e4
int3
Function at 0x1400fd250
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x10d], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400fd320
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetCapture]
mov rcx, rax
call fcn.14001e768
cmp qword [rbx + 0x138], 0
jne 0x1400fd290
mov qword [rbx + 0x138], rdi
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov byte [rbx + 0x10d], 1
call qword [rax + 0x418]
lea rcx, [rbx + 0x1d0]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x360]
test al, 1
je 0x1400fd2f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x360]
test al, al
js 0x1400fd2f0
call fcn.14002bd2c
mov edx, 0x7f86
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rcx, [rbx + 0x178]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx + 0x248]
test rcx, rcx
jne 0x1400fd31b
mov rdx, rbx
lea rcx, vtable.CGlobalUtils.0
call fcn.140111e74
mov rcx, rax
call fcn.14009019c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140107c00
Capabilities:
Get file system object information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1402d4b00]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r14d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov word [r8], r15w
test rcx, rcx
je 0x140107dba
mov dword [rsp + 0x20], 0x800
mov r9d, 0x2b8
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140107dba
test dword [rsp + 0x6c], 0x10000
je 0x140107dba
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140243a58]
xor r8d, r8d
lea rdx, [0x140243a48]
lea rcx, [rsp + 0x30]
call fcn.140108010
test eax, eax
js 0x140107dba
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140107dba
mov qword [rsp + 0x40], r15
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140279e10]
call qword [rax]
test eax, eax
js 0x140107daf
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140002570
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140107d90
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
call qword [rax + 0x28]
test eax, eax
js 0x140107d7f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8d, [r15 + 2]
mov rdx, qword [rdi + 0x40]
call qword [rax + 0x98]
test eax, eax
js 0x140107d7f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, r14d
mov rdx, rsi
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140107d78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140107dbc
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140107d90
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140107daf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1401ce180
add rsp, 0x338
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401083a8
Capabilities:
Move file

Disassembly:
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 0x14010840d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140108421
lea rdx, str.MoveFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140108421
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
mov rdx, rdi
call rax
jmp 0x140108423
cmp dword [rcx + 8], 0
je 0x140108421
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140108423
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401086bc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140108712
cmp qword [rdx], 0
je 0x140108708
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010871c
lea rdx, str.DeleteFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14010870e
mov rdx, qword [rbx]
mov rcx, rdi
call rax
jmp 0x140108718
cmp dword [rdx + 8], 0
jne 0x140108712
xor eax, eax
jmp 0x140108718
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14010872c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rdi
call fcn.140179338
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140108738
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
test r8, r8
je 0x140108759
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.1401083a8
jmp 0x14010875f
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140108773
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140179338
add rsp, 0x20
pop rbx
ret
Function at 0x140108bf0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx r14d, r8w
mov r15, rdx
mov r12, rcx
or r13d, 0xffffffff
movzx edi, r13w
mov word [rax - 0x38], r13w
mov rbx, qword [0x1402e38f8]
and qword [rax + 0x20], 0
xor esi, esi
mov eax, dword [0x1402dc9f4]
test eax, eax
je 0x140108c4e
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402dc9f4]
test eax, eax
jne 0x140108c57
call fcn.140024684
test eax, eax
je 0x140108c73
lea rdx, [rsp + 0x78]
mov rcx, qword [0x1402d35a8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140108c7d
movzx eax, r13w
jmp 0x140108ce6
test rbx, rbx
jne 0x140108c9d
lea rcx, str.GetFileTitleW
call fcn.140073130
mov rbx, rax
test rax, rax
je 0x140108cb1
mov qword [0x1402e38f8], rax
movzx r8d, r14w
mov rdx, r15
mov rcx, r12
call rbx
movzx edi, ax
mov word [rsp + 0x20], ax
xor ebx, ebx
cmp di, r13w
sete bl
test ebx, ebx
je 0x140108cc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140108cca
xor esi, esi
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140108ce3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, di
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140110534
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14011055a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400725f8
jmp 0x1401105c1
cmp byte [0x1402e39f0], 0
jne 0x14011059e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011058e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402e39e8], rax
jmp 0x140110595
mov rax, qword [0x1402e39e8]
mov byte [0x1402e39f0], 1
jmp 0x1401105a5
mov rax, qword [0x1402e39e8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1401105bb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1401105c1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401105cc
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140110824
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140110866
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x140110c74
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140110d46
test rbx, rbx
je 0x140110d4c
test r9, r9
je 0x140110d52
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140110d2f
cmp dword [rsp + 0x48], 3
jne 0x140110d2f
test eax, eax
jne 0x140110d2f
cmp dword [rdi], eax
je 0x140110d2f
mov ecx, dword [rdi]
call fcn.140017778
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140110d23
cmp dword [rsp + 0x48], 3
jne 0x140110d23
test eax, eax
jne 0x140110d23
mov eax, 1
jmp 0x140110d31
mov rcx, qword [rbx]
call fcn.140017780
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400177e4
int3
call fcn.1400177e4
int3
call fcn.1400177e4
int3

Function at 0x140111118
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140111129
xor eax, eax
jmp 0x140111157
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140111160
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140111171
xor eax, eax
jmp 0x140111195
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140146a48
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov ebx, ecx
cmp dword [0x1402d386c], edi
je 0x140146b51
cmp dword [0x1402d40d0], 0xfffffffe
jne 0x140146b36
cmp ecx, 0xffffffff
je 0x140146b51
mov edx, dword [0x1402e6c48]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1402e4728], ecx
jle 0x140146ad4
lea rcx, [0x1402e4728]
call fcn.1401ce940
cmp dword [0x1402e4728], 0xffffffff
jne 0x140146ad4
lea rcx, [0x1402e46f0]
call fcn.1400318fc
lea rcx, [0x14020b5f4]
call fcn.1401ce4e4
lea rcx, [0x1402e4728]
call fcn.1401ce8e0
lea rcx, [0x1402e4700]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1402e46c8], rdi
jne 0x140146b5c
xor r8d, r8d
lea rcx, [0x140146b64]
xor edx, edx
call fcn.1401e37f8
mov qword [0x1402e46c8], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140146b20
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1402d40d0], ebx
jmp 0x140146b27
mov qword [0x1402e46c8], rdi
lea rcx, [0x1402e4700]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140146b51
mov rax, qword [0x1402e46c8]
cmp ecx, 0xffffffff
mov dword [0x1402d40d0], ecx
cmove rax, rdi
mov qword [0x1402e46c8], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400177e4
int3
Function at 0x14015f86c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1402d4b00]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmp r8, 0x20
jne 0x14015f912
mov rcx, qword [rcx + 0x40]
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
lea rdx, [rsp + 0x20]
add eax, 4
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x2c]
add eax, 0x17
mov dword [rsp + 0x24], eax
call fcn.140160ae8
mov rcx, rbx
call fcn.14015fd24
mov rcx, qword [rbx + 0x40]
mov edx, 0xec1a
call qword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401ce180
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor esi, esi
cmp dword [rcx + 0x458], esi
jne 0x14015f931
cmp r8, 0x79
je 0x14015f928
cmp r8, 0x12
jne 0x14015f92d
mov esi, 1
mov eax, esi
jmp 0x14015f8f1
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
shr ebp, 0xf
and ebp, 1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
cmp rdi, 0x12
je 0x14015f966
cmp rdi, 0x79
jne 0x14015f8e0
cmp qword [0x1402e17b8], rsi
jne 0x14015f8ef
test byte [rbx + 0x478], 2
jne 0x14015f8ef
cmp rdi, 0x12
je 0x14015f99c
cmp rdi, 0x79
jne 0x14015f8ef
test ebp, ebp
jne 0x14015f8ef
test eax, eax
jne 0x14015f8ef
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14001e768
cmp rax, rbx
jne 0x14015f9c1
bt r15, 0x1e
jb 0x14015f9c1
cmp rdi, 0x79
jne 0x14015f9d1
mov rcx, r14
jmp 0x14015f9ca
cmp rdi, 0x79
jne 0x14015f9d1
mov rcx, rbx
call fcn.140025458
jmp 0x14015f9f1
cmp dword [rbx + 0x414], esi
jge 0x14015f9f1
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov edx, 0xec1a
mov r8d, 0xc8
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
jmp 0x14015f8f1
Function at 0x140162c5c
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
lea rax, vtable.CDataRecoveryHandler.0
mov qword [rcx], rax
cmp qword [rcx + 0x138], 0
je 0x140162ccf
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x120]
call fcn.1401755c4
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140162cc5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rbx + 0x138], 0
jne 0x140162c87
mov rdx, qword [rbx + 0x180]
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
nop
mov rdx, qword [rbx + 0x160]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140162d01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx + 0x158]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140162d23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbx + 0x120]
call fcn.140175110
nop
lea rcx, [rbx + 0xe8]
lea rdi, vtable.CMap_class_CDocument____ptr64__class_CDocument____ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64_.0
mov qword [rcx], rdi
call fcn.140164d60
nop
lea rcx, [rbx + 0xb0]
mov qword [rcx], rdi
call fcn.140164d60
nop
lea rcx, [rbx + 0x78]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__bool__bool_.0
mov qword [rcx], rax
call fcn.140164f4c
nop
lea rcx, [rbx + 0x40]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__class_CDocument____ptr64__class_CDocument____ptr64_.0
mov qword [rcx], rax
call fcn.140164dfc
nop
lea rcx, [rbx + 8]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64_.0
mov qword [rcx], rax
call fcn.140164e94
nop
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401638ec
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14016391e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14016391e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1401751e8
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140165c2c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 0x38], rdx
je 0x140165e00
xor esi, esi
and qword [rbp - 0x20], rsi
and dword [rbp - 0x18], esi
and qword [rbp - 0x10], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
call qword [rax + 0x40]
nop
mov rbx, qword [rax]
call fcn.14002bd2c
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.1400711e4
mov rdx, rax
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, rbx
lea rcx, [rbp - 0x20]
call fcn.1400e3b3c
test eax, eax
sete bl
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140165cd2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140165df1
call fcn.140018a3c
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140165de6
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x28], rax
call fcn.140018a3c
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140165ddb
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x38]
call fcn.140163eac
xor eax, eax
mov rbx, qword [rbp + 0x30]
test rbx, rbx
setne al
test eax, eax
je 0x140165d81
mov rcx, rbx
call fcn.1401d6a94
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140165d9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140165dba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp + 0x38], 0
jne 0x140165cda
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140165dd4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140165e02
mov ecx, 0x80004005
call fcn.1400029ec
nop
mov ecx, 0x80004005
call fcn.1400029ec
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140165e00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret