joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c98
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xff60]
mov eax, 0x10060
call fcn.14001cfa0
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0xff50], rax
and dword [r8], 0
mov r14d, 3
and qword [rsp + 0x30], 0
mov r13, r8
and dword [rsp + 0x28], 0
mov rbx, rdx
mov r15d, 0x80000000
mov dword [rsp + 0x20], r14d
lea esi, [r14 - 2]
xor r9d, r9d
mov r8d, esi
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d17
xor esi, esi
jmp 0x140001ec1
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
mov r8d, esi
mov edx, r15d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e9e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or ecx, 0xffffffff
cmp r14d, ecx
je 0x140001e9e
cmp eax, ecx
je 0x140001e9e
cmp r14d, eax
jne 0x140001ea0
mov r15d, r14d
xor r12d, r12d
shr r15d, 0xf
and r14d, 0x7fff
test r15d, r15d
je 0x140001e2b
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x8000
lea rdx, [rbp + 0x7f50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001e9e
cmp dword [rsp + 0x40], 0x8000
jne 0x140001e9e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x8000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001e9e
mov eax, 0x8000
cmp dword [rsp + 0x40], eax
jne 0x140001e9e
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x7f50]
call fcn.14001d4f0
test eax, eax
jne 0x140001ea0
add r12d, esi
cmp r12d, r15d
jb 0x140001d96
test r14d, r14d
je 0x140001e98
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, [rbp + 0x7f50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001e9e
cmp dword [rsp + 0x40], r14d
jne 0x140001e9e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001e9e
cmp dword [rsp + 0x40], r14d
jne 0x140001e9e
mov r8d, r14d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x7f50]
call fcn.14001d4f0
test eax, eax
jne 0x140001ea0
mov dword [r13], esi
jmp 0x140001ea0
xor esi, esi
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001eb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140001ec1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0xff50]
xor rcx, rsp
call fcn.140007300
mov rbx, qword [rsp + 0x100b8]
add rsp, 0x10060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001ef0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov r14, r9
xor edx, edx
mov r15, r8
mov rsi, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
mov edi, eax
call fcn.1400075cc
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140001f78
mov eax, dword [0x14002def4]
mov edi, 1
test dil, al
jne 0x140001f69
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, edi
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x140001fd4
lea r9, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x28]
mov rcx, rbx
lea rdx, [0x1400266a4]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, 1
test eax, eax
jne 0x140001fe7
mov eax, dword [0x14002def4]
test dil, al
jne 0x140001fc7
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, edi
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
lea rcx, [0x14002df30]
call fcn.140007010
xor edi, edi
jmp 0x14000200c
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + 0xa]
mov dword [rbp], eax
movzx eax, word [rcx + 8]
mov dword [r15], eax
movzx eax, word [rcx + 0xe]
movzx ecx, word [rcx + 0xc]
mov dword [r14], eax
mov rax, qword [rsp + 0x70]
mov dword [rax], ecx
test rbx, rbx
je 0x140002019
mov rcx, rbx
call fcn.140007608
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140003134
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000319f
mov eax, dword [0x14002def4]
test al, 1
jne 0x140003190
and qword [0x14002df30], rbx
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_open_service_manager.____d_
jmp 0x1400031f1
mov r8d, 0xf01ff
lea rdx, str.MozillaMaintenance
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
mov eax, dword [0x14002def4]
jne 0x140003207
test al, 1
jne 0x1400031e4
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
lea rcx, [0x14002df30]
call fcn.140007010
xor edi, edi
jmp 0x140003349
test al, 1
jne 0x140003228
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Sending_stop_request...
lea rcx, [0x14002df30]
call fcn.140006fb8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400032aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1400032aa
mov eax, dword [0x14002def4]
test al, 1
jne 0x14000328e
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_sending_stop_request.____d_
lea rcx, [0x14002df30]
call fcn.140007010
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x14002def4]
test al, 1
jne 0x1400032e4
and qword [0x14002df30], rbx
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Waiting_for_service_stop...
lea rcx, [0x14002df30]
call fcn.140006fb8
call fcn.140006b38
mov ebp, eax
call fcn.140006d30
mov ecx, dword [0x14002def4]
test cl, 1
jne 0x14000332a
and qword [0x14002df30], rbx
or ecx, 1
mov dword [0x14002def4], ecx
lea rcx, [0x14001da60]
call fcn.1400075b4
mov r8d, ebp
lea rdx, str.Done_waiting_for_service_stop__last_service_state:__d
lea rcx, [0x14002df30]
call fcn.140006fb8
xor edi, edi
cmp ebp, 1
sete dil
test rbx, rbx
je 0x140003357
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007300
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140003378
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x1400033fc
mov eax, dword [0x14002def4]
test al, 1
jne 0x1400033db
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service_manager.____d_
lea rcx, [0x14002df30]
call fcn.140007010
jmp 0x1400034dc
mov r8d, 0xf01ff
lea rdx, str.MozillaMaintenance
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000345e
mov eax, dword [0x14002def4]
test al, 1
jne 0x140003440
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service.____d_
lea rcx, [0x14002df30]
call fcn.140007010
jmp 0x1400034d3
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
mov ebp, esi
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x1400034a5
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x38]
add eax, 0xa
add ebp, eax
cmp dword [rsp + 0x24], 1
je 0x1400034a9
cmp ebp, 0xea60
ja 0x1400034a9
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003475
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test eax, eax
jne 0x1400034c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov ecx, esi
sete cl
mov esi, ecx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007300
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140003a38
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x80]
mov dword [rdx], edi
mov r8d, 0x20a
xor edx, edx
call fcn.140008490
mov r8d, 0x104
lea rcx, [rbp - 0x80]
mov rdx, rbx
call fcn.14000903c
lea rdx, str.update.status
lea rcx, [rbp - 0x80]
call fcn.140006994
test eax, eax
jne 0x140003ae1
mov eax, dword [0x14002def4]
test al, 1
jne 0x140003ac7
or eax, 1
mov qword [0x14002df30], rdi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Could_not_append_path_for_update.status_file
lea rcx, [0x14002df30]
call fcn.140007010
xor eax, eax
jmp 0x140003c45
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003b40
mov eax, dword [0x14002def4]
test al, 1
jne 0x140003b37
or eax, 1
mov qword [0x14002df30], rdi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Could_not_open_update.status_file
jmp 0x140003bb0
xor eax, eax
mov byte [rsp + 0x58], dil
lea r9, [rsp + 0x40]
mov qword [rsp + 0x59], rax
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x61], rax
mov rcx, rbx
mov qword [rsp + 0x69], rax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x71], eax
mov word [rsp + 0x75], ax
mov byte [rsp + 0x77], al
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [0x14002def4]
jne 0x140003bbe
test al, 1
jne 0x140003ba9
or eax, 1
mov qword [0x14002df30], rdi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Could_not_read_from_update.status_file
lea rcx, [0x14002df30]
call fcn.140007010
jmp 0x140003c30
test al, 1
jne 0x140003bde
or eax, 1
mov qword [0x14002df30], rdi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea r8, [rsp + 0x58]
lea rdx, str.updater.exe_returned_status:__s
lea rcx, [0x14002df30]
call fcn.140006fb8
movsd xmm0, qword [str.applying]
lea rdx, [rsp + 0x48]
mov al, byte [0x1400275d8]
lea rcx, [rsp + 0x58]
mov r8d, 8
movsd qword [rsp + 0x48], xmm0
mov byte [rsp + 0x50], al
call fcn.14000cb80
test eax, eax
sete dil
mov dword [rsi], edi
mov edi, 1
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140003c43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140007300
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004bdc
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004c44
mov eax, dword [0x14002def4]
test al, 1
jne 0x140004c21
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____d_
mov r8d, eax
lea rcx, [0x14002df30]
call fcn.140007010
xor eax, eax
jmp 0x140004cf6
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140004c87
mov eax, dword [0x14002def4]
test al, 1
jne 0x140004c78
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x140004c2e
lea rdx, str.update
mov rcx, rbx
call fcn.140006994
test eax, eax
jne 0x140004cd3
mov eax, dword [0x14002def4]
test al, 1
jne 0x140004cc1
and qword [0x14002df30], 0
lea rcx, [0x14001da60]
or eax, 1
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x140004c2e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.updater.exe
mov rcx, rbx
call fcn.140006994
test eax, eax
je 0x140004c9a
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140004cfc
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
cmp word [rcx], si
je 0x140004e1d
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x140004d8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140004d8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140004d8e
mov eax, dword [0x14002def4]
test al, 1
jne 0x140004d78
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
mov r8, rdi
lea rdx, str.Could_not_delete_service_updater_path:__ls.
lea rcx, [0x14002df30]
call fcn.140007010
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140008490
lea r8, str.updater.ini
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006690
test eax, eax
je 0x140004e1d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x140004e1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140004e1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140004e1d
mov eax, dword [0x14002def4]
test al, 1
jne 0x140004e05
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea r8, [rsp + 0x20]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea rcx, [0x14002df30]
call fcn.140007010
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007300
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005a84
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r9
and qword [rbp - 0x18], 0
mov r14, r8
mov ebx, edx
mov dword [rax - 0x38], 0xf0000000
mov rsi, rcx
mov r9d, 1
xor r8d, r8d
lea rcx, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140005b09
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x140005ae8
xor eax, eax
jmp 0x140005bc9
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140005ae1
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140005ae1
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140005ae1
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
mov edx, 4
mov r8, rdi
mov dword [rbp - 0x20], edx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140005ae1
mov ecx, dword [rdi]
call fcn.1400075cc
mov r8d, dword [rdi]
xor edx, edx
mov rcx, rax
mov qword [r14], rax
mov rbx, rax
call fcn.140008490
mov rcx, qword [rbp - 0x18]
mov r9, rdi
and dword [rsp + 0x20], 0
mov r8, rbx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140005ae1
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140005bb3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140005bc4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140005c58
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
lea rdx, [0x1400283ec]
mov r12, r9
call fcn.14000d844
mov rbx, rax
test rax, rax
je 0x140005e8e
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.14000d758
test eax, eax
jne 0x140005e8e
mov rcx, rbx
call fcn.14000d3ec
test eax, eax
jle 0x140005e8e
movsxd rsi, eax
lea rcx, [rsi + 1]
call fcn.1400075cc
mov rdi, rax
test rax, rax
jne 0x140005cd0
lea esi, [rax + 0xa]
jmp 0x140005e84
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000d758
test eax, eax
jne 0x140005cf7
mov r9, rbx
lea edx, [rax + 1]
mov r8, rsi
mov rcx, rdi
call fcn.14000dae0
cmp rax, rsi
je 0x140005d01
mov esi, 6
jmp 0x140005e84
xor r15b, r15b
mov byte [rdi + rsi], 0
xor ebp, ebp
mov qword [rsp + 0x70], rdi
jmp 0x140005e5e
cmp byte [rsi], 0x23
je 0x140005e5e
cmp byte [rsi], 0x3b
je 0x140005e5e
lea rax, [0x140028404]
mov cl, 0x20
cmp byte [rsi], cl
je 0x140005d3e
inc rax
mov cl, byte [rax]
test cl, cl
jne 0x140005d2f
jmp 0x140005d41
inc rsi
cmp byte [rax], 0
jne 0x140005d26
mov al, byte [rsi]
mov qword [rsp + 0x58], rsi
test al, al
je 0x140005e5e
cmp al, 0x5b
jne 0x140005daf
inc rsi
lea rdx, [rsp + 0x58]
lea rcx, [0x140028400]
mov qword [rsp + 0x58], rsi
call fcn.140005be4
test rax, rax
je 0x140005da7
lea rdx, [rsp + 0x58]
lea rcx, [0x140028404]
call fcn.140005be4
test rax, rax
jne 0x140005da7
lea rdx, str.Strings
mov rcx, rsi
call fcn.14001d710
test eax, eax
sete r15b
jmp 0x140005e5e
xor r15b, r15b
jmp 0x140005e5e
test r15b, r15b
je 0x140005e5e
lea rdx, [rsp + 0x58]
lea rcx, [0x14002840c]
call fcn.140005be4
test rax, rax
je 0x140005e5e
xor eax, eax
lea r9, str.MozillaMaintenanceDescription
xor r14d, r14d
mov r10, r9
mov rcx, rsi
sub r10, rsi
movzx edx, byte [rcx]
movzx r8d, byte [rcx + r10]
sub edx, r8d
jne 0x140005dfc
inc rcx
test r8d, r8d
jne 0x140005de7
test edx, edx
je 0x140005e27
or rdx, 0xffffffffffffffff
mov rcx, rdx
inc rcx
cmp byte [r9 + rcx], 0
jne 0x140005e07
inc r9
inc eax
add r9, rcx
inc r14
cmp byte [r9], 0
jne 0x140005dde
mov eax, edx
mov r14, rdx
test eax, eax
js 0x140005e5e
cmp eax, 1
jae 0x140005e5e
mov rdx, qword [rsp + 0x58]
mov r8d, 0x257
cdqe
imul rcx, rax, 0x258
add rcx, r12
call fcn.14000c670
imul rax, r14, 0x258
inc ebp
mov byte [rax + r12 + 0x257], 0
lea rdx, [rsp + 0x70]
lea rcx, [0x140028408]
call fcn.140005be4
mov rsi, rax
test rax, rax
jne 0x140005d14
dec ebp
neg ebp
sbb esi, esi
and esi, 5
mov rcx, rdi
call fcn.140007608
jmp 0x140005e93
mov esi, 6
test rbx, rbx
je 0x140005ea0
mov rcx, rbx
call fcn.14000d478
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400069c8
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov ebx, edx
mov r15, rcx
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x20a
call fcn.140008490
lea r9, [rbp + 0x180]
xor r8d, r8d
lea rdx, [0x140028b28]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor edi, edi
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rsi, 0xffffffffffffffff
mov r14, rax
cmp rax, rsi
je 0x140006b10
mov r8d, ebx
lea rdx, str.failed:__d
lea rcx, [rsp + 0x48]
call fcn.140006638
lea rax, [rsp + 0x48]
inc rsi
cmp byte [rax + rsi], dil
jne 0x140006a7b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, esi
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140006b10
cmp dword [rsp + 0x40], esi
jne 0x140006b10
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
call fcn.140008490
mov r8d, 0x104
lea rcx, [rsp + 0x70]
mov rdx, r15
call fcn.14000903c
lea rdx, str.update.status
lea rcx, [rsp + 0x70]
call fcn.140006994
test eax, eax
je 0x140006b10
mov r8d, 1
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov eax, edi
jmp 0x140006b12
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140007300
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006d30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140006d74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140006dd6
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140006da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006dd6
lea rdx, [rsp + 0x4c]
lea rcx, [0x140026a10]
call fcn.14000f578
mov rcx, rbx
test eax, eax
je 0x140006de2
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006da1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x490
cmp edi, 0x490
jne 0x140006de8
xor eax, eax
jmp 0x140006e03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x140006d56
mov eax, 0x102
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140007300
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret