joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ee0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
or rbx, 0xffffffffffffffff
mov rdi, rcx
mov rdx, rbx
nop dword [rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140001f00
inc rdx
mov eax, 2
mul rdx
cmovo rax, rbx
mov rcx, rax
call fcn.140005d94
mov rsi, rax
cmp word [rdi + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140001f24
lea rdx, [rbx + 1]
mov r8, rdi
mov rcx, rsi
call fcn.140030bb0
mov edi, 0x5c
mov rcx, rsi
mov edx, edi
call fcn.14002a0b8
mov rbx, rax
test rax, rax
je 0x140001f89
mov qword [rsp + 0x30], rbp
xor ebp, ebp
nop dword [rax]
xor edx, edx
mov word [rbx], bp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, edi
mov word [rbx], di
lea rcx, [rbx + 2]
call fcn.14002a0b8
mov rbx, rax
test rax, rax
jne 0x140001f60
mov rbp, qword [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rsi
mov ebx, eax
call fcn.140005d8c
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001fb0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x720
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov rdi, rcx
mov r8, rcx
lea rcx, [rsp + 0x4c0]
mov edx, 0x124
call fcn.140030bb0
lea r8, [0x14004bd9c]
mov edx, 0x124
lea rcx, [rsp + 0x4c0]
call fcn.140030b30
mov r8, rdi
lea rcx, [rsp + 0x270]
mov edx, 0x124
call fcn.140030bb0
lea r8, [0x14004bc5c]
mov edx, 0x124
lea rcx, [rsp + 0x270]
call fcn.140030b30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400021ab
lea r8, [rsp + 0x270]
lea rcx, [rsp + 0x4c0]
mov edx, 0x124
call fcn.140030bb0
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140002160
movzx ecx, word [rsp + 0x4c]
cmp cx, word [0x14004bda4]
movzx eax, word [rsp + 0x4e]
jne 0x1400020a2
cmp ax, word [0x14004bda6]
je 0x140002070
cmp cx, word [0x14004bda8]
jne 0x1400020c2
cmp ax, word [0x14004bdaa]
jne 0x1400020c2
movzx eax, word [rsp + 0x50]
cmp ax, word [0x14004bdac]
je 0x140002070
lea r8, [rsp + 0x4c]
mov edx, 0x124
lea rcx, [rsp + 0x270]
call fcn.140030b30
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x140002119
lea rcx, [rsp + 0x270]
call fcn.140001fb0
test eax, eax
je 0x1400021a2
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea r8, [rsp + 0x4c0]
lea rcx, [rsp + 0x270]
jmp 0x14000205e
test al, 1
je 0x140002130
mov edx, 0x80
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000214b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [rsp + 0x4c0]
lea rcx, [rsp + 0x270]
jmp 0x14000205e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140002070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140025540
mov rbx, qword [rsp + 0x738]
add rsp, 0x720
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x140002181
Function at 0x140002210
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x6a0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x6f0], rbx
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov qword [rbp - 0x78], rdx
mov rbx, rcx
lea rcx, [rbp - 0x50]
call fcn.140001290
nop
mov edx, 0x104
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rbp - 0x68]
movzx ecx, word [rbp + 0x360]
call fcn.140028750
cmp dword [rbp - 0x64], 1
jne 0x140002290
lea rcx, [rbp + 0x60]
call fcn.140028200
jmp 0x1400022fa
mov dword [rbp - 0x80], 0x200
lea r9, [0x14004bc60]
lea r8, str.SYSTEMCurrentControlSetServices_s
mov edx, 0x80
lea rcx, [rbp + 0x260]
call fcn.1400026e0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x7c]
lea r8, str.GUID
lea rdx, [rbp + 0x260]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1400022fa
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400023ea
mov r8, rbx
mov edx, 0x100
lea rcx, [rbp + 0x60]
call fcn.140030b30
lea rcx, [rbp + 0x60]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140002313
lea r8d, [rax + rax]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.140001db0
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140001330
movzx eax, byte [rbp + 0x5f]
movzx ecx, byte [rbp + 0x5e]
movzx edx, byte [rbp + 0x5d]
movzx r8d, byte [rbp + 0x5c]
movzx r10d, byte [rbp + 0x5b]
movzx r11d, byte [rbp + 0x5a]
movzx ebx, byte [rbp + 0x59]
movzx edi, byte [rbp + 0x58]
movzx esi, byte [rbp + 0x57]
movzx r14d, byte [rbp + 0x56]
movzx r15d, byte [rbp + 0x55]
movzx r12d, byte [rbp + 0x54]
movzx r13d, byte [rbp + 0x53]
movzx r9d, byte [rbp + 0x50]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x78], r8d
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r13d
movzx eax, byte [rbp + 0x52]
mov dword [rsp + 0x28], eax
movzx eax, byte [rbp + 0x51]
mov dword [rsp + 0x20], eax
lea r8, str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
mov edx, 0x40
mov rcx, qword [rbp - 0x78]
call fcn.1400026e0
mov ebx, 1
lea rcx, [rbp - 0x50]
call fcn.1400012f0
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140025540
mov rbx, qword [rsp + 0x6f0]
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002420
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs rax, 0x5c003a0020
movzx edi, cx
mov qword [rsp + 0x40], rax
mov word [rsp + 0x40], cx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14000254d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000254d
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x88], rbx
xor r9d, r9d
xor ebx, ebx
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14000251f
lea rdx, [0x14004bd58]
lea rcx, [rsp + 0x48]
call fcn.140030cfc
test eax, eax
je 0x14000253c
lea rdx, str.FAT32
lea rcx, [rsp + 0x48]
call fcn.140030cfc
test eax, eax
je 0x14000253c
lea rdx, str.FAT16
lea rcx, [rsp + 0x48]
call fcn.140030cfc
test eax, eax
je 0x14000253c
lea rdx, str.EXFAT
lea rcx, [rsp + 0x48]
call fcn.140030cfc
test eax, eax
je 0x14000253c
lea rdx, str.NTFS
lea rcx, [rsp + 0x48]
call fcn.140030cfc
test eax, eax
je 0x14000253c
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025540
add rsp, 0x70
pop rdi
ret
movzx ecx, di
call fcn.1400025e0
test eax, eax
setne bl
mov eax, ebx
jmp 0x140002521
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025540
add rsp, 0x70
pop rdi
ret

Function at 0x1400025e0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
sub rsp, 0x448
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x430], rax
movabs rax, 0x5c003a0043
lea rdx, [rsp + 0x230]
mov qword [rsp + 0x20], rax
mov r8d, 0x100
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140002642
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140025540
add rsp, 0x448
ret
mov edx, 0x100
mov qword [rsp + 0x440], rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000269a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x230]
call fcn.140030cfc
mov rcx, rbx
test eax, eax
je 0x1400026bc
mov r8d, 0x100
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x140002663
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor eax, eax
mov rbx, qword [rsp + 0x440]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140025540
add rsp, 0x448
ret
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, 1
jmp 0x14000269c
Function at 0x140002bf0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
xor edi, edi
lea rcx, str.._rootwmi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov dword [rsp + 0x38], 2
xor r8d, r8d
mov qword [rsp + 0x30], rdi
or edx, 0xffffffff
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov rbx, rax
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140002c55
lea rcx, str.CoInitializeSecurity___returned_0x_08X_n
jmp 0x140002d0a
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x140055348]
mov qword [rsp + 0x20], rax
lea rcx, [0x140055418]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140002c89
lea rcx, str.CoCreateInstance___returned_0x_08X_n
jmp 0x140002d0a
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov rdx, rbx
mov rax, qword [rcx]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [rax + 0x18]
test eax, eax
je 0x140002cd1
mov r8, rbx
lea rcx, str.pWMILocator__ConnectServer___returned_0x_08X_trying_to_connect_to__ls_n
mov edx, eax
call fcn.1400031b0
jmp 0x140002d11
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x38], edi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x140002d11
lea rcx, str.CoSetProxyBlanket___returned_0x_08X_n
mov edx, eax
call fcn.1400031b0
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002d2a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140004760
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.140006b4c
mov rcx, rax
test rax, rax
jne 0x1400047b2
mov ecx, 0x80004005
call fcn.140003460
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
lea r8, str.Path
lea rdx, str.SOFTWAREShadow_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x14000482c
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.14002adf8
mov word [rax], di
lea r8, str.user.dat
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140030b30
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x60]
call fcn.140028750
test eax, eax
je 0x14000488d
cmp dword [rsp + 0x54], 1
jne 0x14000488d
mov dword [rsp + 0x38], 0x104
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140028350
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004881
jmp 0x1400048a0
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004896
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140005460
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140025540
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

Function at 0x1400048e0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.14002a810
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
lea r8, str.Path
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREShadow_Defender
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ebx, ebx
test eax, eax
je 0x140004972
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rbx + 0x5c]
lea rcx, [rsp + 0x40]
call fcn.14002adf8
mov word [rax], bx
lea r8, str.user.dat
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140030b30
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.hibernation
lea rcx, str.common
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140025540
add rsp, 0x260
pop rbx
ret
Function at 0x140004c90
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004d13
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140004d13
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x30000
mov ecx, 6
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025540
add rsp, 0x68
ret
Function at 0x140005550
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400055d3
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400055d3
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x30000
mov ecx, 0xd
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025540
add rsp, 0x68
ret
Function at 0x140005610
Capabilities:
Copy file
Query or enumerate registry value
Set file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140068620]
xor rax, rsp
mov qword [rbp + 0x180], rax
call fcn.140006b4c
mov rcx, rax
test rax, rax
jne 0x14000565c
mov ecx, 0x80004005
call fcn.140003460
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.140006b4c
mov rcx, rax
test rax, rax
jne 0x140005683
mov ecx, 0x80004005
call fcn.140003460
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, str.Path
lea rdx, str.SOFTWAREShadow_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1400056f9
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.14002adf8
xor ecx, ecx
mov word [rax], cx
lea r8, str.user.dat
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140030b30
lea rcx, [rsp + 0x70]
or rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005720
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140005460
lea rdx, [rsp + 0x58]
movzx ecx, word [rsp + 0x70]
call fcn.140028750
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x1400057bc
cmp dword [rsp + 0x5c], 1
jne 0x1400057bc
mov dword [rsp + 0x34], 0x104
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140028350
lea rcx, [rsp + 0x70]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005780
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140005460
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400057d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400057f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140025540
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140005820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140005853
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000589a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005895
nop
cmp rbx, rcx
jae 0x14000589a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005880
cmp rbx, rcx
jb 0x14000589e
xor eax, eax
jmp 0x1400058aa
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140005970
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
xor edx, edx
call fcn.14000866c
test eax, eax
jne 0x1400059b2
lea rcx, str.Fatal_error:_Initialization_failed_n
call fcn.1400059e0
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rdx, str..OCP
xor ecx, ecx
call fcn.140032324
call fcn.140028960
call fcn.140003570
call fcn.140027d50
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000e628
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14001c420
mov rdi, rax
test rax, rax
je 0x14000e6a4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14000e69f
cmp dword [rbx], 0x40
jb 0x14000e69f
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000e69f
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14000e6a8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012620
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x70
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov r15d, ecx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x14006a2c0]
test eax, eax
je 0x140012672
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14006a2c0]
test eax, eax
jne 0x14001267b
call fcn.140005b6c
test eax, eax
je 0x140012697
lea rdx, [rsp + 0x60]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x1400126a2
xor eax, eax
jmp 0x140012750
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x140012732
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140012734
xor edi, edi
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14001274d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret