joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d54
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
xor r14d, r14d
mov rdx, rcx
mov qword [rbp + 0x38], r14
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], r14
lea edx, [r14 + 1]
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
js 0x140003f22
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x140003e41
cmp qword [rbp - 0x48], r14
je 0x140003e0c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140003f38
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140003de7
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x140003efc
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
shr rcx, 1
xorps xmm0, xmm0
mov edx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
jns 0x140003e41
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140003ef8
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x140003f20
test rax, rax
je 0x140003f20
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x140003edb
Function at 0x140003f48
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x14000c098]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rsi, rdx
mov r14, r8
mov rdx, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor r15d, r15d
mov dword [rsp + 0x68], 0x30
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], r15
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x40
lea r8, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea edx, [r15 + 1]
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
nop dword [rax + rax]
test eax, eax
js 0x14000409a
mov dword [rsp + 0x40], r15d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, 0x800
mov byte [rsp + 0x20], r15b
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140004087
test eax, eax
js 0x140004072
cmp word [rbp - 0x60], r15w
je 0x140003fde
lea rbx, [rbp - 0x58]
movabs r10, 0xe135bf711e5c3070
mov rdx, qword [rbx + 0x10]
mov r8, r14
mov rcx, qword [rbx]
mov rax, rsi
call qword [vtable.H_MA8HI.0]
mov edi, eax
test eax, eax
js 0x14000405d
add rbx, 0x20
cmp word [rbx - 8], r15w
jne 0x14000402d
jmp 0x140003fde
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000409a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000409a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140007cb0
mov rbx, qword [rsp + 0x8f8]
add rsp, 0x8b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400040c8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
nop dword [rax + rax]
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x140004200
test rdi, rdi
je 0x140004200
cmp word [rdi], r15w
je 0x140004200
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x140004115
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
nop dword [rax + rax]
cmp eax, 2
jne 0x140004172
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
nop dword [rax + rax]
test eax, eax
je 0x140004172
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
nop dword [rax + rax]
jmp 0x140004200
lea edx, [rbx + 1]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x140004200
add ebx, ebx
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
nop dword [rax + rax]
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov ecx, eax
mov dword [rsp + 0x28], ebx
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x1400041f1
inc rsi
cmp byte [rsi + rbp], r15b
jne 0x1400041c9
mov r8, rsi
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140004488
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x140009e20]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x1400044b7
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadResource]
Function at 0x1400045d4
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14000c098]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140012070]
test eax, eax
jne 0x1400046d8
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004643
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov edx, dword [rsp + 0x24]
mov dword [0x140012070], eax
sub ecx, 1
je 0x1400046b4
cmp ecx, 1
jne 0x1400046d8
cmp edx, 5
jne 0x1400046a2
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000469b
sub eax, ecx
je 0x140004681
cmp eax, ecx
je 0x140004677
lea eax, [rdx + 0xf]
jmp 0x1400046f6
mov edx, 0x10
lea ecx, [rdx - 0xf]
jmp 0x140004689
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x1400046f6
mov eax, 4
jmp 0x1400046f6
cmp edx, 4
ja 0x1400046f1
mov ecx, 2
mov eax, ecx
mov dword [0x140012070], ecx
cmp edx, 4
jne 0x1400046d8
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1400046cb
cmp ecx, 0xa
je 0x1400046cb
cmp ecx, 0x5a
jne 0x1400046d8
mov ecx, 1
mov eax, ecx
mov dword [0x140012070], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007cb0
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x140012070], eax
jmp 0x1400046d8

Function at 0x1400048d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c098]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x20]
mov dword [rsp + 0x30], 6
mov r9d, 1
mov qword [r11 - 0x38], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftActive_SetupInstalled_Components89820200_ECBD_11CF_8B85_00AA005B4383
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400049b3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Locale
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x1400049b3
lea rsi, [0x1400091b0]
mov rdi, rsi
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8d, 3
call sub.msvcrt.dll__wcsnicmp
test eax, eax
je 0x1400049a1
inc ebx
add rdi, 0x10
cmp ebx, 0x1c
jb 0x14000497d
jmp 0x1400049b3
movsxd rax, ebx
add rax, rax
movzx eax, word [rsi + rax*8 + 8]
mov word [0x140012074], ax
movzx eax, word [0x140012074]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007cb0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004af4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test rdx, rdx
je 0x140004b70
test r8, r8
je 0x140004b70
movzx ecx, cx
lea r8d, [rbp + 0x55]
mov r9d, 0x8000000
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_1_0.dll_LCIDToLocaleName]
nop dword [rax + rax]
test eax, eax
je 0x140004b70
lea r9d, [rbp + 0x55]
mov r8, rdi
lea edx, [rbp + 0x6d]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
nop dword [rax + rax]
test rsi, rsi
je 0x140004b69
mov r8, rsi
mov word [rsi], bp
mov rdx, rdi
mov rcx, rbx
call fcn.1400049e0
mov eax, 1
jmp 0x140004b72
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005098
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, edx
lea r9, [rsp + 0x58]
xor edx, edx
mov rsi, r8
mov r14, rcx
xor r8d, r8d
lea ecx, [rdx + 0x63]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400050e1
test eax, eax
js 0x14000516d
jmp 0x14000517b
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000517b
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x63
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000514f
movzx ecx, word [rdi]
add ecx, 2
mov dword [rsi], ecx
cmp ecx, ebp
jbe 0x140005140
mov ebx, 0xc0000023
jmp 0x14000514f
mov rdx, qword [rdi + 8]
mov r8d, ecx
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
test ebx, ebx
jns 0x140005190
cmp ebx, 0xc0000023
je 0x140005190
mov r9, rsi
lea rcx, [0x1400053f0]
mov r8d, ebp
mov rdx, r14
call fcn.140005528
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140005214
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c098]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x1f]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140005259
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007cb0
add rsp, 0x50
pop rbx
ret
Function at 0x140005600
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov dword [rax + 8], ecx
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, r9
xor edx, edx
lea r9, [rax + 8]
mov ebp, r8d
xor r8d, r8d
lea ecx, [rdx + 0x62]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005652
test eax, eax
js 0x1400056e5
mov ebx, 0xc0000001
jmp 0x1400056e5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140005681
mov ebx, 0xc000009a
jmp 0x1400056e5
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400056c7
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x1400056b8
mov ebx, 0xc0000023
jmp 0x1400056c7
mov rdx, qword [rdi + 8]
mov rcx, r14
mov r8d, eax
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140005d0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov r14, qword [rbp + 0x50]
lea rcx, [rbp - 0x10]
mov rsi, qword [rbp + 0x58]
xor edi, edi
and qword [rbp + 0x40], rdi
mov rbx, r8
and qword [r14], rdi
and dword [rsi], edi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
test rbx, rbx
je 0x140005d64
lea r9, [rbp + 0x40]
mov rdx, rbx
call fcn.140005ae0
mov ebx, eax
test eax, eax
js 0x140005e5e
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea rdx, [rbp - 0x10]
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005da7
test eax, eax
js 0x140005e5e
mov ebx, 0xc0000001
jmp 0x140005e5e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp + 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140005dd8
mov ebx, 0xc000009a
jmp 0x140005e5e
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x10]
mov eax, dword [rbp + 0x48]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140005e5e
cmp dword [rdi + 4], 1
je 0x140005e18
mov ebx, 0xc0000024
jmp 0x140005e5e
mov eax, dword [rbp + 0x48]
xor edx, edx
add eax, 0xfffffff4
mov dword [rbp + 0x48], eax
mov rcx, qword gs:[0x60]
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [r14], rax
test rax, rax
je 0x140005dce
mov r8d, dword [rbp + 0x48]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x48]
xor ebx, ebx
mov dword [rsi], eax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140005e73
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rdi, rdi
je 0x140005e96
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005eac
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
xor r14d, r14d
mov rdx, rcx
mov qword [rbp + 0x38], r14
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], r14
lea edx, [r14 + 1]
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
js 0x14000607a
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x140005f99
cmp qword [rbp - 0x48], r14
je 0x140005f64
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140006090
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005f3f
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x140006054
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
shr rcx, 1
xorps xmm0, xmm0
mov edx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
jns 0x140005f99
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140006050
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x140006078
test rax, rax
je 0x140006078
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x140006033
Function at 0x140007aa0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140012090], rbx
je 0x140007aec
cmp rax, rbx
jne 0x140007adf
mov ebx, 1
mov esi, ebx
jmp 0x140007af1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140007ac4
mov ebx, 1
mov eax, dword [0x140012098]
cmp eax, ebx
jne 0x140007b07
mov ecx, 0x1f
call fcn.1400a7000
jmp 0x140007b76
mov eax, dword [0x140012098]
test eax, eax
jne 0x140007b70
mov dword [0x140012098], ebx
lea r15, [0x140009918]
lea rdi, [0x140009900]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140007b62
test eax, eax
jne 0x140007b66
cmp qword [rdi], 0
je 0x140007b57
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140007b2e
test eax, eax
je 0x140007b76
mov eax, 0xff
jmp 0x140007c5c
mov dword [0x140011ac4], ebx
mov eax, dword [0x140012098]
cmp eax, ebx
jne 0x140007b9d
lea rdx, [0x1400098f8]
lea rcx, [0x1400098e8]
call sub.msvcrt.dll__initterm
mov dword [0x140012098], 2
test esi, esi
jne 0x140007baa
xor eax, eax
xchg qword [0x140012090], rax
cmp qword [0x1400120a0], 0
je 0x140007be8
lea rcx, [0x1400120a0]
call fcn.140007e80
test eax, eax
je 0x140007be8
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400120a0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x140011ad8]
mov rdx, qword [0x140011ad0]
mov ecx, dword [0x140011ac8]
call fcn.140002920
mov dword [0x140011ac0], eax
cmp dword [0x140011ae0], 0
jne 0x140007c18
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140011ac4], 0
jne 0x140007c2d
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140011ac0]
jmp 0x140007c5c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140007f14
add rsp, 0x28
jmp 0x140007aa0

Function at 0x140007d6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007db8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007db0
cmp dword [rcx + 0x3c], edx
jl 0x140007db0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007db0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007db8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140007ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140007f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret