joyce8/EMBER2024-capa huggingface dataset:
Function at 0x25d70
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor r12d, r12d
mov rbp, rcx
mov edi, 0x1000
mov dword [rsp + 0x48], r12d
nop word [rax + rax]
mov r8d, 0x73726973
mov edx, edi
mov ecx, 1
mov esi, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x25e10
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.0002b7b0
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rbx
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov rcx, rbx
mov esi, eax
test eax, eax
jns 0x25e25
mov edi, dword [rsp + 0x48]
mov edx, 0x73726973
add edi, 0x20
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp esi, 0xc0000004
je 0x25da0
mov edx, 0x73726973
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
cmp qword [rbx + 0x50], rbp
je 0x25e3f
nop dword [rax + rax]
mov eax, dword [rcx]
test eax, eax
je 0x25e46
add rcx, rax
cmp qword [rcx + 0x50], rbp
jne 0x25e30
mov r12, qword [rcx + 0x130]
mov edx, 0x73726973
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, r12
jmp 0x25e12

Function at 0x25e60
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
xor r12d, r12d
mov rsi, rcx
mov edi, 0x1000
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x40], rbp
mov edx, edi
mov ecx, 1
mov r8d, 0x73726973
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x25ee3
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rax
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebp, eax
test eax, eax
jns 0x25ef8
mov edi, dword [rsp + 0x48]
mov edx, 0x73726973
mov rcx, rbx
add edi, 0x20
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp ebp, 0xc0000004
je 0x25e82
mov edx, 0x73726973
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov rcx, rbx
cmp qword [rbx + 0x50], rsi
je 0x25f10
mov eax, dword [rcx]
test eax, eax
je 0x25f14
add rcx, rax
cmp qword [rcx + 0x50], rsi
jne 0x25f01
mov r12, qword [rcx + 0x58]
mov edx, 0x73726973
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, r12
jmp 0x25ee5
Function at 0x28b90
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
lea rdx, [0x00012390]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [0x0002f2f0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0x9c40
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x28c20
lea rdx, [0x000123f0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x28c1e
mov rcx, qword [0x0002f2f0]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov qword [0x0002f2f0], 0
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x29560
Capabilities:
Encode data using xor
Hash data with crc32
Hash data with md5

Disassembly:
mov r11, rsp
push rbx
push r12
sub rsp, 0x258
xor r12b, r12b
mov rbx, rcx
cmp edx, 0x40
jb 0x297b0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x297b0
mov ecx, dword [rcx + 0x20]
test ecx, ecx
je 0x297b0
mov eax, edx
mov qword [r11 + 0x18], rsi
mov rsi, rcx
sub rax, 0x200
cmp rcx, rax
ja 0x297a8
cmp dword [rcx + rbx + 4], 0xccb520be
lea r9, [rcx + rbx + 4]
jne 0x297a8
mov qword [r11 - 0x18], r13
mov r13d, dword [rcx + rbx + 0xc]
mov r11d, dword [rcx + rbx + 8]
lea eax, [r11 + r13]
cmp eax, ecx
ja 0x297a0
mov qword [rsp + 0x288], rdi
mov r10d, 0x1fc
or r8d, 0xffffffff
lea rdi, [0x0002e010]
nop word [rax + rax]
movzx ecx, byte [r9]
mov eax, r8d
inc r9
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
sub r10d, 1
jne 0x29600
not r8d
cmp r8d, dword [rsi + rbx]
jne 0x29798
lea r8d, [r10 + 0x54]
lea rcx, [rsp + 0x34]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x270], rbp
mov rbp, r11
mov dword [rsp + 0x30], edi
call fcn.0002b7b0
add rbp, rbx
je 0x29790
lea rcx, [rsp + 0x30]
mov r8d, r13d
mov rdx, rbp
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov dword [rsp + 0x3c], 0x10325476
call fcn.00029890
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.000299a0
mov ebp, dword [0x0002e450]
mov r9d, dword [rsi + rbx + 0x10]
add ebp, 7
shr ebp, 3
cmp r9d, ebp
ja 0x29790
lea rax, [0x0002e450]
lea r8, [rsi + rbx + 0x14]
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.0002a300
test eax, eax
jne 0x29790
cmp dword [rsp + 0x278], ebp
jne 0x29790
cmp byte [rsp + 0x30], dil
jne 0x29790
cmp byte [rsp + 0x31], 1
jne 0x29790
lea edx, [rbp - 1]
mov ecx, 2
cmp edx, ecx
jbe 0x2972e
lea rax, [rsp + 0x32]
nop word [rax + rax]
cmp byte [rax], 0xff
jne 0x2972e
inc ecx
inc rax
cmp ecx, edx
jb 0x29720
mov eax, ecx
inc ecx
cmp byte [rsp + rax + 0x30], dil
jne 0x29790
mov ebx, ebp
sub ebx, ecx
lea eax, [rbx + 0xb]
cmp eax, ebp
ja 0x29790
lea rdx, [rsp + rcx + 0x30]
test rdx, rdx
je 0x2975e
lea rcx, [rsp + 0xb0]
mov r8d, ebx
call fcn.0002b420
cmp ebx, 0x10
jne 0x29790
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x180]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x29785
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
je 0x2978a
sbb edi, edi
sbb edi, 0xffffffff
test edi, edi
sete r12b
mov rbp, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x288]
mov r13, qword [rsp + 0x250]
mov rsi, qword [rsp + 0x280]
mov al, r12b
add rsp, 0x258
pop r12
pop rbx
ret
Function at 0x297c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x100
xor r9d, r9d
lea rcx, [rsp]
mov r8d, 0x100
mov eax, r9d
nop dword [rax]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, r8d
jb 0x297e0
mov ebx, r9d
mov r10, r9
lea r11, [rsp]
lea rdi, [0x0002e990]
nop dword [rax]
movzx edx, byte [r11]
movzx ecx, byte [r10 + rdi]
inc r10
add ecx, ebx
add ecx, edx
cmp r10, 0x70
movzx ebx, cl
cmovae r10, r9
inc r11
sub r8, 1
movzx eax, byte [rsp + rbx]
mov byte [r11 - 1], al
mov byte [rsp + rbx], dl
jne 0x29800
mov ebx, r9d
lea r10, [0x0002eec0]
mov r11d, r9d
nop dword [rax]
lea eax, [rbx + 1]
inc r11d
inc r10
movzx ebx, al
movzx edx, byte [rsp + rbx]
lea eax, [r9 + rdx]
movzx r9d, al
movzx eax, byte [rsp + r9]
mov byte [rsp + rbx], al
mov byte [rsp + r9], dl
movzx ecx, byte [rsp + rbx]
add ecx, edx
movzx eax, cl
movzx ecx, byte [rsp + rax]
xor byte [r10 - 1], cl
cmp r11d, 0x262
jb 0x29840
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rdi
ret
Function at 0x32058
Capabilities:
Create device object
Print debug messages

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call section.INIT
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00027f30
Function at 0x1400050b0
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000a718
mov rsi, rax
mov rcx, r15
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000514b
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x140035b4a]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000517b
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [r14], edx
movzx edx, word [rcx + 8]
mov dword [rbx], edx
movzx edx, word [rcx + 0xe]
mov dword [rdi], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x1400051b3
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400051d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x1400051a9
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005214
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.140008f50
xor edi, edi
mov rcx, rsi
call fcn.14000a728
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14001af70
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x14000516c
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x14000516c
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x14000519c
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x14000519c
Function at 0x140005ea0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005f61
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005f1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005f1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005f1c
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005fed
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.140008f50
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14002b6d0
mov rcx, rsi
call fcn.140016e78
cmp rax, 0x104
ja 0x140005f61
lea rdi, [rsp + 0x20]
mov r8d, 0x105
mov rcx, rdi
mov rdx, rsi
call fcn.140017340
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140005f7c
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001af70
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rdx, str.updater.ini
lea rcx, [rsp + 0x20]
call fcn.14002c170
test eax, eax
je 0x140005f61
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005f61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005f61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005f61
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000602e
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.140008f50
jmp 0x140005f61
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005f0d
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005f0d
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005fd7
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005fd7
Function at 0x140008b20
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x14002d010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140008b76
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140016e78
cmp rax, 0x105
jb 0x140008b8d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001af70
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140017340
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14002c170
test eax, eax
je 0x140008b76
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008bda
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008b76
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14002c170
test eax, eax
je 0x140008b76
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008c0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008b76
mov esi, 1
jmp 0x140008b76

Function at 0x140008ce0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x468
mov esi, edx
mov rbx, rcx
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea r14, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14002b6d0
mov rcx, r14
call fcn.140008b20
test eax, eax
je 0x140008d56
xor edi, edi
lea r14, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14002b6d0
lea rdx, str..status
mov rcx, rbx
mov r8, r14
call fcn.140008c20
test eax, eax
jne 0x140008d75
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001af70
mov eax, edi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.14002c170
test eax, eax
je 0x140008d56
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 0x140008d56
mov rbx, rax
lea rdi, [rsp + 0x250]
mov rcx, rdi
mov r8d, esi
call fcn.14002c2d0
mov rcx, rdi
call fcn.140016d50
mov rsi, rax
mov qword [rsp + 0x20], 0
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne al
cmp dword [r14], esi
sete cl
and cl, al
movzx edi, cl
jmp 0x140008d56
Function at 0x14000a4a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140016e78
test rax, rax
je 0x14000a6d4
mov rbx, rax
movzx eax, word [r14 + rax*2 - 2]
cmp eax, 0x5c
je 0x14000a6cc
cmp eax, 0x2f
je 0x14000a6cc
mov rax, rbx
add rax, 2
lea r15, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r15
call fcn.14000a718
mov rdi, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14002b6d0
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, r14
call fcn.140017340
mov rcx, rdi
call fcn.1400149a4
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov qword [rcx], r12
mov qword [rsp + 0x38], r12
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 0x14000a6d8
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
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 0x14000a70b
add ebx, ebx
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000a70b
lea r9, [rsp + 0x34]
mov dword [r9], 4
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000a70b
lea r14, [rsp + 0x30]
mov r15d, dword [r14]
mov rcx, r15
call fcn.14000a718
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14002b6d0
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000a70b
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000a635
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000a647
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000a728
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.140017340
mov ebp, 1
cmp dword [rsp + 0x30], 0
je 0x14000a6a3
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x30]
cmp r14, rax
jb 0x14000a685
mov rdi, rbx
mov rcx, rdi
call fcn.14000a728
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001af70
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
dec rbx
jmp 0x14000a4ec
xor ebp, ebp
jmp 0x14000a6ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000a70b
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x40]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000a568
xor ebp, ebp
jmp 0x14000a6a6
Function at 0x14000ac58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000aca2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000aca2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000aca2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000aca2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000aca2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000aca4
xor al, al
add rsp, 0x28
ret

