joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013534
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x14001357c
mov rcx, qword [rsp + 0x40]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e710
add rsp, 0x60
pop rbx
ret

Function at 0x140013628
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov ecx, 0x210
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdi, r9
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x60]
mov rbx, r8
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x140025378]
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x1400136f4
cmp dword [rsp + 0x64], 2
jne 0x14001373f
movzx eax, word [rsp + 0x30]
lea r8, [rsp + 0x38]
sub ax, 0xc
mov dword [rsp + 0x38], 0x2040000
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x4a], ax
xor r9d, r9d
lea rax, [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
nop dword [rax + rax]
test eax, eax
js 0x1400136f4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400136fc
test rbx, rbx
je 0x14001371c
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
neg al
sbb eax, eax
not eax
and eax, 0xc0000001
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14000e710
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0x64], 1
jne 0x1400136f4
lea rcx, [rsp + 0x6c]
jmp 0x1400136fc

Function at 0x140013fa0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov qword [rax + 0x10], rdx
lea rdx, [rax - 0x18]
mov dword [rax - 0x28], 0x14
mov r9d, 8
lea r8, [rax + 0x10]
mov rdi, rcx
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140014007
mov r9d, 8
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], 0x13
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001439c
Capabilities:
Delete registry value
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1f8]
sub rsp, 0x2f0
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
and qword [rsp + 0x60], 0
lea rax, [0x140025210]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x4021
xor ebx, ebx
mov qword [rbp - 0x58], rax
and qword [rbp - 0x60], rbx
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x68]
mov dword [rbp - 0x68], 0x30
mov edx, 0x100001
mov dword [rbp - 0x50], 0x40
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x14001453e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0x8a8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001453e
lea rdx, str.SMSS_PFRO.tmp
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov byte [rsp + 0x50], 1
jmp 0x1400144ec
test eax, eax
js 0x14001453e
lea rsi, [rbx + 0x8a8]
mov rdi, rbx
cmp rbx, rsi
jae 0x1400144e7
mov r9, qword [0x140025218]
lea rax, [rdi + 0xc]
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x20a
lea rcx, [rbp - 0x30]
call fcn.140001d60
test eax, eax
js 0x1400144d8
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.140014a34
cmp dword [rdi], 0
je 0x1400144e7
mov eax, dword [rdi]
add rdi, rax
cmp rdi, rsi
jb 0x140014492
mov byte [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov dword [rsp + 0x38], 0xc
xor r8d, r8d
mov dword [rsp + 0x30], 0x8a8
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
nop dword [rax + rax]
cmp eax, 0xc000000f
jne 0x14001447b
lea r8, str.ClearTempFiles
mov ecx, 2
lea rdx, str.Session_Manager
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
test rbx, rbx
je 0x140014580
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140014596
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14000e710
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140014858
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x18], 0
lea r9, [rbp - 0x50]
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
lea rcx, [rbp + 0x18]
mov dword [rsp + 0x28], 0x4040
mov edx, 0x10100
mov dword [rbp - 0x30], 0x30
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], 0x40
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400148ff
mov rcx, qword [rbp + 0x18]
mov edx, 0x80
call fcn.140015528
mov ebx, eax
test eax, eax
js 0x1400148ff
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x10]
mov r9d, 1
mov byte [rbp + 0x10], 1
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140014914
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rbp
ret

Function at 0x140014a34
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x21], 0
lea r8, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rbp - 9], rcx
xor eax, eax
mov dword [rbp - 0x19], 0x30
and qword [rbp - 0x11], rax
lea rcx, [rbp - 0x21]
mov edx, 0x110100
mov qword [rbp + 0x47], rax
movups xmmword [rbp + 0x27], xmm0
xor edi, edi
mov dword [rbp - 1], 0x40
movups xmmword [rbp + 0x37], xmm0
movdqu xmmword [rbp + 7], xmm0
call fcn.140015060
mov ebx, eax
test eax, eax
js 0x140014b40
mov rcx, qword [rbp - 0x21]
lea r9d, [rdi + 1]
lea r8, [rbp - 0x29]
mov byte [rbp - 0x29], 1
lea rdx, [rbp + 0x17]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140014b40
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtQueryAttributesFile]
nop dword [rax + rax]
test eax, eax
js 0x140014b40
mov rax, qword [rbp + 0x47]
test al, 1
je 0x140014b44
mov rcx, qword [rbp - 0x21]
and eax, 0xfffffffe
mov edx, eax
call fcn.140015528
mov ebx, eax
test eax, eax
js 0x140014b40
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x29]
mov edi, 1
mov dword [rsp + 0x20], 0xd
mov r9d, edi
mov byte [rbp - 0x29], dil
lea rdx, [rbp + 0x17]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140014b40
xor edi, edi
xor ebx, ebx
mov rax, qword [rbp + 0x47]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140014b68
test edi, edi
je 0x140014b5c
mov edx, eax
call fcn.140015528
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000e710
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140014e20
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r12d, r12d
mov r15d, r8d
cmp qword [0x140024db0], r12
mov rsi, rdx
mov r14, rcx
mov ebx, 0x30
jne 0x140014f5e
mov dword [rsp + 0x50], r12d
lea rax, [0x140017ca0]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x78]
mov dword [rsp + 0x40], 0x64
lea r8, [rbp - 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [0x140024db0]
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
mov dword [rsp + 0x28], r12d
mov edx, 0x120002
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x50], 0x40
mov qword [rbp - 0x58], rax
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
test eax, eax
jns 0x140014ee5
mov qword [0x140024db0], r12
xor al, al
jmp 0x140015037
mov rcx, qword [0x140024db0]
lea r8, [rbp - 0x28]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov rcx, qword [0x140024db0]
test eax, eax
jns 0x140014f27
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x140014ed7
mov rax, qword [rbp - 0x20]
lea r8, [rbp - 0x80]
mov r9d, 8
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x140014f5e
mov rcx, qword [0x140024db0]
jmp 0x140014f19
lea rcx, [rbp - 0x38]
call fcn.140014b94
cmp word [rsi], r12w
lea r11, [0x140017c90]
movsx eax, word [rbp - 0x2e]
lea rdi, [rbp - 0x10]
movsx ecx, word [rbp - 0x30]
cmovne r11, rsi
movsx edx, word [rbp - 0x32]
mov esi, 0x200
movsx r8d, word [rbp - 0x38]
movsx r9d, word [rbp - 0x34]
movsx r10d, word [rbp - 0x36]
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x58], eax
lea rax, str._d__d__d__d:_d:_d___PFRO_Error:__wZ___wZ__0x_x_r_n
mov dword [rsp + 0x50], ecx
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edx
mov edx, esi
mov dword [rsp + 0x40], r8d
xor r8d, r8d
mov dword [rsp + 0x38], r9d
lea r9, [rbp - 0x80]
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call fcn.140014080
test eax, eax
jns 0x140014ff4
lea rdi, str.Error_logging_PFRO_error
jmp 0x140014ffb
mov rbx, rsi
sub rbx, qword [rbp - 0x80]
mov rcx, qword [0x140024db0]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
test eax, eax
setns al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14000e710
add rsp, 0x300
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140015060
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x28], 0x204020
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 3
mov rbx, rcx
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x1400150e9
mov rcx, qword [rbx]
lea r8, [rsp + 0x68]
mov r9d, 8
mov dword [rsp + 0x20], 0x23
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x1400150e7
test dword [rsp + 0x68], 0x400
je 0x1400150e7
test dword [rsp + 0x6c], 0x20000000
jne 0x1400150e7
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
and qword [rbx], 0
mov eax, 0xc00000d8
jmp 0x1400150e9
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400150f8
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rsp + 0x34], 0
lea r9, [rsp + 0x20]
mov r8d, 0x14
mov dword [rsp + 0x28], 0x41435049
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x30], 0x54504257
lea ecx, [r8 + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
cmp eax, 0xc0000023
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000e710
add rsp, 0x58
ret

Function at 0x14001516c
Capabilities:
Access peb ldr_data
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
movzx ebx, word [rcx]
mov rsi, rcx
mov rcx, qword gs:[0x60]
add ebx, 0x1a
mov r14d, r8d
mov ebp, ebx
mov r15, rdx
mov r8d, ebx
mov edx, dword [0x140025a48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400151c6
mov ebx, 0xc0000017
jmp 0x140015238
mov r8, rbp
xor edx, edx
mov rcx, rdi
call sub.ntdll.dll_memset
test r14d, r14d
lea rcx, [rdi + 0x14]
setne al
and qword [rdi + 8], 0
mov byte [rdi], al
movzx eax, word [rsi]
mov dword [rdi + 0x10], eax
mov r8d, eax
mov rdx, qword [rsi + 8]
call sub.ntdll.dll_memcpy
mov r9d, ebx
mov dword [rsp + 0x20], 0xa
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140015528
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x60], edx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea r9d, [rax + 0x28]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
cmovns eax, ecx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000e710
add rsp, 0x78
ret

Function at 0x140015ab8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov ebx, r8d
lea r9, [rsp + 0x68]
mov r8b, 1
mov edi, edx
mov rsi, rcx
mov dl, r8b
mov ecx, 0x13
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
cmp eax, 0xc000007c
jne 0x140015b0c
xor r8d, r8d
lea r9, [rsp + 0x68]
mov dl, 1
lea ecx, [r8 + 0x13]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, edi
mov edx, ebx
mov dword [rsp + 0x20], 6
mov ecx, 0xc000021a
call qword [sym.imp.ntdll.dll_NtRaiseHardError]
nop dword [rax + rax]
mov edx, eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140015b60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x60]
mov rbx, rcx
cmp byte [rax + 2], 1
jne 0x140015b9d
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000e710
add rsp, 0x60
pop rbx
ret
lea rdx, str.Unhandled_Exception_in_Session_Manager
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov edx, 1
movsxd rax, dword [rcx]
mov qword [rsp + 0x38], rax
lea r8d, [rdx + 3]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
call fcn.140015ab8
int3
Function at 0x140001230
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rsi, rcx
mov dword [rsp + 0x28], 0x100
lea rcx, [rsp + 0x30]
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
test eax, eax
je 0x14000137c
mov qword [rsi + 0x18], rdi
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x1400012a0
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x14000145e
mov qword [rsi + 0x18], 0xf
cmp rbx, 0xf
ja 0x1400012e7
mov r8, rbx
mov qword [rsi + 0x10], rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], dil
jmp 0x140001432
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x140001303
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14000132c
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x14000134b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001464
mov rcx, rax
call fcn.1400034b0
test rax, rax
je 0x1400013f4
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001358
test rcx, rcx
je 0x140001358
call fcn.1400034b0
mov rdi, rax
mov r8, rbx
mov qword [rsi], rdi
lea rdx, [rsp + 0x30]
mov qword [rsi + 0x10], rbx
mov rcx, rdi
mov qword [rsi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
jmp 0x140001432
mov qword [rsi + 0x18], 0xf
movabs rbp, 0x7fffffffffffffff
mov rdx, qword [rsi + 0x18]
mov rax, rbp
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
jbe 0x1400013cc
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400034b0
test rax, rax
je 0x1400013f4
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001408
lea rax, [rcx + rdx]
mov ebp, 0x1f
cmp rax, rbp
cmova rbp, rax
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x1400013fb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001464
jmp 0x1400013b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001408
call fcn.1400034b0
mov rdi, rax
mov qword [rsi], rdi
mov qword [rsi + 0x10], 0x18
mov qword [rsi + 0x18], rbp
movups xmm0, xmmword [str.Error_getting_user_name.]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x1400053e0]
movsd qword [rdi + 0x10], xmm0
mov byte [rdi + 0x18], 0
mov rax, rsi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140003490
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140001210
int3
call fcn.140001170
int3
Function at 0x140001470
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xf
mov ecx, 0x50
call fcn.1400034b0
mov rcx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x47
mov qword [rsp + 0x38], 0x4f
movaps xmm0, xmmword [str.rmdir__s__q___LOCALAPPDATA_GoogleChromeUser_DataDefaultExtensions_]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140005400]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x140005410]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x140005420]
movups xmmword [rax + 0x30], xmm1
mov eax, dword [0x140005430]
mov dword [rcx + 0x40], eax
movzx eax, word [0x140005434]
mov word [rcx + 0x44], ax
movzx eax, byte [0x140005436]
mov byte [rcx + 0x46], al
mov byte [rcx + 0x47], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140001520
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003270
mov r8d, 1
lea rdx, [0x140005438]
lea rcx, [rsp + 0x20]
call fcn.140003270
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400015a6
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400034ec
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003490
add rsp, 0x50
pop rbx
ret
Function at 0x140003e08
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, qword [rcx]
test rbx, rbx
je 0x18000282e
cmp qword [rbx], 0
je 0x180002821
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002827
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002827
mov rdx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x180002837
cmp dword [rbx + 8], 0
jne 0x18000282e
mov eax, 1
jmp 0x180002837
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800029e8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180132010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.180002900
jmp 0x180002a5a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800029e8
mov ebx, eax
test eax, eax
jne 0x180002ac3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180002a4b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180002ab1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.1800027b8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180002ad3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800a5000
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret