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

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400fa5cf
xor ebx, ebx
cmp bx, word [rcx]
je 0x1400fa5cf
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fa5c6
test al, 0x10
je 0x1400fa5c6
mov ebx, 1
movzx eax, bl
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400faa60
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
test rcx, rcx
je 0x1400fab61
xor eax, eax
cmp ax, word [rcx]
je 0x1400fab61
movzx eax, word [rcx]
cmp ax, word [0x140335310]
jne 0x1400faab2
movzx eax, word [rcx + 2]
cmp ax, word [0x140335312]
je 0x1400fab61
movzx eax, word [rcx]
cmp ax, word [0x1402e58bc]
jne 0x1400faadc
movzx eax, word [rcx + 2]
cmp ax, word [0x1402e58be]
jne 0x1400faadc
movzx eax, word [rcx + 4]
cmp ax, word [0x1402e58c0]
je 0x1400fab61
call fcn.1400fa5a0
test al, al
je 0x1400fab61
mov r8, rbx
lea rdx, str._s.
lea rcx, [rsp + 0x28]
call fcn.140027a80
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov dl, 1
call fcn.1400fa150
test al, al
jne 0x1400fab1a
xor bl, bl
jmp 0x1400fab3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400fab5c
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14002e610
movzx eax, bl
jmp 0x1400fab63
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x50
pop rbx
ret
Function at 0x1400faf00
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
call fcn.1400284f0
mov rcx, rax
test rax, rax
jne 0x1400faf3f
mov ecx, 0x80004005
call fcn.140028e20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov edi, ebp
lea edx, [rdi + 1]
test edx, edx
js 0x1400fb026
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400faf7b
lea rcx, [rsp + 0x48]
call fcn.140028cb0
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 8], 1
jle 0x1400faf93
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140028ba0
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x1400faffd
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14029af34
test eax, eax
js 0x1400faff2
cmp eax, dword [rbx - 0xc]
jg 0x1400faff2
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
cmp edi, dword [rbx - 0x10]
ja 0x1400faf50
lea rcx, [rbx - 0x18]
call fcn.140028730
add rax, 0x18
mov qword [rsi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1400fb034
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
jmp 0x1400fb031
mov ecx, 0x80070057
call fcn.140028e20
int3
lea rdx, [0x140328340]
mov rcx, rsi
call fcn.140027f40
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400fb034
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x1400fb031
mov ecx, 0x80070057
call fcn.140028e20
nop
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fe080
Capabilities:
Delete registry key

Disassembly:
lea rax, vtable.CoreTech::internal::CRegKeyImpl.0
mov qword [rcx], rax
jmp fcn.1400fe0a0

Function at 0x1400fe0a0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400fe0e8
cmp byte [rbx + 0x14], 0
je 0x1400fe0c9
lea rdx, [0x140328340]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [rbx + 0x14], 0
mov rcx, qword [rbx + 8]
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 0x1400fe3b0
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
jne 0x1400fe3d7
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x1400fe3c7
cmp byte [0x1403ee9e4], 0
jne 0x1400fe427
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fe417
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403ee9e8], rax
mov byte [0x1403ee9e4], 1
jmp 0x1400fe42e
mov rax, qword [0x1403ee9e8]
mov byte [0x1403ee9e4], 1
jmp 0x1400fe42e
mov rax, qword [0x1403ee9e8]
mov rcx, qword [rbx + 8]
mov rdx, rdi
test rax, rax
je 0x1400fe44e
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]

Function at 0x1400fe4a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
mov r10d, edx
test rcx, rcx
jne 0x1400fe4b8
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 0x1400feba0
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 0x1400febd0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x1400fec15
lea eax, [rbx + 0x57]
jmp 0x1400fed08
lea rcx, [rsp + 0x48]
call fcn.1400fe030
nop
mov r9d, dword [rdi + 0x10]
or r9d, 0x2001f
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400fe780
mov ebx, eax
test eax, eax
jne 0x1400fecfc
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 0x1400fece1
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400febd0
mov ebx, eax
test eax, eax
jne 0x1400fecfc
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 0x1400fec90
lea rcx, [rsp + 0x48]
call fcn.1400fe0a0
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0xd0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400fe080
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14026d870
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fef00
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
sub rsp, 0x288
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, r8d
mov qword [rsp + 0x58], rcx
mov rsi, rdx
mov qword [rsp + 0x50], r9
mov edx, ebp
mov rcx, rsi
mov r8, r9
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [rsp + 0x2c0], 0
je 0x1400ff041
test eax, eax
jne 0x1400ff041
mov qword [rsp + 0x280], rbx
xor ebx, ebx
mov qword [rsp + 0x278], rdi
mov edi, ebx
jmp 0x1400fef72
xor ebx, ebx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x200
call fcn.14028e7e0
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400ff01a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ff021
mov eax, dword [rsp + 0x2c0]
mov r8d, ebp
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.1400fef00
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ff021
cmp eax, 0x103
je 0x1400ff02f
inc edi
test ebx, ebx
je 0x1400fef70
mov eax, ebx
jmp 0x1400ff031
xor eax, eax
mov rbx, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x288
pop rsi
pop rbp
ret

Function at 0x1400ff0e0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test r9, r9
je 0x1400ff110
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x1400ff110
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 0x1400ff690
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rdi, rdx
mov rsi, rcx
je 0x1400ff6b3
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x30], 0
jb 0x1400ff6cc
mov rcx, qword [rdx]
jmp 0x1400ff6cf
mov rcx, rdi
lea rdx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x1400ff6ef
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdx, rbp
mov qword [rsp + 0x38], rbx
lea rcx, [rsi + 8]
call fcn.1400e752c
cmp qword [rdi + 0x18], 8
jb 0x1400ff70a
mov rdi, qword [rdi]
mov r9, qword [rsi + 8]
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rbx, qword [rsp + 0x38]
cmp eax, 1
mov rbp, qword [rsp + 0x40]
sete al
mov byte [rsi + 0x20], al
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ff7f0
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rdi, r9
mov rsi, r8
mov ebx, edx
call fcn.1400284f0
mov rcx, rax
test rax, rax
jne 0x1400ff829
mov ecx, 0x80004005
call fcn.140028e20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
test ebx, ebx
je 0x1400ff89d
sub ebx, 1
mov r9d, dword [rsp + 0x70]
mov r8, rsi
lea rcx, [rsp + 0x30]
je 0x1400ff874
cmp ebx, 1
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
je 0x1400ff86b
lea rdx, str._s__d_:__UNKNOWN_:___s_:__s_n
jmp 0x1400ff88a
lea rdx, str._s__d_:__ERROR_:___s_:__s_n
jmp 0x1400ff88a
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea rdx, str._s__d_:__INFO_:___s_:__s_n
call fcn.140028af0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400ff8b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140100d78
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140100df3
cmp di, word [rcx]
je 0x140100df3
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140100da0
lea eax, [rdi + 2]
jmp 0x140100df8
xor ecx, ecx
call fcn.140100944
mov rdx, rbx
mov rcx, rax
call fcn.140103d40
test eax, eax
je 0x140100df8
mov edx, dword [reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x1403eeaf8]
mov qword [rsp + 0x28], rax
lea r9, [0x1403db100]
mov eax, dword [reloc.OLEAUT32.dll_VariantInit]
lea r8, str.Intel_Corporation
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140102714
neg eax
sbb eax, eax
not eax
and eax, 5
jmp 0x140100df8
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140102e4c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov r9, rcx
mov dword [rax + 0x10], edi
lea rax, [rax + 0x10]
mov qword [rsp + 0x28], rax
lea r8, [0x140103278]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140102ea9
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140103b58
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
mov r13, rdx
mov r15, rcx
test rcx, rcx
je 0x140103cad
test rdx, rdx
je 0x140103cad
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, 0x8000
mov esi, eax
mov ecx, r14d
call fcn.14026ded8
mov rbx, rax
test rax, rax
jne 0x140103bb7
lea edi, [rax + 8]
jmp 0x140103ca1
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140103bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140103ca1
lea r9, [rbp + 0x30]
mov dword [rbp + 0x30], edi
mov r8d, r14d
mov rdx, rbx
mov rcx, rsi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x140103c0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140103ca1
mov eax, dword [rbp + 0x30]
mov r14d, edi
shr eax, 3
mov r12b, dil
mov dword [rbp + 0x30], eax
test eax, eax
je 0x140103c8e
xor eax, eax
mov edx, r14d
lea r8, [rbp - 0x20]
mov qword [rbp - 0x20], rdi
mov rcx, rsi
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov rdx, qword [rbx + rdx*8]
lea r9d, [rax + 0x18]
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x140103c5c
cmp qword [rbp - 0x20], r15
jg 0x140103c5c
mov eax, dword [rbp - 0x18]
mov rcx, r15
sub rcx, qword [rbp - 0x20]
cmp rcx, rax
jl 0x140103c67
inc r14d
cmp r14d, dword [rbp + 0x30]
jae 0x140103c8e
jmp 0x140103c1e
mov edx, r14d
mov r9d, 0x104
mov r8, r13
mov rcx, rsi
mov rdx, qword [rbx + rdx*8]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x140103c88
mov r12b, 1
jmp 0x140103c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12b, r12b
jne 0x140103ca1
mov edi, 5
mov rcx, rbx
call fcn.14026e340
mov eax, edi
jmp 0x140103cb2
mov eax, 0x57
lea r11, [rsp + 0x40]
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 0x140104b6c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rcx], edi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov dword [rcx + 0x18], edi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov rcx, rbx
call fcn.140105fa4
mov qword [rbx], rax
mov dword [rsi + 0x40], edi
lea rbx, [rsi + 0x48]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140104bf4
mov rax, qword [rbx]
jmp 0x140104bf7
mov rax, rbx
mov word [rax], di
test rbp, rbp
je 0x140104c15
cmp word [rbp], di
je 0x140104c10
mov rcx, rbp
call fcn.14029adcc
mov rdi, rax
mov rdx, rbp
jmp 0x140104c6d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.14028e7e0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea rdx, str.Program_FilesCommon_FilesMcAfeePlatformCore_trusted.js
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [rsp + 0x40], di
je 0x140104c68
lea rcx, [rsp + 0x40]
call fcn.14029adcc
mov rdi, rax
lea rdx, [rsp + 0x40]
mov r8, rdi
mov rcx, rbx
call fcn.14002c3d0
nop
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14026d870
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x140106e50
Capabilities:
Check if file exists
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x468]
sub rsp, 0x550
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
jne 0x140106e93
xor eax, eax
jmp 0x1401070af
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov r8d, 3
lea rcx, [rsp + 0x70]
call fcn.140106c5c
nop
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x330]
call fcn.14028e7e0
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x220]
call fcn.14028e7e0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, esi
lea rcx, [rbp + 0x330]
lea rax, [rbp + 0x330]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140106f15
mov al, byte [r8 + rcx]
test al, al
je 0x140106f15
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140106ef6
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], bl
mov r8, rsi
lea rcx, [rbp + 0x220]
lea rax, [rbp + 0x220]
mov r9, qword [rsp + 0x70]
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140106f5a
mov al, byte [r9 + rcx]
test al, al
je 0x140106f5a
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140106f3b
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], bl
lea rcx, [rbp + 0x220]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, [0x1402e7114]
mov rdx, rsi
lea rcx, [rbp + 0x220]
call fcn.140106d90
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x14010711c]
mov qword [rsp + 0x30], rax
lea rax, [0x1401070d4]
mov qword [rsp + 0x28], rax
lea rax, [0x140107124]
mov qword [rsp + 0x20], rax
lea r9, [0x140107114]
lea r8, [fcn.1401070dc]
lea rdx, [fcn.14026d850]
lea rcx, [0x14023d880]
call qword [rdi + reloc.OLEAUT32.dll_VariantClear]
mov rsi, rax
test rax, rax
je 0x140107099
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x110]
call fcn.14028e7e0
lea rax, [rbp + 0x110]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [0x14010712c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x220]
lea rdx, [rbp + 0x330]
mov rcx, rsi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rcx, rsi
call qword [rdi + 0x18]
lea rcx, [rbp + 0x114]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140107099
cmp dword [rbp + 0x110], ebx
je 0x14010708b
lea rax, [rbp + 8]
mov qword [rbp], rax
mov r8d, 3
lea rdx, [rbp + 0x114]
lea rcx, [rbp]
call fcn.14009d720
nop
mov rcx, qword [rbp]
call fcn.140101fdc
mov ebx, eax
lea rax, [rbp + 8]
mov rcx, qword [rbp]
cmp rcx, rax
je 0x14010708b
call fcn.140290594
lea rcx, [rbp + 0x114]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x1401070ad
call fcn.140290594
mov eax, ebx
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14026d870
mov rbx, qword [rsp + 0x580]
add rsp, 0x550
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012bee0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 8
jb 0x14012bf1e
mov rax, qword [rcx]
jmp 0x14012bf21
mov rax, rbx
mov word [rax], si
cmp qword [rcx + 0x18], 0x104
jae 0x14012bf3c
mov r8, qword [rcx + 0x10]
mov edx, 0x104
call fcn.14002dcb0
cmp qword [rbx + 0x18], 8
jb 0x14012bf48
mov rdi, qword [rbx]
jmp 0x14012bf4b
mov rdi, rbx
movzx eax, si
mov ecx, 0x104
rep stosw word [rdi], ax
mov qword [rbx + 0x10], 0x104
cmp qword [rbx + 0x18], 8
jb 0x14012bf6a
mov rax, qword [rbx]
jmp 0x14012bf6d
mov rax, rbx
mov word [rax + 0x208], si
mov dword [rsp + 0x20], 1
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
cmp qword [rbx + 0x18], 8
jb 0x14012bf8f
mov rcx, qword [rbx]
jmp 0x14012bf92
mov rcx, rbx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor edx, edx
xor r8d, r8d
mov rcx, rbx
call fcn.14008b500
mov rcx, rax
cmp qword [rbx + 0x10], rax
jae 0x14012bfc0
lea rcx, str.invalid_string_position
call fcn.140107ed8
int3
mov qword [rbx + 0x10], rcx
cmp qword [rbx + 0x18], 8
jb 0x14012bfd0
mov rax, qword [rbx]
jmp 0x14012bfd3
mov rax, rbx
mov word [rax + rcx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14012bff0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov esi, r8d
mov ebp, edx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r14
cmp qword [rcx + 0x18], 8
jb 0x14012c038
mov rax, qword [rcx]
jmp 0x14012c03b
mov rax, rbx
mov word [rax], r14w
cmp qword [rcx + 0x18], 0x104
jae 0x14012c057
mov r8, qword [rcx + 0x10]
mov edx, 0x104
call fcn.14002dcb0
cmp qword [rbx + 0x18], 8
jb 0x14012c063
mov rdi, qword [rbx]
jmp 0x14012c066
mov rdi, rbx
movzx eax, r14w
mov ecx, 0x104
rep stosw word [rdi], ax
mov qword [rbx + 0x10], 0x104
cmp qword [rbx + 0x18], 8
jb 0x14012c086
mov rax, qword [rbx]
jmp 0x14012c089
mov rax, rbx
mov word [rax + 0x208], r14w
mov dword [rsp + 0x20], 1
cmp qword [rbx + 0x18], 8
jb 0x14012c0a5
mov rdx, qword [rbx]
jmp 0x14012c0a8
mov rdx, rbx
mov r9d, esi
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
xor r8d, r8d
mov rcx, rbx
call fcn.14008b500
mov rcx, rax
cmp qword [rbx + 0x10], rax
jae 0x14012c0d9
lea rcx, str.invalid_string_position
call fcn.140107ed8
int3
mov qword [rbx + 0x10], rcx
cmp qword [rbx + 0x18], 8
jb 0x14012c0e9
mov rax, qword [rbx]
jmp 0x14012c0ec
mov rax, rbx
mov word [rax + rcx*2], r14w
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret