joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012420
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push r15
mov eax, 0x11d78
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c080
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call sub.msvcrt.dll_srand
mov ecx, 0x7d0
call sub.msvcrt.dll_malloc
mov rcx, rax
mov r12, rax
call qword [sym.imp.msvcrt.dll__msize]
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
cmp eax, esi
jle 0x140012482
add eax, 0x64
mov rcx, r12
movsxd rdx, eax
call sub.msvcrt.dll_realloc
mov r12, rax
call sub.msvcrt.dll_rand
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x140012533
mov eax, ebp
mov edi, 0x65
xor ebp, ebp
cdq
lea r13, str._sBocchi_find_you_i.jpg
lea r14, [rsp + 0x3e]
idiv edi
lea r15, [rsp + 0x11d70]
mov dword [rsp + 0x24], edx
cmp ebp, dword [rsp + 0x24]
jge 0x140012533
mov r9d, ebp
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.1400125d0
lea rdi, [rsp + 0x3e]
lea rsi, [0x1400890fd]
mov ecx, 0x11d32
rep movsb byte [rdi], byte [rsi]
lea rdx, [0x1400890fa]
mov rcx, r12
mov rsi, r14
call sub.msvcrt.dll_fopen
mov r9, rax
test rax, rax
je 0x14001252f
mov rcx, rsi
mov r8d, 1
mov edx, 1
inc rsi
mov qword [rsp + 0x28], r9
call sub.msvcrt.dll_fwrite
cmp rsi, r15
mov r9, qword [rsp + 0x28]
jne 0x140012502
mov rcx, r9
call sub.msvcrt.dll_fclose
inc ebp
jmp 0x1400124be
add rsp, 0x11d78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
sbb byte [rdi - 0x6c], cl
jmp [rax]
invalid
cld
invalid
fcomp st(0)
fdivr st(7)
invalid
rcl ebx, cl
sar edi, cl
sti
sti
sti
push rsi
div dh
invalid
invalid
invalid
Function at 0x140001490
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, r9
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rcx, rcx
je 0x14000155c
test rdx, rdx
je 0x14000155c
test r8d, r8d
je 0x14000155c
mov rcx, rdx
call fcn.1400010c0
mov r15d, eax
test eax, eax
je 0x14000155c
mov r12d, r14d
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, r14d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x14000155c
mov qword [rsp + 0x20], rbx
mov r9d, r12d
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000155c
lea r9, [r14 + r15]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
xor edx, edx
mov r8d, 0x100000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x48], rax
jmp 0x140001565
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140001d30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, qword [rsp + 0xa0]
lea r12, [rdx + rdx]
xor esi, esi
mov r13, r9
mov rbp, r8
mov r15d, esi
mov r14d, esi
cmp qword [rbx + 8], rsi
jbe 0x140001f23
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, 0x43a
mov r8d, dword [rax + r14*4]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001de6
mov rax, qword [rbx]
lea rcx, str.____Failed_to_open_handle_to_process_with_id__lu:_n_...__n
mov edx, dword [rax + r14*4]
call fcn.1400015a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140001f0e
mov qword [rsp + 0x30], rsi
mov r9d, 0x400
mov dword [rsp + 0x28], esi
mov r8d, eax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
jmp 0x140001f0e
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, r12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140001e25
mov rax, qword [rbx]
lea rcx, str.____Failed_to_allocate_memory_in_process_with_id__lu:_n_...__n
mov edx, dword [rax + r14*4]
call fcn.1400015a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001db5
mov r8, qword [rsp + 0x80]
mov r9, r12
mov rdx, rsi
mov qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001e69
mov rax, qword [rbx]
lea rcx, str.____Failed_to_write_jar_path_to_memory_memory_of_process_with_id__lu:_n_...__n
mov edx, dword [rax + r14*4]
call fcn.1400015a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x140001db5
mov r9, rsi
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call fcn.140001490
mov rbp, rax
test rax, rax
jne 0x140001edc
mov r9d, 0x8000
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rbx]
lea rcx, str.____Failed_to_inject_JAR_injector_into_process_with_id__lu:_n_...__n
mov edx, dword [rax + r14*4]
call fcn.1400015a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
je 0x140001efd
mov qword [rsp + 0x30], rsi
mov r9d, 0x400
mov dword [rsp + 0x28], esi
mov r8d, eax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
jmp 0x140001efd
mov rax, qword [rbx]
lea rcx, str.___Successfully_injected_into_process_with_id__lu_...__n
inc r15
mov edx, dword [rax + r14*4]
call fcn.1400015a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x90]
inc r14
cmp r14, qword [rbx + 8]
jb 0x140001d80
mov rdi, qword [rsp + 0x88]
mov rax, r15
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007544
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400075b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400075b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400075b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400075b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400075b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400075b3
cmp dword [rcx + 0xf8], 0
je 0x1400075b3
mov ecx, ebx
call fcn.140007664
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007440
nop
cmp dword [rbp + 0x20], 0
je 0x140007601
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000760c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007544

Function at 0x140007748
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400075b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400075b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400075b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400075b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400075b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400075b3
cmp dword [rcx + 0xf8], 0
je 0x1400075b3
mov ecx, ebx
call fcn.140007664
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007440
nop
cmp dword [rbp + 0x20], 0
je 0x140007601
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000760c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007544
Function at 0x14000c424
Capabilities:
Get file size

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

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000de10
xor eax, eax
jmp 0x14000ded3
mov rbp, rbx
cmp word [rax], si
je 0x14000de35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000de1c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000de18
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000a9c8
movsxd r14, eax
test eax, eax
jne 0x14000de73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000de09
mov rcx, r14
call fcn.140007ffc
mov rdi, rax
test rax, rax
jne 0x14000de8c
xor ecx, ecx
call fcn.140007fc0
jmp 0x14000de68
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000a9c8
test eax, eax
jne 0x14000debd
mov rcx, rdi
call fcn.140007fc0
jmp 0x14000dec7
xor ecx, ecx
call fcn.140007fc0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400108b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400255b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140010907
cmp word [rdx], r13w
jne 0x140010907
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001090c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140010a31
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140010a52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140010945
mov rdx, r9
mov word [rbx], cx
jmp 0x14001096c
cmp r9, r8
jae 0x14001097c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140010926
jmp 0x140010a31
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140010a26
cmp dword [rsp + 0x80], esi
je 0x140010a26
lea r8, [0x1400255b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400109fe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400109ce
mov word [rbx], r13w
jmp 0x140010a2e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400109db
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140010a2e
cmp word [rsp + 0x70], r13w
jne 0x140010a0b
cmp rbx, r14
je 0x1400109c8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400105e8
cmp word [rsp + 0x70], r13w
je 0x140010a31
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400255b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140010a2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140010a31
Function at 0x140013b88
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.1400105e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400105e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140013cd8
cmp rax, 0xffffffffffffffff
je 0x140013cd8
xor edi, edi
test rbp, rbp
jle 0x140013c83
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140008114
mov rbx, rax
test rax, rax
jne 0x140013c10
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140013c79
mov edx, 0x8000
mov ecx, r14d
call fcn.1400077c4
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.140009fe8
cmp eax, 0xffffffff
je 0x140013c59
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140013c20
mov edx, r15d
mov ecx, r14d
call fcn.1400077c4
jmp 0x140013c79
cmp byte [rsi + 0x38], dil
je 0x140013c70
cmp dword [rsi + 0x34], 5
jne 0x140013c70
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140013c79
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140007fc0
jmp 0x140013cec
jns 0x140013cec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400105e8
cmp rax, 0xffffffffffffffff
jne 0x140013ca4
cmp byte [rsi + 0x30], dil
je 0x140013cec
mov edi, dword [rsi + 0x2c]
jmp 0x140013cec
mov ecx, r14d
call fcn.14000e400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140013cec
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 0x140013cec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140013ce5
mov eax, dword [rsi + 0x2c]
jmp 0x140013cea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400105e8
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 0x14000adc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ed98]
test rcx, rcx
je 0x14000adfb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000adee
mov rcx, qword [0x14002ed98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ed98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002eda8], 0
je 0x14000aeee
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400288e8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400315d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000aecf
test al, 0x10
je 0x14000aecf
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000ae75
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140006120
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x1400061e1
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000619c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000619c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000619c
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000626d
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000a020
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000bd90
mov rcx, rsi
call fcn.14000a834
cmp rax, 0x104
ja 0x1400061e1
lea rdi, [rsp + 0x20]
mov r8d, 0x105
mov rcx, rdi
mov rdx, rsi
call fcn.14000a784
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1400061fc
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140018730
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rdx, str.updater.ini
lea rcx, [rsp + 0x20]
call fcn.140025c40
test eax, eax
je 0x1400061e1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400061e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400061e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400061e1
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400062ae
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000a020
jmp 0x1400061e1
lea rcx, [0x140038330]
call fcn.14000aa30
cmp dword [0x140038330], 0xffffffff
jne 0x14000618d
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000abc8
lea rcx, [0x140038330]
call fcn.14000aa98
jmp 0x14000618d
lea rcx, [0x140038330]
call fcn.14000aa30
cmp dword [0x140038330], 0xffffffff
jne 0x140006257
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000abc8
lea rcx, [0x140038330]
call fcn.14000aa98
jmp 0x140006257
Function at 0x14000a460
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140027010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000a4b6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000a834
cmp rax, 0x105
jb 0x14000a4cd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018730
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000a784
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140025c40
test eax, eax
je 0x14000a4b6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a51a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a4b6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140025c40
test eax, eax
je 0x14000a4b6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a4b6
mov esi, 1
jmp 0x14000a4b6

Function at 0x14000a620
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x468
mov esi, edx
mov rbx, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea r14, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000bd90
mov rcx, r14
call fcn.14000a460
test eax, eax
je 0x14000a696
xor edi, edi
lea r14, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000bd90
lea rdx, str..status
mov rcx, rbx
mov r8, r14
call fcn.14000a560
test eax, eax
jne 0x14000a6b5
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018730
mov eax, edi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.140025c40
test eax, eax
je 0x14000a696
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000a696
mov rbx, rax
lea rdi, [rsp + 0x250]
mov rcx, rdi
mov r8d, esi
call fcn.140025bd0
mov rcx, rdi
call fcn.140013e40
mov rsi, rax
mov qword [rsp + 0x20], 0
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne al
cmp dword [r14], esi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000a696