joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003710
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400037b0
jmp 0x14000379f
jae 0x140003870
cmp r8, 0x201
jae 0x1400037b0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003808
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400037df
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140017af0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003831
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400038d8
mov r8d, r14d
cmp r15, r8
jne 0x140003790
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003905
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000379f
jmp 0x1400037b0
cmp rsi, r8
jb 0x14000391f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140004a80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400038c1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001190
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400038a9
jmp 0x1400038c1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140018330
jmp 0x140003934
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140018780
ud2
Function at 0x140008c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001a9b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140008ca4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140008d0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140008d41
test eax, eax
js 0x140008d1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140008d34
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140004850
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140001a30
mov ecx, 7
int 0x29
ud2
Function at 0x140015f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140015f9a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140015f90
cmp r11, r10
ja 0x140016031
cmp r10, rdx
ja 0x140016043
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140015f92
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140015f70
jmp 0x140016007
ja 0x140015f9a
mov r11, r10
cmp rax, r8
jne 0x140015f42
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001600b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140015fe0
mov r8, r10
sub ecx, r9d
jns 0x140015ffe
jmp 0x14001600d
cmp r10, rdx
je 0x140016019
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001600d
xor al, 1
cmp r8, rdx
jne 0x140015fc0
jmp 0x14001600d
xor eax, eax
jmp 0x14001600d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14001c59b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140018330
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140018800
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140018780
int3

Function at 0x140017558
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400b748d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b749d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b7485
lea eax, [rcx + 1]
jmp 0x1400b74ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b74be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b74a4
sub eax, 3
jb 0x1400b74de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b752d
sar eax, 1
movsxd rbp, eax
jb 0x1400b7514
jmp 0x1400b74ec
add ebx, ebx
jne 0x1400b74ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b7514
inc ecx
add ebx, ebx
jne 0x1400b74fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b7514
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b750d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b74fc
add ecx, 2
jmp 0x1400b7519
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b7442
jmp 0x1400b748d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8f800
mov dl, 0xc
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b757d
cmp rsi, rcx
jae 0x1400b7585
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b7564
cmp al, 0x8f
ja 0x1400b7564
cmp byte [rsi - 2], 0xf
je 0x1400b756a
sub al, 0xe8
cmp al, 1
ja 0x1400b754e
cmp rsi, rcx
jae 0x1400b7585
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b7554
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b7585
lodsb al, byte [rsi]
jmp 0x1400b7564
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb3000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b75e2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb749c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400b7592
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400b75dc
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b75b2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400b761c
cmp al, 0xef
ja 0x1400b760e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400b75ee
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400b75fd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1400b769b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400b769b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400b768b
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x140008de0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.140017258
test rax, rax
je 0x140008e15
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140008de0
mov ebx, eax
test eax, eax
je 0x140008e21
mov word [rsi], 0x2f
jmp 0x140008e17
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x140008e0e
mov rcx, rdi
call fcn.140020e0c
test eax, eax
jns 0x140008e0e
call fcn.14001c700
cmp dword [rax], 0x11
je 0x140008e0e
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008e7e
call fcn.14001c700
mov r9d, dword [rax]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.140013970
mov ebx, 7
jmp 0x140008e0e
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x140008e60
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x140008e60
Function at 0x14000c5f0
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000c7d5
mov rcx, qword [0x14004fc78]
test rcx, rcx
je 0x14000c64b
call fcn.14002215c
mov qword [0x14004fc78], 0
cmp byte [0x14004ea39], 1
jne 0x14000c6f3
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
mov rcx, rsi
call fcn.140013590
test eax, eax
je 0x14000c6a7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea rcx, [0x1400437c6]
mov rdx, rsi
call fcn.140013690
test eax, eax
jne 0x14000c70d
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
mov rcx, rsi
call fcn.140013590
test eax, eax
je 0x14000c6f3
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea rcx, [0x140043d66]
mov rdx, rsi
call fcn.140013690
test eax, eax
jne 0x14000c772
mov rcx, qword [rsp + 0x658]
xor rcx, rsp
call fcn.140027fe0
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [rsp + 0x230]
lea rdx, [rsp + 0x440]
call fcn.1400374a0
test eax, eax
je 0x14000c6a7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea r8, str._supdate.status
lea r9, [0x14004e200]
mov edx, 0x105
mov rcx, rsi
call fcn.140005c60
lea rcx, [rsp + 0x230]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000c6a7
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x440]
call fcn.1400374a0
test eax, eax
je 0x14000c6f3
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea r8, str._supdate_elevated.log
lea r9, [0x14004e200]
mov edx, 0x105
mov rcx, rsi
call fcn.140005c60
lea rcx, [rsp + 0x20]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000c6f3
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c62f
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000c62f
Function at 0x14000c820
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 [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.14001fbd0
mov rcx, r14
call fcn.1400203e4
test eax, eax
je 0x14000c893
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000c945
lea rdx, str.Warning:_chdir_failed
call fcn.140013970
test bl, bl
je 0x14000c8b6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140027fe0
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.140037050
test eax, eax
je 0x14000c897
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 0x14000c935
xor ecx, ecx
call r15
mov edx, 0x2710
sub edx, ebx
mov rcx, rsi
call r12
cmp eax, 0xffffffff
jne 0x14000c935
call r13
cmp eax, 0x5bf
jne 0x14000c935
mov ecx, 0xa
call rbp
jmp 0x14000c8fc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c897
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c887
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000c887
Function at 0x140010cc0
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 0x140010d94
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140010d94
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x140010dce
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x140010dce
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.140028030
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 0x140010de1
inc r15
cmp r14, r15
jne 0x140010d74
xor eax, eax
jmp 0x140010dbd
mov ecx, 2
call fcn.1400176b8
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.140022ae0
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.1400176b8
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x140010df2
mov ecx, 2
call fcn.1400176b8
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
call fcn.1400372b0
jmp 0x140010db8
Function at 0x140012510
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
mov rcx, qword [r8]
sub r9, rcx
mov r10d, dword [rbp]
cmp r10d, 4
je 0x1400125ae
cmp r10d, 7
jne 0x1400125b4
cmp r9, 4
jb 0x1400125b4
add rcx, rdx
add rcx, 3
mov edx, 0xfffffff8
xor r10d, r10d
cmp byte [rcx + r10], 0xeb
jne 0x140012596
movzx eax, byte [rcx + r10 - 3]
movzx r11d, byte [rcx + r10 - 2]
movzx esi, byte [rcx + r10 - 1]
shl esi, 0x12
shl r11d, 0xa
or r11d, esi
lea eax, [r11 + rax*4]
sub eax, dword [rbp + 0xc]
add eax, edx
mov r11d, eax
shr r11d, 2
mov byte [rcx + r10 - 3], r11b
mov r11d, eax
shr r11d, 0xa
mov byte [rcx + r10 - 2], r11b
shr eax, 0x12
mov byte [rcx + r10 - 1], al
lea rsi, [r10 + 4]
add r10, 8
add edx, 0xfffffffc
cmp r10, r9
mov r10, rsi
jbe 0x14001254a
jmp 0x140012715
cmp r9, 5
jae 0x1400125bb
xor esi, esi
jmp 0x140012715
add rdx, rcx
mov edi, dword [rbp + 0x10]
add r9, 0xfffffffffffffffc
mov r10, 0xffffffffffffffff
xor esi, esi
lea r11, [0x1400402a8]
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x1400125f0
mov rcx, rsi
sub rcx, r10
cmp rcx, 3
jbe 0x1400125f8
xor edi, edi
jmp 0x140012635
mov rcx, rsi
jmp 0x1400126ef
dec cl
shl edi, cl
mov ecx, edi
mov edi, 0
and ecx, 7
je 0x140012635
mov eax, 0xe8
bt eax, ecx
jb 0x1400126e2
movzx r10d, byte [rcx + r11]
mov rdi, rsi
sub rdi, r10
mov r10b, byte [rdi + rdx + 4]
dec r10b
cmp r10b, 0xfe
jae 0x1400126e2
mov edi, ecx
mov cl, byte [rdx + rsi + 4]
dec cl
cmp cl, 0xfe
jae 0x14001264c
lea edi, [rdi*2 + 1]
jmp 0x1400126e9
mov r14d, dword [rbp + 0xc]
mov r15d, 0xfffffffb
sub r15d, esi
mov ebx, dword [rdx + rsi + 1]
add ebx, r15d
sub ebx, r14d
test edi, edi
je 0x1400126b4
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 0x1400126b4
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 0x140012697
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 0x1400126ec
lea edi, [rcx*2 + 1]
mov rcx, rsi
mov r10, rsi
mov rsi, rcx
inc rsi
cmp rsi, r9
jb 0x1400125d5
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 0x140013590
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140039010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400135e6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140023f00
cmp rax, 0x105
jb 0x1400135fd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140027fe0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.1400243c8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.1400374a0
test eax, eax
je 0x1400135e6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001364a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400135e6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.1400374a0
test eax, eax
je 0x1400135e6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001367f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400135e6
mov esi, 1
jmp 0x1400135e6
Function at 0x140013760
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, ecx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140013858
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14001387e
mov rdi, rax
lea rbx, [rsp + 0x2c]
mov dword [rbx + 4], 0xcf
imul ebp, ebp, 0x3e8
xor r14d, r14d
lea r15, [rsp + 0x28]
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 0x14001380d
cmp dword [rsp + 0x30], 1
jne 0x14001383e
jmp 0x1400138bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14001382a
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14001383e
jmp 0x140013910
cmp eax, 0x79
jle 0x1400138c6
cmp eax, 0x41c
jne 0x1400138f1
mov ecx, 0x32
call r13
add r14d, 0x32
cmp r14d, ebp
jb 0x1400137e7
mov ebx, dword [rsp + 0x30]
jmp 0x14001392e
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 0x140013941
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x1400138a8
cmp edi, 5
je 0x1400138dc
cmp edi, 6
jne 0x1400138ea
mov ebx, 0xec
jmp 0x140013941
cmp edi, 0x7b
je 0x1400138e3
cmp edi, 0x424
jne 0x1400138ea
mov ebx, 0xee
jmp 0x140013941
mov ebx, 1
jmp 0x14001392e
cmp eax, 5
je 0x140013902
cmp eax, 6
je 0x140013909
cmp eax, 0x57
jne 0x14001391e
mov ebx, 0xdc
jmp 0x14001392a
mov ebx, 0xeb
jmp 0x140013941
mov ebx, 0xed
jmp 0x140013941
mov ebx, 0xef
jmp 0x140013941
cmp eax, 0x7a
je 0x140013925
cmp eax, 0x7c
jne 0x14001391e
mov ebx, 0xdd
jmp 0x14001392a
mov ebx, 0xda
jmp 0x14001392a
mov ebx, 0xd9
jmp 0x14001392a
cmp eax, 0x45b
jne 0x14001391e
mov ebx, 0xde
jmp 0x14001392a
mov ebx, 0xdf
jmp 0x14001392a
mov ebx, 0xdb
mov dword [rsp + 0x30], ebx
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rsi
call r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140013a90
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 [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14004fc78], 0
je 0x140013b2a
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x14004fc78]
lea rcx, str._Warning:
mov edx, ntohl
mov r8d, 1
call fcn.140022ae0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x14004fc78]
call fcn.140005a60
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.140017a74
mov r9, qword [0x14004fc78]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140022ae0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140027fe0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret