joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14065e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14065e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14065e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065e06f
add dl, dl
jne 0x14065e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065e0f6
xor eax, eax
add dl, dl
jne 0x14065e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065e1ad
add dl, dl
jne 0x14065e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065e07e
mov eax, 1
add dl, dl
jne 0x14065e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065e0fb
sub eax, ebx
mov ebx, 1
jne 0x14065e14c
mov ecx, 1
add dl, dl
jne 0x14065e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065e15d
cmp eax, 0x7d00
jae 0x14065e19b
cmp eax, 0x500
jb 0x14065e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065e07e
cmp eax, 0x7f
ja 0x14065e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140013850
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x140039ab0]
test rcx, rcx
je 0x1400138ba
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400138ad
mov rcx, qword [0x140039ab0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140039ab0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003c2c0], 1
jne 0x140013964
mov r14, qword [0x14002bbe0]
mov qword [rsp + 0x50], r14
movups xmm8, xmmword [0x14002bbd0]
movaps xmmword [rsp + 0x40], xmm8
movups xmm7, xmmword [0x14002bbc0]
movaps xmmword [rsp + 0x30], xmm7
movups xmm6, xmmword [0x14002bbb0]
movaps xmmword [rsp + 0x20], xmm6
lea r15, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea r12, [0x140039ac0]
mov rbx, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, r12
call rbx
cmp eax, 0xffffffff
je 0x140013964
and eax, 0x10
je 0x140013964
mov ecx, 0x64
call rsi
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rcx, r15
call rdi
dec ebp
jne 0x140013930
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015250
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140015090
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.1400151f0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x140039ab8]
test eax, eax
je 0x1400150c5
test eax, eax
jg 0x14001510d
jmp 0x140015142
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140013190
test al, al
je 0x1400151ca
lea rcx, [rsp + 0x20]
call fcn.14001bd40
movsxd rcx, dword [0x140039ab8]
lea rdx, [0x140046b20]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140039ab8], eax
test eax, eax
jle 0x140015142
lea rdi, [0x140046b20]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001c980
test eax, eax
je 0x1400151ab
inc rbx
movsxd rax, dword [0x140039ab8]
add rdi, 8
cmp rbx, rax
jl 0x140015120
mov rcx, rsi
call fcn.14001c9b8
cmp rax, 2
jne 0x140015159
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x1400151ad
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140015178
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x1400151ad
cmp dword [0x140039ab8], 0x3ff
jg 0x1400151ad
mov rcx, rsi
call fcn.14001bd40
movsxd rcx, dword [0x140039ab8]
lea rdx, [0x140046b20]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140039ab8], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140015250
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140014080
int3

Function at 0x1400159d0
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ac54
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 0x14001acc3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001acc3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001acc3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001acc3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001acc3
cmp dword [rcx + 0x84], 0xe
jbe 0x14001acc3
cmp dword [rcx + 0xf8], 0
je 0x14001acc3
mov ecx, ebx
call fcn.14001ab80
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.14001ade8
nop
cmp dword [rbp + 0x20], 0
je 0x14001ad11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ac20
int3

Function at 0x14001ce10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ce38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ce38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140022748
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400227cf
mov rsi, rbx
cmp word [rax], bp
je 0x14002278e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022778
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022774
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001fbb8
mov rdi, rax
test rax, rax
je 0x1400227bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016220
mov rbp, rdi
xor ecx, ecx
call fcn.14001ec78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005560
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c8
call fcn.140009900
sub rsp, rax
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x1400055a0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.1400078a0
mov ecx, eax
imul rax, rcx, 0x39
cmp eax, 0x18
ja 0x1400055f5
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.1400078a0
mov ecx, eax
imul rax, rcx, 0x39
cmp eax, 0x19
jb 0x1400055e0
shr rax, 0x20
add eax, 0x1f
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140008a90
add rsp, 0x13c8
ret

Function at 0x1400078a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140007901
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400078c0
mov ecx, dword [r9]
jmp 0x1400079eb
cmp ecx, 0x4e0
jb 0x1400079eb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007920
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007970
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400089d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140008a12
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140008a17
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140008a60
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a3f0]
cmp byte [rcx + rax], 0
je 0x140008a60
dec r8
sub rdx, 1
jne 0x140008a46
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009538
Capabilities:
Parse pe header

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

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

Function at 0x140008728
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000854c
Function at 0x140010210
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140010238
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140010238
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001400
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000b010
test rax, rax
je 0x140001634
mov rbx, rax
movzx eax, word [r14 + rax*2 - 2]
cmp eax, 0x5c
je 0x14000162c
cmp eax, 0x2f
je 0x14000162c
mov rax, rbx
add rax, 2
lea r15, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r15
call fcn.14000af24
mov rdi, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000cde0
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, r14
call fcn.14000b14c
mov rcx, rdi
call fcn.14000b1a4
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 0x140001638
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 0x14000166b
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 0x14000166b
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 0x14000166b
lea r14, [rsp + 0x30]
mov r15d, dword [r14]
mov rcx, r15
call fcn.14000af24
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000cde0
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 0x14000166b
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001595
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400015a7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000b144
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.14000b14c
mov ebp, 1
cmp dword [rsp + 0x30], 0
je 0x140001603
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 0x1400015e5
mov rdi, rbx
mov rcx, rdi
call fcn.14000b144
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140016cf0
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
dec rbx
jmp 0x14000144c
xor ebp, ebp
jmp 0x14000160e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000166b
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 0x1400014c8
xor ebp, ebp
jmp 0x140001606
Function at 0x140002750
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.14001e800
sub rsp, rax
mov rdi, r8
mov rbx, rdx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x10040], rax
xor r14d, r14d
mov dword [r8], r14d
mov dword [rsp + 0x28], r14d
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 0x1400028ed
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
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 0x1400028d8
mov r12, qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r14d, r14d
mov rcx, rsi
xor edx, edx
call r12
mov r15d, eax
mov rcx, rbx
xor edx, edx
call r12
cmp r15d, 0xffffffff
je 0x1400028d8
cmp eax, 0xffffffff
je 0x1400028d8
mov r14d, 1
cmp r15d, eax
jne 0x1400028d8
cmp r15d, 0x8000
jae 0x140002929
and r15d, 0x7fff
je 0x1400028cc
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 r14d, r14d
test eax, eax
je 0x1400028d8
cmp dword [rsp + 0x3c], r15d
jne 0x1400028d8
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 0x1400028d8
cmp dword [rsp + 0x3c], r15d
jne 0x1400028d8
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000cce0
mov r14d, 1
test eax, eax
jne 0x1400028d8
mov dword [rdi], 1
mov r14d, 1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400028ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
inc rax
cmp rax, 2
jb 0x140002902
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140016cf0
mov eax, r14d
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 r14, [rsp + 0x8040]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r12, r14
mov rdx, r14
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
xor r14d, r14d
test eax, eax
je 0x1400028d8
cmp dword [rsp + 0x3c], 0x8000
jne 0x1400028d8
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 0x1400028d8
cmp dword [rsp + 0x3c], 0x8000
jne 0x1400028d8
mov r8d, 0x8000
mov r14, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000cce0
test eax, eax
jne 0x1400028d2
dec ebp
jne 0x14000293e
jmp 0x14000284a
Function at 0x1400046b0
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 [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.14000af24
mov rsi, rax
mov rcx, r15
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000474b
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x140031312]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140004782
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 0x1400047c5
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400047e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x1400047bb
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000482a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.140009010
xor edi, edi
mov rcx, rsi
call fcn.14000b144
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140016cf0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a328]
call fcn.14000b370
cmp dword [0x14003a328], 0xffffffff
jne 0x14000476c
mov qword [0x14003a118], 0
lea rcx, [0x140002720]
call fcn.14000b528
lea rcx, [0x14003a328]
call fcn.14000b3d8
jmp 0x14000476c
lea rcx, [0x14003a328]
call fcn.14000b370
cmp dword [0x14003a328], 0xffffffff
jne 0x1400047a7
mov qword [0x14003a118], 0
lea rcx, [0x140002720]
call fcn.14000b528
lea rcx, [0x14003a328]
call fcn.14000b3d8
jmp 0x1400047a7
Function at 0x140004870
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 0x140004953
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004998
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004926
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [rsp + 0x20]
mov r12, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [rsp + 0x38]
call r15
cmp dword [rsp + 0x24], 1
je 0x140004926
mov eax, dword [rsp + 0x38]
add r14d, eax
add r14d, 0xa
cmp r14d, 0xea60
ja 0x140004926
mov rcx, rdi
mov rdx, rbx
call r12
test eax, eax
jne 0x1400048f7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x140004945
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 0x1400049db
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004a01
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.140009010
xor ebx, ebx
jmp 0x1400049e4
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.140009010
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016cf0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14003a328]
call fcn.14000b370
cmp dword [0x14003a328], 0xffffffff
jne 0x140004978
mov qword [0x14003a118], 0
lea rcx, [0x140002720]
call fcn.14000b528
lea rcx, [0x14003a328]
call fcn.14000b3d8
jmp 0x140004978
lea rcx, [0x14003a328]
call fcn.14000b370
cmp dword [0x14003a328], 0xffffffff
jne 0x1400049bd
mov qword [0x14003a118], 0
lea rcx, [0x140002720]
call fcn.14000b528
lea rcx, [0x14003a328]
call fcn.14000b3d8
jmp 0x1400049bd