joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024f0
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.1400204d0
sub rsp, rax
mov r14, r8
mov rbx, rdx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x10040], rax
mov dword [r8], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002736
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 0x140002720
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 0x140002720
cmp eax, 0xffffffff
je 0x140002720
mov edi, 1
cmp r15d, eax
jne 0x140002720
mov ebp, r15d
shr ebp, 0xf
je 0x140002694
lea rdi, [rsp + 0x8040]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax]
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 0x140002720
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002720
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 0x140002720
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002720
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.140010250
test eax, eax
jne 0x14000271b
add ebp, 0xffffffff
jne 0x140002600
and r15d, 0x7fff
je 0x140002714
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 0x140002720
cmp dword [rsp + 0x3c], r15d
jne 0x140002720
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 0x140002720
cmp dword [rsp + 0x3c], r15d
jne 0x140002720
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.140010250
mov edi, 1
test eax, eax
jne 0x140002720
mov dword [r14], 1
mov edi, 1
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140002736
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
add rax, 1
cmp rax, 2
jb 0x14000274c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140019770
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 0x1400042e0
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000e728
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000437e
mov qword [rsp + 0x28], rsi
lea rdx, [0x1400313ee]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400043b5
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 0x1400043f8
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000441c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x1400043ee
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000445d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
call fcn.14000be30
xor edi, edi
mov rcx, rsi
call fcn.14000e730
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140019770
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000439f
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x14000439f
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400043da
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x1400043da
Function at 0x1400044a0
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 [0x140038010]
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 0x140004589
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400045ce
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000455c
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 0x14000455c
mov eax, dword [rsp + 0x38]
lea esi, [rsi + rax]
add esi, 0xa
cmp esi, 0xea60
ja 0x14000455c
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004530
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x14000457b
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 0x140004611
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004637
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000be30
xor ebx, ebx
jmp 0x14000461a
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004678
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000be30
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140019770
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045ae
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x1400045ae
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045f3
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x1400045f3
Function at 0x140005930
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005a3c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400059b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400059b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400059b3
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005a57
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000be30
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.140010350
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.14000c580
test eax, eax
je 0x140005a3c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005a3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005a3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005a3c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005a98
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000be30
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140019770
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000599d
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x14000599d
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140005a24
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x140005a24
Function at 0x140009210
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rdx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009249
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movzx eax, word [0x14002e740]
mov word [rsp + 0x50], ax
movaps xmm0, xmmword [str._s.bak_u]
movaps xmmword [rsp + 0x40], xmm0
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 3
call fcn.14000a380
test rax, rax
jne 0x1400092ef
mov rcx, rbx
mov rdx, rdi
call fcn.14000a410
mov esi, eax
test r14, r14
je 0x1400092ba
test esi, esi
js 0x1400092ba
mov qword [r14], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400092ba
mov word [rax], 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x1400092d2
call fcn.14000e730
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019770
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rsi, rax
add rsi, 1
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000a3d0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000928f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140009358
xor esi, esi
test r14, r14
je 0x1400092ba
movups xmm0, xmmword [r14]
mov qword [r14 + 8], r15
movaps xmmword [rsp + 0x30], xmm0
mov qword [r14], r12
jmp 0x1400092ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009498
cmp eax, 5
je 0x140009377
cmp eax, 0xb7
jne 0x14000928f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000a3d0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000928f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140009338
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009498
cmp eax, 0xb7
je 0x1400093dc
cmp eax, 5
jne 0x14000928f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 2
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000a3d0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000928f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140009338
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009498
cmp eax, 0xb7
je 0x14000943d
cmp eax, 5
jne 0x14000928f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000a3d0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000928f
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 0x140009338
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000928f
xor esi, esi
test r14, r14
jne 0x1400092a5
jmp 0x1400092ba
Function at 0x140009fa0
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rcx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14000a0c5
mov rax, 0xffffffffffffffff
movq xmm0, rax
movdqu xmmword [rsi + 8], xmm0
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14000a0d0
mov rdx, qword [rdi + 8]
test ebx, ebx
je 0x14000a0da
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 0x14000a0e7
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 rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a0be
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000a0be
xor eax, eax
cmp dword [rsp + 0x68], 1
seta al
mov dword [rsi], 2
mov ecx, dword [rsi + 4]
cmp ecx, 0xffffffff
je 0x14000a0f8
shr ecx, 0xa
and ecx, 1
xor edx, edx
test eax, eax
je 0x14000a090
cmp ecx, 1
jne 0x14000a0ff
mov dword [rsi], edx
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000a0a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019770
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x14000a071
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009fd4
mov word [rax], 0
jmp 0x140009ff2
mov rcx, rsi
call fcn.14000aa70
jmp 0x14000a00a
test byte [rsi + 4], 0x10
jne 0x14000a01e
xor edi, edi
jmp 0x14000a058
mov ecx, 2
jmp 0x14000a085
cmp eax, 1
jne 0x14000a092
mov edx, 1
test ecx, ecx
je 0x14000a090
jmp 0x14000a092
Function at 0x14000a410
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rdx + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a443
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov eax, dword [rdi + 4]
test al, 1
je 0x14000a46c
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
movaps xmmword [rsp + 0x60], xmm0
mov rdx, qword [rsi]
mov r9, qword [rsi + 8]
add rdx, 1
lea r8, [0x1400314e6]
lea rcx, [rsp + 0x60]
call fcn.140008650
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 3
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
mov word [rsp + 0x48], 0x654
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ebx, ebx
test eax, 0xfffffffd
je 0x14000a4fa
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000a4fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rsp + 0x68], 0
test rdi, rdi
je 0x14000a510
mov rcx, rdi
call fcn.14000e730
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019770
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000aa70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
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 0x14000abbd
cmp ebp, 1
jne 0x14000ab30
mov ecx, 0x20a
call fcn.14000e728
mov rbx, rax
mov r8d, 0x20a
mov rcx, rax
xor edx, edx
call fcn.140010350
lea rdx, str.mozlock.
mov rcx, rdi
mov r8, rbx
call fcn.14000d700
test eax, eax
je 0x14000abef
mov rcx, rbx
call fcn.14001787c
test rax, rax
je 0x14000abef
mov rcx, rax
nop dword [rax]
add rcx, 0xffffffffffffffff
movzx edx, word [rbx + rcx*2]
cmp dx, 0x5c
je 0x14000ab18
cmp dx, 0x2f
jne 0x14000abc8
cmp rax, rcx
jb 0x14000ab00
mov word [rbx + rcx*2], 0
mov rax, rcx
test rcx, rcx
jne 0x14000ab00
jmp 0x14000abef
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 0x14000ab74
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], rbx
cmp rbx, 0xffffffffffffffff
je 0x14000abbd
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 0x14000abbd
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000abb5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rbx
mov dx, 0x2f
call fcn.140010574
mov r14, rax
mov rcx, rbx
mov dx, 0x5c
call fcn.140010574
cmp r14, rax
cmova rax, r14
test rax, rax
jne 0x14000ac01
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.14000e730
add rax, 2
lea rcx, [rsi + 0x10]
mov rdx, rax
call fcn.140008550
test eax, eax
js 0x14000abef
cmp qword [rsi + 0x10], 0
je 0x14000abef
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
jae 0x14000ac76
mov qword [rsi + 8], r14
mov rcx, rbx
call fcn.14000e730
mov rbx, qword [rsi + 8]
cmp rbx, 0xffffffffffffffff
jne 0x14000ab7e
jmp 0x14000abbd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ac57
Function at 0x14000be30
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
jne 0x14000be70
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140019770
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdi, 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.140017230
mov rbx, qword [rsp + 0x28]
mov r14, qword [rsi]
call fcn.1400020c0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov r8, rdi
xor r9d, r9d
call fcn.140010d24
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140017230
jmp 0x14000be58
Function at 0x14000c5e0
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140029028]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000c636
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14001787c
cmp rax, 0x105
jb 0x14000c64d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140019770
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140017d44
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14000d610
test eax, eax
je 0x14000c636
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c69a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c636
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14000d610
test eax, eax
je 0x14000c636
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c6cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c636
mov esi, 1
jmp 0x14000c636
Function at 0x14000ce90
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 [0x140038010]
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 0x14000cfa1
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000cfc4
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14000cfeb
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 0x14000cf3e
cmp dword [rsp + 0x3c], 1
je 0x14000d00c
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jae 0x14000d006
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
jne 0x14000cf20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14000cf74
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14000cf2b
jmp 0x14000d087
cmp eax, 0x79
jle 0x14000d057
cmp eax, 0x41c
je 0x14000cf2b
cmp eax, 0x7a
je 0x14000d0aa
cmp eax, 0x7c
jne 0x14000d09c
mov ebx, 0xdd
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011
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 0x14000d022
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x14000cff2
cmp edi, 5
je 0x14000d042
cmp edi, 6
jne 0x14000d050
mov ebx, 0xec
jmp 0x14000d022
mov ebx, 0xcf
jmp 0x14000d011
cmp edi, 0x7b
je 0x14000d049
cmp edi, 0x424
jne 0x14000d050
mov ebx, 0xee
jmp 0x14000d022
mov ebx, dword [rsp + 0x3c]
jmp 0x14000d011
mov ebx, 1
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.140019770
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, 0xeb
jmp 0x14000d022
mov ebx, 0xed
jmp 0x14000d022
mov ebx, 0xef
jmp 0x14000d022
cmp eax, 5
je 0x14000d071
cmp eax, 6
je 0x14000d07c
cmp eax, 0x57
jne 0x14000d09c
mov ebx, 0xdc
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011
mov ebx, 0xda
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011
mov ebx, 0xd9
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011
cmp eax, 0x45b
jne 0x14000d09c
mov ebx, 0xde
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011
mov ebx, 0xdf
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
jmp 0x14000d011