joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ddfd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0077ac34]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6de178
mov rax, qword [0x0077ac38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6de01c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6de0a7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6de000
mov rcx, r12
call fcn.006ded30
mov rbp, rax
test rax, rax
je 0x6de1b2
mov rax, qword [0x0077ac38]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.006dee60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0077ac38]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6de1c1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6de0a0
sub eax, 4
and eax, 0xfffffffb
jne 0x6de130
add dword [0x0077ac34], 1
cmp ebx, 8
jae 0x6de0d8
test bl, 4
jne 0x6de180
test ebx, ebx
je 0x6de0c9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6de1a0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6de0c9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6de10a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0077ac38]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6de0a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.006ddf60
nop dword [rax]
xor edi, edi
jmp 0x6de027
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6de0c9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6de0c9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.006ddf60
mov rax, qword [0x0077ac38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.006ddf60
nop
nop dword [rax]
Function at 0x6de9a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0077af20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0077af00]
test rbx, rbx
je 0x6de9f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6de9eb
test r12, r12
je 0x6de9eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6de9d0
lea rcx, [0x0077af20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6ded30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00748af0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6deda9
mov rcx, r10
call fcn.006dec00
test eax, eax
je 0x6deda9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6deda6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6ded9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6deda9
add r8, 0x28
cmp r8, r9
jne 0x6ded88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400013e0
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 [0x140033010]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000afd0
test rax, rax
je 0x140001611
mov rbx, rax
movzx eax, word [rbp + rax*2 - 2]
cmp ax, 0x5c
je 0x140001609
cmp ax, 0x2f
je 0x140001609
lea rax, [rbx + 2]
add rax, rax
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
call fcn.14000aee4
mov rdi, rax
lea r8, [rbx + rbx]
add r8, 4
xor r14d, r14d
mov rcx, rax
xor edx, edx
call fcn.14000ce70
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, rbp
call fcn.14000b198
mov rcx, rdi
call fcn.14000b1f0
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140001616
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 0x140001649
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 0x140001649
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001649
lea r14, [rsp + 0x28]
mov ebp, dword [r14]
mov rcx, rbp
call fcn.14000aee4
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000ce70
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, r15
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001649
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001574
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001586
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000b190
lea rdx, [0x14002d224]
mov r8d, 0x104
mov rcx, rsi
call fcn.14000b198
mov r14d, 1
cmp dword [rsp + 0x28], 0
je 0x1400015e1
add rsi, 0x48
xor ebp, ebp
lea rdi, str._.2x
mov rbx, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [r15 + rbp]
mov rcx, rsi
mov rdx, rdi
call rbx
add rsi, 4
inc rbp
mov eax, dword [rsp + 0x28]
cmp rbp, rax
jb 0x1400015c4
mov rdi, r15
mov rcx, rdi
call fcn.14000b190
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140015d90
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x14000142b
xor r14d, r14d
jmp 0x1400015ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140001649
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 0x1400014a7
xor r14d, r14d
jmp 0x1400015e4
Function at 0x140002730
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.14001c880
sub rsp, rax
mov r14, r8
mov rbx, rdx
mov rax, qword [0x140033010]
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 0x1400028c4
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 0x1400028af
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 0x1400028af
cmp eax, 0xffffffff
je 0x1400028af
mov edi, 1
cmp r15d, eax
jne 0x1400028af
cmp r15d, 0x8000
jae 0x1400028ff
and r15d, 0x7fff
je 0x1400028a3
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 0x1400028af
cmp dword [rsp + 0x3c], r15d
jne 0x1400028af
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 0x1400028af
cmp dword [rsp + 0x3c], r15d
jne 0x1400028af
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000cd70
mov edi, 1
test eax, eax
jne 0x1400028af
mov dword [r14], 1
mov edi, 1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400028c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
inc rax
cmp rax, 2
jb 0x1400028d9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140015d90
mov eax, edi
add rsp, 0x10048
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, r15d
shr ebp, 0xf
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 0x1400028af
cmp dword [rsp + 0x3c], 0x8000
jne 0x1400028af
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 0x1400028af
cmp dword [rsp + 0x3c], 0x8000
jne 0x1400028af
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000cd70
test eax, eax
jne 0x1400028aa
dec ebp
jne 0x140002914
jmp 0x140002823
Function at 0x140004680
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 [0x140033010]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000aee4
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000471c
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x14002d274]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140004753
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 0x140004796
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400047ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x14000478c
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400047fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
call fcn.140009020
xor edi, edi
mov rcx, rsi
call fcn.14000b190
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140015d90
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140035198]
call fcn.14000b3c0
cmp dword [0x140035198], 0xffffffff
jne 0x14000473d
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b578
lea rcx, [0x140035198]
call fcn.14000b428
jmp 0x14000473d
lea rcx, [0x140035198]
call fcn.14000b3c0
cmp dword [0x140035198], 0xffffffff
jne 0x140004778
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b578
lea rcx, [0x140035198]
call fcn.14000b428
jmp 0x140004778
Function at 0x140004840
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 [0x140033010]
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 0x14000491e
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004963
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400048f1
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 0x1400048f1
mov eax, dword [rsp + 0x38]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x1400048f1
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x1400048c6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x140004910
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 0x1400049a6
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400049cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.140009020
xor ebx, ebx
jmp 0x1400049af
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004a0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.140009020
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140015d90
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140035198]
call fcn.14000b3c0
cmp dword [0x140035198], 0xffffffff
jne 0x140004943
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b578
lea rcx, [0x140035198]
call fcn.14000b428
jmp 0x140004943
lea rcx, [0x140035198]
call fcn.14000b3c0
cmp dword [0x140035198], 0xffffffff
jne 0x140004988
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b578
lea rcx, [0x140035198]
call fcn.14000b428
jmp 0x140004988
Function at 0x140005d80
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005e8c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005e03
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005e03
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005e03
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005ea7
lea rcx, [0x140034f88]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.140009020
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000ce70
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.140009720
test eax, eax
je 0x140005e8c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005e8c
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005ee8
lea rcx, [0x140034f88]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.140009020
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015d90
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x140035198]
call fcn.14000b3c0
cmp dword [0x140035198], 0xffffffff
jne 0x140005ded
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b578
lea rcx, [0x140035198]
call fcn.14000b428
jmp 0x140005ded
lea rcx, [0x140035198]
call fcn.14000b3c0
cmp dword [0x140035198], 0xffffffff
jne 0x140005e74
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b578
lea rcx, [0x140035198]
call fcn.14000b428
jmp 0x140005e74
Function at 0x140009780
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140025028]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400097d6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000afd0
cmp rax, 0x105
jb 0x1400097ed
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015d90
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000b198
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140024420
test eax, eax
je 0x1400097d6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000983a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400097d6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140024420
test eax, eax
je 0x1400097d6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000986f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400097d6
mov esi, 1
jmp 0x1400097d6
Function at 0x140009f70
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 [0x140033010]
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 0x14000a06c
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000a092
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14000a0bc
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 0x14000a023
cmp dword [rsp + 0x3c], 1
jne 0x14000a054
jmp 0x14000a0dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14000a040
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14000a054
jmp 0x14000a12e
cmp eax, 0x79
jle 0x14000a0e4
cmp eax, 0x41c
jne 0x14000a10f
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jb 0x140009ffe
mov ebx, dword [rsp + 0x3c]
jmp 0x14000a14c
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 0x14000a15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x14000a0c6
cmp edi, 5
je 0x14000a0fa
cmp edi, 6
jne 0x14000a108
mov ebx, 0xec
jmp 0x14000a15d
mov ebx, 0xcf
jmp 0x14000a14c
cmp edi, 0x7b
je 0x14000a101
cmp edi, 0x424
jne 0x14000a108
mov ebx, 0xee
jmp 0x14000a15d
mov ebx, 1
jmp 0x14000a14c
cmp eax, 5
je 0x14000a120
cmp eax, 6
je 0x14000a127
cmp eax, 0x57
jne 0x14000a13c
mov ebx, 0xdc
jmp 0x14000a148
mov ebx, 0xeb
jmp 0x14000a15d
mov ebx, 0xed
jmp 0x14000a15d
mov ebx, 0xef
jmp 0x14000a15d
cmp eax, 0x7a
je 0x14000a143
cmp eax, 0x7c
jne 0x14000a13c
mov ebx, 0xdd
jmp 0x14000a148
mov ebx, 0xda
jmp 0x14000a148
mov ebx, 0xd9
jmp 0x14000a148
cmp eax, 0x45b
jne 0x14000a13c
mov ebx, 0xde
jmp 0x14000a148
mov ebx, 0xdf
jmp 0x14000a148
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.140015d90
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 0x14000a180
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 [0x140033010]
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.14000ce70
mov rcx, rsi
call fcn.140009780
test eax, eax
je 0x14000a1f5
xor edi, edi
lea rsi, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000ce70
lea rdx, str..status
mov rcx, rbx
mov r8, rsi
call fcn.140009880
test eax, eax
jne 0x14000a213
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140015d90
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.140024420
test eax, eax
je 0x14000a1f5
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 0x14000a1f5
mov rbx, rax
lea rsi, [rsp + 0x250]
mov rcx, rsi
mov r8d, ebp
call fcn.1400243b0
mov rcx, rsi
call fcn.140013f50
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 0x14000a1f5

Function at 0x14000a2d0
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 [0x140033010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0x102
test edx, edx
je 0x14000a3af
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 0x14000a36c
mov rdi, rax
mov dword [rsp + 0x28], 0x238
mov rcx, rax
mov rdx, r13
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000a376
mov rcx, rbx
mov rdx, r12
call fcn.140012774
test eax, eax
je 0x14000a380
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000a347
mov esi, 0x490
jmp 0x14000a382
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000a38b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000a382
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x490
je 0x14000a3ad
mov ecx, 0x3e8
call r14
inc ebp
cmp ebp, r15d
jne 0x14000a31b
mov esi, 0x102
jmp 0x14000a3af
xor esi, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140015d90
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret