joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800316a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
lea rax, str.System32drivers_vmnet.sys
xor edx, edx
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x1b0]
lea rax, str.System32drivers_vmmouse.sys
mov r8d, 0x208
mov qword [rsp + 0x38], rax
lea rax, str.System32drivers_vmusb.sys
mov qword [rsp + 0x40], rax
lea rax, str.System32drivers_vm3dmp.sys
mov qword [rsp + 0x48], rax
lea rax, str.System32drivers_vmci.sys
mov qword [rsp + 0x50], rax
lea rax, str.System32drivers_vmhgfs.sys
mov qword [rsp + 0x58], rax
lea rax, str.System32drivers_vmmemctl.sys
mov qword [rsp + 0x60], rax
lea rax, str.System32drivers_vmx86.sys
mov qword [rsp + 0x68], rax
lea rax, str.System32drivers_vmrawdsk.sys
mov qword [rsp + 0x70], rax
lea rax, str.System32drivers_vmusbmouse.sys
mov qword [rsp + 0x78], rax
lea rax, str.System32drivers_vmkdb.sys
mov qword [rbp - 0x80], rax
lea rax, str.System32drivers_vmnetuserif.sys
mov qword [rbp - 0x78], rax
lea rax, str.System32drivers_vmnetadapter.sys
mov qword [rbp - 0x70], rax
call fcn.1801530a0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.1801530a0
xor edi, edi
lea rcx, [rbp + 0x1b0]
mov edx, 0x104
mov qword [rsp + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.180033010
test eax, eax
je 0x1800317bb
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, edi
mov rbx, rdi
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
lea rcx, [rbp + 0x3c0]
mov r8d, 0x200
call fcn.1801530a0
lea r9, [rbp - 0x60]
mov edx, 0x100
lea r8, str.Checking_file__s
lea rcx, [rbp + 0x3c0]
call fcn.1800301c0
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180031819
test al, 0x10
je 0x180031824
inc rbx
cmp rbx, 0xd
jl 0x1800317c0
jmp 0x180031829
mov esi, 1
lea r8, [0x1801fb670]
mov dword [rsp + 0x20], edi
mov rdx, r8
mov ecx, edi
nop dword [rax]
cmp dword [rdx], 8
je 0x180031852
inc ecx
add rdx, 0x30
cmp ecx, 0x1e
jb 0x180031840
jmp 0x1800318b1
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r8 + rcx*8 + 0x24], dil
je 0x1800318b1
mov eax, edi
mov rcx, r8
cmp dword [rcx], 8
je 0x18003187a
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x180031868
jmp 0x18003188f
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r8 + rcx*8 + 0x24], dil
je 0x18003188f
mov rdi, qword [r8 + rcx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rdi
cmp dword [rsp + 0x20], 0
je 0x1800318b1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov eax, esi
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.180131f30
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180031c50
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
lea rax, str.System32drivers_balloon.sys
xor edx, edx
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x190]
lea rax, str.System32drivers_netkvm.sys
mov r8d, 0x208
mov qword [rsp + 0x38], rax
lea rax, str.System32driverspvpanic.sys
mov qword [rsp + 0x40], rax
lea rax, str.System32drivers_viofs.sys
mov qword [rsp + 0x48], rax
lea rax, str.System32drivers_viogpudo.sys
mov qword [rsp + 0x50], rax
lea rax, str.System32drivers_vioinput.sys
mov qword [rsp + 0x58], rax
lea rax, str.System32drivers_viorng.sys
mov qword [rsp + 0x60], rax
lea rax, str.System32drivers_vioscsi.sys
mov qword [rsp + 0x68], rax
lea rax, str.System32drivers_vioser.sys
mov qword [rsp + 0x70], rax
lea rax, str.System32drivers_viostor.sys
mov qword [rsp + 0x78], rax
call fcn.1801530a0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1801530a0
xor edi, edi
lea rcx, [rbp + 0x190]
mov edx, 0x104
mov qword [rsp + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.180033010
test eax, eax
je 0x180031d4a
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, edi
mov rbx, rdi
nop
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x200
call fcn.1801530a0
lea r9, [rbp - 0x80]
mov edx, 0x100
lea r8, str.Checking_file__s
lea rcx, [rbp + 0x3a0]
call fcn.1800301c0
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180031da9
test al, 0x10
je 0x180031db4
inc rbx
cmp rbx, 0xa
jl 0x180031d50
jmp 0x180031db9
mov esi, 1
lea r8, [0x1801fb670]
mov dword [rsp + 0x20], edi
mov rdx, r8
mov ecx, edi
nop dword [rax]
cmp dword [rdx], 8
je 0x180031de2
inc ecx
add rdx, 0x30
cmp ecx, 0x1e
jb 0x180031dd0
jmp 0x180031e41
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r8 + rcx*8 + 0x24], dil
je 0x180031e41
mov eax, edi
mov rcx, r8
cmp dword [rcx], 8
je 0x180031e0a
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x180031df8
jmp 0x180031e1f
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r8 + rcx*8 + 0x24], dil
je 0x180031e1f
mov rdi, qword [r8 + rcx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rdi
cmp dword [rsp + 0x20], 0
je 0x180031e41
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov eax, esi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.180131f30
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180032120
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x2d0
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
lea rax, str.CurrentUser
mov dword [rsp + 0x20], 0x101
mov qword [rsp + 0x30], rax
mov ecx, 0x202
lea rax, str.Sandbox
mov qword [rsp + 0x38], rax
lea rax, str.Emily
mov qword [rsp + 0x40], rax
lea rax, str.HAPUBWS
mov qword [rsp + 0x48], rax
lea rax, str.Hong_Lee
mov qword [rsp + 0x50], rax
lea rax, str.IT_ADMIN
mov qword [rsp + 0x58], rax
lea rax, str.Johnson
mov qword [rsp + 0x60], rax
lea rax, str.Miller
mov qword [rsp + 0x68], rax
lea rax, str.milozs
mov qword [rsp + 0x70], rax
lea rax, str.Peter_Wilson
mov qword [rsp + 0x78], rax
lea rax, str.timmy
mov qword [r11 - 0x258], rax
lea rax, str.sand_box
mov qword [r11 - 0x250], rax
lea rax, str.malware
mov qword [r11 - 0x248], rax
lea rax, str.maltest
mov qword [r11 - 0x240], rax
lea rax, str.test_user
mov qword [r11 - 0x238], rax
lea rax, str.virus
mov qword [r11 - 0x230], rax
lea rax, str.John_Doe
mov qword [r11 - 0x228], rax
call fcn.180154dd8
mov rsi, rax
test rax, rax
je 0x18003224b
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x180032269
mov rcx, rsi
call fcn.180154dd0
mov eax, 1
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.180131f30
add rsp, 0x2d0
pop rsi
ret
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x2e8], rbp
xor ebp, ebp
mov ebx, ebp
mov qword [rsp + 0x2f0], rdi
nop word [rax + rax]
mov rdi, qword [rsp + rbx*8 + 0x30]
lea r8, str.Checking_if_username_matches_:__s
mov r9, rdi
lea rcx, [rsp + 0xc0]
mov edx, 0x100
call fcn.1800301c0
mov rdx, rsi
mov rcx, rdi
call fcn.18015d890
test eax, eax
je 0x1800322cb
inc rbx
cmp rbx, 0x11
jl 0x180032290
jmp 0x1800322d0
mov ebp, 1
mov rcx, rsi
call fcn.180154dd0
mov rdi, qword [rsp + 0x2f0]
mov eax, ebp
mov rbp, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2e0]
jmp 0x180032250
Function at 0x180032300
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push rdi
push r12
mov rbp, rsp
sub rsp, 0x68
xor r12d, r12d
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], r12
mov qword [rbp - 0x38], r12
mov edi, r12d
mov qword [rbp + 0x30], r12
mov ebx, r12d
call fcn.1800333d0
test eax, eax
je 0x1800324e8
mov qword [rsp + 0x60], rsi
lea rcx, [0x1801ae388]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_LogicalDisk
mov r14, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea r15d, [r12 + 1]
mov rsi, rax
test r14, r14
je 0x1800323c6
test rax, rax
je 0x1800323bd
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 0x30]
mov r8, rsi
mov qword [rsp + 0x20], r12
mov rdx, r14
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x1800323bd
mov rcx, qword [rbp + 0x38]
mov r15d, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r14, qword [rsp + 0x58]
test rsi, rsi
je 0x1800323d9
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15d, r15d
mov r15, qword [rsp + 0x50]
je 0x1800324d6
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x28], r12d
test rcx, rcx
je 0x1800324b6
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x40]
or edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0x28], r12d
je 0x1800324b2
mov rcx, qword [rbp + 0x40]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r12
lea rdx, str.Size
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x180032495
cmp word [rbp - 0x30], 1
je 0x180032495
call fcn.180154db0
mov dword [rax], r12d
call fcn.18015e474
mov rcx, qword [rbp - 0x28]
xor edx, edx
mov r9, rax
lea r8d, [rdx + 0xa]
call fcn.18015ede4
mov rsi, rax
call fcn.180154db0
cmp dword [rax], r12d
jne 0x18003248b
mov rbx, rsi
mov edi, 1
shr rbx, 0x1e
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test edi, edi
jne 0x1800324b2
mov rcx, qword [rbp + 0x30]
test rcx, rcx
jne 0x180032400
jmp 0x1800324b6
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rbx
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rax, rbx
add rsp, 0x68
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x180032500
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x68
xor ebx, ebx
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x28]
mov qword [rbp + 0x28], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp + 0x30], rbx
call fcn.1800333d0
test eax, eax
je 0x1800326f4
mov qword [rsp + 0x60], rsi
lea rcx, [0x1801ae388]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_ComputerSystem
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea r14d, [rbx + 1]
mov rdi, rax
test rsi, rsi
je 0x1800325ba
test rax, rax
je 0x1800325b1
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x1800325b1
mov rcx, qword [rbp + 0x28]
mov r14d, ebx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0x60]
test rdi, rdi
je 0x1800325cd
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0x58]
test r14d, r14d
mov r14, qword [rsp + 0x50]
je 0x1800326f4
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x20], rbx
mov dword [rbp + 0x18], ebx
test rcx, rcx
je 0x1800326d0
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x20]
or edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0x18], ebx
je 0x1800326d0
mov rcx, qword [rbp + 0x20]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], rbx
lea rdx, str.Model
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x18003269e
cmp word [rbp - 0x30], 8
jne 0x180032694
mov rcx, qword [rbp - 0x28]
lea rdx, str.VirtualBox
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800326b7
mov rcx, qword [rbp - 0x28]
lea rdx, str.HVM_domU
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800326b7
mov rcx, qword [rbp - 0x28]
lea rdx, [0x1801ad2e8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800326b7
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
jne 0x180032600
jmp 0x1800326d0
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ebx, 1
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x180032700
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor edi, edi
lea rax, str.SystemCurrentControlSetEnumIDE
mov qword [rbp - 0x21], rax
lea rbx, [rbp - 0x21]
lea rax, str.SystemCurrentControlSetEnumSCSI
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x19], rax
mov r15d, edi
lea rax, str.qemu
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x11], rax
mov r13d, edi
lea rax, str.virtio
mov qword [rbp - 9], rax
lea rax, str.vmware
mov qword [rbp - 1], rax
lea rax, str.vbox
mov qword [rbp + 7], rax
lea rax, [0x1801adc68]
mov qword [rbp + 0xf], rax
lea rax, [0x1801adc60]
mov qword [rbp + 0x17], rax
lea rax, str.Virtual
mov qword [rbp + 0x1f], rax
nop dword [rax]
mov rdx, qword [rbx]
lea rax, [rbp - 0x41]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x49], edi
mov rcx, 0xffffffff80000002
mov dword [rbp - 0x39], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800328ff
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180032835
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800328ff
mov eax, dword [rbp - 0x39]
lea r12d, [rax*2 + 2]
mov ecx, r12d
call fcn.180154dd8
mov r14, rax
test rax, rax
jne 0x18003285f
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800328ff
cmp dword [rbp - 0x49], 0
mov esi, edi
jbe 0x1800328e6
nop word [rax + rax]
mov rcx, qword [rbp - 0x41]
lea r9, [rbp - 0x29]
mov qword [rsp + 0x38], rdi
mov r8, r14
mov qword [rsp + 0x30], rdi
mov edx, esi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rbp - 0x29], r12d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800328d3
mov ebx, edi
lea rdi, [rbp - 0x11]
nop word [rax + rax]
mov rdx, qword [rdi]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800328dc
inc ebx
add rdi, 8
cmp ebx, 7
jb 0x1800328b0
test r15d, r15d
jne 0x1800328e2
xor edi, edi
inc esi
cmp esi, dword [rbp - 0x49]
jb 0x180032870
jmp 0x1800328e2
mov r15d, 1
mov rbx, qword [rbp - 0x31]
mov rcx, r14
call fcn.180154dd0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x180032914
xor edi, edi
add rbx, 8
inc r13d
mov qword [rbp - 0x31], rbx
cmp r13d, 2
jb 0x1800327b0
mov eax, r15d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180131f30
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180032950
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [r11 - 0x40], 0
lea r8, [r11 - 0x58]
lea rcx, [r11 - 0x50]
call fcn.180032a80
nop
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
sub ecx, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180008380
nop
xor dil, dil
cmp qword [rsp + 0x58], 0
je 0x1800329e4
mov r9d, 7
lea rcx, [rsp + 0x48]
call fcn.180008a1c
movzx edi, dil
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmovne edi, ecx
lea rcx, [rsp + 0x48]
call fcn.180008360
nop
test rbx, rbx
je 0x180032a56
mov rax, qword [rsp + 0x38]
sub rax, rbx
cmp rax, 0x1000
jb 0x180032a3c
test bl, 0x1f
je 0x180032a0f
call fcn.180154658
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x180032a1e
call fcn.180154658
int3
sub rbx, rax
cmp rbx, 8
jae 0x180032a2d
call fcn.180154658
int3
cmp rbx, 0x27
jbe 0x180032a39
call fcn.180154658
int3
mov rbx, rax
mov rcx, rbx
call fcn.18002c160
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
movzx eax, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180131f30
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x180032d60
Capabilities:
Enumerate services

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push r13
push r14
push r15
sub rsp, 0x68
mov r13, rcx
mov r14, r9
mov ecx, 0xe000
mov r15, r8
call fcn.180154dd8
xor edx, edx
mov rbx, rax
test r14, r14
je 0x180032d8f
mov dword [r14], edx
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
test rbx, rbx
je 0x180032eb6
mov qword [rsp + 0x48], rdx
xor eax, eax
mov r9d, 3
mov dword [rsp + 0x98], edx
mov rdi, rbx
mov dword [rsp + 0xa8], edx
mov ecx, 0xe000
rep stosb byte [rdi], al
lea rax, [rsp + 0xa8]
mov rcx, r13
mov qword [rsp + 0x40], rax
lea r8d, [r9 + 8]
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xe000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x180032e1e
mov qword [r15], rbx
mov eax, 1
jmp 0x180032eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x180032ea0
mov ebp, dword [rsp + 0x98]
mov rcx, rbx
add ebp, 0xe000
mov edx, ebp
mov r12d, ebp
call fcn.18015498c
mov rsi, rax
test rax, rax
je 0x180032eae
mov rbx, rax
mov rdi, rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x48], rax
mov ecx, r12d
mov qword [rsp + 0x40], rax
rep stosb byte [rdi], al
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
lea r9d, [rdx + 3]
mov dword [rsp + 0x28], ebp
lea r8d, [rdx + 0xb]
mov rcx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x180032eae
mov qword [r15], rbx
mov eax, 1
jmp 0x180032eb8
mov edx, eax
lea rcx, str.ERROR:__u_n
call fcn.180032b00
mov rcx, rbx
call fcn.180154dd0
xor eax, eax
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
add rsp, 0x68
pop r15
pop r14
pop r13
pop rbx
ret

Function at 0x1800330a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
mov rdi, r9
call fcn.1801530a0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x104
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003316c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180033161
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x180033161
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x18003316e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180131f30
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret