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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rcx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
lea ecx, [r12 + 0x18]
call fcn.140087674
mov rsi, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea eax, [r12 + 1]
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], eax
lea rax, vtable.std::_Ref_count_obj2_class_Intel::McRegAPI_.0
mov qword [rsi], rax
lea rdi, [rsi + 0x10]
lea rax, vtable.Intel::McRegAPI.0
mov qword [rdi], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x38], r12d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r12
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
lea r9, str.Install_Dir
lea r8, str.SoftwareMcAfeeNGM_
mov rdx, 0xffffffff80000002
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x48], r12
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14001fb40
nop
mov rax, qword [rdi]
mov dword [rsp + 0x38], r12d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
lea r9, str.Install_Dir
lea r8, str.SoftwareMcAfeeNGM_
mov rdx, 0xffffffff80000002
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x140058c5e
mov r8, rdi
inc r8
cmp word [rbx + r8*2], r12w
jne 0x140058c46
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140026610
nop
test rbx, rbx
je 0x140058c6c
mov rcx, rbx
call fcn.14008739c
nop
mov eax, edi
lock xadd dword [rsi + 8], eax
add eax, edi
jne 0x140058c93
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, edi
lock xadd dword [rsi + 0xc], eax
add eax, edi
jne 0x140058c93
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x50]
cmp r14, rax
je 0x140058cbb
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, r14
call fcn.140026610
cmp qword [r14 + 0x10], r12
jne 0x140058d21
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.14009b2d0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2b]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140058d1d
lea rax, [rbp - 0x80]
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x140058cf5
mov r8, rdi
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140026610
lea rdx, str.McAfeeMSGSDK
mov rcx, r14
call fcn.14001efd0
cmp qword [r14 + 0x10], r12
setne bl
lea rcx, [rsp + 0x50]
call fcn.14001e8a0
mov al, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140086e90
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x1400718d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rbp, r9
lea rcx, [rsp + 0x50]
mov rdi, r8
call fcn.1400707b0
mov rax, qword [rdi]
mov r9, rbp
mov rsi, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp eax, 0xea
jne 0x140071966
mov rcx, qword [rdi]
call fcn.14008739c
mov qword [rdi], 0
lea rdx, [0x14011bf00]
mov ecx, dword [rsi]
call fcn.140087a00
mov rdx, qword [rsp + 0x50]
mov r9, rbp
mov qword [rdi], rax
xor r8d, r8d
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140071987
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400719f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov ebp, r8d
mov r12, rdx
mov r14, rcx
test r9, r9
je 0x140071b4a
mov edi, dword [rsp + 0x90]
cmp edi, 1
jb 0x140071b4a
xor eax, eax
mov dword [r11 + 0x20], eax
mov qword [r11 - 0x38], rax
cmp r8d, 1
jne 0x140071a55
lea rax, [r11 + 0x20]
mov qword [r11 - 0x48], rax
lea r9, [r11 - 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.140070f60
jmp 0x140071a77
cmp ebp, 7
jne 0x140071a8f
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
call fcn.140070d50
mov edi, eax
test eax, eax
jne 0x140071b3c
mov rsi, qword [rsp + 0x30]
mov edi, dword [rsp + 0x88]
jmp 0x140071a96
mov dword [rsp + 0x88], edi
lea r15d, [rdi + 0x20]
mov ecx, r15d
call fcn.1400873d0
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140071ab4
lea edi, [rax + 8]
jmp 0x140071b33
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.140071460
mov edi, eax
test eax, eax
jne 0x140071b33
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.1400707b0
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
lea r9d, [rdi + 3]
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140071b2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14008739c
nop
mov rcx, qword [rsp + 0x30]
call fcn.14008739c
mov eax, edi
jmp 0x140071b4f
mov eax, 0x57
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400723b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x1400723e9
xor eax, eax
jmp 0x14007248f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14011ac70]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x140072418
mov edi, ebp
jmp 0x14007247e
mov r9, rsi
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.140072240
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14007246b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140026990
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14007248c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140086e90
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400723b0

Function at 0x1400724b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x1400723e9
xor eax, eax
jmp 0x14007248f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14011ac70]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x140072418
mov edi, ebp
jmp 0x14007247e
mov r9, rsi
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.140072240
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14007246b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140026990
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14007248c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140086e90
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400723b0

Function at 0x140072690
Capabilities:
Delete registry key

Disassembly:
lea rax, vtable.CoreTech::internal::CRegKeyImpl.0
mov qword [rcx], rax
jmp fcn.1400726c0
Function at 0x1400726c0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140072708
cmp byte [rbx + 0x14], 0
je 0x1400726ed
lea rdx, [0x140144440]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rbx + 8]
mov byte [rbx + 0x14], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov dword [rbx + 0x10], eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400729c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x140072a67
test rdx, rdx
je 0x140072a67
cmp byte [0x140189ab0], 0
jne 0x140072a2f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140072a1f
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140189ab8], rax
mov byte [0x140189ab0], 1
jmp 0x140072a36
mov rax, qword [0x140189ab8]
mov byte [0x140189ab0], 1
jmp 0x140072a36
mov rax, qword [0x140189ab8]
mov rcx, qword [rbx + 8]
mov rdx, rdi
test rax, rax
je 0x140072a56
mov r8d, dword [rbx + 0x10]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov eax, 0x57
add rsp, 0x20
pop rdi
ret

Function at 0x140072ac0
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
mov r10d, edx
test rcx, rcx
jne 0x140072ad8
lea eax, [rcx + 0x57]
add rsp, 0x48
ret
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
test rax, rax
cmovne rdx, rax
xor eax, eax
mov qword [rsp + 0x38], rdx
mov edx, r10d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x140073300
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x140073330
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x140073368
lea eax, [rbx + 0x57]
jmp 0x140073458
lea rcx, [rsp + 0x48]
call fcn.140072610
nop
mov r9d, dword [rdi + 0x10]
or r9d, 0x2001f
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140072db0
mov ebx, eax
test eax, eax
jne 0x14007344c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140073431
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140073330
mov ebx, eax
test eax, eax
jne 0x14007344c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400733e0
lea rcx, [rsp + 0x48]
call fcn.1400726c0
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0xd0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140072690
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140086e90
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140073640
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebp, r8d
mov rsi, rdx
mov r12, rcx
mov edx, ebp
mov rcx, rsi
mov r8, r9
mov r14, r9
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov r15d, dword [rsp + 0x2d0]
test r15d, r15d
je 0x14007377c
test eax, eax
jne 0x14007377c
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x270], rdi
mov qword [rsp + 0x268], r13
xor r13d, r13d
mov edi, r13d
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.14009b2d0
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x14007374d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140073754
mov rdx, qword [rsp + 0x48]
mov r9, r14
mov r8d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, r12
call fcn.140073640
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140073754
cmp eax, 0x103
je 0x140073762
inc edi
test ebx, ebx
je 0x1400736b3
mov eax, ebx
jmp 0x140073764
xor eax, eax
mov rdi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x278]
mov r13, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140086e90
add rsp, 0x280
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret

Function at 0x140073820
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test r9, r9
je 0x140073850
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x140073850
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
mov eax, 0x57
add rsp, 0x38
ret
Function at 0x140075470
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rbx, rdx
mov rsi, rcx
jne 0x14007553b
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov dword [rsp + 0x50], 0
jb 0x14007549d
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x14007553b
mov r9, qword [rsi + 0x10]
mov edx, ebp
mov r8, qword [rsi + 8]
mov rcx, r9
sub rcx, r8
mov qword [rsp + 0x48], rdi
cmp rbp, rcx
jae 0x1400754d1
lea rax, [r8 + rbp]
jmp 0x1400754fe
jbe 0x140075502
mov rax, qword [rsi + 0x18]
sub rax, r8
cmp rdx, rax
jbe 0x1400754ef
lea r8, [rsp + 0x40]
lea rcx, [rsi + 8]
call fcn.140074cd0
jmp 0x140075502
sub rdx, rcx
lea r8, [rsi + 8]
mov rcx, r9
call fcn.140074da0
mov qword [rsi + 0x10], rax
mov rcx, qword [rsi + 8]
call fcn.14000cf70
cmp qword [rbx + 0x18], 8
mov rdi, qword [rsp + 0x48]
jb 0x14007551a
mov rbx, qword [rbx]
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
sete al
mov byte [rsi + 0x20], al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400779f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x140077a43
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rcx, [0x14011ac30]
mov edx, 0x8000
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x38]
test eax, eax
jns 0x140077a58
test rbx, rbx
je 0x140077a43
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400a6934
mov edi, eax
test rbx, rbx
je 0x140077a7d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400789e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov edi, r8d
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140078ae3
xor ebp, ebp
cmp bp, word [rdx]
je 0x140078ae3
cmp qword [rcx + 0x50], rbp
je 0x140078a18
mov eax, 0xb7
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x60], rsi
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0xa0
mov rcx, rax
mov esi, ebp
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x50], rcx
test rax, rax
je 0x140078a68
cmp rax, 0xffffffffffffffff
je 0x140078a68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
jne 0x140078a87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbx + 0x50], rbp
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
cmp edi, 3
jne 0x140078aaa
lea r9d, [rdi - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea eax, [rdi - 1]
cmp eax, 1
ja 0x140078ad4
lea r9, [rsp + 0x78]
mov word [rsp + 0x68], 0xfeff
mov r8d, 2
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov eax, 0x57
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x14007a290
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
mov rcx, qword [rcx + 0x68]
mov qword [rax - 0x10], r12
mov r12, rdx
mov qword [rax - 0x18], r13
xor r13d, r13d
mov qword [rax - 0x20], r14
mov ebx, r13d
mov qword [rax - 0x28], r15
mov r14d, r9d
mov qword [rax - 0x30], rbx
mov r15, r8
mov dword [rax + 8], r13d
mov dword [rax - 0x38], r13d
test rcx, rcx
je 0x14007a2e2
mov edx, 0x1b58
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov edi, 0x57
call qword [rsi + 0x98]
test al, al
je 0x14007a3e2
mov qword [rsp + 0x90], rbp
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x14007a3da
cmp r13w, word [rbp]
je 0x14007a3da
mov rcx, rsi
call fcn.140078af0
mov edi, eax
test eax, eax
je 0x14007a335
cmp eax, 0xb7
jne 0x14007a3da
lea rax, [rsp + 0x48]
mov r9d, r14d
mov qword [rsp + 0x38], rax
mov r8, r15
lea rax, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call fcn.1400771c0
mov rbx, qword [rsp + 0x48]
mov edi, eax
test eax, eax
jne 0x14007a3da
test rbx, rbx
jne 0x14007a382
lea edi, [rax + 0xe]
jmp 0x14007a3da
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x14007a390
mov rcx, qword [rsi + 0x50]
lea r8d, [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test byte [rsi + 0x7c], 1
mov ebp, eax
je 0x14007a3ce
cmp r13w, word [rbx]
je 0x14007a3ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebp, ebp
jne 0x14007a3da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsi + 0x50]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
lea rax, [rcx - 1]
mov qword [rsi + 0x50], r13
mov r13, qword [rsp + 0x60]
cmp rax, 0xfffffffffffffffd
ja 0x14007a40e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14007a41b
mov rcx, rbx
call fcn.14009f768
mov rcx, qword [rsi + 0x68]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test rcx, rcx
je 0x14007a43a
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x14007d5a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
xor r15d, r15d
mov qword [rsp + 0x60], r15
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14011ac30]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x14007d5ed
lea eax, [r15 + 0x57]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov rcx, 0xffffffffffffffff
test rdi, rdi
je 0x14007d6ea
mov rbx, rcx
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14007d610
test ebx, ebx
je 0x14007d6ea
mov r9, qword [rsi]
mov r14d, dword [r9 - 0x10]
mov rbp, rdi
sub rbp, r9
sar rbp, 1
test ebx, ebx
js 0x14007d76c
mov ecx, 1
sub ecx, dword [r9 - 8]
mov eax, dword [r9 - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14007d65a
mov edx, ebx
mov rcx, rsi
call fcn.14003b4b4
mov r9, qword [rsi]
movsxd r8, ebx
add r8, r8
cmp rbp, r14
ja 0x14007d696
lea rdx, [r9 + rbp*2]
test r8, r8
je 0x14007d6ce
test rdx, rdx
jne 0x14007d680
call fcn.14009fae0
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
jmp 0x14007d6c9
movsxd rax, dword [r9 - 0xc]
add rax, rax
cmp rax, r8
jb 0x14007d6be
mov rcx, r9
call fcn.14009aec0
jmp 0x14007d6ce
movsxd rax, dword [r9 - 0xc]
add rax, rax
test r8, r8
je 0x14007d6ce
mov rcx, r9
cmp rax, r8
jb 0x14007d6b4
mov rdx, rdi
call fcn.14009aec0
jmp 0x14007d6ce
mov r8, rax
xor edx, edx
call fcn.14009b2d0
call fcn.14009fae0
mov dword [rax], 0x22
call fcn.14009f990
mov rax, qword [rsi]
cmp ebx, dword [rax - 0xc]
jg 0x14007d76c
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsi]
mov word [rax + rcx*2], r15w
jmp 0x14007d740
mov r8, qword [rsi]
lea rdx, [r8 - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14007d740
mov eax, dword [rdx + 0x10]
shr eax, 0x1f
test al, al
je 0x14007d718
cmp dword [r8 - 0xc], 0
jl 0x14007d761
mov dword [r8 - 0x10], r15d
mov rax, qword [rsi]
mov word [rax], r15w
jmp 0x14007d740
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14007d72b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsi], rax
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007d74e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400268b0
nop
mov ecx, 0x80070057
call fcn.1400268b0
int3