joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c0c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403ca3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409780
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a2c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403c80
cmp byte [0x005f56cc], 0
je 0x46c0d5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x469300
jmp 0x403c80

Function at 0x46c0e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005f59a8]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f59a0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f56cc], 0
je 0x46c115
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005f5ce0]
aesenc xmm0, xmmword [0x005f5cf0]
aesenc xmm0, xmmword [0x005f5d00]
movq rax, xmm0
ret
jmp 0x409960

Function at 0x46c120
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005f59a8]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f59a0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f56cc], 0
je 0x46c156
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005f5ce0]
aesenc xmm0, xmmword [0x005f5cf0]
aesenc xmm0, xmmword [0x005f5d00]
movq rax, xmm0
ret
jmp 0x4099a0

Function at 0x46dee0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46df14
mov rcx, 0x28
jmp 0x46df1f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005f58f0], rcx
pop rbp
ret
Function at 0x4852e0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x485a1f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48530d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x485591
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4855bd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004e7d80]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004a66c0]
lea rbx, [0x004e67f0]
call fcn.00464ba0
inc rax
cmp rax, r8
jge 0x4855e2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x485617
lea rdi, [0x004a6740]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x485303
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4855fb
jmp 0x4855d0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046a2c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004852e0

Function at 0x485bc0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x485bd7
inc rax
cmp rax, 4
jge 0x485bef
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x485bd4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x485c00
inc rax
cmp rax, 4
jge 0x485c0e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x485c37
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x485c1b
jmp 0x485bfd

Function at 0x4896a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48976a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403200
xorps xmm15, xmm15
mov r14, qword [0x005f58f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48974f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a67c0]
xor ebx, ebx
mov rcx, rdx
call fcn.00465f40
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00489c80
inc rbx
cmp rcx, rbx
jae 0x48973e
mov edi, 1
lea rsi, [0x004a67c0]
call fcn.00466020
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004e68b8]
lea rsi, [0x004e6108]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a2c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004896a0
Function at 0x498730
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x4987aa
mov rax, 0
nop word [rax + rax]
nop dword [rax]
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x498760
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x498780
cmp rdx, 0
je 0x4987cc
test rdx, 0xf
je 0x49874d
test rdx, 7
jne 0x498780
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x49874d
ret
Function at 0x49b160
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x49b19f
jb 0x49b1b4
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesenclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x49b220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x49b2f4
jb 0x49b353
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.0049b100
aeskeygenassist xmm1, xmm0, 1
call fcn.0049b120
aeskeygenassist xmm1, xmm2, 2
call fcn.0049b100
aeskeygenassist xmm1, xmm0, 2
call fcn.0049b120
aeskeygenassist xmm1, xmm2, 4
call fcn.0049b100
aeskeygenassist xmm1, xmm0, 4
call fcn.0049b120
aeskeygenassist xmm1, xmm2, 8
call fcn.0049b100
aeskeygenassist xmm1, xmm0, 8
call fcn.0049b120
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0049b100
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0049b120
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0049b100
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0049b120
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0049b100
jmp 0x49b3c1
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.0049b060
aeskeygenassist xmm1, xmm2, 2
call fcn.0049b0c0
aeskeygenassist xmm1, xmm2, 4
call fcn.0049b060
aeskeygenassist xmm1, xmm2, 8
call fcn.0049b0c0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0049b060
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0049b0c0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0049b060
aeskeygenassist xmm1, xmm2, 0x80
call fcn.0049b0c0
jmp 0x49b3c1
aeskeygenassist xmm1, xmm0, 1
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 2
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 4
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 8
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 0x40
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 0x80
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.0049b020
aeskeygenassist xmm1, xmm0, 0x36
call fcn.0049b020
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x49b3ce
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x49b500
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
shr rdx, 2
dec rdx
movdqu xmm15, xmmword [0x004e6260]
movdqu xmm14, xmmword [0x004e6270]
movdqu xmm0, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x20]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x30]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x40]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x50]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x60]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x70]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x80]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x90]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xa0]
cmp rdx, 0xc
jb 0x49b5eb
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xb0]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xc0]
je 0x49b5eb
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xd0]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xe0]
aesenclast xmm0, xmm11
pshufb xmm0, xmm15
pshufd xmm11, xmm0, 0xff
movdqu xmm12, xmm0
psrad xmm11, 0x1f
pand xmm11, xmm14
psrld xmm12, 0x1f
pslldq xmm12, 4
pslld xmm0, 1
pxor xmm0, xmm11
pxor xmm0, xmm12
movdqu xmmword [rdi + 0xe0], xmm0
pshufd xmm1, xmm0, 0x4e
pxor xmm1, xmm0
movdqu xmmword [rdi + 0xf0], xmm1
movdqu xmm2, xmm0
movdqu xmm3, xmm1
mov rax, 7
movdqu xmm11, xmm2
movdqu xmm12, xmm2
movdqu xmm13, xmm3
pclmulqdq xmm11, xmm0, 0
pclmulqdq xmm12, xmm0, 0x11
pclmulqdq xmm13, xmm1, 0
pxor xmm13, xmm11
pxor xmm13, xmm12
movdqu xmm4, xmm13
pslldq xmm4, 8
psrldq xmm13, 8
pxor xmm11, xmm4
pxor xmm12, xmm13
movdqu xmm2, xmm14
pclmulqdq xmm2, xmm11, 1
pshufd xmm11, xmm11, 0x4e
pxor xmm11, xmm2
movdqu xmm2, xmm14
pclmulqdq xmm2, xmm11, 1
pshufd xmm11, xmm11, 0x4e
pxor xmm2, xmm11
pxor xmm2, xmm12
movdqu xmmword [rdi + 0xc0], xmm2
pshufd xmm3, xmm2, 0x4e
pxor xmm3, xmm2
movdqu xmmword [rdi + 0xd0], xmm3
dec rax
lea rdi, [rdi - 0x20]
jne 0x49b650
ret
Function at 0x140001460
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000afd0
test rax, rax
je 0x14000168f
mov rbx, rax
movzx eax, word [rbp + rax*2 - 2]
cmp eax, 0x5c
je 0x140001687
cmp eax, 0x2f
je 0x140001687
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.14000ce30
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 0x140001694
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 0x1400016c7
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 0x1400016c7
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 0x1400016c7
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.14000ce30
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 0x1400016c7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400015f2
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001604
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000b190
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.14000b198
mov r14d, 1
cmp dword [rsp + 0x28], 0
je 0x14000165f
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 0x140001642
mov rdi, r15
mov rcx, rdi
call fcn.14000b190
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016cb0
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400014a9
xor r14d, r14d
jmp 0x14000166a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400016c7
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 0x140001525
xor r14d, r14d
jmp 0x140001662
Function at 0x1400027b0
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.14001e7c0
sub rsp, rax
mov r14, r8
mov rbx, rdx
mov rax, qword [0x140038010]
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 0x140002944
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 0x14000292f
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 0x14000292f
cmp eax, 0xffffffff
je 0x14000292f
mov edi, 1
cmp r15d, eax
jne 0x14000292f
cmp r15d, 0x8000
jae 0x14000297f
and r15d, 0x7fff
je 0x140002923
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 0x14000292f
cmp dword [rsp + 0x3c], r15d
jne 0x14000292f
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 0x14000292f
cmp dword [rsp + 0x3c], r15d
jne 0x14000292f
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000cd30
mov edi, 1
test eax, eax
jne 0x14000292f
mov dword [r14], 1
mov edi, 1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140002944
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
inc rax
cmp rax, 2
jb 0x140002959
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140016cb0
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 0x14000292f
cmp dword [rsp + 0x3c], 0x8000
jne 0x14000292f
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 0x14000292f
cmp dword [rsp + 0x3c], 0x8000
jne 0x14000292f
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000cd30
test eax, eax
jne 0x14000292a
dec ebp
jne 0x140002994
jmp 0x1400028a3
Function at 0x140004710
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.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 0x1400047ac
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 0x1400047e3
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 0x140004826
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 0x14000484a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x14000481c
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 0x14000488b
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.140008ff0
xor edi, edi
mov rcx, rsi
call fcn.14000b190
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140016cb0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x1400047cd
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x1400047cd
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140004808
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140004808
Function at 0x1400048d0
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 0x1400049ae
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400049f3
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004981
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 0x140004981
mov eax, dword [rsp + 0x38]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x140004981
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004956
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x1400049a0
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 0x140004a36
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 0x140004a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.140008ff0
xor ebx, ebx
jmp 0x140004a3f
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 0x140004a9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.140008ff0
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016cb0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x1400049d3
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x1400049d3
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140004a18
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140004a18
Function at 0x140005dd0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005edc
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005e53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005e53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005e53
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 0x140005ef7
lea rcx, [0x14003a118]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.140008ff0
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000ce30
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.140009720
test eax, eax
je 0x140005edc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005edc
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 0x140005f38
lea rcx, [0x14003a118]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.140008ff0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140016cb0
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140005e3d
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140005e3d
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140005ec4
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140005ec4
Function at 0x140008ff0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
je 0x14000907f
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.14001461c
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsi]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
xor r9d, r9d
call fcn.14000b0fc
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.14001461c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140016cb0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret