joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006fc4
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x51]
lea r8d, [rdx + 0x43]
mov byte [rsp + 0x50], 0
call fcn.180086e90
mov rbx, qword [rdi + 8]
and dword [rsp + 0x40], 0
test rbx, rbx
mov dword [rsp + 0x44], 0x44
je 0x180007032
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 8], 0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180007046
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x18000705a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 0x18], 0
mov ebp, 2
mov rdx, qword [rdi]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 8]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov r12d, eax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800070c4
cmp qword [rdi + 8], 0
jne 0x1800070c4
mov rbx, rax
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 8], rax
sub rbp, 1
jne 0x18000705f
test r12d, r12d
je 0x1800070ff
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x50]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
mov ebx, eax
je 0x1800070f5
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
neg eax
sbb edx, edx
and edx, ebx
jne 0x1800070ff
xor edx, edx
mov rcx, rdi
call fcn.180006f3c
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800077dc
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0xe0], rax
and word [rsp + 0x50], 0
mov bl, dl
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x52]
lea r8d, [rdx + 0x3a]
call fcn.180086e90
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x1e
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test bl, bl
je 0x180007853
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x1d
jae 0x180007853
mov word [rsp + rcx*2 + 0x50], SafeArrayAllocDescriptorEx
add ecx, 1
mov dword [rsp + 0x40], ecx
xor edx, edx
lea rcx, [rsp + 0x91]
mov byte [rsp + 0x90], 0
lea r8d, [rdx + 0x43]
call fcn.180086e90
and dword [rsp + 0x44], 0
xor ebx, ebx
lea esi, [rbx + 2]
mov dword [rsp + 0x48], 0x44
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebp, eax
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1800078de
test rbx, rbx
jne 0x1800078de
mov rcx, rax
lea eax, [rbx + 2]
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1800605e0
mov rbx, rax
sub rsi, 1
jne 0x180007880
test rbx, rbx
je 0x1800078f1
mov rcx, rbx
call fcn.180088170
test ebp, ebp
je 0x18000792e
lea rcx, [rsp + 0x90]
mov rdx, rdi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
mov ebx, eax
je 0x18000791c
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
neg eax
sbb ecx, ecx
and ecx, ebx
jne 0x18000792e
mov rcx, qword [rdi]
test rcx, rcx
je 0x18000792e
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi], 0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000b88c
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rdx
mov qword [r11 - 0x18], 7
and qword [r11 - 0x20], 0
and word [rsp + 0x58], 0
mov rcx, rdx
call fcn.180088f10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.18000a6c4
nop
lea rcx, str.prefs.js
call fcn.180088f10
mov r8, rax
lea rdx, str.prefs.js
lea rcx, [rsp + 0x50]
call fcn.18000b108
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000b9ad
lea rcx, str._r_nuser_pref__xpinstall.signatures.required___false__
call fcn.180088f40
mov rdi, rax
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000b9a3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
lea rdx, str._r_nuser_pref__xpinstall.signatures.required___false__
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x70], 8
jb 0x18000b9bf
mov rcx, qword [rsp + 0x58]
call fcn.180086560
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180086e60
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x18000cbe4
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x2f0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov r12, r8
mov rbp, rdx
mov qword [rsp + 0x28], rdx
and dword [rsp + 0x20], 0
mov rcx, rdx
call fcn.180009434
mov qword [rbp + 8], rax
and qword [rbp + 0x10], 0
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x58], 7
and qword [rsp + 0x50], 0
and word [rsp + 0x40], 0
mov rcx, r12
call fcn.180088f10
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.18000a6c4
nop
lea rcx, [0x1800d8364]
call fcn.180088f10
mov r8, rax
lea rdx, [0x1800d8364]
lea rcx, [rsp + 0x38]
call fcn.18000b108
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000cdae
lea rdx, [0x1800d8360]
lea rcx, [rsp + 0xbc]
call fcn.18008a330
test eax, eax
je 0x18000cd8b
lea rdx, [0x1800d8358]
lea rcx, [rsp + 0xbc]
call fcn.18008a330
test eax, eax
je 0x18000cd8b
mov qword [rsp + 0x80], 7
and qword [rsp + 0x78], 0
and word [rsp + 0x68], 0
mov rcx, r12
call fcn.180088f10
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.18000a6c4
nop
lea rcx, [rsp + 0xbc]
call fcn.180088f10
mov r8, rax
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x60]
call fcn.18000b108
mov rdi, qword [rbp + 8]
lea r9, [rsp + 0x60]
mov r8, qword [rdi + 8]
mov rdx, rdi
mov rcx, rbp
call fcn.18000bb6c
mov rbx, rax
mov edx, 1
mov rcx, rbp
call fcn.18000bc54
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp qword [rsp + 0x80], 8
jb 0x18000cd8b
mov rcx, qword [rsp + 0x68]
call fcn.180086560
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000ccb8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x58], 8
jb 0x18000cdc0
mov rcx, qword [rsp + 0x40]
call fcn.180086560
mov rax, rbp
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x18000d438
Capabilities:
Terminate thread

Disassembly:
jmp 0x18000d438
sub rsp, 0x28
mov rcx, qword [0x18010fea0]
test rcx, rcx
je 0x18000d465
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x18010fea0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x18010fea0], 0
add rsp, 0x28
ret
Function at 0x18000dc1c
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x18000dcd6
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
call fcn.180086e90
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
jmp 0x18000dcc9
lea rdx, str.firefox.exe
lea rcx, [rsp + 0x4c]
call fcn.180086a50
test eax, eax
jne 0x18000dcbc
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rdi, rax
je 0x18000dcbc
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18000dc7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180086e60
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x18000dfa8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
je 0x18000e01b
cmp word [rcx], di
je 0x18000e01b
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x18000e020
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, 0x80
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp ebx, 0x10
mov rcx, rsi
jne 0x18000dff9
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18000dfff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
jne 0x18000e020
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, edi
cmovle ecx, eax
mov edi, ecx
jmp 0x18000e020
mov edi, 0x80070057
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18000eb84
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push rbx
sub rsp, 0x2b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
and word [rsp + 0x90], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.180086e90
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
mov r9b, 1
mov r8d, 0x410
lea rdx, str.D00904B0_A9E9_434a_AD26_BB6BBF49849A
lea rcx, [rsp + 0x60]
call fcn.180024380
nop
lea rcx, [rsp + 0x40]
call fcn.1800082f0
nop
lea rcx, [rsp + 0x40]
call fcn.18000752c
test rax, rax
je 0x18000ec72
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x18000ec49
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x18000ec99
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x18000ec99
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test ebx, ebx
js 0x18000ece7
lea rdx, str.MozillaExtensionsec8030f7_c20a_464f_9b0e_13a3a9e97384_
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.websecurity_ati.org.xpi
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000ece7
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180006f3c
lea rcx, [rsp + 0x60]
call fcn.180021010
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180086e60
add rsp, 0x2b0
pop rbx
ret
Function at 0x1800142c4
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
and qword [rax + 0x18], 0
xor edx, edx
lea rcx, [rax + 0x18]
call fcn.1800077dc
cmp qword [rsp + 0x80], 0
jne 0x180014300
lea rcx, [rsp + 0x80]
call fcn.1800088d0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x80]
call fcn.180008d04
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180013618
mov rbx, rax
lea rdx, [0x1800d7530]
lea rcx, [rsp + 0x48]
call fcn.180013618
nop
mov dword [rsp + 0x20], 0xa
mov r9d, 5
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.18001bcfc
nop
lea rcx, [0x18010e058]
mov rax, qword [0x18010e058]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [0x1800d8f7c]
call fcn.180088f10
mov r8d, eax
lea rdx, [0x1800d8f7c]
lea rcx, [rsp + 0x78]
call fcn.18000f954
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.18000fa54
lea rcx, str..plg_
call fcn.180088f10
mov r8d, eax
lea rdx, str..plg_
lea rcx, [rsp + 0x78]
call fcn.18000fa54
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.18000fa54
lea rcx, [0x18010e058]
mov rax, qword [0x18010e058]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x88], rdi
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMozillaPlugins
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rsi, eax
test eax, eax
jne 0x180014493
mov rbx, qword [rsp + 0x78]
mov r8, rbx
lea rdx, str._sMimeTypes_application_x_firefox_plg
lea rcx, [rsp + 0x88]
call fcn.18000acf4
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r8, rbx
lea rdx, str._sMimeTypes
lea rcx, [rsp + 0x88]
call fcn.18000acf4
mov rdi, qword [rsp + 0x88]
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1800144a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x70], 0
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800144c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800144e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180014508
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x18001451b
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800145d0
Capabilities:
Delete registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov qword [rsp + 0x38], 0xfffffffffffffffe
and qword [rsp + 0x70], 0
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1800077dc
cmp qword [rsp + 0x70], 0
jne 0x180014605
lea rcx, [rsp + 0x70]
call fcn.1800088d0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call fcn.180008d04
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180013618
mov rbx, rax
lea rdx, [0x1800d7530]
lea rcx, [rsp + 0x40]
call fcn.180013618
nop
mov dword [rsp + 0x20], 0xa
mov r9d, 5
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18001bcfc
nop
mov rcx, qword [rsp + 0x88]
add rcx, 0xffffffffffffffe8
call fcn.18000ea10
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [0x1800d8f7c]
call fcn.180088f10
mov r8d, eax
lea rdx, [0x1800d8f7c]
lea rcx, [rsp + 0x78]
call fcn.18000fa54
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.18000fa54
lea rcx, str..ext
call fcn.180088f10
mov r8d, eax
lea rdx, str..ext
lea rcx, [rsp + 0x78]
call fcn.18000fa54
and qword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMozillaFirefoxExtensions
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rdi, eax
mov rbx, qword [rsp + 0x78]
test eax, eax
jne 0x18001471d
mov rdx, rbx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180014739
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x80], 0
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180014757
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x18001477b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18001478b
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rdi
add rsp, 0x58
pop rdi
pop rbx
ret
sub rsp, 0x28
call fcn.1800142c4
add rsp, 0x28
jmp 0x1800145d0
Function at 0x180014818
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
lea rdx, [0x1800d9080]
lea rcx, [rsp + 0x60]
call fcn.180013618
nop
lea rdx, str.SoftwareMozillaNativeMessagingHosts
lea rcx, [rsp + 0x58]
call fcn.180013618
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
test eax, eax
jne 0x18001488c
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800148a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1800148c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x1800148e6
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rbx
add rsp, 0x40
pop rbx
ret
sub rsp, 0x28
call fcn.18000eb84
add rsp, 0x28
jmp 0x180014818
Function at 0x180017cf8
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x670
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x660], rax
lea rcx, [0x18010b780]
call fcn.18000dbd4
mov ebx, eax
and word [rsp + 0x250], 0
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x252]
call fcn.180086e90
mov r8d, 0x208
lea rdx, [rsp + 0x250]
lea rcx, [0x180000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r9, str.websecurity.json
lea r8, [rsp + 0x250]
lea rdx, str._s_s
lea rcx, [0x18010fec8]
call fcn.18000acf4
lea r9, str.websecurity_ati.org.xpi
lea r8, [rsp + 0x250]
lea rdx, str._s_s
lea rcx, [0x18010fed0]
call fcn.18000acf4
and word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.180086e90
lea r11, [rsp + 0x40]
mov qword [rsp + 0x20], r11
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x180017e59
lea rdx, str.MozillaExtensionsec8030f7_c20a_464f_9b0e_13a3a9e97384_
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180017e23
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.websecurity_ati.org.xpi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180017e59
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [0x18010fed0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [0x18010e058]
mov rax, qword [0x18010e058]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8d, ebx
lea rdx, [0x1800d9710]
lea rcx, [rsp + 0x30]
call fcn.18000acf4
mov rbx, qword [rsp + 0x30]
test edi, edi
js 0x180017eb2
mov rcx, qword [0x18010fec8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180017eb2
mov rdx, qword [0x18010fec8]
mov rcx, rbx
call fcn.18001769c
mov edi, eax
call fcn.1800171b4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x180017ed4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.180086e60
mov rbx, qword [rsp + 0x680]
add rsp, 0x670
pop rdi
ret

Function at 0x180018520
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
cmp qword [0x18010fea0], rax
jne 0x18001851b
mov qword [rsp + 0x28], rax
lea r8, [0x180017f10]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18010fea0], rax
add rsp, 0x38
ret
sub rsp, 0x28
call fcn.180017cf8
add rsp, 0x28
jmp 0x1800184e8