Function at 0x140012150
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012298
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012307
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012307
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012307
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012307
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012307
cmp dword [rcx + 0x84], 0xe
jbe 0x140012307
cmp dword [rcx + 0xf8], 0
je 0x140012307
mov ecx, ebx
call fcn.1400121d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001242c
nop
cmp dword [rbp + 0x20], 0
je 0x140012355
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012264
int3

Function at 0x140012298
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012298
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012307
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012307
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012307
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012307
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012307
cmp dword [rcx + 0x84], 0xe
jbe 0x140012307
cmp dword [rcx + 0xf8], 0
je 0x140012307
mov ecx, ebx
call fcn.1400121d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001242c
nop
cmp dword [rbp + 0x20], 0
je 0x140012355
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012264
int3

Function at 0x140014f10
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140014f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140012dd4
or eax, 0xffffffff
jmp 0x140014f32
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015e3c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001eae0
sub rsp, rax
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001aea4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140015e8b
mov rax, rbp
jmp 0x140015f93
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3d5e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140020fc8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3d5e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140015f8f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015f8f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140020fc8
test rax, rax
js 0x140015f8f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140015f8f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140015f81
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140015f81
cmp byte [rcx], 0xd
jne 0x140015f67
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140015f76
cmp byte [rcx + 1], 0xa
jne 0x140015f76
inc rcx
jmp 0x140015f76
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3cb40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140015f49
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140015f93
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001af70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400174a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400174c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400174c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret