joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070ccc
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, 0x208
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rsp + 0x250]
xor edx, edx
call sub.msvcrt.dll_memset
cmp qword [0x1400a3ec0], 0xffffffffffffffff
je 0x140070d31
lock inc dword [0x1400a77ec]
mov eax, 1
jmp 0x140070dc1
mov ebx, 0x104
lea rdx, [rsp + 0x40]
mov r8d, ebx
lea rcx, str.FXSSVCDebugLogFile.txt
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x140070dbf
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor esi, esi
test rax, rax
jne 0x140070de7
lea rdx, [rsp + 0x250]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
je 0x140070dbf
lea rax, [rsp + 0x40]
mov edx, ebx
lea rdi, [0x1400a7800]
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r9, [rsp + 0x250]
lea r8, str._s_s
call fcn.140004520
test eax, eax
jns 0x140070e2b
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdi, [0x1400a7800]
lea rcx, [rsp + 0x40]
mov rdx, rdi
sub rcx, rdi
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x140070e1b
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140070e1b
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x140070df9
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], si
je 0x140070dbf
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov r8d, 3
mov dword [rsp + 0x20], 4
mov rcx, rdi
call fcn.14006c054
mov qword [0x1400a3ec0], rax
cmp rax, 0xffffffffffffffff
je 0x140070dbf
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140070e9e
mov rcx, qword [0x1400a3ec0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [0x1400a3ec0], 0xffffffffffffffff
jmp 0x140070dbf
mov eax, 1
xchg dword [0x1400a77ec], eax
jmp 0x140070d27
Function at 0x140070eb4
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 [0x1400a3ac8]
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 [0x1400a77f0], edi
jne 0x140070fba
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 0x140070f41
mov eax, edi
jmp 0x140070fa1
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 0x140070f88
cmp dword [rsp + 0x38], 4
je 0x140070f8c
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 [0x1400a3ec8], eax
mov dword [0x1400a77f0], 1
jmp 0x140070fc0
mov eax, dword [0x1400a3ec8]
test eax, eax
jle 0x140071063
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 0x140071063
cdqe
cmp rax, rbx
ja 0x140071063
jne 0x140070ffe
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140071007
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x140071052
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 0x14007107e
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.140001b10
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.140001e68
int3
Function at 0x140071474
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 [str._0_n_]
lea r14, str._0_n_
cmp rcx, r14
je 0x1400714bd
test byte [rcx + 0x1c], 2
je 0x1400714bd
cmp byte [rcx + 0x19], 5
jb 0x1400714bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095ec0]
mov edx, 0x11
call fcn.14000459c
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 0x1400715fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14007151e
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x140071576
test byte [rax + 0x1c], 2
je 0x140071576
cmp byte [rax + 0x19], 2
jb 0x140071576
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x12
jmp 0x14007155c
mov r8d, 0x1f0003
mov edx, ebx
mov ecx, ebx
call fcn.140071b04
mov rsi, rax
test rax, rax
jne 0x14007157d
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x140071576
test byte [rax + 0x1c], 2
je 0x140071576
cmp byte [rax + 0x19], 2
jb 0x140071576
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea edx, [rsi + 0x13]
mov rcx, qword [str._0_n_]
lea r8, [0x140095ec0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004994
xor eax, eax
jmp 0x1400715fe
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 0x1400715e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x1400715e0
test byte [rcx + 0x1c], 2
je 0x1400715e0
cmp byte [rcx + 0x19], 2
jb 0x1400715e0
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x14]
mov r9d, eax
lea r8, [0x140095ec0]
call fcn.140004994
mov rcx, rsi
call fcn.140072520
test rbx, rbx
jne 0x1400715fb
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 0x140071738
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 [0x1400a3ac8]
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 [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400717aa
test byte [rcx + 0x1c], 2
je 0x1400717aa
cmp byte [rcx + 0x19], 5
jb 0x1400717aa
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x140095ec0]
call fcn.14000459c
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 0x140071807
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400718b8
test byte [rcx + 0x1c], 2
je 0x1400718b8
cmp byte [rcx + 0x19], 2
jb 0x1400718b8
lea edx, [rsi + 0xb]
jmp 0x1400718a5
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 0x140071856
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400718b8
test byte [rcx + 0x1c], 2
je 0x1400718b8
cmp byte [rcx + 0x19], 2
jb 0x1400718b8
lea edx, [rdi + 0xc]
jmp 0x1400718a5
test r14, r14
je 0x1400718d0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x1400718c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400718b8
test byte [rcx + 0x1c], 2
je 0x1400718b8
cmp byte [rcx + 0x19], 2
jb 0x1400718b8
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095ec0]
mov r9d, ebx
call fcn.140004994
test ebx, ebx
je 0x1400718d7
mov rdx, rdi
mov rcx, rsi
call fcn.14007161c
jmp 0x1400718d7
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.140001b10
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 0x140071908
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 [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, r8d
mov rbx, rcx
mov rcx, qword [str._0_n_]
lea r14, str._0_n_
lea r15, [0x140095ec0]
cmp rcx, r14
je 0x140071967
test byte [rcx + 0x1c], 2
je 0x140071967
cmp byte [rcx + 0x19], 5
jb 0x140071967
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r8, r15
call fcn.14000459c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x1400719c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x1400719b9
test byte [rcx + 0x1c], 2
je 0x1400719b9
cmp byte [rcx + 0x19], 2
jb 0x1400719b9
mov edx, 0x4d
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r15
call fcn.140004994
mov eax, ebx
jmp 0x140071ad8
cmp dword [rsp + 0x24], 1
je 0x140071ad6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov edi, eax
jmp 0x140071a22
mov r9d, dword [rsp + 0x24]
cmp r9d, 1
je 0x140071ad6
cmp r9d, 3
jne 0x140071aa6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, edi
cmp eax, esi
ja 0x140071a76
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 0x1400719db
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x1400719b9
test byte [rcx + 0x1c], 2
je 0x1400719b9
cmp byte [rcx + 0x19], 2
jb 0x1400719b9
mov edx, 0x4e
jmp 0x1400719aa
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140071a9f
test byte [rcx + 0x1c], 2
je 0x140071a9f
cmp byte [rcx + 0x19], 2
jb 0x140071a9f
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
mov r8, r15
call fcn.14000459c
mov eax, 0x5b4
jmp 0x140071ad8
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140071acf
test byte [rcx + 0x1c], 2
je 0x140071acf
cmp byte [rcx + 0x19], 2
jb 0x140071acf
mov rcx, qword [rcx + 0x10]
mov edx, 0x4f
mov r8, r15
call fcn.140004994
mov eax, 0x426
jmp 0x140071ad8
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001b10
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 0x140079c80
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 [0x1400a3ac8]
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 0x140079ee6
lea r9d, [r14 + 1]
mov word [rdi], r14w
mov r8d, r9d
lea rdx, str.SoftwareMicrosoftFaxSetup
mov rcx, 0xffffffff80000001
call fcn.14006f790
mov rbx, rax
test rax, rax
je 0x140079ee6
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 0x140079d86
cmp esi, 2
jne 0x140079ee6
lea rbx, str.FaxPersonal_Coverpages_
jmp 0x140079ded
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140079ee6
mov rax, r12
lea rcx, [rsp + 0x40]
cmp word [rcx], r14w
je 0x140079dad
add rcx, 2
sub rax, 1
jne 0x140079d9d
lea rbx, [rsp + 0x40]
test rax, rax
je 0x140079ded
mov rcx, r12
sub rcx, rax
add rcx, rcx
neg rax
sbb rax, rax
and rax, rcx
cmp word [rsp + rax + 0x3e], 0x5c
je 0x140079ded
lea r8, [0x1400954b8]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14000c630
test eax, eax
js 0x140079ed7
mov r8d, r12d
lea rdx, [rbp + 0x360]
mov ecx, 5
call fcn.14007a790
test eax, eax
jne 0x140079e24
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.GetSpecialPath_failed_err_ld
call fcn.140070eb4
jmp 0x140079ee6
mov esi, 0x104
lea r8, [rbp + 0x360]
mov edx, esi
mov rcx, rdi
call fcn.1400044ac
test eax, eax
js 0x140079ed7
cmp word [rbx], 0x5c
je 0x140079e5d
lea r8, [0x1400954b8]
mov edx, esi
mov rcx, rdi
call fcn.14000c630
test eax, eax
js 0x140079ed7
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14000c630
test eax, eax
js 0x140079ed7
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 0x140079ed7
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 0x140079ed7
mov rcx, rdi
call fcn.14006b888
mov eax, 1
jmp 0x140079ee8
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.140001b10
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 0x14007a790
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1400a3ac8]
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 [str._0_n_]
lea r12, str._0_n_
cmp rcx, r12
je 0x14007a7fe
test byte [rcx + 0x1c], 2
je 0x14007a7fe
cmp byte [rcx + 0x19], 5
jb 0x14007a7fe
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x140096450]
call fcn.14000459c
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 0x14007a865
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14007a854
test byte [rcx + 0x1c], 2
je 0x14007a854
cmp byte [rcx + 0x19], 2
jb 0x14007a854
mov rcx, qword [rcx + 0x10]
lea r8, [0x140096450]
mov edx, 0xb
mov r9d, eax
call fcn.1400045c8
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14007a8b3
mov rdx, rbp
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.1400044ac
mov edi, eax
test eax, eax
jns 0x14007a8ae
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14007a854
test byte [rcx + 0x1c], 2
je 0x14007a854
cmp byte [rcx + 0x19], 2
jb 0x14007a854
mov rcx, qword [rcx + 0x10]
lea r8, [0x140096450]
movzx r9d, di
mov edx, 0xc
call fcn.1400238ac
jmp 0x14007a854
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001b10
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140082c14
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov ebx, ecx
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x140082c70
test byte [rcx + 0x1c], 2
je 0x140082c70
cmp byte [rcx + 0x19], 5
jb 0x140082c70
mov rcx, qword [rcx + 0x10]
lea r8, [0x140097208]
mov edx, 0x65
call fcn.14000459c
mov r9d, ebx
mov dword [rsp + 0x20], edi
lea r8, str._ld:_ld
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140004520
mov ebx, eax
test eax, eax
jns 0x140082cdd
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x140082cc3
test byte [rcx + 0x1c], 2
je 0x140082cc3
cmp byte [rcx + 0x19], 2
jb 0x140082cc3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140097208]
mov edx, 0x66
mov r9d, eax
call fcn.1400045c8
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x140082da2
movzx ebx, bx
jmp 0x140082da2
mov r9d, 0x10000
lea rdx, str.SoftwareMicrosoftFaxOutbound_RoutingRules
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006f790
mov rdi, rax
test rax, rax
jne 0x140082d43
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x140082da2
test byte [rcx + 0x1c], 2
je 0x140082da2
cmp byte [rcx + 0x19], 2
jb 0x140082da2
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x67]
mov r9d, eax
lea r8, [0x140097208]
call fcn.140004994
jmp 0x140082da2
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 0x140082d93
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x140082d93
test byte [rcx + 0x1c], 2
je 0x140082d93
cmp byte [rcx + 0x19], 2
jb 0x140082d93
mov rcx, qword [rcx + 0x10]
lea r8, [0x140097208]
mov edx, 0x68
mov r9d, eax
call fcn.140004994
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.140001b10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400851d8
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 [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x140085224
test byte [rcx + 0x1c], 2
je 0x140085224
cmp byte [rcx + 0x19], 5
jb 0x140085224
mov rcx, qword [rcx + 0x10]
lea r8, [0x140097208]
mov edx, 0x75
call fcn.14000459c
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 0x140085288
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x140085321
test byte [rcx + 0x1c], 2
je 0x140085321
cmp byte [rcx + 0x19], 2
jb 0x140085321
mov edx, 0x76
mov r9d, eax
jmp 0x140085311
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 0x1400852dc
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x1400852dc
test byte [rcx + 0x1c], 2
je 0x1400852dc
cmp byte [rcx + 0x19], 2
jb 0x1400852dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140097208]
mov edx, 0x77
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140004880
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test eax, eax
je 0x140085321
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x140085321
test byte [rcx + 0x1c], 2
je 0x140085321
cmp byte [rcx + 0x19], 2
jb 0x140085321
mov edx, 0x78
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140097208]
call fcn.140004994
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140087684
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 [0x1400a3ac8]
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 0x140087788
cmp dword [rbp + 0x27], edi
je 0x140087788
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 0x140087788
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 0x140087778
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 0x140087768
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.140001b10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400017d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x448
mov r8, rcx
lea r9, [rax + 0x10]
lea rcx, [rsp + 0x40]
mov edx, 0x200
call qword [sym.imp.ntdll.dll__vsnwprintf]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
add rsp, 0x448
ret
Function at 0x140001b80
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.ntdll.dll_RtlNormalizeProcessParams]
mov rbx, qword [rax + 0x78]
test rbx, rbx
je 0x140001bba
cmp word [rbx], 0
jne 0x140001bbe
mov rbx, qword [rax + 0x68]
lea rax, [rsp + 0x48]
xor r8d, r8d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call fcn.1400019d0
mov rax, qword gs:[0x30]
mov esi, dword [rsp + 0x40]
mov rcx, qword [rax + 0x60]
mov eax, dword [rsp + 0x48]
lea edx, [rsi*8 + 8]
mov rcx, qword [rcx + 0x30]
lea r8, [rdx + rax*2]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140001c18
mov edx, 0xc0000017
jmp 0x140001c47
lea eax, [rsi + 1]
mov rdx, rdi
lea r8, [rdi + rax*8]
mov rcx, rbx
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400019d0
mov ecx, dword [rsp + 0x40]
mov rdx, rdi
call fcn.140001840
mov edx, eax
mov rcx, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ntdll.dll_NtTerminateProcess]