joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f40
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 0x14000206d
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi + 0x10], 0
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140002078
mov rdx, qword [rdi + 8]
test ebx, ebx
je 0x140002082
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov dword [rsi], 2
mov rax, qword [rsi + 8]
cmp rax, 0xffffffffffffffff
jne 0x14000208f
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 0x1400020a0
lea rbx, [rsp + 0x40]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
xor ecx, ecx
cmp dword [rbx + 0x28], 1
seta cl
test eax, eax
mov eax, 2
cmovne eax, ecx
mov edx, 2
mov dword [rsi], edx
mov ebx, dword [rsi + 4]
mov ecx, ebx
shr ecx, 0xa
and ecx, 1
cmp ebx, 0xffffffff
cmove ecx, edx
xor edx, edx
test eax, eax
je 0x14000203f
cmp ecx, 1
jne 0x1400020b1
mov dword [rsi], edx
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140002054
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400187d0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001f74
mov word [rax], 0
jmp 0x140001f91
mov rcx, rsi
call fcn.140027130
jmp 0x140001fa9
test byte [rsi + 4], 0x10
jne 0x140001fbd
xor edi, edi
jmp 0x140001ff8
mov eax, 2
mov rdi, 0xffffffffffffffff
jmp 0x14000201c
cmp eax, 1
jne 0x140002041
mov edx, 1
test ecx, ecx
je 0x14000203f
jmp 0x140002041
Function at 0x140003620
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.14001f2c0
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 0x140003855
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 0x140003840
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 0x140003840
cmp eax, 0xffffffff
je 0x140003840
mov edi, 1
cmp r15d, eax
jne 0x140003840
mov ebp, r15d
shr ebp, 0xf
je 0x1400037b4
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 0x140003840
cmp dword [rsp + 0x3c], 0x8000
jne 0x140003840
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 0x140003840
cmp dword [rsp + 0x3c], 0x8000
jne 0x140003840
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000f820
test eax, eax
jne 0x14000383b
dec ebp
jne 0x140003721
and r15d, 0x7fff
je 0x140003834
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 0x140003840
cmp dword [rsp + 0x3c], r15d
jne 0x140003840
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 0x140003840
cmp dword [rsp + 0x3c], r15d
jne 0x140003840
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000f820
mov edi, 1
test eax, eax
jne 0x140003840
mov dword [r14], 1
mov edi, 1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140003855
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
inc rax
cmp rax, 2
jb 0x14000386a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400187d0
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 0x140005520
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.14000d924
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400055bc
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x1400303d4]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400055f3
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 0x140005636
mov eax, dword [0x140039198]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000565a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f88]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x14000562c
mov eax, dword [0x140039198]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000569b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f88]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
call fcn.14000ba70
xor edi, edi
mov rcx, rsi
call fcn.14000dbd0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400187d0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140039198]
call fcn.14000de70
cmp dword [0x140039198], 0xffffffff
jne 0x1400055dd
mov qword [0x140038f88], 0
lea rcx, [0x1400035f0]
call fcn.14000e028
lea rcx, [0x140039198]
call fcn.14000ded8
jmp 0x1400055dd
lea rcx, [0x140039198]
call fcn.14000de70
cmp dword [0x140039198], 0xffffffff
jne 0x140005618
mov qword [0x140038f88], 0
lea rcx, [0x1400035f0]
call fcn.14000e028
lea rcx, [0x140039198]
call fcn.14000ded8
jmp 0x140005618
Function at 0x1400056e0
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 0x1400057be
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140005803
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005791
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 0x140005791
mov eax, dword [rsp + 0x38]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x140005791
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140005766
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x1400057b0
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 0x140005846
mov eax, dword [0x140039198]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000586c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f88]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000ba70
xor ebx, ebx
jmp 0x14000584f
mov eax, dword [0x140039198]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400058ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f88]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000ba70
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400187d0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140039198]
call fcn.14000de70
cmp dword [0x140039198], 0xffffffff
jne 0x1400057e3
mov qword [0x140038f88], 0
lea rcx, [0x1400035f0]
call fcn.14000e028
lea rcx, [0x140039198]
call fcn.14000ded8
jmp 0x1400057e3
lea rcx, [0x140039198]
call fcn.14000de70
cmp dword [0x140039198], 0xffffffff
jne 0x140005828
mov qword [0x140038f88], 0
lea rcx, [0x1400035f0]
call fcn.14000e028
lea rcx, [0x140039198]
call fcn.14000ded8
jmp 0x140005828
Function at 0x140006c20
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 0x140006d2c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140006ca3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140006ca3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006ca3
mov eax, dword [0x140039198]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140006d47
lea rcx, [0x140038f88]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000ba70
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000f920
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.14000c160
test eax, eax
je 0x140006d2c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140006d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140006d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006d2c
mov eax, dword [0x140039198]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140006d88
lea rcx, [0x140038f88]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000ba70
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400187d0
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x140039198]
call fcn.14000de70
cmp dword [0x140039198], 0xffffffff
jne 0x140006c8d
mov qword [0x140038f88], 0
lea rcx, [0x1400035f0]
call fcn.14000e028
lea rcx, [0x140039198]
call fcn.14000ded8
jmp 0x140006c8d
lea rcx, [0x140039198]
call fcn.14000de70
cmp dword [0x140039198], 0xffffffff
jne 0x140006d14
mov qword [0x140038f88], 0
lea rcx, [0x1400035f0]
call fcn.14000e028
lea rcx, [0x140039198]
call fcn.14000ded8
jmp 0x140006d14
Function at 0x140009a30
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 0x140009a69
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 [0x14002d740]
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.140027310
test rax, rax
jne 0x140009b01
mov rcx, rbx
mov rdx, rdi
call fcn.14000a620
mov esi, eax
test r14, r14
je 0x140009ad5
test esi, esi
js 0x140009ad5
mov qword [r14], 0
mov rax, qword [r14 + 8]
test rax, rax
je 0x140009ad5
mov word [rax], 0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140009ae4
call fcn.14000dbd0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400187d0
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.140027360
mov r12, qword [r15]
test r12, r12
je 0x140009aaa
mov r15, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140009b65
test r14, r14
je 0x140009cb4
mov rcx, qword [r14 + 8]
mov qword [r14 + 8], r15
mov qword [r14], r12
xor esi, esi
jmp 0x140009ada
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009ca4
cmp eax, 5
je 0x140009b84
cmp eax, 0xb7
jne 0x140009aaa
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.140027360
mov r12, qword [r15]
test r12, r12
je 0x140009aaa
mov r15, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140009b4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009ca4
cmp eax, 0xb7
je 0x140009be6
cmp eax, 5
jne 0x140009aaa
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.140027360
mov r12, qword [r15]
test r12, r12
je 0x140009aaa
mov r15, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140009b4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009ca4
cmp eax, 0xb7
je 0x140009c48
cmp eax, 5
jne 0x140009aaa
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.140027360
mov r12, qword [r15]
test r12, r12
je 0x140009aaa
mov r15, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
mov rdx, r15
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140009b4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140009aaa
xor esi, esi
test r14, r14
jne 0x140009ac0
jmp 0x140009ad5
xor esi, esi
jmp 0x140009ad5
Function at 0x14000a620
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 0x14000a653
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov eax, dword [rdi + 4]
test al, 1
je 0x14000a67c
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, [0x1400304c6]
mov rcx, rbx
call section..text
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 0x14000a6f6
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000a6f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test rbx, rbx
je 0x14000a703
mov rcx, rbx
call fcn.14000dbd0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400187d0
mov eax, edi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000c1c0
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 0x14000c216
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000da18
cmp rax, 0x105
jb 0x14000c22d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400187d0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000dbd8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140027670
test eax, eax
je 0x14000c216
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c27a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c216
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140027670
test eax, eax
je 0x14000c216
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c2af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c216
mov esi, 1
jmp 0x14000c216
Function at 0x14000c9b0
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 0x14000caac
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000cad2
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14000cafc
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 0x14000ca63
cmp dword [rsp + 0x3c], 1
jne 0x14000ca94
jmp 0x14000cb1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14000ca80
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14000ca94
jmp 0x14000cb6e
cmp eax, 0x79
jle 0x14000cb24
cmp eax, 0x41c
jne 0x14000cb4f
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jb 0x14000ca3e
mov ebx, dword [rsp + 0x3c]
jmp 0x14000cb8c
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 0x14000cb9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x14000cb06
cmp edi, 5
je 0x14000cb3a
cmp edi, 6
jne 0x14000cb48
mov ebx, 0xec
jmp 0x14000cb9d
mov ebx, 0xcf
jmp 0x14000cb8c
cmp edi, 0x7b
je 0x14000cb41
cmp edi, 0x424
jne 0x14000cb48
mov ebx, 0xee
jmp 0x14000cb9d
mov ebx, 1
jmp 0x14000cb8c
cmp eax, 5
je 0x14000cb60
cmp eax, 6
je 0x14000cb67
cmp eax, 0x57
jne 0x14000cb7c
mov ebx, 0xdc
jmp 0x14000cb88
mov ebx, 0xeb
jmp 0x14000cb9d
mov ebx, 0xed
jmp 0x14000cb9d
mov ebx, 0xef
jmp 0x14000cb9d
cmp eax, 0x7a
je 0x14000cb83
cmp eax, 0x7c
jne 0x14000cb7c
mov ebx, 0xdd
jmp 0x14000cb88
mov ebx, 0xda
jmp 0x14000cb88
mov ebx, 0xd9
jmp 0x14000cb88
cmp eax, 0x45b
jne 0x14000cb7c
mov ebx, 0xde
jmp 0x14000cb88
mov ebx, 0xdf
jmp 0x14000cb88
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.1400187d0
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 0x14000cbc0
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 [0x140037010]
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.14000f920
mov rcx, rsi
call fcn.14000c1c0
test eax, eax
je 0x14000cc35
xor edi, edi
lea rsi, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000f920
lea rdx, str..status
mov rcx, rbx
mov r8, rsi
call fcn.14000c2c0
test eax, eax
jne 0x14000cc53
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400187d0
mov eax, edi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.140027670
test eax, eax
je 0x14000cc35
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 0x14000cc35
mov rbx, rax
lea rsi, [rsp + 0x250]
mov rcx, rsi
mov r8d, ebp
call fcn.1400274d0
mov rcx, rsi
call fcn.1400169e0
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rbp, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
mov r9, rbp
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 [rbp], edi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000cc35

Function at 0x14000cd10
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0x102
test edx, edx
je 0x14000cdef
mov r15d, edx
mov rbx, rcx
xor ebp, ebp
lea r12, [rsp + 0x54]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
lea r13, [rsp + 0x28]
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x14000cdac
mov rdi, rax
mov dword [rsp + 0x28], 0x238
mov rcx, rax
mov rdx, r13
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000cdb6
mov rcx, rbx
mov rdx, r12
call fcn.140015204
test eax, eax
je 0x14000cdc0
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000cd87
mov esi, 0x490
jmp 0x14000cdc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000cdcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000cdc2
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x490
je 0x14000cded
mov ecx, 0x3e8
call r14
inc ebp
cmp ebp, r15d
jne 0x14000cd5b
mov esi, 0x102
jmp 0x14000cdef
xor esi, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400187d0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret