joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401005e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov ebx, ecx
cmp dword [0x1402be32c], edi
je 0x1401006e9
cmp dword [0x1402beb10], 0xfffffffe
jne 0x1401006ce
cmp ecx, 0xffffffff
je 0x1401006e9
mov edx, dword [0x1402d02f8]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1402cc968], ecx
jle 0x14010066c
lea rcx, [0x1402cc968]
call fcn.1401cebc4
cmp dword [0x1402cc968], 0xffffffff
jne 0x14010066c
lea rcx, [0x1402cc930]
call fcn.14003c5cc
lea rcx, [0x1402025ac]
call fcn.1401cea04
lea rcx, [0x1402cc968]
call fcn.1401ceb64
lea rcx, [0x1402cc940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1402cc908], rdi
jne 0x1401006f4
xor r8d, r8d
lea rcx, [0x1401006fc]
xor edx, edx
call fcn.1401d7d0c
mov qword [0x1402cc908], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1401006b8
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1402beb10], ebx
jmp 0x1401006bf
mov qword [0x1402cc908], rdi
lea rcx, [0x1402cc940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1401006e9
mov rax, qword [0x1402cc908]
cmp ecx, 0xffffffff
mov dword [0x1402beb10], ecx
cmove rax, rdi
mov qword [0x1402cc908], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140070b8c
int3
Function at 0x140116fac
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 [0x1402bf900]
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 0x140117166
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 0x140117166
test dword [rsp + 0x6c], 0x10000
je 0x140117166
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140234f10]
xor r8d, r8d
lea rdx, [0x140234f00]
lea rcx, [rsp + 0x30]
call fcn.1401173bc
test eax, eax
js 0x140117166
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140117166
mov qword [rsp + 0x40], r15
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x1402682f0]
call qword [rax]
test eax, eax
js 0x14011715b
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140015900
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14011713c
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
call qword [rax + 0x28]
test eax, eax
js 0x14011712b
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 0x14011712b
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 0x140117124
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140117168
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14011713c
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 0x14011715b
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.1401cee40
add rsp, 0x338
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140117754
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 0x1401177b9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401177cd
lea rdx, str.MoveFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401177cd
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 0x1401177cf
cmp dword [rcx + 8], 0
je 0x1401177cd
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1401177cf
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140117a68
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140117abe
cmp qword [rdx], 0
je 0x140117ab4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140117ac8
lea rdx, str.DeleteFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140117aba
mov rdx, qword [rbx]
mov rcx, rdi
call rax
jmp 0x140117ac4
cmp dword [rdx + 8], 0
jne 0x140117abe
xor eax, eax
jmp 0x140117ac4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140117ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rdi
call fcn.14019299c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140117ae4
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
test r8, r8
je 0x140117b05
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.140117754
jmp 0x140117b0b
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140117b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14019299c
add rsp, 0x20
pop rbx
ret
Function at 0x140117f9c
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 [0x1402cd7b0]
and qword [rax + 0x20], 0
xor esi, esi
mov eax, dword [0x1402c63e4]
test eax, eax
je 0x140117ffa
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c63e4]
test eax, eax
jne 0x140118003
call fcn.14001e61c
test eax, eax
je 0x14011801f
lea rdx, [rsp + 0x78]
mov rcx, qword [0x1402be010]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140118029
movzx eax, r13w
jmp 0x140118092
test rbx, rbx
jne 0x140118049
lea rcx, str.GetFileTitleW
call fcn.1400c41b0
mov rbx, rax
test rax, rax
je 0x14011805d
mov qword [0x1402cd7b0], 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 0x140118074
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140118076
xor esi, esi
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14011808f
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 0x14012fab8
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 [0x1402bf900]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmp r8, 0x20
jne 0x14012fb5e
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.140130ed8
mov rcx, rbx
call fcn.14012ff70
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.1401cee40
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 0x14012fb7d
cmp r8, 0x79
je 0x14012fb74
cmp r8, 0x12
jne 0x14012fb79
mov esi, 1
mov eax, esi
jmp 0x14012fb3d
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 0x14012fbb2
cmp rdi, 0x79
jne 0x14012fb2c
cmp qword [0x1402cace0], rsi
jne 0x14012fb3b
test byte [rbx + 0x478], 2
jne 0x14012fb3b
cmp rdi, 0x12
je 0x14012fbe8
cmp rdi, 0x79
jne 0x14012fb3b
test ebp, ebp
jne 0x14012fb3b
test eax, eax
jne 0x14012fb3b
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140021320
cmp rax, rbx
jne 0x14012fc0d
bt r15, 0x1e
jb 0x14012fc0d
cmp rdi, 0x79
jne 0x14012fc1d
mov rcx, r14
jmp 0x14012fc16
cmp rdi, 0x79
jne 0x14012fc1d
mov rcx, rbx
call fcn.14002a0b0
jmp 0x14012fc3d
cmp dword [rbx + 0x414], esi
jge 0x14012fc3d
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 0x14012fb3d
Function at 0x140173a94
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 [0x1402bf900]
xor rax, rbp
mov qword [rbp], rax
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, rcx
test rdx, rdx
jne 0x140173ad8
xor eax, eax
jmp 0x140173c05
test r8, r8
je 0x140173ad1
call fcn.14004cb48
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 0x140173ad1
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140173ad1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140173c2b
mov rcx, rax
call fcn.1401d7ed0
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 0x140173bbe
lea rcx, [r8 + 0x10]
cmp r8, rcx
sbb rax, rax
and rax, rcx
cmp rax, 0x400
lea rax, [r8 + 0x10]
ja 0x140173b9c
cmp r8, rax
sbb rcx, rcx
and rcx, rax
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140173b7a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1401cef10
sub rsp, rax
lea rdi, [rsp + 0x20]
test rdi, rdi
je 0x140173c31
mov dword [rdi], 0xcccc
jmp 0x140173bb8
cmp r8, rax
sbb rcx, rcx
and rcx, rax
call fcn.1401d69fc
mov rdi, rax
test rax, rax
je 0x140173bc1
mov dword [rax], 0xdddd
add rdi, 0x10
jmp 0x140173bc1
mov rdi, rbx
test rdi, rdi
je 0x140173c31
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.14005f4fc
test rax, rax
je 0x140173be9
mov rdx, rax
mov rcx, r12
call fcn.140176258
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140173c03
call fcn.1401d69f4
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1401cee40
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.140070b8c
int3
call fcn.140070b8c
int3
Function at 0x14017eb2c
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
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402cf048]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c63e4]
test eax, eax
je 0x14017eb77
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c63e4]
test eax, eax
jne 0x14017eb80
call fcn.14001e61c
test eax, eax
je 0x14017eb9c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402be010]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14017eba4
xor eax, eax
jmp 0x14017ec01
test rbx, rbx
jne 0x14017ebc4
lea rcx, str.PrintDlgW
call fcn.1400c41b0
mov rbx, rax
test rax, rax
je 0x14017ebcf
mov qword [0x1402cf048], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14017ebe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14017ebe6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14017ebff
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
Function at 0x14017fff4
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 0x140180067
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x120]
call fcn.14015a0cc
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 0x14018005d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rbx + 0x138], 0
jne 0x14018001f
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 0x140180099
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 0x1401800bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbx + 0x120]
call fcn.140159c18
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.1401820dc
nop
lea rcx, [rbx + 0xb0]
mov qword [rcx], rdi
call fcn.1401820dc
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.1401822c8
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.140182178
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.140182210
nop
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140180c84
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 0x140180cb6
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140180cb6
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140159cf0
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140182fa8
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 0x14018317c
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.14004cb48
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.1400c6314
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.1400fd090
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 0x14018304e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14018316d
call fcn.14005f540
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140183162
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x28], rax
call fcn.14005f540
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140183157
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.1401811ac
xor eax, eax
mov rbx, qword [rbp + 0x30]
test rbx, rbx
setne al
test eax, eax
je 0x1401830fd
mov rcx, rbx
call fcn.1401d6a3c
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 0x140183118
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 0x140183136
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp + 0x38], 0
jne 0x140183056
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140183150
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14018317e
mov ecx, 0x80004005
call fcn.140012790
nop
mov ecx, 0x80004005
call fcn.140012790
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14018317c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140195808
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
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402cf0b8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c63e4]
test eax, eax
je 0x140195853
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c63e4]
test eax, eax
jne 0x14019585c
call fcn.14001e61c
test eax, eax
je 0x140195878
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402be010]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140195880
xor eax, eax
jmp 0x1401958dd
test rbx, rbx
jne 0x1401958a0
lea rcx, str.GetOpenFileNameW
call fcn.1400c41b0
mov rbx, rax
test rax, rax
je 0x1401958ab
mov qword [0x1402cf0b8], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401958c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401958c2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401958db
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

Function at 0x1401958f4
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
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402cf0c0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c63e4]
test eax, eax
je 0x14019593f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c63e4]
test eax, eax
jne 0x140195948
call fcn.14001e61c
test eax, eax
je 0x140195964
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402be010]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14019596c
xor eax, eax
jmp 0x1401959c9
test rbx, rbx
jne 0x14019598c
lea rcx, str.GetSaveFileNameW
call fcn.1400c41b0
mov rbx, rax
test rax, rax
je 0x140195997
mov qword [0x1402cf0c0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401959ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401959ae
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401959c7
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
Function at 0x14019998c
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
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402cf138]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c63e4]
test eax, eax
je 0x1401999d7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c63e4]
test eax, eax
jne 0x1401999e0
call fcn.14001e61c
test eax, eax
je 0x1401999fc
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402be010]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140199a04
xor eax, eax
jmp 0x140199a61
test rbx, rbx
jne 0x140199a24
lea rcx, str.ChooseFontW
call fcn.1400c41b0
mov rbx, rax
test rax, rax
je 0x140199a2f
mov qword [0x1402cf138], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140199a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140199a46
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140199a5f
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

Function at 0x14019edd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rax + 8]
call fcn.140015900
nop
cmp rbx, 0xffffffff80000000
jne 0x14019ee5d
call fcn.14004cbc4
cmp eax, 1
jne 0x14019ee5d
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.14008e6cc
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140015f50
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14019ee56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14019ee93
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret