joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002740
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.140020360
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 0x140002986
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 0x140002970
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 0x140002970
cmp eax, 0xffffffff
je 0x140002970
mov edi, 1
cmp r15d, eax
jne 0x140002970
mov ebp, r15d
shr ebp, 0xf
je 0x1400028e4
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 0x140002970
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002970
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 0x140002970
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002970
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.1400100d0
test eax, eax
jne 0x14000296b
add ebp, 0xffffffff
jne 0x140002850
and r15d, 0x7fff
je 0x140002964
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 0x140002970
cmp dword [rsp + 0x3c], r15d
jne 0x140002970
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 0x140002970
cmp dword [rsp + 0x3c], r15d
jne 0x140002970
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.1400100d0
mov edi, 1
test eax, eax
jne 0x140002970
mov dword [r14], 1
mov edi, 1
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140002986
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
add rax, 1
cmp rax, 2
jb 0x14000299c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140019600
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 0x140004500
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.14000e5dc
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000459e
mov qword [rsp + 0x28], rsi
lea rdx, [0x140031372]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400045d5
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 0x140004618
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 0x14000463c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x14000460e
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 0x14000467d
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.14000cf10
xor edi, edi
mov rcx, rsi
call fcn.14000e5e4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140019600
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045bf
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400045bf
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045fa
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400045fa
Function at 0x1400046c0
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 0x1400047a9
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400047ee
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000477c
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 0x14000477c
mov eax, dword [rsp + 0x38]
lea esi, [rsi + rax]
add esi, 0xa
cmp esi, 0xea60
ja 0x14000477c
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004750
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x14000479b
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 0x140004831
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 0x140004857
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000cf10
xor ebx, ebx
jmp 0x14000483a
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 0x140004898
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000cf10
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140019600
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400047ce
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400047ce
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140004813
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x140004813
Function at 0x140005b50
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 0x140005c5c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005bd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005bd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005bd3
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 0x140005c77
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000cf10
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.1400101d0
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.14000d2f0
test eax, eax
je 0x140005c5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005c5c
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 0x140005cb8
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000cf10
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140019600
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140005bbd
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x140005bbd
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140005c44
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x140005c44
Function at 0x14000a320
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 0x14000a359
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movzx eax, word [0x14002e750]
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.14000b490
test rax, rax
jne 0x14000a3ff
mov rcx, rbx
mov rdx, rdi
call fcn.14000b520
mov esi, eax
test r14, r14
je 0x14000a3ca
test esi, esi
js 0x14000a3ca
mov qword [r14], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x14000a3ca
mov word [rax], 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000a3e2
call fcn.14000e5e4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019600
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.14000b4e0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a39f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000a468
xor esi, esi
test r14, r14
je 0x14000a3ca
movups xmm0, xmmword [r14]
mov qword [r14 + 8], r15
movaps xmmword [rsp + 0x30], xmm0
mov qword [r14], r12
jmp 0x14000a3ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000a5a8
cmp eax, 5
je 0x14000a487
cmp eax, 0xb7
jne 0x14000a39f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b4e0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a39f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000a448
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000a5a8
cmp eax, 0xb7
je 0x14000a4ec
cmp eax, 5
jne 0x14000a39f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 2
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b4e0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a39f
mov rcx, qword [rbx + 8]
mov r15, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000a448
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000a5a8
cmp eax, 0xb7
je 0x14000a54d
cmp eax, 5
jne 0x14000a39f
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, rsi
call fcn.14000b4e0
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14000a39f
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 0x14000a448
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000a39f
xor esi, esi
test r14, r14
jne 0x14000a3b5
jmp 0x14000a3ca
Function at 0x14000b0b0
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 0x14000b1d5
mov rax, 0xffffffffffffffff
movq xmm0, rax
movdqu xmmword [rsi + 8], xmm0
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14000b1e0
mov rdx, qword [rdi + 8]
test ebx, ebx
je 0x14000b1ea
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 0x14000b1f7
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 0x14000b1ce
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000b1ce
xor eax, eax
cmp dword [rsp + 0x68], 1
seta al
mov dword [rsi], 2
mov ecx, dword [rsi + 4]
cmp ecx, 0xffffffff
je 0x14000b208
shr ecx, 0xa
and ecx, 1
xor edx, edx
test eax, eax
je 0x14000b1a0
cmp ecx, 1
jne 0x14000b20f
mov dword [rsi], edx
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000b1b5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019600
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x14000b181
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b0e4
mov word [rax], 0
jmp 0x14000b102
mov rcx, rsi
call fcn.14000bb80
jmp 0x14000b11a
test byte [rsi + 4], 0x10
jne 0x14000b12e
xor edi, edi
jmp 0x14000b168
mov ecx, 2
jmp 0x14000b195
cmp eax, 1
jne 0x14000b1a2
mov edx, 1
test ecx, ecx
je 0x14000b1a0
jmp 0x14000b1a2
Function at 0x14000b520
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 0x14000b553
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov eax, dword [rdi + 4]
test al, 1
je 0x14000b57c
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, [0x14003146a]
lea rcx, [rsp + 0x60]
call fcn.140009760
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 0x14000b60a
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000b60a
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 0x14000b620
mov rcx, rdi
call fcn.14000e5e4
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019600
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000bb80
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 0x14000bccd
cmp ebp, 1
jne 0x14000bc40
mov ecx, 0x20a
call fcn.14000e5dc
mov rbx, rax
mov r8d, 0x20a
mov rcx, rax
xor edx, edx
call fcn.1400101d0
lea rdx, str.mozlock.
mov rcx, rdi
mov r8, rbx
call fcn.14000e470
test eax, eax
je 0x14000bcff
mov rcx, rbx
call fcn.140017708
test rax, rax
je 0x14000bcff
mov rcx, rax
nop dword [rax]
add rcx, 0xffffffffffffffff
movzx edx, word [rbx + rcx*2]
cmp dx, 0x5c
je 0x14000bc28
cmp dx, 0x2f
jne 0x14000bcd8
cmp rax, rcx
jb 0x14000bc10
mov word [rbx + rcx*2], 0
mov rax, rcx
test rcx, rcx
jne 0x14000bc10
jmp 0x14000bcff
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 0x14000bc84
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], rbx
cmp rbx, 0xffffffffffffffff
je 0x14000bccd
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 0x14000bccd
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000bcc5
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.1400103f4
mov r14, rax
mov rcx, rbx
mov dx, 0x5c
call fcn.1400103f4
cmp r14, rax
cmova rax, r14
test rax, rax
jne 0x14000bd11
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.14000e5e4
add rax, 2
lea rcx, [rsi + 0x10]
mov rdx, rax
call fcn.140009660
test eax, eax
js 0x14000bcff
cmp qword [rsi + 0x10], 0
je 0x14000bcff
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 0x14000bd86
mov qword [rsi + 8], r14
mov rcx, rbx
call fcn.14000e5e4
mov rbx, qword [rsi + 8]
cmp rbx, 0xffffffffffffffff
jne 0x14000bc8e
jmp 0x14000bccd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000bd67
Function at 0x14000cf10
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 0x14000cf50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140019600
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.1400170b0
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.140010ba4
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.1400170b0
jmp 0x14000cf38
Function at 0x14000d350
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, section..rdata
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000d3a6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140017708
cmp rax, 0x105
jb 0x14000d3bd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140019600
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140017bd0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14000e380
test eax, eax
je 0x14000d3a6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d40a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000d3a6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14000e380
test eax, eax
je 0x14000d3a6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d43f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000d3a6
mov esi, 1
jmp 0x14000d3a6
Function at 0x14000dc00
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 0x14000dd11
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000dd34
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14000dd5b
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 0x14000dcae
cmp dword [rsp + 0x3c], 1
je 0x14000dd7c
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jae 0x14000dd76
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
jne 0x14000dc90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14000dce4
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14000dc9b
jmp 0x14000ddf7
cmp eax, 0x79
jle 0x14000ddc7
cmp eax, 0x41c
je 0x14000dc9b
cmp eax, 0x7a
je 0x14000de1a
cmp eax, 0x7c
jne 0x14000de0c
mov ebx, 0xdd
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81
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 0x14000dd92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x14000dd62
cmp edi, 5
je 0x14000ddb2
cmp edi, 6
jne 0x14000ddc0
mov ebx, 0xec
jmp 0x14000dd92
mov ebx, 0xcf
jmp 0x14000dd81
cmp edi, 0x7b
je 0x14000ddb9
cmp edi, 0x424
jne 0x14000ddc0
mov ebx, 0xee
jmp 0x14000dd92
mov ebx, dword [rsp + 0x3c]
jmp 0x14000dd81
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.140019600
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 0x14000dd92
mov ebx, 0xed
jmp 0x14000dd92
mov ebx, 0xef
jmp 0x14000dd92
cmp eax, 5
je 0x14000dde1
cmp eax, 6
je 0x14000ddec
cmp eax, 0x57
jne 0x14000de0c
mov ebx, 0xdc
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81
mov ebx, 0xda
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81
mov ebx, 0xd9
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81
cmp eax, 0x45b
jne 0x14000de0c
mov ebx, 0xde
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81
mov ebx, 0xdf
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
jmp 0x14000dd81