joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b418
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [r8], 0
mov r14, r8
mov r8, rcx
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400098b8
lea r8, [0x1400b20e8]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140009940
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000b4bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000b596
lea edx, [rbx - 0x3c]
mov rcx, qword [rbp + 0x168]
call fcn.14000b060
mov esi, eax
jmp 0x14000b598
and dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.14000b2a0
mov esi, eax
test eax, eax
jns 0x14000b4f5
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.14000b024
jmp 0x14000b598
lea r8, [0x1400b20f0]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140009940
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000b533
mov edx, 0xd4
jmp 0x14000b4ac
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000b2a0
mov esi, eax
test eax, eax
jns 0x14000b56f
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.14000b024
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14000b5eb
jmp 0x14000b598
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14000b5fd
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
xor esi, esi
test rdi, rdi
je 0x14000b5b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14000b5d9
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, DDX_FieldText
call fcn.14000b080
int3
mov rcx, qword [rbp + 0x168]
mov edx, DDX_FieldText
call fcn.14000b080
int3
mov rcx, qword [rbp + 0x168]
mov edx, DDX_FieldText
call fcn.14000b080
int3
Function at 0x140029920
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
and qword [rax + 0x10], 0
lea rcx, [rax + 0x18]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
test byte [0x1400fecc0], 4
je 0x140029962
lea rdx, [0x1400b2280]
call fcn.140016f80
mov r8, qword [rdi + 0x130]
add r8, 0xb8
lea rdx, [rdi + 0x160]
lea rcx, [rsp + 0x58]
call fcn.140025808
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140029a94
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
xor ecx, ecx
mov qword [rsp + 0x58], rcx
xor eax, eax
mov rdx, qword [rdi + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView]
cmp dword [rdx + 0x140], 0x4d7
jne 0x1400299fb
mov r9d, dword [rdx + 0x160]
lea r8d, [rcx + 1]
test r8b, r9b
je 0x1400299e3
mov ecx, dword [rdx + 0x164]
mov dword [rsp + 0x58], ecx
test r9b, 2
je 0x1400299f3
mov eax, dword [rdx + 0x168]
mov dword [rsp + 0x5c], eax
test ecx, ecx
je 0x1400299fb
test eax, eax
jne 0x1400299fe
xor r8d, r8d
mov rcx, qword [rdi + 0x130]
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xd0]
call fcn.1400042d0
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140029aa9
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0xb0]
call qword [str._E_t_]
nop
jmp 0x140029a49
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 8], 0
je 0x140029a60
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test byte [0x1400fecc0], 4
je 0x140029a76
lea rdx, [0x1400b2388]
call fcn.140016f80
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [rsp + 0x30], eax
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x34], eax
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14002a1cc
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rdx
mov rsi, rcx
and qword [rbp + 0x20], 0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
cmp dword [rsi + 0x188], 0
jne 0x14002a213
mov ebx, 0x80070057
jmp 0x14002a399
lea rdx, [rdi + 0x160]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MFC42u.dll_CControlBar::CControlBar]
nop dword [rax + rax]
nop
mov rax, qword [rbp + 0x38]
cmp dword [rax - 8], 0
jne 0x14002a23f
mov ebx, 0x80004001
jmp 0x14002a388
mov r8, qword [rsi + 0x130]
add r8, 0xb8
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.140025808
mov ebx, eax
test eax, eax
jne 0x14002a388
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
call sub.msvcrt.dll_free
lea r8, [rbp + 0x20]
lea edx, [rbx + 0x12]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14002a388
mov rcx, qword [rdi + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView]
mov r8d, dword [rcx + 0x140]
mov ebx, 0x80070057
mov r9d, 0x80004005
mov r10d, 0x4d7
cmp r8d, r10d
je 0x14002a2ca
mov edx, ebx
jmp 0x14002a2e3
test byte [rcx + 0x160], 1
je 0x14002a2e0
mov eax, dword [rcx + 0x164]
mov dword [rbp - 0x10], eax
xor edx, edx
jmp 0x14002a2e3
mov edx, r9d
cmp r8d, r10d
jne 0x14002a301
test byte [rcx + 0x160], 2
je 0x14002a2fe
mov eax, dword [rcx + 0x168]
mov dword [rbp - 0xc], eax
xor ebx, ebx
jmp 0x14002a301
mov ebx, r9d
test edx, edx
jne 0x14002a30f
test ebx, ebx
jne 0x14002a30f
lea rax, [rbp - 0x10]
jmp 0x14002a311
xor eax, eax
mov rcx, qword [rsi + 0x130]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x20]
mov r8d, 1
mov rdx, qword [rsi + 0x190]
mov rcx, qword [rcx + 0xc0]
call fcn.14006ddac
mov ebx, eax
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14002a352
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rbp + 0x20], 0
mov rcx, qword [rbp + 0x30]
cmp dword [rcx - 8], 0
je 0x14002a36d
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test ebx, ebx
jne 0x14002a388
test byte [0x1400fecc0], 4
je 0x14002a386
lea rdx, [0x1400b2388]
call fcn.140016f80
xor ebx, ebx
lea rcx, [rbp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14002a3c1
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._E_t_]
nop
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002fd78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jne 0x14002fdb6
mov r8, qword [rcx + 0x20]
lea rax, [rcx + 8]
cmp r8, 8
jb 0x14002fd96
mov r9, qword [rax]
jmp 0x14002fd99
mov r9, rax
cmp word [r9], 0x23
jne 0x14002fdb6
cmp r8, 8
jb 0x14002fda9
mov rax, qword [rax]
lea rcx, [rax + 2]
add rsp, 0x28
jmp fcn.1400621b4
cmp qword [rcx + 0x20], 8
lea r9, [rcx + 8]
jb 0x14002fdc4
mov r9, qword [r9]
mov r8d, 0xd6
lea rdx, str.COdtAttributeParser::OdtColorRefFromColor
lea rcx, str.Error:_Func__s_Line__d:_invalid_value__ws
call fcn.140062434
mov eax, 0x80070057
add rsp, 0x28
ret
Function at 0x14003e850
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
call fcn.14003e590
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
mov ecx, COleDropTarget::XDropTarget::AddRef
lea edx, [r9 + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
mov edi, 1
test eax, eax
je 0x14003e8ab
mov eax, 0x800
test word [rsp + 0x2e], ax
je 0x14003e8ab
mov al, dil
jmp 0x14003e8ad
xor al, al
mov byte [0x1400fed48], al
lea rcx, [0x1400fee10]
lea rax, [rbx + 0xc0]
mov qword [0x1400ff630], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
nop dword [rax + rax]
mov r9d, 2
lea r8, [0x1400fd288]
mov edx, 0x20001009
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop dword [rax + rax]
mov ecx, dword [0x1400fd288]
test eax, eax
cmove ecx, edi
cmp byte [0x1400fed48], 0
mov dword [0x1400fd288], ecx
je 0x14003e97b
test byte [0x1400fed5a], dil
je 0x14003e97b
mov rcx, qword [0x1400ff630]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
nop dword [rax + rax]
bt rax, 0x16
jb 0x14003e97b
mov rcx, qword [0x1400ff630]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
nop dword [rax + rax]
mov rcx, qword [0x1400ff630]
mov edx, 0xffffffec
or rax, 0x7000
mov r8, rax
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
nop dword [rax + rax]
mov r8d, edi
lea rcx, [0x14003ea20]
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
nop dword [rax + rax]
mov edx, COleDropTarget::XDropTarget::AddRef
lea rcx, [0x14003ea20]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14003eb10]
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x100]
xor r9d, r9d
and qword [0x1400ff630], 0
xor r8d, r8d
mov edx, 0x186
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400929d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14003ec54
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0xc0
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, r8
mov rbp, rcx
call qword [sym.imp.MFC42u.dll_RFX_Date_Bulk]
nop dword [rax + rax]
xor r14d, r14d
mov rsi, rax
cmp dword [rbp], r14d
je 0x14003ed20
lea r8d, [r14 + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
nop dword [rax + rax]
cmp word [rsp + 0x30], r14w
je 0x14003ed18
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140057c38
test eax, eax
jne 0x14003ecee
or r8d, 0xffffffff
lea edx, [rax + 0x40]
lea ecx, [rax + 0x67]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.MFC42u.dll_CGopherFileFind::FindFile]
nop dword [rax + rax]
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
mov r8d, 0x40
call fcn.140057d50
cmp word [rsp + 0x30], r14w
je 0x14003ed4f
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140057c38
jmp 0x14003ed4f
mov dword [rbx], 0x7fffffff
jmp 0x14003ed4f
cmp dword [rbx], 0x7fffffff
je 0x14003ed4f
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
mov r8d, 0x40
call fcn.140057d50
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400929d0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rsi
pop rbp
ret

Function at 0x14003f410
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
cmp dword [0x1400ff638], esi
jne 0x14003f511
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, CSocketFile::CSocketFile
call sub.msvcrt.dll_memset
mov edi, esi
lea rbx, [0x1400fdae8]
cmp dword [rbx - 8], esi
jne 0x14003f4f3
cmp qword [rbx], rsi
je 0x14003f4f3
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14003f4d4
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
nop dword [rax + rax]
test rax, rax
je 0x14003f4d4
mov word [rax], si
lea rcx, [rsp + 0x20]
mov r8, qword [rbx]
mov edx, 0x104
call fcn.140009940
movzx edi, ax
test edi, edi
jne 0x14003f4f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
and edi, 0x10
test edi, edi
jne 0x14003f4f0
movsxd rdx, dword [rbx + 8]
lea r8, [rsp + 0x20]
mov rcx, qword [rbx]
call fcn.1400098b8
movzx edi, ax
test edi, edi
je 0x14003f4f3
mov qword [rbx], rsi
add rbx, 0x50
lea rax, [0x1400fdf98]
cmp rbx, rax
jl 0x14003f45d
mov dword [0x1400ff638], 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140057668
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp word [rdx], 0
je 0x1400576e8
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_Ordinal_1447]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
nop dword [rax + rax]
mov word [rsp + 0x20], ax
test ax, ax
je 0x1400576e8
lea rdx, [rsp + 0x20]
lea rcx, [0x140057710]
call qword [sym.imp.USER32.dll_EnumWindows]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test cx, cx
jne 0x1400576dc
mov eax, 1
jmp 0x1400576ea
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400929d0
add rsp, 0x258
ret
Function at 0x140059db8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x10], ebx
test rcx, rcx
je 0x140059e5f
mov qword [rax - 0x18], rbx
lea r8d, [rbx + 3]
mov dword [rax - 0x20], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x28], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140059e5f
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 2]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140059e4c
cmp dword [rsp + 0x58], 2
jne 0x140059e4c
mov eax, 0xfeff
cmp word [rsp + 0x50], ax
je 0x140059e47
mov eax, 0xfffe
cmp word [rsp + 0x50], ax
jne 0x140059e4c
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140059e61
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14005e7d0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r12, rdx
mov rbx, rcx
mov rcx, r12
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor r14d, r14d
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
nop dword [rax + rax]
mov rcx, rbx
mov r15d, eax
call fcn.14000400c
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
and dword [rsp + 0x3c], r14d
xor r8d, r8d
mov edx, 0x434
mov dword [rsp + 0x38], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor edi, edi
test r15d, r15d
je 0x14005e912
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov edx, edi
mov rcx, r12
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0x10
je 0x14005e907
mov eax, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x40]
xor r8d, r8d
mov edx, CObList::AddTail
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
mov esi, 1
call fcn.140061500
test eax, eax
je 0x14005e8e5
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov rcx, rbx
call fcn.1400042d0
mov esi, eax
cmp r15d, 1
jne 0x14005e8f6
xor r14d, r14d
test esi, esi
sete r14b
jmp 0x14005e907
test esi, esi
je 0x14005e907
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000645c
inc edi
cmp edi, r15d
jb 0x14005e85f
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, CObList::AddTail
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, r14d
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400624a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0x230], rax
and qword [rdx], 0
mov rbx, rcx
mov ecx, CSocketFile::CSocketFile
mov rsi, rdx
call fcn.1400924e0
mov rdi, rax
test rax, rax
jne 0x14006250e
lea r9, [0x1400b2e04]
mov r8d, CStockPropPage::~CStockPropPage
lea rdx, str.GetTempDirFile
lea rcx, str.Error:_Func__s_Line__d:_Out_of_memory_for_temp_file_name
call fcn.140062434
mov eax, 0x8007000e
jmp 0x1400625b4
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x140062566
mov r9, rdi
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1400625af
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempFileName_failed
mov r8d, 0x329
jmp 0x14006257f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempPath_failed
mov r8d, 0x324
lea r9, [0x1400b2e04]
mov ebx, eax
lea rdx, str.GetTempDirFile
call fcn.140062434
test ebx, ebx
je 0x1400625af
mov rcx, rdi
call sub.msvcrt.dll_free
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400625b4
mov qword [rsi], rdi
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14006382c
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
test rcx, rcx
jne 0x140063852
mov ebx, 0x80070057
jmp 0x140063931
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x1400638fc
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b1d80]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400b1d90]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140063901
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [str._E_t_]
mov ebx, eax
test eax, eax
js 0x140063901
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x1400b1d10]
mov rax, qword [rax]
call qword [str._E_t_]
mov ebx, eax
test eax, eax
js 0x140063901
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, rdi
mov rax, qword [rax + 0x30]
call qword [str._E_t_]
mov ebx, eax
jmp 0x140063901
mov ebx, 0x80070002
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140063919
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140063931
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400729d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rax, rdx
and qword [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
and dword [r8], 0
mov rsi, rcx
mov rcx, rax
mov rdi, r8
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140072a8d
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140072a3f
mov ebx, 1
jmp 0x140072a8d
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x20]
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x30]
and dword [rbp + 0x38], 0
lea rdx, str.Compatibility_Flags
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x38]
mov dword [rbp - 0x20], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140072a8d
cmp dword [rbp + 0x30], 4
jne 0x140072a8d
mov eax, dword [rbp + 0x38]
mov dword [rdi], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140072aa2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140072ab7
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret