joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007034c
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rax - 0x778]
sub rsp, 0x860
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call sub.msvcrt.dll_memset
xor edi, edi
cmp dword [0x14009f630], edi
jne 0x140070452
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftFaxClient
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400703d9
mov eax, edi
jmp 0x140070439
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DebugLevel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140070420
cmp dword [rsp + 0x38], 4
je 0x140070424
mov dword [rsp + 0x30], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rbp + 0x780]
mov dword [0x14009bd78], eax
mov dword [0x14009f630], 1
jmp 0x140070458
mov eax, dword [0x14009bd78]
test eax, eax
jle 0x1400704fb
mov r8, rbx
lea r9, [rbp + 0x788]
mov ebx, 0x3ff
lea rcx, [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.msvcrt.dll__vsnwprintf]
nop dword [rax + rax]
test eax, eax
js 0x1400704fb
cdqe
cmp rax, rbx
ja 0x1400704fb
jne 0x140070496
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14007049f
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x1400704ea
lea ecx, [r8 + 3]
mov word [rsp + rdx*2 + 0x50], cx
lea eax, [rdx + 1]
lea ecx, [rdx + 2]
mov word [rsp + rax*2 + 0x50], r8w
add rcx, rcx
cmp rcx, 0x800
jae 0x140070516
mov word [rsp + rcx + 0x50], di
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.1400018f0
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.140001c48
int3
Function at 0x14007091c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x140070965
test byte [rcx + 0x1c], 2
je 0x140070965
cmp byte [rcx + 0x19], 5
jb 0x140070965
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ec50]
mov edx, 0x11
call fcn.1400042fc
mov ebx, 0x100000
lea r8, str.GlobalFaxSvcRPCStarted_1ed23866_f90b_4ec5_b77e_36e8709422b6
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenEventW]
nop dword [rax + rax]
test rax, rax
jne 0x140070aa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1400709c6
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x140070a1e
test byte [rax + 0x1c], 2
je 0x140070a1e
cmp byte [rax + 0x19], 2
jb 0x140070a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x12
jmp 0x140070a04
mov r8d, 0x1f0003
mov edx, ebx
mov ecx, ebx
call fcn.140070fac
mov rsi, rax
test rax, rax
jne 0x140070a25
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x140070a1e
test byte [rax + 0x1c], 2
je 0x140070a1e
cmp byte [rax + 0x19], 2
jb 0x140070a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea edx, [rsi + 0x13]
mov rcx, qword [0x14009b020]
lea r8, [0x14008ec50]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
xor eax, eax
jmp 0x140070aa6
xor r8d, r8d
lea r9, str.GlobalFaxSvcRPCStarted_1ed23866_f90b_4ec5_b77e_36e8709422b6
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
xor edi, edi
mov rbx, rax
test rax, rax
jne 0x140070a88
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140070a88
test byte [rcx + 0x1c], 2
je 0x140070a88
cmp byte [rcx + 0x19], 2
jb 0x140070a88
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x14]
mov r9d, eax
lea r8, [0x14008ec50]
call fcn.1400046fc
mov rcx, rsi
call fcn.1400719c8
test rbx, rbx
jne 0x140070aa3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140070be0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13d, dword [rsp + 0xb8]
xor edi, edi
mov r14, qword [rsp + 0xc0]
xor ebx, ebx
mov rbp, r9
mov r15, r8
mov r12, rdx
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x140070c52
test byte [rcx + 0x1c], 2
je 0x140070c52
cmp byte [rcx + 0x19], 5
jb 0x140070c52
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x14008ec50]
call fcn.1400042fc
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140070caf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x140070d60
test byte [rcx + 0x1c], 2
je 0x140070d60
cmp byte [rcx + 0x19], 2
jb 0x140070d60
lea edx, [rsi + 0xb]
jmp 0x140070d4d
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140070cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x140070d60
test byte [rcx + 0x1c], 2
je 0x140070d60
cmp byte [rcx + 0x19], 2
jb 0x140070d60
lea edx, [rdi + 0xc]
jmp 0x140070d4d
test r14, r14
je 0x140070d78
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x140070d71
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x140070d60
test byte [rcx + 0x1c], 2
je 0x140070d60
cmp byte [rcx + 0x19], 2
jb 0x140070d60
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ec50]
mov r9d, ebx
call fcn.1400046fc
test ebx, ebx
je 0x140070d7f
mov rdx, rdi
mov rcx, rsi
call fcn.140070ac4
jmp 0x140070d7f
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
mov qword [r15], rsi
mov qword [rbp], rdi
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400018f0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140070db0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, r8d
mov rbx, rcx
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
lea r15, [0x14008ec50]
cmp rcx, r14
je 0x140070e0f
test byte [rcx + 0x1c], 2
je 0x140070e0f
cmp byte [rcx + 0x19], 5
jb 0x140070e0f
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r8, r15
call fcn.1400042fc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x140070e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140070e61
test byte [rcx + 0x1c], 2
je 0x140070e61
cmp byte [rcx + 0x19], 2
jb 0x140070e61
mov edx, 0x4d
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r15
call fcn.1400046fc
mov eax, ebx
jmp 0x140070f80
cmp dword [rsp + 0x24], 1
je 0x140070f7e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov edi, eax
jmp 0x140070eca
mov r9d, dword [rsp + 0x24]
cmp r9d, 1
je 0x140070f7e
cmp r9d, 3
jne 0x140070f4e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, edi
cmp eax, esi
ja 0x140070f1e
mov eax, dword [rsp + 0x38]
mov ecx, 0x1388
shr eax, 1
cmp eax, ecx
cmovb ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x140070e83
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140070e61
test byte [rcx + 0x1c], 2
je 0x140070e61
cmp byte [rcx + 0x19], 2
jb 0x140070e61
mov edx, 0x4e
jmp 0x140070e52
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140070f47
test byte [rcx + 0x1c], 2
je 0x140070f47
cmp byte [rcx + 0x19], 2
jb 0x140070f47
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
mov r8, r15
call fcn.1400042fc
mov eax, 0x5b4
jmp 0x140070f80
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140070f77
test byte [rcx + 0x1c], 2
je 0x140070f77
cmp byte [rcx + 0x19], 2
jb 0x140070f77
mov rcx, qword [rcx + 0x10]
mov edx, 0x4f
mov r8, r15
call fcn.1400046fc
mov eax, 0x426
jmp 0x140070f80
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14007281c
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x598]
sub rsp, 0x680
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rdi, rcx
mov ebx, 0x20a
mov r8d, ebx
lea rcx, [rbp + 0x360]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rbx - 2]
lea rcx, [rbp + 0x150]
call sub.msvcrt.dll_memset
xor r14d, r14d
mov dword [rsp + 0x30], ebx
test rdi, rdi
je 0x140072a82
lea r9d, [r14 + 1]
mov word [rdi], r14w
mov r8d, r9d
lea rdx, str.SoftwareMicrosoftFaxSetup
mov rcx, 0xffffffff80000001
call fcn.14006ec14
mov rbx, rax
test rax, rax
je 0x140072a82
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CoverPageDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r12d, 0x105
test esi, esi
je 0x140072922
cmp esi, 2
jne 0x140072a82
lea rbx, str.FaxPersonal_Coverpages_
jmp 0x140072989
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140072a82
mov rax, r12
lea rcx, [rsp + 0x40]
cmp word [rcx], r14w
je 0x140072949
add rcx, 2
sub rax, 1
jne 0x140072939
lea rbx, [rsp + 0x40]
test rax, rax
je 0x140072989
mov rcx, r12
sub rcx, rax
add rcx, rcx
neg rax
sbb rax, rax
and rax, rcx
cmp word [rsp + rax + 0x3e], 0x5c
je 0x140072989
lea r8, [0x14008e278]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14000c394
test eax, eax
js 0x140072a73
mov r8d, r12d
lea rdx, [rbp + 0x360]
mov ecx, 5
call fcn.14007332c
test eax, eax
jne 0x1400729c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.GetSpecialPath_failed_err_ld
call fcn.14007034c
jmp 0x140072a82
mov esi, 0x104
lea r8, [rbp + 0x360]
mov edx, esi
mov rcx, rdi
call fcn.14000420c
test eax, eax
js 0x140072a73
cmp word [rbx], 0x5c
je 0x1400729f9
lea r8, [0x14008e278]
mov edx, esi
mov rcx, rdi
call fcn.14000c394
test eax, eax
js 0x140072a73
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14000c394
test eax, eax
js 0x140072a73
lea rax, [rbp + 0x150]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.FaxPersonal_CoverPages
mov edx, 0x8005
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
nop dword [rax + rax]
test eax, eax
js 0x140072a73
mov r8d, 0x93d
lea rdx, str._SystemRoot__system32_fxsresm.dll
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
nop dword [rax + rax]
test eax, eax
js 0x140072a73
mov rcx, rdi
call fcn.14006b284
mov eax, 1
jmp 0x140072a84
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14007332c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebp, r8d
mov rsi, rdx
mov edi, ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
xor ebx, ebx
call sub.msvcrt.dll_memset
mov rcx, qword [0x14009b020]
lea r12, [0x14009b020]
cmp rcx, r12
je 0x14007339a
test byte [rcx + 0x1c], 2
je 0x14007339a
cmp byte [rcx + 0x19], 5
jb 0x14007339a
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x14008ee18]
call fcn.1400042fc
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x140073401
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x1400733f0
test byte [rcx + 0x1c], 2
je 0x1400733f0
cmp byte [rcx + 0x19], 2
jb 0x1400733f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ee18]
mov edx, 0xb
mov r9d, eax
call fcn.140004328
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14007344f
mov rdx, rbp
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.14000420c
mov edi, eax
test eax, eax
jns 0x14007344a
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x1400733f0
test byte [rcx + 0x1c], 2
je 0x1400733f0
cmp byte [rcx + 0x19], 2
jb 0x1400733f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ee18]
movzx r9d, di
mov edx, 0xc
call fcn.140023570
jmp 0x1400733f0
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400018f0
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007b754
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 0x14007b7b0
test byte [rcx + 0x1c], 2
je 0x14007b7b0
cmp byte [rcx + 0x19], 5
jb 0x14007b7b0
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 0x14007b81d
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007b803
test byte [rcx + 0x1c], 2
je 0x14007b803
cmp byte [rcx + 0x19], 2
jb 0x14007b803
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 0x14007b8e2
movzx ebx, bx
jmp 0x14007b8e2
mov r9d, 0x10000
lea rdx, str.SoftwareMicrosoftFaxOutbound_RoutingRules
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006ec14
mov rdi, rax
test rax, rax
jne 0x14007b883
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007b8e2
test byte [rcx + 0x1c], 2
je 0x14007b8e2
cmp byte [rcx + 0x19], 2
jb 0x14007b8e2
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x67]
mov r9d, eax
lea r8, [0x14008fb78]
call fcn.1400046fc
jmp 0x14007b8e2
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 0x14007b8d3
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007b8d3
test byte [rcx + 0x1c], 2
je 0x14007b8d3
cmp byte [rcx + 0x19], 2
jb 0x14007b8d3
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 0x14007dd0c
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 0x14007dd58
test byte [rcx + 0x1c], 2
je 0x14007dd58
cmp byte [rcx + 0x19], 5
jb 0x14007dd58
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 0x14007ddbc
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007de55
test byte [rcx + 0x1c], 2
je 0x14007de55
cmp byte [rcx + 0x19], 2
jb 0x14007de55
mov edx, 0x76
mov r9d, eax
jmp 0x14007de45
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 0x14007de10
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007de10
test byte [rcx + 0x1c], 2
je 0x14007de10
cmp byte [rcx + 0x19], 2
jb 0x14007de10
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 0x14007de55
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14007de55
test byte [rcx + 0x1c], 2
je 0x14007de55
cmp byte [rcx + 0x19], 2
jb 0x14007de55
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
Function at 0x1400801b8
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x1400802bc
cmp dword [rbp + 0x27], edi
je 0x1400802bc
lea ebx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x1400802bc
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x1400802ac
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14008029c
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140d55058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d551df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140d55089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d5506f
add dl, dl
jne 0x140d55096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d550f6
xor eax, eax
add dl, dl
jne 0x140d550a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d551ad
add dl, dl
jne 0x140d550b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d550c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d550d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d550dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d550ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d5507e
mov eax, 1
add dl, dl
jne 0x140d55106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d55113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d550fb
sub eax, ebx
mov ebx, 1
jne 0x140d5514c
mov ecx, 1
add dl, dl
jne 0x140d5512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d5513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d55123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d55168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d55175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d5515d
cmp eax, 0x7d00
jae 0x140d5519b
cmp eax, 0x500
jb 0x140d55196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5507e
cmp eax, 0x7f
ja 0x140d5519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d551d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140d5507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400020a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r11, qword [rdx]
mov esi, r8d
test r11, r11
je 0x140002158
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x140002158
movsxd rax, dword [r11 + 0x3c]
cmp dword [rax + r11], 0x4550
jne 0x140002158
mov eax, dword [rax + r11 + 0x88]
xor r8d, r8d
add rax, r11
mov r9d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r9, r11
mov r10d, dword [rax + 0x24]
add rbp, r11
mov edi, dword [rax + 0x14]
add r10, r11
test edi, edi
je 0x140002158
nop dword [rax]
movzx eax, word [r10]
mov ecx, dword [r9]
add rcx, r11
mov ebx, dword [rbp + rax*4]
mov eax, 0x51
add rbx, r11
movsx edx, byte [rcx]
inc rcx
test edx, edx
je 0x140002144
imul eax, eax, 0x401
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx - 1]
test edx, edx
jne 0x140002130
cmp esi, eax
je 0x14000216f
inc r8d
add r10, 2
add r9, 4
cmp r8d, edi
jb 0x140002110
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, rbx
jmp 0x14000215a