joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180025d88
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x180096938], 0
jne 0x180025f70
lea rcx, [0x1800961e0]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x180096938], 0
jne 0x180025f63
xor edx, edx
lea rcx, str.samlib.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180096968], rax
test rax, rax
je 0x180025ee6
lea rdx, str.SamConnect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096948], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamOpenDomain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096920], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamLookupNamesInDomain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096958], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamOpenUser
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096940], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamCloseHandle
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096928], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamFreeMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096950], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamiChangePasswordUser
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096960], rax
test rax, rax
je 0x180025ee6
mov rcx, qword [0x180096968]
lea rdx, str.SamiChangePasswordUser2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180096930], rax
test rax, rax
jne 0x180025f59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180096968]
test rcx, rcx
je 0x180025f08
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x180096968], 0
and qword [0x180096948], 0
lea rcx, [0x1800961e0]
and qword [0x180096920], 0
and qword [0x180096958], 0
and qword [0x180096940], 0
and qword [0x180096960], 0
and qword [0x180096930], 0
and qword [0x180096928], 0
and qword [0x180096950], 0
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, ebx
jmp 0x180025f72
mov dword [0x180096938], 1
lea rcx, [0x1800961e0]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180026670
Capabilities:
Get number of processors

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
lea rax, [rsp + 0x30]
mov r15, r9
mov qword [rsp + 0x20], rax
mov r14d, r8d
lea rdi, [rsp + 0x40]
mov rbp, rdx
lea r8, [rsp + 0x40]
lea r9d, [rbx + 0x54]
mov rsi, rcx
lea edx, [rbx + 1]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
jns 0x180026723
cmp eax, 0xc0000023
jne 0x18002671b
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1800266fb
mov ecx, 0xc000009a
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x18002673f
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
jns 0x180026723
mov ecx, eax
jmp 0x1800266f3
mov rcx, qword [rdi]
mov r9, r15
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.api_ms_win_security_audit_l1_1_0.dll_AuditComputeEffectivePolicyBySid]
test al, al
jne 0x180026741
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x180026763
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x180026773
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x180026775
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180017170
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180029f80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor r12d, r12d
mov rsi, r8
mov qword [rdx], r12
mov r14, rdx
mov qword [r8], r12
mov r15, rcx
mov qword [rsp + 0x38], r12
mov ebx, r12d
mov eax, r12d
test ebx, ebx
jne 0x180029fdd
lea rdx, [rsp + 0x48]
mov ecx, 0x20019
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
mov rcx, qword [rsp + 0x48]
jmp 0x180029fe9
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x48], rcx
test eax, eax
jne 0x18002a170
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionGroup_PolicyAppmgmt
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test ebx, ebx
jne 0x18002a027
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x18002a155
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x18002a155
mov edi, r12d
mov rcx, qword [rsp + 0x40]
lea r8, [rbp - 0x50]
mov r9d, 0x2c
mov edx, edi
call sym.ADVAPI32.dll_RegEnumKeyW
test eax, eax
jne 0x18002a13e
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002a13e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Product_ID
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0x50
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rsp + 0x60], r12w
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNELBASE.dll_lstrcmpiW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x18002a110
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc edi
jmp 0x18002a06a
mov r8, r14
lea rdx, str.Deployment_Name
call fcn.18002a740
mov rcx, qword [rsp + 0x38]
lea rdx, str.SupportUrl
mov r8, rsi
call fcn.18002a740
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp qword [r14], r12
jne 0x18002a170
cmp qword [rsi], r12
jne 0x18002a170
jmp 0x18002a165
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18002a165
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc ebx
cmp ebx, 2
jl 0x180029fbf
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.180017170
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18002a740
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [r8], 0
lea rax, [r11 + 0x18]
and dword [rsp + 0x50], 0
mov rbx, r8
mov qword [r11 - 0x10], rax
xor r9d, r9d
and qword [r11 - 0x18], 0
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x18002a7e9
mov ecx, dword [rsp + 0x50]
mov eax, 2
shr rcx, 1
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNELBASE.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
jne 0x18002a7b3
mov eax, 0xe
jmp 0x18002a7e9
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x18002a7e7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbx], 0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18002a7fc
Capabilities:
Check if file exists
Delete file
Move file
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x390], rax
cmp dword [0x18009698c], 1
jne 0x18002a9f6
xor ebx, ebx
cmp dword [0x180096984], ebx
jne 0x18002a9f6
lea rax, [rsp + 0x38]
mov dword [0x180096970], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [0x180096988], ebx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDiagnostics
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], ebx
test eax, eax
jne 0x18002a954
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RunDiagnosticLoggingApplicationManagement
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x18002a8c6
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x40], 4
cmovne eax, ebx
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.AppMgmtDebugLevel
lea rax, [0x180096970]
mov dword [rsp + 0x30], 4
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]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.AppMgmtDebugBreak
lea rax, [0x180096988]
mov dword [rsp + 0x30], 4
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]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0x34], ebx
je 0x18002a954
mov eax, dword [0x180096970]
or eax, 6
mov dword [0x180096970], eax
jmp 0x18002a95a
mov eax, dword [0x180096970]
test al, 8
je 0x18002a9ec
lea rcx, [rbp + 0x180]
call fcn.18002aa3c
test eax, eax
je 0x18002a9f6
cmp dword [0x180096980], 1
jne 0x18002a9f6
lea r8, [rsp + 0x48]
xor edx, edx
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x18002a9a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18002a9f6
jmp 0x18002a9ec
cmp dword [rsp + 0x68], 0x19000
jb 0x18002a9ec
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [0x18007bcf0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x18002a9ec
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [0x180096984], 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x4a0
pop rbp
ret
Function at 0x18002aa3c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov r8d, 0x104
lea rcx, str._SystemRoot_DebugUserMode_appmgmt.log
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18002aa68
cmp eax, 0x104
jg 0x18002aa68
mov eax, 1
jmp 0x18002aa6a
xor eax, eax
add rsp, 0x28
ret

Function at 0x18002aa70
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov dword [rax - 0x20], 0x80
mov rdi, rcx
mov dword [rax - 0x28], 3
lea edx, [r9 + 6]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18002ab17
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18002ab17
and qword [rsp + 0x30], 0
lea edx, [rbx + 7]
mov dword [rsp + 0x28], 0x80
lea r8d, [rbx + 2]
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002ab17
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 8
lea rdx, [0x18007bce8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002ab17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18002adb4
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [0x1800968d0], 0
je 0x18002ade8
xor eax, eax
jmp 0x18002aecb
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 5]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x18002aeb3
mov r8d, 0x14
lea rdx, str.appmgmt
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x18002aeb3
xor ebx, ebx
lea ebp, [rbx + 0x64]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x18002aea0
mov eax, dword [rsp + 0x24]
sub eax, 1
je 0x18002ae6f
sub eax, 1
je 0x18002ae5a
sub eax, 1
je 0x18002ae81
cmp eax, 1
je 0x18002ae99
mov ebx, 0x41c
jmp 0x18002aea8
mov eax, 0x51eb851f
mul dword [rsp + 0x38]
shr edx, 5
cmp edx, ebp
cmovae edx, ebp
mov ebp, edx
jmp 0x18002ae81
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
je 0x18002aea0
mov ecx, 0x64
call qword [sym.imp.KERNELBASE.dll_Sleep]
inc ebx
cmp ebx, ebp
jbe 0x18002ae29
mov ebx, 0x41d
jmp 0x18002aea8
call fcn.18002aef0
jmp 0x18002aea6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x18002aebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x18002aec9
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x18002c57c
Capabilities:
Access peb ldr_data
Get ntdll base address
Query or enumerate registry value

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 r12
push r14
push r15
sub rsp, 0x40
mov ebp, dword [rsp + 0x80]
mov r12, rcx
mov rcx, qword gs:[0x60]
mov edi, r8d
mov r15, rdx
mov r14, r9
xor edx, edx
lea ebx, [rbp + 0x210]
mov rcx, qword [rcx + 0x30]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x18002c5dc
mov ebx, 0xc0000017
jmp 0x18002c671
mov rdx, r15
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x80]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], ebx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x18002c659
cmp dword [rsi + 4], edi
je 0x18002c624
mov ebx, 0xc0000225
jmp 0x18002c659
mov edi, dword [rsi + 8]
mov dword [rsp + 0x80], edi
cmp edi, ebp
jbe 0x18002c639
mov ebx, 0xc0000023
jmp 0x18002c64a
mov r8, rdi
lea rdx, [rsi + 0xc]
mov rcx, r14
call sub.msvcrt.dll_memcpy
xor ebx, ebx
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x18002c659
mov dword [rax], edi
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x18002d17c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x190], rax
and qword [rsp + 0x38], 0
lea rax, [0x18006cb28]
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x30
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x58], 0x40
mov edx, 0x20019
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x18002d27f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8d, 2
mov dword [rsp + 0x20], 0x214
lea rdx, [0x18006cb18]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x18002d27f
mov rcx, qword [rsp + 0x74]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x18002d27a
mov rax, qword [rsp + 0x78]
cmp eax, 2
jb 0x18002d27a
cmp eax, 0x208
jbe 0x18002d254
mov ebx, 0x80000005
jmp 0x18002d27f
cmp ecx, 2
jne 0x18002d2b5
mov r8d, 0x104
lea rcx, [rsp + 0x7c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
dec eax
cmp eax, 0x103
jbe 0x18002d27f
mov ebx, 0xc000000d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18002d28f
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180017170
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov r8d, eax
lea rdx, [rsp + 0x7c]
mov rcx, rdi
call sub.msvcrt.dll_memcpy
jmp 0x18002d27f
Function at 0x18002d454
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x2c0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov qword [r11 + 0x10], rbp
lea r8, [0x18005e0e0]
xor ebp, ebp
mov qword [r11 + 0x18], rsi
mov dword [rcx], ebp
mov rsi, rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
mov edx, 0x20119
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
jns 0x18002d4b4
cmp eax, 0xc0000034
jne 0x18002d630
mov ebx, ebp
jmp 0x18002d630
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
mov r8d, 2
mov dword [rsp + 0x20], 0x50
lea rdx, [0x18005e0d0]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x18002d504
cmp dword [rsp + 0x54], 4
jne 0x18002d504
cmp dword [rsp + 0x58], 4
jne 0x18002d504
mov eax, ebp
cmp dword [rsp + 0x5c], eax
setne al
mov dword [rsi], eax
jmp 0x18002d508
mov eax, dword [rsi]
mov ebx, ebp
test eax, eax
jne 0x18002d630
xor edx, edx
mov qword [rsp + 0x2e8], rdi
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll_memset
mov edi, 0x104
lea rcx, [rsp + 0xa0]
mov edx, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x18002d623
cdqe
cmp rax, rdi
jae 0x18002d623
mov ecx, edi
lea rax, [rsp + 0xa0]
cmp word [rax], bp
je 0x18002d56e
add rax, 2
sub rcx, 1
jne 0x18002d55f
mov rax, rdi
mov rdx, rbp
sub rax, rcx
test rcx, rcx
cmovne rdx, rax
je 0x18002d623
lea rcx, [rsp + 0xa0]
lea rcx, [rcx + rdx*2]
sub rdi, rdx
je 0x18002d5ca
lea rax, [rdx + 0x7ffffefa]
add rax, rdi
lea rdx, str.System32AppLockerMDM
sub rdx, rcx
test rax, rax
je 0x18002d5ca
movzx r8d, word [rdx + rcx]
test r8w, r8w
je 0x18002d5ca
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdi, 1
jne 0x18002d5a9
test rdi, rdi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
je 0x18002d623
mov edx, 1
mov qword [rsp + 0x30], 0xffffffffffffffff
mov r8d, edx
mov dword [rsp + 0x28], 0x2000080
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x18002d618
mov dword [rsi], 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002d628
mov ebx, 0xc0000017
mov rdi, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x2e0]
mov rbp, qword [rsp + 0x2d8]
test rcx, rcx
je 0x18002d650
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180017170
add rsp, 0x2c0
pop rbx
ret
Function at 0x18002d66c
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [0x180095030]
xor edi, edi
or rsi, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rdi
mov ebx, edi
lea rbp, [rdi - 2]
cmp rax, rsi
jne 0x18002d75b
lea rcx, [rsp + 0x40]
call fcn.18002d17c
mov ebx, eax
test eax, eax
js 0x18002d748
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rsp + 0x20]
xor ecx, ecx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov ebx, eax
test eax, eax
js 0x18002d73a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x18002d711
test byte [rax + 0x5e], 0x80
jne 0x18002d716
mov ebx, 0xc0000428
test ebx, ebx
js 0x18002d73a
mov rcx, qword [rsp + 0x20]
mov rax, rsi
lock cmpxchg qword [0x180095030], rcx
je 0x18002d75b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
jmp 0x18002d75b
mov rax, rsi
lock cmpxchg qword [0x180095030], rbp
jmp 0x18002d75b
cmp eax, 0xc0000034
jne 0x18002d76d
mov rax, rsi
lock cmpxchg qword [0x180095030], rdi
mov rax, qword [0x180095030]
mov ecx, 0xc0000135
cmp rax, rbp
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180017170
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18002d868
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xc0], 0
mov rbx, rcx
jne 0x18002d8b4
cmp qword [rcx + 0xb8], 0
jne 0x18002d8b4
lea rdi, [rcx + 0xc8]
mov rax, qword [rcx + 8]
cmp qword [rax + 0x60], 0
je 0x18002d8c5
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x18002d8c5
mov qword [rbx + 0xb8], rcx
mov rax, qword [rax + 0x60]
mov qword [rdi], rax
jmp 0x18002d8c1
lea rdi, [rcx + 0xc8]
cmp qword [rdi], 0
je 0x18002d890
xor eax, eax
jmp 0x18002d92b
mov rcx, qword [rbx + 0x98]
test rcx, rcx
jne 0x18002d8d8
mov eax, 0xc0000225
jmp 0x18002d92b
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18002d926
cmp qword [rdi], 0
jne 0x18002d8f2
mov eax, 0xc000000d
jmp 0x18002d92b
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rbx + 0x98]
xor edx, edx
and dword [rsp + 0x20], 0
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18002d926
mov qword [rbx + 0xc0], rax
jmp 0x18002d8c1
mov eax, 0xc0000022
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret