joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d60
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000a920
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140003dfe
mov qword [rsp + 0x28], rsi
lea rdx, [0x14002d2d8]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140003e35
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [rdi], edx
movzx edx, word [rcx + 8]
mov dword [r15], edx
movzx edx, word [rcx + 0xe]
mov dword [r14], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x140003e78
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x140003e6e
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003ede
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.140008690
xor edi, edi
mov rcx, rsi
call fcn.14000a928
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000acd0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140003e1f
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140003e1f
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140003e5a
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140003e5a
Function at 0x1400042f0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
xor edi, edi
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20206
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000437b
mov rcx, rsi
call fcn.14001433c
add eax, eax
add eax, 2
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea rdx, str.DisplayVersion
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test esi, esi
sete dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000acd0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400043a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x140004488
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400044cd
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000445b
xor esi, esi
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [rsp + 0x20]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop word cs:[rax + rax]
mov ecx, dword [rsp + 0x38]
call r12
cmp dword [rsp + 0x24], 1
je 0x14000445b
mov eax, dword [rsp + 0x38]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x14000445b
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004430
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x14000447a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004510
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004536
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.140008690
xor ebx, ebx
jmp 0x140004519
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004578
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.140008690
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000acd0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400044ad
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400044ad
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400044f2
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400044f2
Function at 0x140006740
Capabilities:
Create directory

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400067d8
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140006802
lea rdx, [0x14002d0f0]
mov rcx, rsi
call fcn.140009d40
test eax, eax
je 0x1400067aa
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.updater.exe
mov rcx, rsi
call fcn.140009d40
mov ecx, eax
mov eax, 1
test ecx, ecx
jne 0x140006844
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000685f
lea rsi, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x14000682a
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000684a
lea rsi, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x14000682a
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140006874
lea rsi, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
mov rdx, rsi
mov r8d, eax
call fcn.140008690
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140033e78]
call fcn.14000aa90
lea rsi, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x140006887
lea rcx, [0x140033e78]
call fcn.14000aa90
lea rsi, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x140006887
lea rcx, [0x140033e78]
call fcn.14000aa90
lea rsi, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
cmp dword [0x140033e78], 0xffffffff
jne 0x14000682a
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x14000682a
Function at 0x1400068c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x238], rax
cmp word [rcx], 0
je 0x1400069d5
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test eax, eax
jne 0x140006946
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140006946
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006946
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400069f4
lea rcx, [0x140033c68]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rdi
call fcn.140008690
lea rbx, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.14000cba0
lea r8, str.updater.ini
mov rcx, rbx
mov rdx, rdi
call fcn.140008e30
test eax, eax
je 0x1400069d7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test eax, eax
jne 0x1400069d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 3
je 0x1400069d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400069d7
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140006a36
lea rcx, [0x140033c68]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.140008690
jmp 0x1400069d7
xor esi, esi
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14000acd0
mov eax, esi
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140006930
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140006930
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400069bb
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400069bb
Function at 0x1400074a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rbp, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14001433c
test rax, rax
je 0x1400076b3
mov rbx, rax
movzx eax, word [rbp + rax*2 - 2]
cmp ax, 0x5c
je 0x1400074e3
cmp ax, 0x2f
jne 0x1400074e7
add rbx, 0xffffffffffffffff
lea rax, [rbx + 2]
add rax, rax
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
call fcn.14000a920
mov rdi, rax
lea r8, [rbx + rbx]
add r8, 4
mov rcx, rax
xor edx, edx
call fcn.14000cba0
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, rbp
call fcn.140014804
mov rcx, rdi
call fcn.14001277c
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400076b7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400076ea
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400076ea
mov dword [rsp + 0x2c], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x2c]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400076ea
mov ebp, dword [rsp + 0x28]
mov rcx, rbp
call fcn.14000a920
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000cba0
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov edx, 2
mov r8, r15
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400076ea
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007636
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140007648
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000a928
lea rdx, [0x14002d288]
mov r8d, 0x104
mov rcx, rsi
call fcn.140014804
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x1400076ae
add rsi, 0x48
xor edi, edi
lea r14, str._.2x
mov rbx, qword [sym.imp.USER32.dll_wsprintfW]
nop word cs:[rax + rax]
nop
movzx r8d, byte [r15 + rdi]
mov rcx, rsi
mov rdx, r14
call rbx
add rsi, 4
add rdi, 1
mov eax, dword [rsp + 0x28]
cmp rdi, rax
jb 0x140007690
mov rdi, r15
jmp 0x1400076ec
xor ebp, ebp
jmp 0x1400076f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400076ea
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000756a
xor ebp, ebp
mov rcx, rdi
call fcn.14000a928
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000acd0
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140008690
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
je 0x14000871f
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.140013cfc
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsi]
call fcn.140002170
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
xor r9d, r9d
call fcn.14000d574
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140013cfc
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000acd0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140008740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rsi, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x40], 0
lea rdi, [rsp + 0x50]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000cba0
mov r8d, 0x104
mov rcx, rdi
mov rdx, rsi
call fcn.140014804
mov qword [rsp + 0x48], 0
lea rdx, [0x14002d2d8]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.140014890
test rax, rax
je 0x14000897d
mov r13, rax
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r12, [0x14002d2d8]
lea rbp, [rsp + 0x48]
mov rsi, qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [rsp + 0x40], eax
jmp 0x14000880a
test r14d, r14d
jne 0x14000897d
xor ecx, ecx
mov rdx, r12
mov r8, rbp
call fcn.140014890
mov rdi, rax
mov rcx, r13
mov rdx, rax
call rsi
test rdi, rdi
je 0x140008975
mov rcx, r13
call r15
test eax, 0x400
je 0x1400087e9
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
mov rcx, r13
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400088e6
mov rsi, rbp
mov ecx, 0x4000
call fcn.14000a920
mov rbx, rax
mov r8d, 0x4000
mov rcx, rax
xor edx, edx
call fcn.14000cba0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x4000
mov rcx, rdi
mov edx, 0x900a8
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov bpl, 1
mov r14d, 1
test eax, eax
je 0x140008940
mov eax, dword [rbx]
cmp eax, 0xa000000c
je 0x1400088fe
cmp eax, 0xa0000003
jne 0x140008940
cmp word [rbx + 0xa], 5
jb 0x140008905
movzx eax, word [rbx + 8]
and eax, 0xfffffffe
lea rcx, [rbx + rax]
add rcx, 0x10
jmp 0x140008918
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne al
mov dword [rsp + 0x40], eax
mov r14d, 1
jmp 0x140008956
cmp word [rbx + 0xa], 5
jae 0x140008909
xor ebp, ebp
jmp 0x140008940
movzx eax, word [rbx + 8]
and eax, 0xfffffffe
lea rcx, [rbx + rax]
add rcx, 0x14
mov r8d, 4
lea rdx, str.___
call fcn.1400147d8
xor r14d, r14d
test eax, eax
setne r14b
mov ebp, dword [rsp + 0x40]
or bpl, r14b
nop word [rax + rax]
mov rcx, rbx
call fcn.14000a928
mov dword [rsp + 0x40], ebp
mov rbp, rsi
mov rsi, qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rax, rdi
add rax, 1
cmp rax, 2
jb 0x1400087e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400087e0
mov dword [rsp + 0x40], 0
mov esi, dword [rsp + 0x40]
and sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000acd0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008e90
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140025088]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140008f72
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14001433c
cmp rax, 0x105
jb 0x140008eef
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140008f72
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140014804
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140009d40
test eax, eax
je 0x140008f72
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008f72
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140009d40
test eax, eax
je 0x140008f72
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008f6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008f72
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000acd0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140009720
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rdi, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140009830
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140009856
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x140009880
xor esi, esi
lea r15, [rsp + 0x34]
lea r12, [rsp + 0x38]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400097ce
cmp dword [rsp + 0x3c], 1
je 0x1400098a1
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jae 0x14000989b
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
jne 0x1400097b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x140009804
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x1400097bb
jmp 0x1400098e1
cmp eax, 0x79
jle 0x1400098a8
cmp eax, 0x41c
je 0x1400097bb
cmp eax, 0x7a
je 0x1400098f6
cmp eax, 0x7c
jne 0x1400098ef
mov ebx, 0xdd
jmp 0x1400098fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x140009910
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x140009887
cmp edi, 5
je 0x1400098be
cmp edi, 6
jne 0x1400098cc
mov ebx, 0xec
jmp 0x140009910
mov ebx, 0xcf
jmp 0x1400098ff
cmp edi, 0x7b
je 0x1400098c5
cmp edi, 0x424
jne 0x1400098cc
mov ebx, 0xee
jmp 0x140009910
mov ebx, dword [rsp + 0x3c]
jmp 0x1400098ff
mov ebx, 1
jmp 0x1400098ff
cmp eax, 5
je 0x1400098d3
cmp eax, 6
je 0x1400098da
cmp eax, 0x57
jne 0x1400098ef
mov ebx, 0xdc
jmp 0x1400098fb
mov ebx, 0xeb
jmp 0x140009910
mov ebx, 0xed
jmp 0x140009910
mov ebx, 0xef
jmp 0x140009910
mov ebx, 0xda
jmp 0x1400098fb
mov ebx, 0xd9
jmp 0x1400098fb
cmp eax, 0x45b
jne 0x1400098ef
mov ebx, 0xde
jmp 0x1400098fb
mov ebx, 0xdf
jmp 0x1400098fb
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
mov rsi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call rsi
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000acd0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140009930
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov ebp, edx
mov rbx, rcx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea rsi, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000cba0
mov rcx, rsi
call fcn.140008e90
test eax, eax
je 0x140009a5f
xor edi, edi
lea rsi, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000cba0
lea rdx, str..status
mov rcx, rbx
mov r8, rsi
call fcn.140008f90
test eax, eax
je 0x140009a5f
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.140009d40
test eax, eax
je 0x140009a5f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140009a5f
mov rbx, rax
lea rdx, str.failed:__d
lea rsi, [rsp + 0x250]
mov rcx, rsi
mov r8d, ebp
call fcn.140009a80
mov rcx, rsi
call fcn.140014220
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
cmp dword [rsp + 0x3c], edi
sete cl
and cl, al
movzx edi, cl
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000acd0
mov eax, edi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
ret