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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x390], rax
and qword [rsp + 0x50], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionWordpadCOMChecks
and qword [rsp + 0x48], 0
mov rsi, rdx
mov rdi, rcx
mov r15d, 0x104
mov edx, r15d
lea rcx, [rsp + 0x70]
mov ebx, 1
call fcn.1400098b8
test eax, eax
js 0x140072d14
lea r8, [0x1400b6fc8]
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140009940
test eax, eax
js 0x140072d14
lea r8, str.KillbitList
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140009940
test eax, eax
js 0x140072d14
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140072ce8
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.1400729d0
test eax, eax
js 0x140072ce8
test dword [rsp + 0x40], 0x400
jne 0x140072bc9
xor ebx, ebx
jmp 0x140072ce8
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
test eax, eax
js 0x140072ce8
xor edi, edi
lea r8, [rsp + 0x70]
mov dword [rsp + 0x58], 0x4e
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.1400098b8
test eax, eax
js 0x140072ce8
lea r8, [0x1400b6fc8]
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.140009940
test eax, eax
js 0x140072ce8
mov r8, qword [rsp + 0x48]
lea rcx, [rbp + 0x180]
mov rdx, r15
call fcn.140009940
test eax, eax
js 0x140072ce8
lea rax, [rsp + 0x58]
mov r9d, 0x20000002
mov qword [rsp + 0x30], rax
lea r8, str.AlternateCLSID
mov rax, qword [rsp + 0x48]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140072ce8
movups xmm0, xmmword [0x1400b1c60]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ole32.dll_CLSIDFromString]
nop dword [rax + rax]
test eax, eax
js 0x140072ce8
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.1400729d0
test eax, eax
js 0x140072cd3
test dword [rsp + 0x40], 0x400
je 0x140072cdf
add edi, ebx
cmp edi, 0xa
jge 0x140072ce8
jmp 0x140072be7
movups xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140072cfe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140072d14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x14007680c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp + 0x7f], rbx
lea rcx, [0x1400b2e04]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
mov edi, 0x80004005
test rsi, rsi
je 0x140076949
movups xmm0, xmmword [0x1400cf5c8]
movdqu xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x19]
call fcn.140076d00
test eax, eax
js 0x140076945
mov qword [rbp + 0x6f], r15
mov rax, qword [rsi]
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [str._E_t_]
lea eax, [r15 + 0xd]
mov word [rbp - 9], ax
mov qword [rbp - 1], rsi
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [str._E_t_]
nop
movups xmm0, xmmword [rbp - 9]
movaps xmmword [rbp + 0x17], xmm0
movsd xmm1, qword [rbp + 7]
movsd qword [rbp + 0x27], xmm1
mov rbx, qword [rbp + 0x7f]
mov rax, qword [rbx]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x17]
mov rcx, rbx
mov rax, qword [rax + 0x1d0]
call qword [str._E_t_]
test eax, eax
jne 0x14007691f
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov qword [rbp + 0x77], r15
mov rax, qword [rbx]
lea rdx, [rbp + 0x77]
mov rcx, rbx
mov rax, qword [rax + 0x110]
call qword [str._E_t_]
nop
mov eax, 0xfff
cmp word [rbp - 9], ax
jne 0x140076933
mov eax, 8
mov word [rbp - 9], ax
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
jmp 0x140076949
mov rbx, qword [rbp + 0x7f]
mov qword [rbp + 0x7f], r15
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140076a09
mov rdi, qword [rbp + 0x7f]
mov rax, qword [rbp + 0x77]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14007699d
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test rdi, rdi
je 0x1400769ea
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r15
test rdi, rdi
cmove rcx, rdi
mov edi, r15d
test rcx, rcx
je 0x140076a09
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140076a30
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [str._E_t_]
nop
mov eax, edi
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140076a50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, rdx
mov r14, rcx
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov esi, 0x80004005
xor edi, edi
and qword [rbp - 0x18], rdi
and qword [rbp - 0x10], rdi
and qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x38]
mov qword [r11 - 0x68], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140076b7d
mov rdi, qword [rbp - 0x38]
mov qword [rbp - 0x20], rdi
mov eax, dword [rbp + 0x30]
add eax, eax
mov dword [rbp + 0x38], eax
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140076b02
xor ecx, ecx
jmp 0x140076b16
mov eax, dword [rbp - 0x40]
dec eax
cmp eax, 1
ja 0x140076b65
mov ecx, dword [rbp + 0x38]
shr ecx, 1
mov dword [rbp + 0x30], ecx
xor eax, eax
test eax, eax
jne 0x140076b65
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400924e0
mov rsi, rax
test rax, rax
je 0x140076b65
lea r9, [rbp + 0x30]
mov r8, rax
lea rcx, [rbp - 0x20]
call fcn.1400778b8
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140076e44
mov rcx, rsi
call sub.msvcrt.dll_free
mov rbx, qword [rbp - 0x30]
test rdi, rdi
je 0x140076b7b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edi, edi
xor esi, esi
test rdi, rdi
je 0x140076b91
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test esi, esi
js 0x140076bd2
test rbx, rbx
je 0x140076bd2
and dword [rbp + 0x30], 0
and dword [rbp + 0x34], 0
mov rax, qword [rbx]
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [str._E_t_]
mov rax, qword [r14]
mov rdx, rbx
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [str._E_t_]
mov esi, eax
test rbx, rbx
je 0x140076be8
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [str._E_t_]
nop
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400778b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.QatItems
add eax, eax
mov rbx, r8
mov dword [rsp + 0x48], eax
mov rdi, r9
lea rax, [r11 + 0x10]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov rcx, qword [rcx]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007793b
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140077936
mov ecx, dword [rsp + 0x48]
test rbx, rbx
je 0x14007794e
test ecx, ecx
je 0x14007794b
test cl, 1
jne 0x140077936
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14007794e
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x14007793b

Function at 0x14007b190
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, rcx
cmp rax, qword [rcx + 0x1f8]
je 0x14007b1cc
cmp rax, qword [rcx + 0x278]
je 0x14007b1cc
cmp rax, qword [rcx + 0x358]
je 0x14007b1cc
cmp rax, qword [rcx + 0x438]
jne 0x14007b1ef
call fcn.14007afa4
mov rcx, qword [rbx + 0xc0]
mov r9, rdi
xor r8d, r8d
mov edx, COleControlSite::XOleClientSite::AddRef
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor esi, esi
cmp dword [rdi + 8], 0x100
jne 0x14007b252
cmp qword [rdi + 0x10], 9
jne 0x14007b227
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
mov r8d, esi
lea edx, [rsi + 9]
test ax, ax
mov rcx, rbx
sets r8b
call fcn.14007ba08
jmp 0x14007b247
cmp qword [rdi + 0x10], 0x1b
jne 0x14007b252
mov rcx, qword [rbx + 0x488]
mov edx, 2
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_t_]
test al, al
je 0x14007b252
mov eax, 1
jmp 0x14007b2af
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14007b27e
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [str._E_t_]
mov rcx, rax
jmp 0x14007b281
mov rcx, rsi
test rcx, rcx
je 0x14007b29d
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x130]
call qword [str._E_t_]
test eax, eax
jne 0x14007b2af
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_RFX_Long_Bulk]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140080b84
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
lea rdi, [rbx + 8]
mov word [rdi], r14w
xor r8d, r8d
lea rdx, [0x1400b2e04]
mov rcx, rbx
call fcn.14000c5ac
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r14 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140080d58
lea rax, [rsp + 0x60]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x140080c3b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000c5ac
lea rdx, str.Microsoft_
mov rcx, rbx
call fcn.140081b1c
lea rdx, [rsi + 0x28]
mov r9, r15
xor r8d, r8d
mov rcx, rbx
call fcn.14007f624
lea rdx, [0x1400b6fc8]
mov rcx, rbx
call fcn.140081b1c
cmp qword [rbx + 0x20], 8
jb 0x140080c8e
mov rcx, qword [rdi]
jmp 0x140080c91
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140080d06
cmp qword [rbx + 0x20], 8
jb 0x140080cae
mov rdx, qword [rdi]
jmp 0x140080cb1
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
nop dword [rax + rax]
test eax, eax
je 0x140080d06
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000cac4
nop
cmp qword [rsp + 0x58], 8
jb 0x140080d58
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x140080d58
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 8
jb 0x140080d14
mov rdx, qword [rdx]
cmp qword [rbx + 0x20], 8
jb 0x140080d1e
mov rdi, qword [rdi]
lea r9, [rbp + 0x170]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400b2e04]
mov rcx, rbx
call fcn.14000c5ac
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140081b1c
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400929d0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140081304
Capabilities:
Delete file
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
lea r8, [rcx + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp + 0x17]
call fcn.14007f998
nop
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.1400826f4
nop
cmp qword [rbp + 0x37], 8
jb 0x140081375
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov r15d, 7
mov qword [rbp + 0x37], r15
xor edi, edi
mov qword [rbp + 0x2f], rdi
mov word [rbp + 0x1f], di
lea rdx, [0x1400b2e04]
mov rcx, rsi
call fcn.14000c524
test eax, eax
je 0x140081492
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.14007f624
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
lea r8d, [r15 + 9]
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000c5ac
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x41]
lea rcx, [rsi + 0x60]
call fcn.140081880
mov rbx, qword [rax]
cmp qword [rbp - 0x19], 8
jb 0x1400813ff
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
cmp rbx, qword [rsi + 0x68]
je 0x140081467
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000c5ac
nop
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x60]
call fcn.1400819cc
lea rcx, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x140081443
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x19], 8
jb 0x140081467
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ecx, 1
test eax, eax
cmove edi, ecx
cmp qword [rbp + 0xf], 8
jb 0x1400814a9
mov rcx, qword [rbp - 9]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400831a0
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
cmp dword [0x1400ff62c], edi
mov qword [rsp + 0x20], rdi
jne 0x1400831e4
mov eax, 0x80004005
jmp 0x140083339
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
jbe 0x140083225
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14008332f
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140086090
mov ebx, eax
test eax, eax
js 0x14008332a
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140083281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140083281
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14008332f
mov rcx, qword [0x1400ff620]
call sub.msvcrt.dll_free
mov qword [0x1400ff620], rdi
lea rcx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
je 0x1400832e5
lea r8, str.oPackage
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140009940
test eax, eax
js 0x1400832e5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140086090
mov ebx, eax
test eax, eax
js 0x14008332a
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140083313
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [0x1400ff620]
call sub.msvcrt.dll_free
mov qword [0x1400ff620], rdi
xor edi, edi
jmp 0x14008332f
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400865e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x10], 0
lea rax, [rcx - 0x18]
neg rax
lea rdx, [rcx + 8]
mov rdi, rcx
sbb rbx, rbx
and rbx, rdx
je 0x14008661d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xcc], 0
je 0x1400867ca
mov rcx, qword [rdi + 0x78]
and dword [rdi + 0xcc], 0
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x14008665b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rdi + 0x98], 0
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x14008667c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rdi + 0xa0], 0
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x1400866cf
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400cf870]
mov rax, qword [rax]
call qword [str._E_t_]
test eax, eax
js 0x1400866cf
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._E_t_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400866cf
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rbp + 0x10], 0
and qword [rdi + 0xa8], 0
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x14008672a
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400cf870]
mov rax, qword [rax]
call qword [str._E_t_]
test eax, eax
js 0x14008672a
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._E_t_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14008672a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rbp + 0x10], 0
and qword [rdi + 0xb8], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140086785
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400cf870]
mov rax, qword [rax]
call qword [str._E_t_]
test eax, eax
js 0x140086785
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._E_t_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140086785
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rbp + 0x10], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x1400867a6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rdi + 0xb0], 0
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x1400867ca
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x88]
call sub.msvcrt.dll_free
test rbx, rbx
je 0x1400867df
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x140089850
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx - 8]
mov rdi, rcx
neg rax
lea rdx, [rcx + 8]
sbb rbx, rbx
and rbx, rdx
je 0x140089885
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xf8], 0
je 0x140089955
and dword [rdi + 0xf8], 0
cmp dword [rdi + 0x100], 0
je 0x1400898ad
xor edx, edx
lea rcx, [rdi - 8]
call fcn.14008a69c
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x1400898ce
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rdi + 0xe8], 0
cmp dword [rdi + 0xfc], 0
je 0x1400898ea
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xf0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xb0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xc0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x14008992f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rdi + 0xd8], 0
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x140089950
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rdi + 0xe0], 0
and qword [rdi + 0x38], 0
test rbx, rbx
je 0x14008996a
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret