joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f7e0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xa90
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xac0], rbx
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + CDHtmlDialog::CanAccessExternal], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
lea rax, vtable.AdRmFileBackup.0
mov qword [rcx], rax
add rcx, 8
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64]
nop
lea rcx, [rsi + 0x30]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64]
nop
mov byte [rsi + 0x58], 0
mov rdx, rdi
lea rcx, [rsi + 8]
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64]
lea rcx, [rsi + 8]
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001e70
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140003ad0
nop
lea rdx, [0x140053374]
lea rcx, [rsi + 0x30]
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
lea r9, [rsp + 0x870]
xor r8d, r8d
lea rdx, [0x14005b6b8]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14002f8c5
lea rdx, [rsp + 0x870]
lea rcx, [rsi + 0x30]
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
mov rax, rsi
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1400489c0
mov rbx, qword [rsp + 0xac0]
add rsp, 0xa90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002f960
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, reloc.mfc140u.dll_CWnd::SetWindowPlacement
mov eax, 0x3830
call fcn.14004a590
sub rsp, rax
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rbp + 0x3720], rax
mov rbx, rcx
add rcx, 8
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
xor r9d, r9d
lea rcx, [rsp + 0x20]
mov rdx, rax
xor r8d, r8d
call fcn.140001e70
lea rdx, [rbp + 0x2f20]
lea rcx, [rsp + 0x20]
call fcn.140002160
xor esi, esi
cmp word [rsp + 0x20], si
jne 0x14002f9d9
mov word [rbp + 0x1720], si
jmp 0x14002fa2e
lea rdx, [rbp + 0x1f20]
lea rcx, [rsp + 0x20]
call fcn.140002160
lea rcx, [rbp + 0x1f20]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14002f9f5
lea r8, [rsp + 0x20]
cmp word [r8 + rax*2], 0x5c
lea r8, [r8 + rax*2]
jne 0x14002fa1c
add r8, 2
cmp word [r8], 0x5c
je 0x14002fa11
mov edx, 0x400
lea rcx, [rbp + 0x1720]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x2e
lea rcx, [rbp + 0x1720]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14002fa48
mov word [rax], si
lea r8, [rbp + 0x1720]
mov edx, 0x400
lea rcx, [rbp + 0x2720]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r9, [0x14005b6e8]
lea r8, [rbp + 0x2720]
lea rdx, [rbp + 0x2f20]
lea rcx, [rsp + 0x20]
call fcn.140001e70
cmp word [rsp + 0x20], si
je 0x14002faad
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002faad
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x14002faad
xor al, al
jmp 0x14002fb59
lea rcx, [rbx + 8]
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
xor r9d, r9d
lea rcx, [rbp + 0x720]
mov rdx, rax
xor r8d, r8d
call fcn.140001e70
cmp word [rbp + 0x720], si
je 0x14002fafd
lea rcx, [rbp + 0x720]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fafd
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x720]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
jne 0x14002faa6
lea rcx, [rbx + 0x30]
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
xor r9d, r9d
lea rcx, [rbp + 0xf20]
mov rdx, rax
xor r8d, r8d
call fcn.140001e70
cmp word [rbp + 0xf20], si
je 0x14002fb53
lea rcx, [rbp + 0xf20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fb53
lea rdx, [rbp + 0x720]
lea rcx, [rbp + 0xf20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
jne 0x14002faa6
mov byte [rbx + 0x58], 1
mov al, 1
mov rcx, qword [rbp + 0x3720]
xor rcx, rsp
call fcn.1400489c0
lea r11, [rsp + 0x3830]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14002fb90
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov edi, edx
mov rbx, rcx
lea rax, vtable.AdRmFileBackup.0
mov qword [rcx], rax
cmp byte [rcx + 0x58], 0
jne 0x14002fbce
add rcx, 0x30
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
nop
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
lea rcx, [rbx + 0x30]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbx + 8]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
test dil, 1
je 0x14002fbf8
mov edx, 0x60
mov rcx, rbx
call fcn.140048fc0
nop
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140030e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov eax, dword [rcx + 0x850]
test eax, eax
je 0x140030e91
cmp eax, 0x32
jne 0x14003104d
lea rdx, [0x140053374]
add rcx, 0x820
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
cmp word [rdi + 0x20], 0
je 0x14003103e
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003103e
lea rcx, [rdi + 0x20]
call fcn.14001b5b0
test eax, eax
jne 0x140030ef0
cmp word [rdi + 0x20], ax
je 0x140030ef0
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030ef0
shr eax, 4
and al, 1
jne 0x14003103e
xor eax, eax
mov qword [rsp + 0x40], rax
lea rax, vtable.AdRmDatabasePointer.0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0x1a
mov qword [rsp + 0x48], 0
xor r8d, r8d
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400439e0
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x140030f38
mov dword [rdi + 0x850], ebx
jmp 0x14003100a
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
mov rdx, qword [0x14007f3d8]
call qword [rax + VariantCopy]
mov ebx, eax
test eax, eax
je 0x140030f5a
mov dword [rdi + 0x850], eax
jmp 0x14003100a
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, str.PROJECTNAME
mov rcx, qword [0x14007f3d8]
call qword [sym.imp.acdb21.dll_bool___cdecl_getDictionaryVariable_class_AcDbDatabase____ptr64__wchar_t_const____ptr64__wchar_t____ptr64____ptr64_]
test al, al
je 0x140030fba
mov rdx, qword [rsp + 0x30]
lea rcx, [rdi + 0x820]
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
mov rbx, qword [rsp + 0x30]
mov edx, 2
mov rcx, rbx
call fcn.140048fc0
mov rax, qword [rsp + 0x30]
mov ecx, 0x8123
test rbx, rbx
cmovne rax, rcx
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14007f3d8]
mov rax, qword [rdi]
mov r8, qword [rax + 0xe0]
lea rcx, vtable.AdRmDoc.0
cmp rax, rcx
jne 0x140030fef
mov rcx, rbx
call qword [sym.imp.acdb21.dll_public:_enum_AcDb::AcDbDwgVersion___cdecl_AcDbDatabase::lastSavedAsVersion_void____ptr64]
test eax, eax
jne 0x140030ff8
mov rcx, rbx
call qword [sym.imp.acdb21.dll_public:_enum_AcDb::AcDbDwgVersion___cdecl_AcDbDatabase::originalFileVersion_void____ptr64]
jmp 0x140030ff8
mov rdx, rbx
mov rcx, rdi
call r8
mov dword [rdi + 0x848], eax
mov dword [rdi + 0x850], 0
xor ebx, ebx
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14003103a
mov edx, dword [0x14007f3d4]
dec edx
mov dword [0x14007f3d4], edx
test edx, edx
jg 0x14003102b
call fcn.140043c70
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
nop
mov eax, ebx
jmp 0x14003104d
mov dword [rdi + 0x850], 0x13
mov eax, 0x13
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400489c0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140037230
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x8c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + AfxOleLockControl], rbx
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov rbx, rdx
mov rbp, rcx
mov rsi, qword [rdx + 8]
mov rdi, qword [rdx]
cmp rdi, rsi
je 0x140037287
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
add rdi, 0x28
cmp rdi, rsi
jne 0x140037274
mov rax, qword [rbx]
mov qword [rbx + 8], rax
xor r14d, r14d
mov dword [rsp + 0x78], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.140049ea0
test eax, eax
je 0x1400372de
xor al, al
jmp 0x140037417
mov esi, r14d
cmp dword [rsp + 0x78], r14d
jle 0x140037415
movabs r15, 0x6666666666666667
nop word [rax + rax]
mov dword [rsp + 0x7c], 0x400
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0xb0]
mov edx, esi
mov rcx, rbp
call sub.ADVAPI32.dll_RegEnumKeyExW
test eax, eax
jne 0x1400372d7
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x80]
cmp rax, r8
jae 0x1400373c6
mov rax, qword [rbx]
lea rcx, [rsp + 0x80]
cmp rax, rcx
ja 0x1400373c6
lea rcx, [rsp + 0x80]
sub rcx, rax
mov rax, r15
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp r8, qword [rbx + 0x10]
jne 0x14003739f
mov rcx, rbx
call fcn.140017330
lea rcx, [rdi + rdi*4]
mov rax, qword [rbx]
lea rdx, [rax + rcx*8]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
test rcx, rcx
je 0x1400373c4
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64]
nop
jmp 0x1400373f6
cmp r8, qword [rbx + 0x10]
jne 0x1400373d4
mov rcx, rbx
call fcn.140017330
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x1400373f6
lea rdx, [rsp + 0x80]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64]
nop
add qword [rbx + 8], 0x28
lea rcx, [rsp + 0x80]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
inc esi
cmp esi, dword [rsp + 0x78]
jl 0x140037300
mov al, 1
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1400489c0
mov rbx, qword [rsp + 0x900]
add rsp, 0x8c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038490
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [r11 - 0x40]
mov rcx, rbx
call fcn.140003ad0
nop
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140039b60
test al, al
je 0x1400384e2
mov ebx, 0x33
jmp 0x14003852b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp word [rbx], 0
je 0x14003850a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003850a
mov rcx, rbx
call fcn.14000bd10
xor ebx, ebx
jmp 0x14003852b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7d0
jbe 0x140038526
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140039a40
mov ebx, 0x13
lea rcx, [rsp + 0x28]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400489c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140038940
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x890
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + AfxFullPath], rbx
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + reloc.mfc140u.dll_AfxCancelModes], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x400
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
mov rbx, rax
lea rdx, str._fonts
lea rcx, [rsp + 0x30]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov r9, qword [rbx]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call qword [r9 + 0xe0]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rsp + reloc.mfc140u.dll_AfxCancelModes]
xor rcx, rsp
call fcn.1400489c0
mov rbx, qword [rsp + 0x8a8]
add rsp, 0x890
pop rdi
ret
Function at 0x14003c960
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x8d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rbx, rdx
xor eax, eax
mov word [rsp + 0xa8], ax
mov dword [rsp + 0xaa], eax
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x4c0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
test al, al
je 0x14003c9d6
xor al, al
jmp 0x14003caea
mov rcx, rbx
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov qword [rsp + 0x40], 0x100
lea rcx, [rsp + 0x2c0]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x4c0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0x100
lea r9, [rsp + 0x6c0]
mov r8d, 3
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
cmp word [rsp + 0xa8], 0
jne 0x14003cae8
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str.FONTS_
lea rcx, [rsp + 0x80]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
mov rax, qword [rsp + 0x58]
call qword [rax + 0xe8]
mov rdx, rbx
lea rcx, [rsp + 0x58]
mov rax, qword [rsp + 0x58]
call qword [rax + 0xe8]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x8d0
pop rbx
ret
Function at 0x140040130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7a8]
sub rsp, reloc.mfc140u.dll_AfxCancelModes
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov r15, rcx
cmp qword [rcx + 0x38], 0
jne 0x140040184
mov eax, 4
jmp 0x140040303
lea r14, [rcx + 0x10]
mov rcx, r14
call qword [sym.imp.acdb21.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001e70
xor eax, eax
mov qword [rsp + 0x60], rax
mov rcx, qword [r15 + 0x40]
lea r13, vtable.AdRmLock.0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x60], al
test rcx, rcx
je 0x1400401de
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
setne al
mov byte [rsp + 0x60], al
test al, al
jne 0x1400401ec
mov esi, 0x2d
jmp 0x1400402e7
cmp word [rsp + 0x70], 0
je 0x14004026f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004026f
mov r12, qword [r15 + 0x38]
mov rdi, qword [r12]
mov rdx, r14
mov rcx, r12
call fcn.140035c90
mov rbx, rax
xor esi, esi
cmp rax, qword [r12]
je 0x14004024a
add rax, 0x20
lea rdx, [rax + 8]
jne 0x14004022e
mov edx, esi
test r14, r14
lea rcx, [r14 + 8]
jne 0x14004023a
mov rcx, rsi
call fcn.140017760
test eax, eax
js 0x14004024a
mov qword [rsp + 0x38], rbx
jmp 0x140040253
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
cmp qword [rax], rdi
je 0x1400402e2
mov rdx, r14
mov rcx, qword [r15 + 0x38]
call fcn.1400403f0
jmp 0x1400402e2
mov r12, qword [r15 + 0x38]
mov rdi, qword [r12]
mov rdx, r14
mov rcx, r12
call fcn.140035c90
mov rbx, rax
xor esi, esi
cmp rax, qword [r12]
je 0x1400402b5
add rax, 0x20
lea rdx, [rax + 8]
jne 0x140040299
mov edx, esi
test r14, r14
lea rcx, [r14 + 8]
jne 0x1400402a5
mov rcx, rsi
call fcn.140017760
test eax, eax
js 0x1400402b5
mov qword [rsp + 0x38], rbx
jmp 0x1400402be
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
cmp qword [rax], rdi
jne 0x1400402e2
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
mov r9, r14
lea rdx, [rsp + 0x38]
mov rcx, qword [r15 + 0x38]
call fcn.140021450
movzx eax, byte [rsp + 0x60]
mov qword [rsp + 0x50], r13
test al, al
je 0x140040301
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov eax, esi
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1400489c0
lea r11, [rsp + reloc.mfc140u.dll_AfxCancelModes]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140040970
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x48], 0
mov rdi, rcx
je 0x1400409a4
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x1400409ca
mov eax, 0x26
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140041170]
xor ebx, ebx
mov r9, rdi
mov edx, 0x100000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rdi + 0x48], rax
mov ecx, 0x26
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
ret

Function at 0x140041440
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 8], 0
mov rdi, rcx
jne 0x140041474
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
ret
cmp qword [rcx + 0x18], 0
je 0x140041490
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
ret
lea rax, [rsp + 0x30]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x1400416f0]
mov edx, 0x100000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14004145f
mov qword [rdi + 0x18], rax
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x58], rbx
xor ebx, ebx
mov dword [rdi + 0x20], eax
mov ecx, dword [rdi + 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c9
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x140041515
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x1400414d0
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov qword [rdi + 0x18], 0
mov dword [rdi + 0x20], 0
jmp 0x140041517
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
ret