joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e6a8
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, [0x14006a860]
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 0x14003e6ff
cmp word [rdx], r13w
jne 0x14003e6ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003e704
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003e829
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003e84a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003e73d
mov rdx, r9
mov word [rbx], cx
jmp 0x14003e764
cmp r9, r8
jae 0x14003e774
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 0x14003e71e
jmp 0x14003e829
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 0x14003e81e
cmp dword [rsp + 0x80], esi
je 0x14003e81e
lea r8, [0x14006a860]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003e7f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003e7c6
mov word [rbx], r13w
jmp 0x14003e826
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 0x14003e7d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003e826
cmp word [rsp + 0x70], r13w
jne 0x14003e803
cmp rbx, r14
je 0x14003e7c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003f310
cmp word [rsp + 0x70], r13w
je 0x14003e829
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, [0x14006a860]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003e823
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003e829
Function at 0x1400412ac
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 0x1400412dc
xor eax, eax
jmp 0x14004139f
mov rbp, rbx
cmp word [rax], si
je 0x140041301
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400412e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400412e4
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.14003f8ac
movsxd r14, eax
test eax, eax
jne 0x14004133f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400412d5
mov rcx, r14
call fcn.140038f94
mov rdi, rax
test rax, rax
jne 0x140041358
xor ecx, ecx
call fcn.140038d58
jmp 0x140041334
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.14003f8ac
test eax, eax
jne 0x140041389
mov rcx, rdi
call fcn.140038d58
jmp 0x140041393
xor ecx, ecx
call fcn.140038d58
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 0x140044068
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140038920
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140044109
cmp ebx, dword [rsp + 0x30]
je 0x140044102
test esi, esi
je 0x140044102
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400440dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400440ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400440c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400440ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004410b
mov eax, 1
jmp 0x14004410b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140046fb4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002b060
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004703e
cmp byte [rbp - 0x21], r15b
je 0x140047039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140047074
call fcn.14003b3f4
test eax, eax
jne 0x140047060
cmp byte [rbp - 0x21], r15b
je 0x140047058
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140047074
cmp byte [rbp - 0x21], r15b
je 0x140047071
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003512c
test eax, eax
jne 0x140047114
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002b060
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400470b3
cmp byte [rbp - 0x21], r15b
je 0x1400470e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400470e8
call fcn.14003b3f4
test eax, eax
jne 0x1400470d4
cmp byte [rbp - 0x21], r15b
je 0x1400470cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400470e8
cmp byte [rbp - 0x21], r15b
je 0x1400470e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003512c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140047114
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140047117
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140047125
mov rcx, rdi
call fcn.140038d58
cmp byte [rbp + 0x3f], r15b
je 0x140047134
mov rcx, qword [rbp + 0x27]
call fcn.140038d58
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140048dc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140048de8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140048de8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140049240
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x360
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0x350], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x1400492ba
lea rdx, str.Could_not_get_process_snapshot.
lea rcx, [rsp + 0xa0]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xa0]
call fcn.1400263a8
mov dword [rsp + 0x110], 0x238
lea rax, [rsp + 0x114]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [rsp + 0x24], eax
jmp 0x140049322
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14004943e
lea rdx, [rsp + 0x13c]
lea rcx, [rsp + 0xd0]
call fcn.140002f20
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xf0]
call fcn.140004c90
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x28], rax
jne 0x140049382
jmp 0x1400493bb
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x28]
call fcn.140003430
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call fcn.140003740
nop
lea rcx, [rsp + 0xf0]
call fcn.140003430
nop
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x378]
lea rcx, [rsp + 0xd0]
call fcn.140006390
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14004941b
lea rcx, [rsp + 0xd0]
call fcn.140003430
nop
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x90], rax
jmp 0x14004943e
lea rcx, [rsp + 0xd0]
call fcn.140003430
nop
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x98], rax
jmp 0x140049301
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14004946f
lea rdx, str.Could_not_find_process.
lea rcx, [rsp + 0xb8]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xb8]
call fcn.1400263a8
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x30]
call fcn.140002880
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140024720
add rsp, 0x360
pop rdi
ret
Function at 0x140049a60
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140049ac5
lea rdx, str.Could_not_open_process_token.
lea rcx, [rsp + 0x60]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x60]
call fcn.1400263a8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140049b24
lea rdx, str.Could_not_look_up_privilege_value_for_SeDebugName.
lea rcx, [rsp + 0x78]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x78]
call fcn.1400263a8
cmp dword [rsp + 0x30], 0
jne 0x140049b5a
cmp dword [rsp + 0x34], 0
jne 0x140049b5a
lea rdx, str.Could_not_get_LUID_for_SeDebugName.
lea rcx, [rsp + 0x90]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x90]
call fcn.1400263a8
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0xc0], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + rax + 0xc4], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xcc], 2
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140049c07
lea rdx, str.Could_not_adjust_token_privileges.
lea rcx, [rsp + 0xa8]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xa8]
call fcn.1400263a8
nop
lea rcx, [rsp + 0x40]
call fcn.140002880
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140024720
add rsp, 0xe0
pop rdi
ret
Function at 0x140049c30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov r8d, dword [rsp + 0x178]
xor edx, edx
mov ecx, 0x41a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140049ca3
lea rdx, str.Could_not_get_handle_to_process.
lea rcx, [rsp + 0xb0]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xb0]
call fcn.1400263a8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x170]
call fcn.14004a2d0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140049d02
lea rdx, str.Could_not_find_module_in_remote_process.
lea rcx, [rsp + 0xc8]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xc8]
call fcn.1400263a8
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140049d44
lea rdx, str.Could_not_get_handle_to_Kernel32.
lea rcx, [rsp + 0xe0]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xe0]
call fcn.1400263a8
lea rdx, [0x14005e980]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140049d8b
lea rdx, str.Could_not_get_pointer_to_FreeLibrary.
lea rcx, [rsp + 0xf8]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0xf8]
call fcn.1400263a8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140049e20
lea rdx, str.Could_not_create_thread_in_remote_process.
lea rcx, [rsp + 0x110]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x110]
call fcn.1400263a8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x140049e8c
lea rdx, str.Could_not_get_thread_exit_code.
lea rcx, [rsp + 0x128]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x128]
call fcn.1400263a8
cmp dword [rsp + 0x50], 0
jne 0x140049ebc
lea rdx, str.Call_to_FreeLibrary_in_remote_process_failed.
lea rcx, [rsp + 0x140]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x140]
call fcn.1400263a8
nop
lea rcx, [rsp + 0x40]
call fcn.140002880
nop
lea rcx, [rsp + 0x48]
call fcn.140002880
add rsp, 0x168
ret
Function at 0x140001e20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400b0020], 0
je 0x140013b26
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
mov rdi, rax
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140013bbc
mov rax, qword [0x1400ae2f8]
lea rcx, [0x1400ae2f8]
cmp rax, rcx
je 0x140013b90
test byte [rax + 0x44], 0x20
je 0x140013b90
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x140093fc0]
mov rcx, qword [rcx + 0x38]
call fcn.140027938
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400939e8]
mov edx, eax
call fcn.140049ab8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x140013c03
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x140013c03
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.1400496b0
or edx, 0xffffffff
call fcn.140044f30
nop
jmp 0x140001e37
Function at 0x140007900
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140016143
cmp dword [rcx], 0x6060
jne 0x140016143
mov rax, qword [0x1400b0018]
cmp qword [rcx + 8], rax
jne 0x1400160ba
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x1400907d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140016139
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x140016139
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, qword [rbx + 0x40]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001610e
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test rdi, rdi
je 0x14001611b
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400affe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x140007944
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140007944
Function at 0x14000a3b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov ebx, ebp
test rcx, rcx
je 0x14000a54b
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000a3f2
inc rax
cmp rax, 0x207
jae 0x14000a54b
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14000a54b
lea rcx, [rsp + 0x40]
call fcn.14000a6e0
lea r9, str.PrintersConnections
mov edx, 0x21c
sub r9, rdi
mov rcx, rdi
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x14000a45f
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14000a45f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000a43c
test rdx, rdx
lea rax, [rcx - 2]
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
cmovne rax, rcx
mov rcx, rsi
mov word [rax], bp
mov eax, 0x5c
mov word [rdi + 0x28], ax
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x14000a529
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a51a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140092bb0]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140016314
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400affe8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000a580
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140011a20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rbx, qword [0x1400b0018]
jmp 0x14001633d
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000a509
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001631d
jmp 0x14000a509

Function at 0x14000a580
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14000a5ad
test rdx, rdx
je 0x14000a5ad
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140016348
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000ad74
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x14000c060
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x14000c0fa
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400afd38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x1400260a6
or edx, 0xffffffff
mov rcx, rbx
call fcn.14000c120
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x14000c113
lea rcx, [0x1400afd38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x1400260b4
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x1400260c6
mov r8, qword [rbx + 0x48]
test r8, r8
jne 0x14000c0fc
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14000c0dd
call fcn.140006e94
jmp 0x14000c0a6
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x14000c088
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000c0c7
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400260ec
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400affe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
jmp 0x14000c0d4