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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10048
call fcn.14001fc40
sub rsp, rax
mov r14, r8
mov rbx, rdx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x10040], rax
xor edi, edi
mov dword [r8], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002685
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002670
mov rbp, qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov rcx, rsi
xor edx, edx
call rbp
mov r15d, eax
mov rcx, rbx
xor edx, edx
call rbp
cmp r15d, 0xffffffff
je 0x140002670
cmp eax, 0xffffffff
je 0x140002670
mov edi, 1
cmp r15d, eax
jne 0x140002670
mov ebp, r15d
shr ebp, 0xf
je 0x1400025e4
lea rdi, [rsp + 0x8040]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r12, rdi
mov rdx, rdi
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
xor edi, edi
test eax, eax
je 0x140002670
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002670
mov qword [rsp + 0x20], 0
mov rcx, rbx
lea rdx, [rsp + 0x40]
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
test eax, eax
je 0x140002670
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002670
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000fdb0
test eax, eax
jne 0x14000266b
dec ebp
jne 0x140002551
and r15d, 0x7fff
je 0x140002664
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x8040]
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test eax, eax
je 0x140002670
cmp dword [rsp + 0x3c], r15d
jne 0x140002670
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002670
cmp dword [rsp + 0x3c], r15d
jne 0x140002670
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000fdb0
mov edi, 1
test eax, eax
jne 0x140002670
mov dword [r14], 1
mov edi, 1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140002685
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
inc rax
cmp rax, 2
jb 0x14000269a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140019150
mov eax, edi
add rsp, 0x10048
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004150
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 [0x140037010]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000e284
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400041ec
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x14003040e]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140004223
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 0x140004266
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000428a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x14000425c
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400042cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
call fcn.14000bb20
xor edi, edi
mov rcx, rsi
call fcn.14000e28c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140019150
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x14000420d
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x14000420d
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140004248
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140004248
Function at 0x140004310
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 [0x140037010]
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 0x1400043ee
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004433
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400043c1
xor esi, esi
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [rsp + 0x20]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [rsp + 0x38]
call r12
cmp dword [rsp + 0x24], 1
je 0x1400043c1
mov eax, dword [rsp + 0x38]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x1400043c1
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004396
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x1400043e0
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 0x140004476
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000449c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000bb20
xor ebx, ebx
jmp 0x14000447f
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400044dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000bb20
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140019150
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140004413
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140004413
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140004458
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140004458
Function at 0x140005750
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x14000585c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400057d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400057d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400057d3
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005877
lea rcx, [0x140038f98]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000bb20
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000feb0
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.14000c220
test eax, eax
je 0x14000585c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000585c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000585c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000585c
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400058b8
lea rcx, [0x140038f98]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000bb20
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140019150
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x1400057bd
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x1400057bd
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140005844
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140005844
Function at 0x140008fc0
Capabilities:
Check if file exists
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rdx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140008ff9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
movzx eax, word [0x14002d760]
lea rdx, [rsp + 0x40]
mov word [rdx + 0x10], ax
movaps xmm0, xmmword [str._s.bak_u]
movaps xmmword [rdx], xmm0
mov r8, qword [rbx + 8]
mov r9d, 3
call fcn.14000a0e0
test rax, rax
jne 0x14000909a
mov rcx, rbx
mov rdx, rdi
call fcn.14000a170
mov esi, eax
test r14, r14
je 0x140009065
test esi, esi
js 0x140009065
mov qword [r14], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x140009065
mov word [rax], 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000907d
call fcn.14000e28c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019150
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rsi, rax
inc rsi
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 0
lea r15, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.14000a130
mov r12, qword [r15]
test r12, r12
je 0x14000903a
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140009103
xor esi, esi
test r14, r14
je 0x140009065
movups xmm0, xmmword [r14]
mov qword [r14 + 8], r15
movaps xmmword [rsp + 0x30], xmm0
mov qword [r14], r12
jmp 0x140009065
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009246
cmp eax, 5
je 0x140009122
cmp eax, 0xb7
jne 0x14000903a
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 1
lea r15, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.14000a130
mov r12, qword [r15]
test r12, r12
je 0x14000903a
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400090e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009246
cmp eax, 0xb7
je 0x140009188
cmp eax, 5
jne 0x14000903a
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 2
lea r15, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.14000a130
mov r12, qword [r15]
test r12, r12
je 0x14000903a
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400090e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009246
cmp eax, 0xb7
je 0x1400091ea
cmp eax, 5
jne 0x14000903a
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 3
lea r15, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.14000a130
mov r12, qword [r15]
test r12, r12
je 0x14000903a
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400090e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000903a
xor esi, esi
test r14, r14
jne 0x140009050
jmp 0x140009065
Function at 0x140009d00
Capabilities:
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rcx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x140009e28
movaps xmm0, xmmword [0x14002d720]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140009e33
mov rdx, qword [rdi + 8]
test ebx, ebx
je 0x140009e3d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov dword [rsi], 2
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140009e4a
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140009e5b
mov rbx, rcx
lea rdi, [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
xor ecx, ecx
cmp dword [rdi + 0x28], 1
seta cl
test eax, eax
mov eax, 2
cmovne eax, ecx
mov rcx, rbx
mov ebx, 2
mov dword [rsi], ebx
mov edi, dword [rsi + 4]
mov edx, edi
shr edx, 0xa
and edx, 1
cmp edi, 0xffffffff
cmove edx, ebx
xor ebx, ebx
test eax, eax
je 0x140009dfd
cmp edx, 1
jne 0x140009e65
mov dword [rsi], ebx
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009e0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019150
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009d34
mov word [rax], 0
jmp 0x140009d4c
mov rcx, rsi
call fcn.14000a7a0
jmp 0x140009d64
test byte [rsi + 4], 0x10
jne 0x140009d78
xor ebx, ebx
jmp 0x140009db6
mov eax, 2
jmp 0x140009dda
cmp eax, 1
jne 0x140009dff
mov ebx, 1
test edx, edx
je 0x140009dfd
jmp 0x140009dff
Function at 0x14000a170
Capabilities:
Delete file
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rdx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a1a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov eax, dword [rdi + 4]
test al, 1
jne 0x14000a1b7
cmp eax, 0xffffffff
jne 0x14000a1d1
mov ecx, eax
and ecx, 0xfffffffe
cmp eax, 0xffffffff
mov edx, 0x80
cmovne edx, ecx
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xorps xmm0, xmm0
lea rbx, [rsp + 0x60]
movaps xmmword [rbx], xmm0
mov rdx, qword [rsi]
mov r9, qword [rsi + 8]
inc rdx
lea r8, [0x140030500]
mov rcx, rbx
call fcn.140008340
xor edi, edi
lea rcx, [rsp + 0x28]
mov qword [rcx], rdi
mov dword [rcx + 8], 3
mov rbx, qword [rbx + 8]
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rdi
mov word [rcx + 0x20], 0x654
mov qword [rcx + 0x30], rdi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, 0xfffffffd
je 0x14000a24b
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000a24b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov qword [rsp + 0x68], 0
test rbx, rbx
je 0x14000a261
mov rcx, rbx
call fcn.14000e28c
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019150
mov eax, edi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000a7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov ebp, 2
cmovne ebp, ecx
cmp ebp, 2
je 0x14000a8f5
cmp ebp, 1
jne 0x14000a868
mov ecx, 0x20a
call fcn.14000e284
mov rbx, rax
mov r8d, 0x20a
mov rcx, rax
xor edx, edx
call fcn.14000feb0
lea rdx, str.mozlock.
mov rcx, rdi
mov r8, rbx
call fcn.14000d290
test eax, eax
je 0x14000a854
mov rcx, rbx
call fcn.14001725c
test rax, rax
je 0x14000a854
lea r14, [rsi + 0x10]
mov rcx, rax
dec rcx
movzx edx, word [rbx + rcx*2]
cmp dx, 0x5c
je 0x14000a841
cmp dx, 0x2f
jne 0x14000a902
cmp rax, rcx
jb 0x14000a82a
mov word [rbx + rcx*2], 0
mov rax, rcx
test rcx, rcx
jne 0x14000a82a
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000e28c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x60000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a8ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], rbx
cmp rbx, 0xffffffffffffffff
je 0x14000a8f5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov eax, 2
cmovne eax, ecx
cmp ebp, eax
je 0x14000a8f5
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a8ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
mov dx, 0x2f
call fcn.1400100d4
mov r15, rax
mov rcx, rbx
mov dx, 0x5c
call fcn.1400100d4
cmp r15, rax
cmova rax, r15
test rax, rax
je 0x14000a854
add rax, 2
mov rcx, r14
mov rdx, rax
call fcn.140008220
test eax, eax
js 0x14000a854
cmp qword [r14], 0
je 0x14000a854
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a98f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], r14
mov rcx, rbx
call fcn.14000e28c
mov rbx, qword [rsi + 8]
jmp 0x14000a8b0
Function at 0x14000c280
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140028028]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000c2d6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14001725c
cmp rax, 0x105
jb 0x14000c2ed
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140019150
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140017724
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14000d1a0
test eax, eax
je 0x14000c2d6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c33a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c2d6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14000d1a0
test eax, eax
je 0x14000c2d6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c36f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c2d6
mov esi, 1
jmp 0x14000c2d6
Function at 0x14000ca70
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 [0x140037010]
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 0x14000cb6c
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000cb92
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14000cbbc
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]
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
je 0x14000cb23
cmp dword [rsp + 0x3c], 1
jne 0x14000cb54
jmp 0x14000cbdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14000cb40
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14000cb54
jmp 0x14000cc2e
cmp eax, 0x79
jle 0x14000cbf9
cmp eax, 0x41c
jne 0x14000cc0f
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jb 0x14000cafe
mov ebx, dword [rsp + 0x3c]
jmp 0x14000cc4c
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 0x14000cc5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x14000cbc6
cmp edi, 5
je 0x14000cbe4
cmp edi, 6
jne 0x14000cbf2
mov ebx, 0xec
jmp 0x14000cc5d
mov ebx, 0xcf
jmp 0x14000cc4c
cmp edi, 0x7b
je 0x14000cbeb
cmp edi, 0x424
jne 0x14000cbf2
mov ebx, 0xee
jmp 0x14000cc5d
mov ebx, 1
jmp 0x14000cc4c
mov ebx, 0xeb
jmp 0x14000cc5d
mov ebx, 0xed
jmp 0x14000cc5d
mov ebx, 0xef
jmp 0x14000cc5d
cmp eax, 5
je 0x14000cc20
cmp eax, 6
je 0x14000cc27
cmp eax, 0x57
jne 0x14000cc3c
mov ebx, 0xdc
jmp 0x14000cc48
cmp eax, 0x7a
je 0x14000cc43
cmp eax, 0x7c
jne 0x14000cc3c
mov ebx, 0xdd
jmp 0x14000cc48
mov ebx, 0xda
jmp 0x14000cc48
mov ebx, 0xd9
jmp 0x14000cc48
cmp eax, 0x45b
jne 0x14000cc3c
mov ebx, 0xde
jmp 0x14000cc48
mov ebx, 0xdf
jmp 0x14000cc48
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.140019150
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret