joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011a72
mov al, 1
jmp 0x140011ad2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011a83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011ad0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000df68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011ad0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011ad0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011ad0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011ad2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012b10
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c638
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012b9a
cmp byte [rbp - 0x21], r15b
je 0x140012b95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012bd0
call fcn.1400093d4
test eax, eax
jne 0x140012bbc
cmp byte [rbp - 0x21], r15b
je 0x140012bb4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012bd0
cmp byte [rbp - 0x21], r15b
je 0x140012bcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bc18
test eax, eax
jne 0x140012c70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c638
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012c0f
cmp byte [rbp - 0x21], r15b
je 0x140012c44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012c44
call fcn.1400093d4
test eax, eax
jne 0x140012c30
cmp byte [rbp - 0x21], r15b
je 0x140012c29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012c44
cmp byte [rbp - 0x21], r15b
je 0x140012c41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bc18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012c70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012c73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012c81
mov rcx, rdi
call fcn.140009184
cmp byte [rbp + 0x3f], r15b
je 0x140012c90
mov rcx, qword [rbp + 0x27]
call fcn.140009184
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push r13
push r15
mov eax, 0x50
call fcn.14000c460
sub rsp, rax
mov eax, dword [rcx + 8]
mov r13, rcx
mov ecx, dword [rcx + 0x18]
add rax, r8
mov rbp, r8
mov qword [rsp + 0x70], rax
mov r15, rdx
add ecx, dword [r13 + 0x1c]
add ecx, dword [r13 + 0x14]
call fcn.1400109e8
mov qword [rsp + 0x80], rax
mov rcx, rax
test rax, rax
jne 0x140001638
lea eax, [rcx + 0xc]
add rsp, 0x50
pop r15
pop r13
pop rbp
ret
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
mov edi, dword [r13 + 0x18]
add edi, dword [r13 + 0x14]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov r14, rax
add edi, dword [r13 + 0x1c]
je 0x1400016a0
mov r12d, 0x7fffffff
cmp rdi, r12
mov rbx, rdi
mov r9, r15
mov edx, 1
cmova rbx, r12
mov rcx, r14
mov r8, rbx
call fcn.14001244c
cmp rax, rbx
jne 0x14000179e
add r14, rax
sub rdi, rax
jne 0x14000166a
mov rcx, qword [rsp + 0x80]
mov edi, dword [r13 + 0x14]
lea rbx, [rcx + 4]
mov r15d, dword [r13 + 0x18]
add rdi, rcx
mov r12d, dword [r13 + 0x1c]
add r15, rdi
mov r14, r15
mov qword [rsp + 0x28], r15
add r12, r15
mov qword [rsp + 0x20], rdi
mov ecx, dword [rbx - 4]
mov r13, rbx
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx]
mov dword [rbx - 4], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx + 4]
mov dword [rbx], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx - 4]
mov dword [rbx + 4], eax
lea rax, [rcx + rbp]
cmp rax, qword [rsp + 0x70]
ja 0x1400017ac
lea rax, [rcx + rdi]
cmp rax, r14
ja 0x1400017ac
mov eax, esi
test ecx, ecx
je 0x140001725
mov ecx, eax
inc eax
lea rdx, [rcx + rdi]
movzx ecx, byte [rcx + rbp]
add byte [rdx], cl
mov ecx, dword [rbx - 4]
cmp eax, ecx
jb 0x140001710
mov r9, qword [rsp + 0x88]
mov edx, 1
mov r8d, ecx
mov rcx, rdi
call fcn.140012148
mov ecx, dword [rbx - 4]
cmp eax, ecx
jne 0x1400017a5
mov r8d, dword [rbx]
add rdi, rcx
mov r14d, ecx
lea rax, [r8 + r15]
cmp rax, r12
ja 0x1400017ac
mov r9, qword [rsp + 0x88]
mov edx, 1
mov rcx, r15
call fcn.140012148
mov ecx, dword [rbx]
cmp eax, ecx
jne 0x1400017a5
movsxd rax, dword [rbx + 4]
add r15, rcx
add rax, r14
add rbp, rax
cmp rbp, qword [rsp + 0x70]
ja 0x1400017ac
add rbx, 0xc
lea rax, [r13 + 8]
cmp rax, qword [rsp + 0x20]
jae 0x1400017b1
mov r14, qword [rsp + 0x28]
jmp 0x1400016c6
mov esi, 6
jmp 0x1400017b1
mov esi, 0x40
jmp 0x1400017b1
mov esi, 0x29
mov rcx, qword [rsp + 0x80]
call fcn.1400109d4
mov r14, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop r13
pop rbp
ret
Function at 0x1400017f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x50
call fcn.14000c460
sub rsp, rax
mov rbx, rdx
lea r8d, [rax - 0x30]
mov rdi, rcx
lea edx, [rax - 0x4f]
mov r9, rcx
mov rcx, rbx
call fcn.14001244c
cmp rax, 0x20
jne 0x1400018d3
mov ecx, dword [rbx + 8]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx + 0xc]
mov dword [rbx + 8], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0xc], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx + 0x14]
mov dword [rbx + 0x10], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x14], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [rbx + 0x1c]
mov dword [rbx + 0x18], eax
call qword [sym.imp.WSOCK32.dll_ntohl]
mov rcx, rdi
mov dword [rbx + 0x1c], eax
call fcn.14001d40c
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.140012ebc
test eax, eax
jne 0x1400018d3
movabs rax, 0x303146464944424d
cmp qword [rbx], rax
jne 0x1400018c3
mov eax, dword [rbx + 0x1c]
mov r8d, 0x29
mov ecx, dword [rbx + 0x14]
add rcx, rax
mov eax, dword [rbx + 0x18]
lea rdx, [rcx + rax + 0x20]
mov ecx, dword [rsp + 0x34]
xor eax, eax
cmp rdx, rcx
cmovne eax, r8d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov eax, 0x29
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
mov eax, 6
add rsp, 0x50
pop rdi
ret
Function at 0x1400021d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
mov eax, 0x480
call fcn.14000c460
sub rsp, rax
mov r12, rdx
mov rsi, r8
lea rdx, [rsp + 0x30]
mov rbp, rcx
call fcn.140012f94
mov edi, eax
test eax, eax
je 0x140002236
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov edx, dword [rbx]
mov rcx, rax
mov dword [rsp + 0x20], edx
mov r9d, edi
lea rdx, str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
mov r8, rbp
call fcn.1400089d0
mov eax, 6
jmp 0x1400023e3
movzx eax, word [rsp + 0x36]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x14000225d
mov rdx, r12
mov rcx, rbp
call fcn.140005f00
jmp 0x1400023e3
mov rcx, r12
mov qword [rsp + 0x4a0], r14
call fcn.140019d04
mov r14d, eax
test eax, eax
jns 0x1400022b3
call fcn.140019270
cmp dword [rax], 0x11
je 0x1400022b3
lfence
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov edx, dword [rbx]
mov rcx, rax
mov dword [rsp + 0x20], edx
mov r9d, r14d
lea rdx, str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
mov r8, rbp
call fcn.1400089d0
mov eax, 7
jmp 0x1400023db
mov rcx, rbp
mov qword [rsp + 0x4a8], r15
call fcn.140007f80
mov r15, rax
test rax, rax
jne 0x1400022fc
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov rcx, rax
lea rdx, str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
mov eax, dword [rbx]
mov r9d, r14d
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.1400089d0
lea eax, [r15 + 6]
jmp 0x1400023d3
mov rcx, r15
call fcn.140007fc0
mov rdi, rax
test rax, rax
je 0x1400023c8
cmp word [rdi], 0x2e
jne 0x140002335
cmp word [rdi + 2], 0
je 0x1400023b4
cmp word [rdi], 0x2e
jne 0x140002335
cmp word [rdi + 2], 0x2e
jne 0x140002335
cmp word [rdi + 4], 0
je 0x1400023b4
mov r9, rbp
mov qword [rsp + 0x20], rdi
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140006730
xor ebx, ebx
movsxd rax, ebx
lea rdx, [rsp + 0x60]
imul rcx, rax, 0x208
add rcx, rsi
call fcn.14001d474
test eax, eax
je 0x1400023b4
inc ebx
cmp ebx, 3
jl 0x140002355
mov r9, r12
mov qword [rsp + 0x20], rdi
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140006730
mov r8, rsi
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1400021d0
mov r14d, eax
test eax, eax
jne 0x1400023c8
mov rcx, r15
call fcn.140007fc0
mov rdi, rax
test rax, rax
jne 0x140002310
mov rcx, r15
call fcn.140007f50
mov eax, r14d
mov r15, qword [rsp + 0x4a8]
mov r14, qword [rsp + 0x4a0]
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140003c60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
mov eax, 0x60
call fcn.14000c460
sub rsp, rax
lea rdx, [0x14002f2e4]
mov r15, rcx
call fcn.140011bb8
mov rbx, rax
test rax, rax
jne 0x140003c96
lea rdi, str.GetManifestContents:_error_opening_manifest_file:__S
jmp 0x140003cb5
mov rcx, rbx
call fcn.14001d40c
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.140012ebc
test eax, eax
je 0x140003cd8
lea rdi, str.GetManifestContents:_error_stating_manifest_file:__S
call fcn.140003e20
mov rcx, rax
mov r8, r15
mov rdx, rdi
call fcn.1400089d0
xor esi, esi
test rbx, rbx
jne 0x140003e01
jmp 0x140003e09
mov eax, dword [rsp + 0x44]
inc eax
mov qword [rsp + 0x90], r14
movsxd rcx, eax
call fcn.1400109e8
mov r14, rax
test rax, rax
jne 0x140003cfd
xor esi, esi
jmp 0x140003df9
movsxd rax, dword [rsp + 0x44]
mov qword [rsp + 0x80], rbp
mov rsi, rax
mov rbp, r14
test eax, eax
je 0x140003d48
mov edi, 0x7fffffff
mov r9, rbx
cmp rsi, rdi
mov edx, 1
mov rcx, rbp
cmovb rdi, rsi
mov r8, rdi
call fcn.14001244c
cmp rax, rdi
jne 0x140003dc6
add rbp, rax
sub rsi, rax
jne 0x140003d14
mov eax, dword [rsp + 0x44]
cdqe
mov byte [rax + r14], 0
mov eax, dword [rsp + 0x44]
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.1400109e8
mov rsi, rax
test rax, rax
je 0x140003ddd
mov eax, dword [rsp + 0x44]
mov r9d, 0xffffffff
inc eax
mov r8, r14
mov dword [rsp + 0x28], eax
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140003de9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140003e20
mov rcx, rax
lea rdx, str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
mov r8d, edi
call fcn.1400089d0
mov rcx, r14
call fcn.1400109d4
mov rcx, rsi
call fcn.1400109d4
xor esi, esi
jmp 0x140003df1
call fcn.140003e20
mov rcx, rax
lea rdx, str.GetManifestContents:_error_reading_manifest_file:__S
mov r8, r15
call fcn.1400089d0
mov rcx, r14
call fcn.1400109d4
xor esi, esi
jmp 0x140003df1
mov rcx, r14
call fcn.1400109d4
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x90]
mov rcx, rbx
call fcn.140011d40
mov rbx, qword [rsp + 0x98]
mov rax, rsi
add rsp, 0x60
pop r15
pop rdi
pop rsi
ret
Function at 0x140004460
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x50
call fcn.14000c460
sub rsp, rax
mov rbp, rcx
mov r14, rdx
mov rcx, rdx
call fcn.14001d40c
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.140012ebc
test eax, eax
je 0x1400044cc
mov rdi, qword [rbp + 0x28]
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov r9d, dword [rbx]
lea rdx, str.LoadSourceFile:_unable_to_stat_destination_file:__S__err:__d
mov rcx, rax
mov r8, rdi
call fcn.1400089d0
mov eax, 6
jmp 0x1400045ac
mov ebx, dword [rbp + 0x3c]
cmp dword [rsp + 0x34], ebx
je 0x1400044fb
call fcn.140003e20
mov r8d, dword [rsp + 0x34]
lea rdx, str.LoadSourceFile:_destination_file_size__d_does_not_match_expected_size__d
mov rcx, rax
mov r9d, ebx
call fcn.1400089d0
mov eax, 2
jmp 0x1400045ac
mov rcx, rbx
mov qword [rsp + 0x60], rsi
call fcn.1400109e8
mov qword [rbp + 0x58], rax
mov rsi, rax
test rax, rax
jne 0x14000451c
lea eax, [rsi + 0xd]
jmp 0x1400045a7
mov edi, dword [rbp + 0x3c]
test rdi, rdi
je 0x140004550
mov ebx, 0x7fffffff
mov r9, r14
cmp rdi, rbx
mov edx, 1
mov rcx, rsi
cmovb rbx, rdi
mov r8, rbx
call fcn.14001244c
cmp rax, rbx
jne 0x140004586
add rsi, rax
sub rdi, rax
jne 0x140004524
mov edx, dword [rbp + 0x3c]
mov rcx, qword [rbp + 0x58]
call fcn.140005ec0
mov edi, dword [rbp + 0x40]
mov ebx, eax
cmp eax, edi
je 0x1400045a5
call fcn.140003e20
mov rcx, rax
lea rdx, str.LoadSourceFile:_destination_file_crc__d_does_not_match_expected_crc__d
mov r9d, edi
mov r8d, ebx
call fcn.1400089d0
mov eax, 4
jmp 0x1400045a7
call fcn.140003e20
mov r8, qword [rbp + 0x28]
lea rdx, str.LoadSourceFile:_error_reading_destination_file:__S
mov rcx, rax
call fcn.1400089d0
mov eax, 6
jmp 0x1400045a7
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x1400055d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x4f]
mov eax, 0xf0
call fcn.14000c460
sub rsp, rax
mov eax, edx
mov r14, rcx
mov ecx, eax
mov rdx, r8
mov rsi, r9
call fcn.1400045d0
mov rdi, rax
test rax, rax
je 0x1400057ac
xorps xmm0, xmm0
mov qword [rsp + 0x100], rbx
xor eax, eax
xor ebx, ebx
mov qword [rbp + 0x3f], rax
lea rax, str.winsta0Default
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 0x11], rax
xor eax, eax
mov qword [rbp - 0x29], rax
movups xmmword [rbp - 0x21], xmm0
mov dword [rbp - 0x21], 0x68
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
movups xmmword [rbp - 0x39], xmm0
test rsi, rsi
jne 0x140005696
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x21]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov rcx, r14
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
jmp 0x140005705
mov r8d, 1
mov qword [rbp - 0x41], rbx
mov rdx, rsi
lea rcx, [rbp - 0x41]
call sub.USERENV.dll_CreateEnvironmentBlock
mov rcx, qword [rbp - 0x41]
test eax, eax
lea rax, [rbp - 0x39]
mov r8, rdi
mov qword [rsp + 0x50], rax
cmove rcx, rbx
lea rax, [rbp - 0x21]
mov qword [rbp - 0x41], rcx
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x40], rbx
mov rdx, r14
mov qword [rsp + 0x38], rcx
mov rcx, rsi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rbp - 0x41]
mov esi, eax
test rcx, rcx
je 0x140005705
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
je 0x14000573b
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140005725
mov rax, qword [rbp - 0x39]
mov qword [rcx], rax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000579a
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000579a
mov qword [rbp - 0x41], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x41]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rbp - 0x41]
lea rdx, [0x14002f410]
test rax, rax
lea rcx, str.Error_restarting:__s_n
cmovne rdx, rax
call fcn.140007e20
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14000579a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call fcn.1400109d4
mov rbx, qword [rsp + 0x100]
mov eax, esi
lea r11, [rsp + 0xf0]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005830
Capabilities:
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x440
call fcn.14000c460
sub rsp, rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000d2c0
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x14002f588]
lea rcx, [0x140040bc0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400058ce
lea rcx, [rsp + 0x20]
call fcn.140006020
test eax, eax
jne 0x1400058ce
lea rdx, [0x14002e638]
lea rcx, [rsp + 0x20]
call fcn.140011bb8
mov rbx, rax
test rax, rax
je 0x1400058ce
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], 0
jne 0x1400058a6
mov r9, rbx
mov r8d, 1
mov rcx, rdi
call fcn.140012148
mov rcx, rbx
cmp rax, 1
je 0x1400058e1
call fcn.140011d40
xor al, al
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret
call fcn.140011d40
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.14000d2c0
lea r9, [0x140040bc0]
mov edx, 0x104
lea r8, [0x14002f590]
lea rcx, [rsp + 0x230]
call fcn.140006730
mov r8d, 1
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x450]
test eax, eax
setne al
add rsp, 0x440
pop rdi
ret
Function at 0x140005c80
Capabilities:
Get common file path
Move file

Disassembly:
push rbx
mov eax, 0x650
call fcn.14000c460
sub rsp, rax
mov rbx, rdx
lea r8, str._s.moz_backup
mov r9, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140006730
mov r9, rbx
lea r8, str._s.moz_backup
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140006730
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140012fe4
test eax, eax
jne 0x140005dc5
lea rcx, [rsp + 0x20]
call fcn.1400060d0
test eax, eax
je 0x140005dc5
cmp byte [0x140041819], 0
jne 0x140005dc5
cmp byte [0x14004181a], 0
jne 0x140005dc5
call fcn.140003e20
mov rcx, rax
lea r8, [rsp + 0x230]
lea rdx, str.backup_discard:_unable_to_remove:__S
call fcn.1400089d0
lea r9, [rsp + 0x440]
xor r8d, r8d
lea rdx, [0x14002ed08]
lea rcx, [0x140041610]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x20]
call fcn.140006980
test eax, eax
je 0x140005d88
call fcn.140003e20
mov rcx, rax
lea r8, [rsp + 0x230]
mov r9, rbx
lea rdx, str.backup_discard:_failed_to_rename_file:_S__dst:_S
call fcn.1400089d0
mov eax, 0x45
add rsp, 0x650
pop rbx
ret
xor edx, edx
lea rcx, [rsp + 0x440]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140005dae
call fcn.140003e20
lea rdx, str.backup_discard:_file_renamed_and_will_be_removed_on_OS_reboot:__S
jmp 0x140005dba
call fcn.140003e20
lea rdx, str.backup_discard:_failed_to_schedule_OS_reboot_removal_of_file:__S
mov r8, rbx
mov rcx, rax
call fcn.1400089d0
xor eax, eax
add rsp, 0x650
pop rbx
ret
mov eax, 0x28
call fcn.14000c460
sub rsp, rax
test r8d, r8d
jne 0x140005deb
add rsp, 0x28
jmp 0x140005c80
add rsp, 0x28
jmp 0x140005e00
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x440
call fcn.14000c460
sub rsp, rax
mov rbx, rdx
lea r8, str._s.moz_backup
mov rdi, rcx
mov r9, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140006730
mov r9, rbx
lea r8, str._s.moz_backup
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140006730
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140012fe4
test eax, eax
je 0x140005e8d
call fcn.140003e20
mov rcx, rax
lea r8, [rsp + 0x230]
lea rdx, str.backup_restore:_backup_file_doesnt_exist:__S
call fcn.1400089d0
xor eax, eax
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140006980
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret
Function at 0x140005dd0
Capabilities:
Get common file path
Move file

Disassembly:
push rbx
mov eax, 0x650
call fcn.14000c460
sub rsp, rax
mov rbx, rdx
lea r8, str._s.moz_backup
mov r9, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140006730
mov r9, rbx
lea r8, str._s.moz_backup
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140006730
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140012fe4
test eax, eax
jne 0x140005dc5
lea rcx, [rsp + 0x20]
call fcn.1400060d0
test eax, eax
je 0x140005dc5
cmp byte [0x140041819], 0
jne 0x140005dc5
cmp byte [0x14004181a], 0
jne 0x140005dc5
call fcn.140003e20
mov rcx, rax
lea r8, [rsp + 0x230]
lea rdx, str.backup_discard:_unable_to_remove:__S
call fcn.1400089d0
lea r9, [rsp + 0x440]
xor r8d, r8d
lea rdx, [0x14002ed08]
lea rcx, [0x140041610]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x20]
call fcn.140006980
test eax, eax
je 0x140005d88
call fcn.140003e20
mov rcx, rax
lea r8, [rsp + 0x230]
mov r9, rbx
lea rdx, str.backup_discard:_failed_to_rename_file:_S__dst:_S
call fcn.1400089d0
mov eax, 0x45
add rsp, 0x650
pop rbx
ret
xor edx, edx
lea rcx, [rsp + 0x440]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140005dae
call fcn.140003e20
lea rdx, str.backup_discard:_file_renamed_and_will_be_removed_on_OS_reboot:__S
jmp 0x140005dba
call fcn.140003e20
lea rdx, str.backup_discard:_failed_to_schedule_OS_reboot_removal_of_file:__S
mov r8, rbx
mov rcx, rax
call fcn.1400089d0
xor eax, eax
add rsp, 0x650
pop rbx
ret
mov eax, 0x28
call fcn.14000c460
sub rsp, rax
test r8d, r8d
jne 0x140005deb
add rsp, 0x28
jmp 0x140005c80
add rsp, 0x28
jmp 0x140005e00
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x440
call fcn.14000c460
sub rsp, rax
mov rbx, rdx
lea r8, str._s.moz_backup
mov rdi, rcx
mov r9, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140006730
mov r9, rbx
lea r8, str._s.moz_backup
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140006730
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140012fe4
test eax, eax
je 0x140005e8d
call fcn.140003e20
mov rcx, rax
lea r8, [rsp + 0x230]
lea rdx, str.backup_restore:_backup_file_doesnt_exist:__S
call fcn.1400089d0
xor eax, eax
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140006980
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret

Function at 0x140005ec0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, edx
mov r8, rcx
add r9, rcx
mov eax, 0xffffffff
cmp rcx, r9
je 0x140005efc
lea r10, [0x14003f170]
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
mov edx, eax
shr rdx, 0x18
xor rdx, rcx
shl eax, 8
xor eax, dword [r10 + rdx*4]
cmp r8, r9
jne 0x140005ee0
not eax
ret