joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047724
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14004782c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov esi, 0x104
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], esi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004781d
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x43], bl
jne 0x1400477e6
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14004781d
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140047809
mov al, byte [rcx + rdi]
test al, al
je 0x140047809
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x1400477eb
test rsi, rsi
jne 0x140047816
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004782e
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400489c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140048e6c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140048efd
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140048efd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140048efd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140048ee1
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140048edb
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140048ee3
add rdx, 0x28
jmp 0x140048ec0
xor edx, edx
test rdx, rdx
jne 0x140048eec
xor al, al
jmp 0x140048f03
test dword [rdx + 0x24], 0x80000000
je 0x140048ef9
xor al, al
jmp 0x140048f03
mov al, 1
jmp 0x140048f03
xor al, al
jmp 0x140048f03
add rsp, 0x18
ret
Function at 0x140049ac0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140049c67
xor r8d, r8d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov rdx, rdi
cmp rsi, 0xffffffff80000002
jne 0x140049b39
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x140049b42
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
lea rcx, [rsi - 1]
xor r8d, r8d
mov rdx, rdi
jmp 0x140049b3c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140049c67
mov qword [rsp + 0x2b0], rbx
mov rcx, rdi
mov qword [rsp + 0x280], rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, eax
xor ecx, ecx
mov dword [rsp + 0x40], ebp
lea rbx, [rdi + rbp*2]
test eax, eax
je 0x140049b8a
cmp word [rbx - 2], 0x5c
je 0x140049b8a
mov eax, 0x5c
mov word [rbx], ax
add rbx, 2
mov word [rbx], cx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], operator
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140049c33
xor ebp, ebp
nop dword [rax + rax]
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x60]
inc edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rdx, rdi
mov rcx, rsi
call fcn.140049ac0
test eax, eax
jne 0x140049c2f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x50], operator
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140049bd0
mov ebp, dword [rsp + 0x40]
test ebp, ebp
mov rbp, qword [rsp + 0x280]
je 0x140049c43
sub rbx, 2
xor eax, eax
mov word [rbx], ax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x288
pop rdi
pop rsi
ret

Function at 0x140049d90
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
test rdx, rdx
jne 0x140049a78
lea eax, [rdx + 0x57]
jmp 0x140049a98
mov r8, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x208
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140049ac0
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x440
pop rbx
ret
test r8b, r8b
jne 0x140049a50
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140049dd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [rsp + 0x78]
mov r8, rdx
mov qword [rsp + 0x30], rax
xor edx, edx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
add rsp, 0x48
ret

Function at 0x140049f20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x80]
mov rsi, r9
mov rdi, qword [rsp + 0x88]
test rbx, rbx
je 0x140049f59
test rdi, rdi
jne 0x140049f5e
lea eax, [rdi + 0x57]
jmp 0x140049fce
test rdi, rdi
je 0x140049f66
mov eax, dword [rdi]
mov dword [rsp + 0x30], eax
jmp 0x140049f6e
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x34]
test rsi, rsi
je 0x140049f93
mov dword [rsi], edx
mov ecx, dword [rsp + 0x30]
test rdi, rdi
je 0x140049f9e
mov dword [rdi], ecx
test eax, eax
jne 0x140049fce
test rbx, rbx
je 0x140049fcc
cmp edx, 1
jne 0x140049fe3
test ecx, ecx
je 0x140049fc9
test dl, cl
jne 0x140049fc2
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140049fcc
mov eax, 0xd
jmp 0x140049fce
mov byte [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp edx, 7
jne 0x140049fcc
test cl, 1
jne 0x140049fc2
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x140049fc2
mov rdx, rcx
shr rdx, 1
cmp word [rbx + rdx*2 - 2], 0
jne 0x140049fc2
cmp eax, 1
jbe 0x140049fcc
cmp word [rbx + rdx*2 - 4], 0
je 0x140049fcc
mov eax, 0xd
jmp 0x140049fce

Function at 0x14004a110
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r10, qword [rsp + 0x80]
xor ebx, ebx
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x40], r9d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rbx
call sub.ADVAPI32.dll_RegEnumValueW
test eax, eax
sete al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400489c0
add rsp, 0x50
pop rbx
ret
Function at 0x14000da34
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d780
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000da8a
mov ecx, 1
call fcn.14000d780
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
movsd dword [rdi], dword [rsi]
jb 0x140025d07
sbb eax, 0x5bb07630
leave
in eax, 0x90
push rax
sub ch, ch
xchg esp, eax
cmp byte [rcx], cl
mov ecx, 0xf04658e6
add byte [rsi + 0x10b0f7e2], al
pop rdx
stc
invalid
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400379c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400379d0]
mov dword [rax], 1
mov rax, qword [0x1400379e0]
mov dword [rax], 1
mov rax, qword [0x140037970]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400379b0]
mov dword [0x14003f00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140037aa0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140037a80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140037900]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014e4
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, section..rdata
mov rdx, rax
lea rax, str.embedded.exe
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001529
lea rax, str.Error_while_opening_file
mov rcx, rax
call sym.puts
mov ecx, 1
call sym.exit
mov rax, qword [0x14003f030]
mov qword [rbp - 8], rax
jmp 0x14000155b
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp - 0x10]
mov r8d, edx
lea rdx, [0x140033029]
mov rcx, rax
call sym.fprintf
add qword [rbp - 8], 1
mov rax, qword [0x14003f038]
cmp qword [rbp - 8], rax
jne 0x140001536
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
lea rax, str.embedded.exe
mov rcx, rax
call sym.system
call sym.getchar
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001b93
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_unhandledExceptionFilter]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a00]
add rsp, 0x30
pop rbp
ret

Function at 0x140001be6
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_outputDebugString]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a04]
add rsp, 0x30
pop rbp
ret
Function at 0x140001c39
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_ntClose]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x14003f040]
add rsp, 0x30
pop rbp
ret

Function at 0x140001c8c
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_popfd_TrapFlag]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a08]
add rsp, 0x30
pop rbp
ret

Function at 0x140001cdf
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_ctrl_exception_handling]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a0c]
add rsp, 0x30
pop rbp
ret

Function at 0x140001d32
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_DebugBreak]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a10]
add rsp, 0x30
pop rbp
ret

Function at 0x140001de1
Capabilities:
Get explorer pid

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.USER32.dll_GetShellWindow]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x140002008
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x54], 0
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x4c]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000209e
mov eax, 0
jmp 0x140002133
mov rax, qword [rbp - 0x10]
mov r8d, 1
mov edx, 0xc3
mov rcx, rax
call sym.memset
mov eax, dword [rbp - 0x4c]
mov ecx, eax
lea rdx, [rbp - 0x54]
mov rax, qword [rbp - 0x10]
mov r9, rdx
mov r8d, 0x140
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x1400020e5
mov eax, 0
jmp 0x140002133
lea rax, [sym.excepPageGuard]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, dword [0x140032a20]
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x1400021d4
Capabilities:
Check for protected handle exception

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea r8, str.Random_name
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002225
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateMutex_error:__ld_n
mov rcx, rax
call sym.printf_1
mov eax, 1
jmp 0x1400022a7
cmp qword [rbp - 8], 0
je 0x140002247
mov rax, qword [rbp - 8]
mov r8d, 2
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
test eax, eax
jne 0x1400022a1
lea rax, [sym.setHandleInfoExc]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov qword [rbp - 0x10], rax
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_RaiseException]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov eax, dword [0x140032a24]
add rsp, 0x30
pop rbp
ret
Function at 0x140002560
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_instructionPrefixes]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a28]
add rsp, 0x30
pop rbp
ret

Function at 0x14000269b
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_dbgExcp]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032a2c]
add rsp, 0x30
pop rbp
ret

Function at 0x1400026ee
Capabilities:
Check for unexpected memory writes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 4], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002749
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.VirtualAlloc_failed._Last_error:__lu_n
mov rcx, rax
call sym.printf_1
mov eax, dword [rbp - 4]
jmp 0x140002867
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400027b0
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.VirtualAlloc_failed._Last_error:__lu_n
mov rcx, rax
call sym.printf_1
mov eax, dword [rbp - 4]
jmp 0x140002867
mov rax, qword [rbp - 0x18]
mov dword [rax], 0x4d2
mov qword [rbp - 0x20], 0x1000
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x24]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetWriteWatch]
call rax
test eax, eax
je 0x14000281d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.GetWriteWatch_failed._Last_error:__lu_n
mov rcx, rax
call sym.printf_1
mov dword [rbp - 4], 0
jmp 0x14000282e
mov rax, qword [rbp - 0x20]
cmp rax, 1
je 0x14000282e
mov rax, qword [rbp - 0x20]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov rax, qword [rbp - 0x18]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x60
pop rbp
ret
Function at 0x140002bdc
Capabilities:
Check for unexpected memory writes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 4], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002c37
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.VirtualAlloc_failed._Last_error:__lu_n
mov rcx, rax
call sym.printf_1
mov eax, dword [rbp - 4]
jmp 0x140002d6f
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140002c9e
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.VirtualAlloc_failed._Last_error:__lu_n
mov rcx, rax
call sym.printf_1
mov eax, dword [rbp - 4]
jmp 0x140002d6f
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
mov rdx, qword [rbp - 0x18]
mov dword [rdx], eax
mov qword [rbp - 0x20], 0x1000
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x24]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetWriteWatch]
call rax
test eax, eax
je 0x140002d10
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.GetWriteWatch_failed._Last_error:__lu_n
mov rcx, rax
call sym.printf_1
mov dword [rbp - 4], 0
jmp 0x140002d36
mov rax, qword [rbp - 0x20]
cmp rax, 1
je 0x140002d36
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
cmp eax, 1
jne 0x140002d36
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x20]
or eax, edx
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov rax, qword [rbp - 0x18]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x60
pop rbp
ret