joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400be5b0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b2574
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b2574
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400be700
cmp rax, 0xffffffffffffffff
je 0x1400be700
xor edi, edi
test rbp, rbp
jle 0x1400be6ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b1b60
mov rbx, rax
test rax, rax
jne 0x1400be638
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400be6a1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b0e54
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b3e5c
cmp eax, 0xffffffff
je 0x1400be681
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400be648
mov edx, r15d
mov ecx, r14d
call fcn.1400b0e54
jmp 0x1400be6a1
cmp byte [rsi + 0x38], dil
je 0x1400be698
cmp dword [rsi + 0x34], 5
jne 0x1400be698
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400be6a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b1bd8
jmp 0x1400be714
jns 0x1400be714
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b2574
cmp rax, 0xffffffffffffffff
jne 0x1400be6cc
cmp byte [rsi + 0x30], dil
je 0x1400be714
mov edi, dword [rsi + 0x2c]
jmp 0x1400be714
mov ecx, r14d
call fcn.1400b9fe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400be714
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400be714
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400be70d
mov eax, dword [rsi + 0x2c]
jmp 0x1400be712
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b2574
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001270
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, rcx
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [0x14004aa40]
mov rcx, rdi
call fcn.1400132f0
test rax, rax
je 0x1400014aa
mov rbx, rax
movzx eax, word [rdi + rax*2 - 2]
cmp eax, 0x5c
je 0x1400014a2
cmp eax, 0x2f
je 0x1400014a2
mov rax, rbx
add rax, 2
lea r14, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r14
call fcn.14001321c
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.140015060
lea r8, [rbx + 1]
lea rdx, [0x14004aa40]
mov rcx, rdi
call fcn.140013424
mov rcx, rdi
call fcn.14001346c
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rsp + 0x30], r15
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 0x1400014ae
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 0x1400014e1
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 0x1400014e1
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 0x1400014e1
lea r14, [rsp + 0x28]
mov r15d, dword [r14]
mov rcx, r15
call fcn.14001321c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140015060
mov rcx, qword [rsp + 0x30]
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 0x1400014e1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000140d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000141f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14001341c
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.140013424
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x14000147b
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 + 0x28]
cmp r14, rax
jb 0x14000145d
mov rdi, rbx
mov rcx, rdi
call fcn.14001341c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025ef0
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400012c0
xor ebp, ebp
jmp 0x140001486
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400014e1
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 0x140001340
xor ebp, ebp
jmp 0x14000147e
Function at 0x140004430
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.14001539c
test rax, rax
je 0x140004465
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140004430
mov ebx, eax
test eax, eax
je 0x140004471
mov word [rsi], 0x2f
jmp 0x140004467
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x14000445e
mov rcx, rdi
call fcn.14001eee4
test eax, eax
jns 0x14000445e
call fcn.14001a840
cmp dword [rax], 0x11
je 0x14000445e
mov eax, dword [0x14004be88]
mov ecx, dword [0x140048de8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400044ce
call fcn.14001a840
mov r9d, dword [rax]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.1400128e0
mov ebx, 7
jmp 0x14000445e
lea rcx, [0x14004be88]
call fcn.1400135f0
cmp dword [0x14004be88], 0xffffffff
jne 0x1400044b0
mov qword [0x14004bc78], 0
lea rcx, [0x140003a50]
call fcn.140013788
lea rcx, [0x14004be88]
call fcn.140013658
jmp 0x1400044b0
Function at 0x140007110
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, r9d
mov rsi, r8
mov edi, edx
mov r14, rcx
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.14001dd10
mov rcx, r14
call fcn.14001e524
test eax, eax
je 0x140007183
mov eax, dword [0x14004be88]
mov ecx, dword [0x140048de8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007235
lea rdx, str.Warning:_chdir_failed
call fcn.1400128e0
test bl, bl
je 0x1400071a6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140025ef0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea r9, [rsp + 0x28]
mov edx, edi
mov r8, rsi
call fcn.140034ed0
test eax, eax
je 0x140007187
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
call r14
mov ebx, eax
sub ebx, edi
cmp ebx, 0x270f
ja 0x140007225
xor ecx, ecx
call r15
mov edx, 0x2710
sub edx, ebx
mov rcx, rsi
call r12
cmp eax, 0xffffffff
jne 0x140007225
call r13
cmp eax, 0x5bf
jne 0x140007225
mov ecx, 0xa
call rbp
jmp 0x1400071ec
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007187
lea rcx, [0x14004be88]
call fcn.1400135f0
cmp dword [0x14004be88], 0xffffffff
jne 0x140007177
mov qword [0x14004bc78], 0
lea rcx, [0x140003a50]
call fcn.140013788
lea rcx, [0x14004be88]
call fcn.140013658
jmp 0x140007177
Function at 0x14000a840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x880
mov rdi, rcx
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x878], rax
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
xor edx, edx
call fcn.140015060
cmp byte [0x14004ac48], 0
je 0x14000a8d3
lea rcx, [rsp + 0x30]
call fcn.140012e40
test eax, eax
je 0x14000a949
lea rsi, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
lea rcx, [0x14003fc46]
mov rdx, rsi
call fcn.140012f40
test eax, eax
je 0x14000a949
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x660]
call fcn.140035400
test eax, eax
jne 0x14000a8fc
jmp 0x14000a949
lea rax, [0x14003fc3a]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea r9, [0x14004a200]
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.140003ff0
lea rdx, [0x140040578]
lea rcx, [rsp + 0x30]
call fcn.14001edb4
test rax, rax
je 0x14000a949
mov rsi, rax
mov rcx, rdi
call fcn.140021780
mov r8d, 1
mov rcx, rdi
mov rdx, rax
mov r9, rsi
call fcn.140020bb8
cmp rax, 1
jne 0x14000a9c0
cmp byte [0x14004ac48], 0
jne 0x14000a94d
mov dil, 1
jmp 0x14000a9c2
xor edi, edi
jmp 0x14000a9ca
lea rdi, [rsp + 0x450]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.140015060
mov rcx, rdi
call fcn.140035450
test eax, eax
je 0x14000a9c0
lea rdi, [rsp + 0x240]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.140015060
mov rcx, rdi
call fcn.140012e40
test eax, eax
je 0x14000a9c0
lea rdi, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.140015060
lea rcx, [0x1400403ea]
mov rdx, rdi
call fcn.140012f40
test eax, eax
jne 0x14000a9e7
xor edi, edi
mov rcx, rsi
call fcn.140020234
mov rcx, qword [rsp + 0x878]
xor rcx, rsp
call fcn.140025ef0
mov eax, edi
add rsp, 0x880
pop rbx
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x240]
lea rdx, [rsp + 0x660]
call fcn.140035400
test eax, eax
je 0x14000a9c0
lea rdx, [0x140040578]
lea rcx, [rsp + 0x240]
call fcn.14001edb4
test rax, rax
je 0x14000a9c0
mov rdi, rax
lea rdx, str._ls_n
lea r8, [rsp + 0x450]
mov rcx, rax
call fcn.140035130
mov ebx, eax
mov rcx, rdi
call fcn.140020234
cmp ebx, 0xffffffff
jne 0x14000a944
jmp 0x14000a9c0
Function at 0x14000aa50
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x14004be88]
mov ecx, dword [0x140048de8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ac35
mov rcx, qword [0x14004bc78]
test rcx, rcx
je 0x14000aaab
call fcn.140020234
mov qword [0x14004bc78], 0
cmp byte [0x14004aa39], 1
jne 0x14000ab53
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
mov rcx, rsi
call fcn.140012e40
test eax, eax
je 0x14000ab07
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
lea rcx, [0x14003fc46]
mov rdx, rsi
call fcn.140012f40
test eax, eax
jne 0x14000ab6d
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
mov rcx, rsi
call fcn.140012e40
test eax, eax
je 0x14000ab53
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
lea rcx, [0x1400401be]
mov rdx, rsi
call fcn.140012f40
test eax, eax
jne 0x14000abd2
mov rcx, qword [rsp + 0x658]
xor rcx, rsp
call fcn.140025ef0
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [rsp + 0x230]
lea rdx, [rsp + 0x440]
call fcn.140035400
test eax, eax
je 0x14000ab07
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
lea r8, str._supdate.status
lea r9, [0x14004a200]
mov edx, 0x105
mov rcx, rsi
call fcn.140003ff0
lea rcx, [rsp + 0x230]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000ab07
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x440]
call fcn.140035400
test eax, eax
je 0x14000ab53
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015060
lea r8, str._supdate.log
lea r9, [0x14004a200]
mov edx, 0x105
mov rcx, rsi
call fcn.140003ff0
lea rcx, [rsp + 0x20]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000ab53
lea rcx, [0x14004be88]
call fcn.1400135f0
cmp dword [0x14004be88], 0xffffffff
jne 0x14000aa8f
mov qword [0x14004bc78], 0
lea rcx, [0x140003a50]
call fcn.140013788
lea rcx, [0x14004be88]
call fcn.140013658
jmp 0x14000aa8f
Function at 0x14000acc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebx, ebx
lea r15, [rsp + 0x30]
mov r8d, 0x20a
mov rcx, r15
xor edx, edx
call fcn.140015060
mov rcx, r15
call fcn.140012e40
test eax, eax
je 0x14000ad3e
lea rbx, [rsp + 0x240]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140015060
lea rcx, [0x14003fc46]
mov rdx, rbx
call fcn.140012f40
test eax, eax
jne 0x14000ad64
xor ebx, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140025ef0
mov eax, ebx
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x240]
call fcn.140035400
test eax, eax
je 0x14000ad3c
lea rdx, [0x140040444]
lea rcx, [rsp + 0x30]
call fcn.14001edb4
test rax, rax
je 0x14000ad3c
mov r15, rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x240]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
mov edx, 1
mov r8d, 0x1f
mov r9, rax
call fcn.140020924
mov r12, rax
mov rcx, r15
call fcn.14002031c
test eax, eax
sete bl
jne 0x14000aeb0
mov byte [rsp + r12 + 0x240], 0
test rdi, rdi
je 0x14000ade6
cmp byte [rdi + 4], 0
je 0x14000ade6
mov byte [rdi + 4], 0
lea r13, [rsp + 0x240]
mov rcx, r13
mov edx, 0x3a
call fcn.1400151f0
mov r12, rax
test rax, rax
jne 0x14000ae35
lea rcx, [rsp + 0x240]
mov edx, 0xa
call fcn.1400151f0
mov r12, rax
test rax, rax
jne 0x14000ae35
lea rcx, [rsp + 0x240]
call fcn.140021780
lea r12, [rsp + rax]
add r12, 0x240
mov rbp, r12
sub rbp, r13
mov rcx, r14
call fcn.140021780
cmp rbp, rax
jne 0x14000ae63
lea rcx, [rsp + 0x240]
mov rdx, r14
mov r8, rbp
call fcn.140021840
test eax, eax
sete bpl
jmp 0x14000ae65
xor ebp, ebp
test rdi, rdi
je 0x14000aead
cmp byte [r12], 0x3a
jne 0x14000aead
inc r12
lea r14, [rsp + 0x28]
mov qword [r14], 0
mov rcx, r12
mov rdx, r14
mov r8d, 0xa
call fcn.140021f04
cmp qword [r14], r12
je 0x14000aead
lea ecx, [rax - 0x7fffffff]
cmp ecx, 2
jb 0x14000aead
cmp byte [rdi + 4], 0
jne 0x14000aebd
mov dword [rdi], eax
mov byte [rdi + 4], 1
mov byte [rsi], bpl
mov rcx, r15
call fcn.140020234
jmp 0x14000ad3e
int3
Function at 0x14000e7b0
Capabilities:
Hash data via wincrypt
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x90]
movq xmm0, rcx
movq xmm1, rdx
punpcklqdq xmm1, xmm0
movq xmm0, r12
movq xmm2, r8
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
jne 0x14000e884
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14000e884
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x14000e8be
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x14000e8be
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.140025f40
add qword [r14], r15
mov r14d, ebp
xor r15d, r15d
mov r13, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [r12 + r15*8]
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call r13
test eax, eax
je 0x14000e8d1
inc r15
cmp r14, r15
jne 0x14000e864
xor eax, eax
jmp 0x14000e8ad
mov ecx, 2
call fcn.140015808
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.140020bb8
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.140015808
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x14000e8e2
mov ecx, 2
call fcn.140015808
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
call fcn.140035130
jmp 0x14000e8a8
Function at 0x140010020
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rbp, rcx
cmp dword [rcx], 4
jne 0x140010040
mov rcx, qword [r8]
sub r9, rcx
cmp r9, 5
jae 0x140010047
xor esi, esi
jmp 0x1400101b2
add rdx, rcx
mov edi, dword [rbp + 0x10]
add r9, 0xfffffffffffffffc
mov r10, 0xffffffffffffffff
xor esi, esi
lea r11, [0x14003d2a8]
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x14001007c
mov rcx, rsi
sub rcx, r10
cmp rcx, 3
jbe 0x140010084
xor edi, edi
jmp 0x1400100c1
mov rcx, rsi
jmp 0x14001018c
dec cl
shl edi, cl
mov ecx, edi
mov edi, 0
and ecx, 7
je 0x1400100c1
mov eax, 0xe8
bt eax, ecx
jb 0x140010181
movzx r10d, byte [rcx + r11]
mov rdi, rsi
sub rdi, r10
mov r10b, byte [rdi + rdx + 4]
dec r10b
cmp r10b, 0xfe
jae 0x140010181
mov edi, ecx
movzx ebx, byte [rdx + rsi + 4]
lea ecx, [rbx - 1]
cmp cl, 0xfe
jae 0x1400100d7
add edi, edi
inc edi
jmp 0x140010186
movzx ecx, word [rdx + rsi + 1]
movzx r10d, byte [rdx + rsi + 3]
shl r10d, 0x10
or r10d, ecx
shl ebx, 0x18
or ebx, r10d
mov r14d, dword [rbp + 0xc]
mov r15d, 0xfffffffb
sub r15d, esi
add ebx, r15d
sub ebx, r14d
test edi, edi
je 0x140010153
mov ecx, edi
movzx ecx, byte [rcx + r11]
shl ecx, 3
mov r10d, 0x18
sub r10d, ecx
neg cl
mov r12d, 0xffffffff
shl r12d, cl
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfe
jb 0x140010153
xor ebx, r12d
not ebx
add ebx, r15d
sub ebx, r14d
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfd
ja 0x140010136
lea rcx, [rsi + 4]
mov eax, ebx
and eax, 0x1000000
mov r10d, eax
neg r10d
or r10d, eax
mov byte [rdx + rsi + 1], bl
mov byte [rdx + rsi + 2], bh
shr ebx, 0x10
mov byte [rdx + rsi + 3], bl
shr r10d, 0x18
mov byte [rdx + rsi + 4], r10b
jmp 0x140010189
lea edi, [rcx + rcx]
inc edi
mov rcx, rsi
mov r10, rsi
mov rsi, rcx
inc rsi
cmp rsi, r9
jb 0x140010061
mov rax, rsi
sub rax, r10
lea ecx, [rax - 1]
shl edi, cl
xor ecx, ecx
cmp rax, 4
cmovb ecx, edi
mov dword [rbp + 0x10], ecx
add qword [r8], rsi
add dword [rbp + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140012a00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14004bc78], 0
je 0x140012a9a
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x14004bc78]
lea rcx, str._Warning:
mov edx, ntohl
mov r8d, 1
call fcn.140020bb8
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x14004bc78]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.140015bc4
mov r9, qword [0x14004bc78]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140020bb8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140025ef0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140012e40
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140036010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140012e96
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400132f0
cmp rax, 0x105
jb 0x140012ead
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140025ef0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140013424
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140035400
test eax, eax
je 0x140012e96
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140012efa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140012e96
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140035400
test eax, eax
je 0x140012e96
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140012f2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140012e96
mov esi, 1
jmp 0x140012e96
Function at 0x140013010
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 ebp, ecx
mov rax, qword [0x140048030]
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 0x140013108
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14001312e
mov rdi, rax
lea rbx, [rsp + 0x38]
mov dword [rbx + 4], 0xcf
imul ebp, ebp, 0x3e8
xor r14d, r14d
lea r15, [rsp + 0x34]
mov r12, 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, rbx
mov r9d, 0x24
call r12
test eax, eax
je 0x1400130bd
cmp dword [rsp + 0x3c], 1
jne 0x1400130ee
jmp 0x14001316f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x1400130da
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x1400130ee
jmp 0x1400131c0
cmp eax, 0x79
jle 0x140013176
cmp eax, 0x41c
jne 0x1400131a1
mov ecx, 0x32
call r13
add r14d, 0x32
cmp r14d, ebp
jb 0x140013097
mov ebx, dword [rsp + 0x3c]
jmp 0x1400131de
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 0x1400131f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x140013158
cmp edi, 5
je 0x14001318c
cmp edi, 6
jne 0x14001319a
mov ebx, 0xec
jmp 0x1400131f1
cmp edi, 0x7b
je 0x140013193
cmp edi, 0x424
jne 0x14001319a
mov ebx, 0xee
jmp 0x1400131f1
mov ebx, 1
jmp 0x1400131de
cmp eax, 5
je 0x1400131b2
cmp eax, 6
je 0x1400131b9
cmp eax, 0x57
jne 0x1400131ce
mov ebx, 0xdc
jmp 0x1400131da
mov ebx, 0xeb
jmp 0x1400131f1
mov ebx, 0xed
jmp 0x1400131f1
mov ebx, 0xef
jmp 0x1400131f1
cmp eax, 0x7a
je 0x1400131d5
cmp eax, 0x7c
jne 0x1400131ce
mov ebx, 0xdd
jmp 0x1400131da
mov ebx, 0xda
jmp 0x1400131da
mov ebx, 0xd9
jmp 0x1400131da
cmp eax, 0x45b
jne 0x1400131ce
mov ebx, 0xde
jmp 0x1400131da
mov ebx, 0xdf
jmp 0x1400131da
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rsi
call r14
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140025ef0
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 0x14001efdc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001effc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001a880
or eax, 0xffffffff
jmp 0x14001effe
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001f034
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001f054
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001a880
or eax, 0xffffffff
jmp 0x14001f056
xor eax, eax
add rsp, 0x28
ret