joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180053c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
and dword [rax + 0x10], 0
mov r14, rcx
mov rcx, qword gs:[0x60]
mov edi, 0xe18
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x180053d2c
mov esi, edi
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x58]
mov r9d, edi
mov qword [rsp + 0x30], rax
mov r8, rbx
mov dword [rsp + 0x28], edi
mov edx, 0x224160
mov qword [rsp + 0x20], rbx
call fcn.180054b6c
mov edi, eax
test eax, eax
jne 0x180053d67
cmp dword [rsp + 0x58], 8
jb 0x180053d47
mov edx, dword [rbx + 4]
lea rax, [rdx + rdx*8]
lea rcx, [rax*4 + 8]
mov eax, dword [rsp + 0x58]
cmp rax, rcx
jb 0x180053d47
mov esi, dword [rbx]
cmp esi, edx
jbe 0x180053d64
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword gs:[0x60]
lea eax, [rsi + rsi*8]
lea edi, [rax*4 + 8]
mov edx, 8
mov r8d, edi
mov esi, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x180053c7a
mov eax, 8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov edi, 0x1071
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [r14], rbx
mov eax, edi
jmp 0x180053d31
Function at 0x180054e08
Capabilities:
Create thread

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 rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
mov qword [rbp - 1], r14
xor edx, edx
xor ecx, ecx
or ebx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x2f], rax
test rax, rax
jne 0x180054e5f
or eax, ebx
jmp 0x180054f39
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [rbp - 9]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 1]
lea r8, [0x1800572c0]
mov dword [rsp + 0x20], r14d
xor ecx, ecx
mov sil, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x180054f14
mov ecx, dword [rbp - 9]
mov edx, 0x25
call fcn.180057328
test eax, eax
je 0x180054ee8
mov r9d, 0x18
lea rax, [rbp - 5]
lea r8, [rbp + 0x37]
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea edx, [r9 - 3]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x180054ee8
cmp dword [rbp - 5], 0x18
jne 0x180054ee8
movzx eax, word [rbp + 0x3f]
test ax, ax
je 0x180054ee8
movzx ebx, ax
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x2f]
mov sil, r14b
call qword [sym.imp.KERNEL32.dll_SetEvent]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x180054f2d
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180017170
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180054f64
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
or edi, 0xffffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180055050
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea r8, [0x1800572c0]
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x180055040
mov ecx, dword [rsp + 0x30]
lea edx, [rsi + 6]
call fcn.180057328
test eax, eax
je 0x180055020
lea rax, [rsp + 0x34]
mov rcx, rbx
lea r9d, [rsi + 0x18]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
lea edx, [rsi + 0x15]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x180055020
cmp dword [rsp + 0x34], 0x18
jne 0x180055020
movzx eax, word [rsp + 0x78]
test ax, ax
je 0x180055020
movzx edi, ax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180055050
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180017170
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180055f14
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, r9
lea rax, [rbp - 0x20]
mov r9d, 0x10
mov qword [r11 - 0x48], rax
mov r12, r8
mov rdi, rdx
lea r8, [rbp - 0x10]
mov r14, rcx
lea edx, [r9 - 0xf]
call qword [sym.imp.ntdll.dll_NtQueryMutant]
xor ebx, ebx
test eax, eax
jns 0x180055f6b
mov ebx, 0x490
jmp 0x180056084
cmp dword [rbp - 0x20], 0x10
je 0x180055f7b
mov ebx, 0x18
jmp 0x180056084
xor r9d, r9d
lea rax, [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtQueryObject]
cmp eax, 0xc0000004
jne 0x180056024
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp - 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x180056024
mov r9d, dword [rbp - 0x20]
mov r8, rax
mov edx, 1
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryObject]
test eax, eax
js 0x18005600c
movzx r9d, word [rsi]
lea rcx, [rdi + 8]
mov r8, qword [rsi + 8]
shr r9, 1
call fcn.180054d18
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x18005600c
cmp eax, 0x8007007a
je 0x18005600c
mov word [rdi + 8], bx
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp - 8]
mov eax, dword [rbp - 0x10]
mov dword [rdi + 4], 6
mov dword [r12], ecx
mov dword [r15], eax
test rcx, rcx
jne 0x18005607e
lea esi, [rcx + 8]
xor edx, edx
lea rax, [rbp - 0x20]
mov r9d, esi
lea r8, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
jns 0x18005606c
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
jmp 0x180056084
cmp dword [rbp - 0x20], 0x10
jne 0x180055f71
cmp byte [rbp - 0x13], bl
je 0x18005607e
mov dword [rdi + 4], esi
mov dword [rdi], 3
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180056f04
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x18009565c]
xor ebx, ebx
or edi, 0xffffffff
cmp eax, edi
je 0x180056f2f
mov eax, dword [0x180095658]
cmp eax, edi
je 0x180056f2f
lea eax, [rbx + 1]
jmp 0x180056ff8
cmp qword [0x1800974b8], rbx
jne 0x180056f63
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, rax
test rax, rax
je 0x180056ff6
xor eax, eax
lock cmpxchg dword [0x1800974b8], ecx
je 0x180056f63
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1800974b8]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180056ff6
lea rax, [0x180096df0]
mov ecx, 0x3b
mov qword [rax + 8], rax
mov qword [rax], rax
add rax, 0x10
sub rcx, 1
jne 0x180056f88
lea rcx, [0x1800971a0]
call qword [sym.imp.ntdll.dll_RtlInitializeSRWLock]
mov eax, dword [0x18009565c]
cmp eax, edi
jne 0x180056fbb
call fcn.180054f64
mov dword [0x18009565c], eax
mov eax, dword [0x180095658]
cmp eax, edi
jne 0x180056fd0
call fcn.180054e08
mov dword [0x180095658], eax
mov eax, dword [0x18009565c]
cmp eax, edi
je 0x180056fe9
mov eax, dword [0x180095658]
cmp eax, edi
je 0x180056fe9
mov ebx, 1
mov rcx, qword [0x1800974b8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180057004
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r14d, ecx
test ecx, ecx
jne 0x18005702c
xor eax, eax
jmp 0x180057119
mov r15d, 1
xor edx, edx
mov r8d, r15d
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x180057117
lea r8d, [r15 + 3]
mov rcx, rax
lea rdx, str.RPCSS
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x18005710e
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
jne 0x18005709b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180057105
mov eax, dword [rsp + 0x50]
jmp 0x1800570a4
mov eax, 0x1000
mov dword [rsp + 0x50], eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180057105
mov r9d, dword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x1800570ed
cmp r14d, dword [rdi + 0x1c]
cmove ebx, r15d
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180057490
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
xor esi, esi
mov r12d, r9d
mov r15d, r8d
mov r13, rdx
test rcx, rcx
je 0x1800575ea
test r8d, 0xfffffff0
jne 0x1800575ea
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x1800575ea
mov eax, dword [rbx]
dec eax
cmp eax, 0xf
ja 0x1800575ea
mov rbp, qword [rsp + 0x88]
test rbp, rbp
je 0x1800575ea
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x1800575ea
call fcn.1800551b0
mov rsi, rax
test rax, rax
jne 0x180057524
lea ebx, [rdi + 0x57]
jmp 0x180057625
cmp dword [rax + 0x18], 1
jne 0x1800575cb
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x180057557
lea ebx, [rax + 8]
jmp 0x180057614
mov qword [rax], rsi
mov qword [rax + 8], r13
mov dword [rax + 0x10], r15d
mov dword [rax + 0x14], r12d
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], r14
call fcn.180055990
mov rbx, rax
test rax, rax
jne 0x180057587
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800575e6
and qword [rsp + 0x28], 0
lea r8, [0x180056cd0]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
jne 0x1800575bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, 8
jmp 0x1800575f7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x3e5
jmp 0x180057625
mov qword [rsp + 0x28], r14
mov r9, rbx
mov r8d, r12d
mov qword [rsp + 0x20], rbp
mov edx, r15d
mov rcx, rsi
call fcn.180056758
mov ebx, eax
jmp 0x1800575ef
mov ebx, 0x57
cmp ebx, 0x3e5
je 0x180057621
test rdi, rdi
je 0x180057614
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x180057621
mov rcx, rsi
call fcn.180055184
test ebx, ebx
je 0x180057631
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180057636
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180057858
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor edi, edi
and qword [rcx], rbx
xor r8d, r8d
and dword [rax + 8], ebx
mov rsi, rcx
xor edx, edx
lea ebp, [rbx + 0xa]
jmp 0x1800578da
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebp
xor edi, edi
dec ebp
test eax, eax
je 0x180057908
mov eax, dword [rsp + 0x30]
xor edx, edx
add eax, 0x2000
mov dword [rsp + 0x30], eax
mov rcx, qword gs:[0x60]
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180057901
mov r8d, dword [rsp + 0x30]
mov rdx, rax
lea r9, [rsp + 0x30]
mov ecx, 0x39
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180057883
test eax, eax
jns 0x18005790f
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
jmp 0x180057912
mov ebx, 8
jmp 0x180057916
mov ebx, 0x490
jmp 0x180057916
mov qword [rsi], rdi
test ebx, ebx
je 0x18005792e
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800579ec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x198
xor ebx, ebx
call sub.msvcrt.dll_memset
cmp qword [0x180097500], rbx
je 0x180057a2c
lea eax, [rbx + 1]
jmp 0x180057b4c
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180097500], rax
test rax, rax
je 0x180057b4a
lea rdx, str.WSAStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800974d0], rax
test rax, rax
je 0x180057b31
mov rcx, qword [0x180097500]
lea rdx, str.getsockopt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800974f0], rax
test rax, rax
je 0x180057b31
mov rcx, qword [0x180097500]
lea rdx, str.getsockname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800974e8], rax
test rax, rax
je 0x180057b31
mov rcx, qword [0x180097500]
lea rdx, str.getpeername
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800974d8], rax
test rax, rax
je 0x180057b31
mov rcx, qword [0x180097500]
lea rdx, str.WSACleanup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800974f8], rax
test rax, rax
je 0x180057b31
mov rcx, qword [0x180097500]
lea rdx, str.closesocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800974e0], rax
test rax, rax
je 0x180057b31
mov rax, qword [0x1800974d0]
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [0x18006e698]
test eax, eax
jne 0x180057b31
lea ebx, [rax + 1]
jmp 0x180057b4a
mov rcx, qword [0x180097500]
test rcx, rcx
je 0x180057b4a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x180097500], rbx
mov eax, ebx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180017170
add rsp, 0x1d0
pop rbx
ret
Function at 0x1800588ec
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rbx, rdx
mov esi, ebp
mov r14, rcx
call qword [sym.imp.KERNELBASE.dll_RegKrnGetHKEY_ClassesRootAddress]
cmp word [rbx], 0xe
mov rdi, rax
jb 0x180058a43
mov rdx, qword [str.Classes_]
lea r8d, [rbp + 7]
mov rcx, qword [rbx + 8]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x18005894f
cmp word [rbx], 0xe
jbe 0x180058992
mov rax, qword [rbx + 8]
cmp word [rax + 0xe], 0x5c
je 0x180058992
cmp word [rbx], 0x20
mov esi, 1
jb 0x180058a43
mov rdx, qword [str.SoftwareClasses_]
mov r8d, 0x10
mov rcx, qword [rbx + 8]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x180058a43
cmp word [rbx], 0x20
jbe 0x180058992
mov rax, qword [rbx + 8]
cmp word [rax + 0x20], 0x5c
jne 0x180058a43
mov rcx, qword [r14]
lea rax, [rsp + 0x60]
mov r9d, 0x3e
mov qword [rsp + 0x20], rax
lea r8, [0x1800973d0]
lea edx, [r9 - 0x3b]
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
js 0x180058a43
lea r15, [0x180000000]
movzx eax, word [r15 + rsi*2 + 0x7dab4]
cmp dword [0x1800973d0], eax
jne 0x180058a43
movzx r8d, word [r15 + rsi*2 + 0x7dabc]
lea rcx, [0x1800973d4]
mov rdx, qword [r15 + rsi*8 + 0x6ce90]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x180058a43
cmp qword [rdi], rbp
jne 0x180058a09
mov r8, rdi
call fcn.1800581f8
test eax, eax
jne 0x180058a43
movzx ecx, word [rbx]
movzx eax, word [r15 + rsi*2 + 0x7dab8]
cmp cx, ax
ja 0x180058a1f
mov word [rbx], bp
jmp 0x180058a36
sub word [rbx + 2], ax
sub cx, ax
mov word [rbx], cx
movzx ecx, ax
shr rcx, 1
add rcx, rcx
add qword [rbx + 8], rcx
mov rcx, qword [rdi]
mov eax, 1
mov qword [r14], rcx
jmp 0x180058a45
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18005a994
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
lea rax, str.SYSTEMCurrentControlSetServicesNetlogonParametersGpParameters
mov dword [rbp + 0x28], 4
mov qword [rbp - 0x20], rax
xor ebx, ebx
lea rax, str.SYSTEMCurrentControlSetServicesNetlogonParameters
mov qword [rbp - 0x18], rax
mov eax, dword [0x180095660]
cmp eax, 0xffffffff
jne 0x18005aa01
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x30], 1
call qword [sym.imp.ntdll.dll_RtlGetNtProductType]
cmp al, 1
jne 0x18005a9fb
cmp dword [rbp + 0x30], 2
jne 0x18005a9f1
mov dword [0x180095660], 1
jmp 0x18005aa06
mov eax, ebx
mov dword [0x180095660], ebx
jmp 0x18005aa01
mov eax, dword [0x180095660]
cmp eax, 1
jne 0x18005aa0d
mov al, 1
jmp 0x18005aaa3
mov edi, ebx
lea rsi, [rbp - 0x20]
mov rdx, qword [rsi]
lea rax, [rbp - 0x28]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x18005aa84
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x40]
mov dword [rbp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NeutralizeNt4Emulator
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x18005aa7a
cmp dword [rbp + 0x38], 4
jne 0x18005aa7a
cmp dword [rbp + 0x28], 4
je 0x18005aa91
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc edi
add rsi, 8
cmp edi, 2
jb 0x18005aa13
jmp 0x18005aaa1
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rbp + 0x40], ebx
setne bl
mov al, bl
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x18005bae0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
cmp qword [rcx + 0x10], 0
je 0x18005bb7e
lea rax, [rbp + 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlLsa
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x18005bb7e
and dword [rbp + 0x18], eax
lea r9, [rbp + 0x18]
and dword [rbp + 0x28], eax
lea rdx, str.LsarpcClientAllowRemotedSecretOperations
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x18005bb7e
cmp dword [rbp + 0x18], 4
jne 0x18005bb7e
cmp dword [rbp + 0x20], 4
jne 0x18005bb7e
cmp dword [rbp + 0x28], ebx
jne 0x18005bb7e
mov eax, 0xc00000bb
jmp 0x18005bb80
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x18005c47c
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x30
movzx r9d, word [rdx + 2]
lea rax, [rsp + 0x48]
mov r8, qword [rdx + 8]
mov rbx, rdx
mov edx, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
js 0x18005c4c8
mov rcx, qword [rbx + 8]
mov eax, dword [rcx]
lea rdx, [rcx + 4]
mov r8d, eax
mov dword [rsp + 0x48], eax
call qword [sym.imp.msvcrt.dll_memmove]
movzx eax, word [rsp + 0x48]
mov word [rbx], ax
xor eax, eax
add rsp, 0x30
pop rbx
ret