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

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [0x140026770]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14001e610
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rsp + 0x34], 0
je 0x14001e5e0
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x14001e62b
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14001e635
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14001e638
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14001fce0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14003bfc0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x140026770]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14001fed1
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x14001fda7
cmp dword [rbp + 0xff0], 0
jne 0x14001fee6
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x14001fee6
cmp eax, 0x1000
ja 0x14001ff31
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x14001ff16
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x14001fed9
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x14001fe50
cmp dword [rbp + 0xff0], 0
jne 0x14001fedf
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x14001fdf0
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14001fda7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001fee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.14003dce0
jmp 0x14001ff4c
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.14003dc60
ud2
Function at 0x140023ed0
Capabilities:
Read 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 [0x140041988]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140023f14
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_NtReadFile]
cmp eax, 0x103
jne 0x140023f73
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140023f82
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140023fba
cmp eax, 0x103
je 0x140023fc4
test eax, eax
js 0x140023f9f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140023fba
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.14001bac0
mov rcx, rax
call fcn.1400139b0
mov ecx, 7
int 0x29
ud2
Function at 0x140024030
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 [0x140041988]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140024074
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 0x1400240da
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140024111
test eax, eax
js 0x1400240eb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140024104
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.14001bac0
mov rcx, rax
call fcn.1400139b0
mov ecx, 7
int 0x29
ud2

Function at 0x140025b10
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x85], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x34], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop
Function at 0x140026c20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140026d2f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140026c58
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140026cf2
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140026d11
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026cae
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x140026ccb
jmp 0x140026cc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140026cc6
cmp eax, 0x6d
jne 0x140026ce2
mov byte [rsi + 1], 0
jmp 0x140026cd6
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140026cd8
mov r8d, 0x10
mov rcx, rbx
call fcn.14003cbc0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140026c65
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14003cbc0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140026c65
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14003cab0
ud2
Function at 0x14002b8e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88

Function at 0x14002ca40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14002ca83
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14001a040]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003d760
ud2
Function at 0x14003a940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003a9ba
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 0x14003a9b0
cmp r11, r10
ja 0x14003aa53
cmp r10, rdx
ja 0x14003aa67
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14003a9b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003a990
jmp 0x14003aa27
ja 0x14003a9ba
mov r11, r10
cmp rax, r8
jne 0x14003a962
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003aa2b
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 0x14003aa00
mov r8, r10
sub ecx, r9d
jns 0x14003aa1e
jmp 0x14003aa2d
cmp r10, rdx
je 0x14003aa39
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003aa2d
xor al, 1
cmp r8, rdx
jne 0x14003a9e0
jmp 0x14003aa2d
xor eax, eax
jmp 0x14003aa2d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuecannot_parse_integer_from_empty_stringinvalid_digit_found_in_stringnumber_too_large_to_fit_in_target_typenumber_too_small_to_fit_in_target_typenumber_would_be_zero_for_non_zero_typefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003d810
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003dce0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003dc60
ud2

Function at 0x14003c51c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6a02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c6a9a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c6a7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c6a72
cmp qword [rbp - 0x10], 0
je 0x2fc4c6a72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c6a38
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c6a9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6ba0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6bc8
mov eax, 0
jmp 0x2fc4c6c16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6bf1
mov eax, 0
jmp 0x2fc4c6c16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c6c11
mov eax, 0
jmp 0x2fc4c6c16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c6c1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c6c9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6c91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6c91
mov rax, qword [rbp - 8]
jmp 0x2fc4c6caf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6c64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000608c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov r10d, dword [rcx + 0x24]
test edx, r10d
jne 0x140014fc1
xor eax, eax
jmp 0x140014ffd
lea eax, [r10 - 4]
test eax, 0xfffffffb
je 0x140014ff8
test r8d, r8d
jne 0x140014ff8
cmp r10d, 2
jne 0x140014fde
mov rcx, qword [rcx + 0x248]
mov rdx, qword [rcx + 0x198]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x140014fbd
mov eax, 1
add rsp, 0x28
ret

Function at 0x140023fa4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x140023fed
test byte [rcx + 0x1c], 4
je 0x140023fed
cmp byte [rcx + 0x19], 5
jb 0x140023fed
mov rcx, qword [rcx + 0x10]
lea r8, str._j_
mov edx, 0x2b
call fcn.1400042fc
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006ec14
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140024065
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x14002416c
test byte [rax + 0x1c], 4
je 0x14002416c
cmp byte [rax + 0x19], 2
jb 0x14002416c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [rdi + 0x2c]
mov r9d, eax
lea r8, str._j_
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14002416c
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14007c8c8
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x140024139
test eax, eax
je 0x1400240ef
test rbx, rbx
lea r8, [0x14008b4d8]
mov rcx, rdi
cmovne r8, rbx
call fcn.14007e3e4
test eax, eax
jne 0x140024139
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x1400240ef
test byte [rax + 0x1c], 4
je 0x1400240ef
cmp byte [rax + 0x19], 2
jb 0x1400240ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, str._j_
mov edx, 0x2d
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
lea rdx, str.Password
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140024139
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140024139
test byte [rcx + 0x1c], 4
je 0x140024139
cmp byte [rcx + 0x19], 2
jb 0x140024139
mov rcx, qword [rcx + 0x10]
lea r8, str._j_
mov edx, 0x2e
mov r9d, eax
call fcn.1400046fc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rbx, rbx
je 0x14002416c
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140024151
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.140069d30
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14007b7d4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov ebx, ecx
mov rcx, qword [0x14009b020]
lea rbp, [0x14009b020]
cmp rcx, rbp
je 0x14007b830
test byte [rcx + 0x1c], 2
je 0x14007b830
cmp byte [rcx + 0x19], 5
jb 0x14007b830
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
mov edx, 0x65
call fcn.1400042fc
mov r9d, ebx
mov dword [rsp + 0x20], edi
lea r8, str._ld:_ld
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140004280
mov ebx, eax
test eax, eax
jns 0x14007b89d
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007b883
test byte [rcx + 0x1c], 2
je 0x14007b883
cmp byte [rcx + 0x19], 2
jb 0x14007b883
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
mov edx, 0x66
mov r9d, eax
call fcn.140004328
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x14007b962
movzx ebx, bx
jmp 0x14007b962
mov r9d, 0x10000
lea rdx, str.SoftwareMicrosoftFaxOutbound_RoutingRules
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006ec14
mov rdi, rax
test rax, rax
jne 0x14007b903
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007b962
test byte [rcx + 0x1c], 2
je 0x14007b962
cmp byte [rcx + 0x19], 2
jb 0x14007b962
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x67]
mov r9d, eax
lea r8, [0x14008fb78]
call fcn.1400046fc
jmp 0x14007b962
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007b953
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007b953
test byte [rcx + 0x1c], 2
je 0x14007b953
cmp byte [rcx + 0x19], 2
jb 0x14007b953
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
mov edx, 0x68
mov r9d, eax
call fcn.1400046fc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007dd8c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rdi, rcx
mov rcx, qword [0x14009b020]
lea rbp, [0x14009b020]
cmp rcx, rbp
je 0x14007ddd8
test byte [rcx + 0x1c], 2
je 0x14007ddd8
cmp byte [rcx + 0x19], 5
jb 0x14007ddd8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
mov edx, 0x75
call fcn.1400042fc
lea rax, [rsp + 0x48]
mov r9d, 0x10000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftFaxDevice_Providers
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007de3c
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007ded5
test byte [rcx + 0x1c], 2
je 0x14007ded5
cmp byte [rcx + 0x19], 2
jb 0x14007ded5
mov edx, 0x76
mov r9d, eax
jmp 0x14007dec5
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007de90
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007de90
test byte [rcx + 0x1c], 2
je 0x14007de90
cmp byte [rcx + 0x19], 2
jb 0x14007de90
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
mov edx, 0x77
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400045e8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test eax, eax
je 0x14007ded5
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007ded5
test byte [rcx + 0x1c], 2
je 0x14007ded5
cmp byte [rcx + 0x19], 2
jb 0x14007ded5
mov edx, 0x78
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
call fcn.1400046fc
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret