joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400187b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400365a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140018807
cmp word [rdx], r13w
jne 0x140018807
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001880c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018931
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140018952
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140018845
mov rdx, r9
mov word [rbx], cx
jmp 0x14001886c
cmp r9, r8
jae 0x14001887c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140018826
jmp 0x140018931
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018926
cmp dword [rsp + 0x80], esi
je 0x140018926
lea r8, [0x1400365a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400188fe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400188ce
mov word [rbx], r13w
jmp 0x14001892e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400188db
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001892e
cmp word [rsp + 0x70], r13w
jne 0x14001890b
cmp rbx, r14
je 0x1400188c8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019418
cmp word [rsp + 0x70], r13w
je 0x140018931
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400365a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001892b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018931
Function at 0x14001cec8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001cef8
xor eax, eax
jmp 0x14001cfbb
mov rbp, rbx
cmp word [rax], si
je 0x14001cf1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cf04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cf00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001b4c8
movsxd r14, eax
test eax, eax
jne 0x14001cf5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001cef1
mov rcx, r14
call fcn.14001967c
mov rdi, rax
test rax, rax
jne 0x14001cf74
xor ecx, ecx
call fcn.14001598c
jmp 0x14001cf50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001b4c8
test eax, eax
jne 0x14001cfa5
mov rcx, rdi
call fcn.14001598c
jmp 0x14001cfaf
xor ecx, ecx
call fcn.14001598c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001fc84
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140015d40
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001fd25
cmp ebx, dword [rsp + 0x30]
je 0x14001fd1e
test esi, esi
je 0x14001fd1e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001fcf9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001fd06
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001fce3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001fd0a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001fd27
mov eax, 1
jmp 0x14001fd27
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140021474
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011d78
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400214fe
cmp byte [rbp - 0x21], r15b
je 0x1400214f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021534
call fcn.140016368
test eax, eax
jne 0x140021520
cmp byte [rbp - 0x21], r15b
je 0x140021518
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021534
cmp byte [rbp - 0x21], r15b
je 0x140021531
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011eb0
test eax, eax
jne 0x1400215d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011d78
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021573
cmp byte [rbp - 0x21], r15b
je 0x1400215a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400215a8
call fcn.140016368
test eax, eax
jne 0x140021594
cmp byte [rbp - 0x21], r15b
je 0x14002158d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400215a8
cmp byte [rbp - 0x21], r15b
je 0x1400215a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011eb0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400215d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400215d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400215e5
mov rcx, rdi
call fcn.14001598c
cmp byte [rbp + 0x3f], r15b
je 0x1400215f4
mov rcx, qword [rbp + 0x27]
call fcn.14001598c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140022d60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022d88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140022d88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140023000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], 0x1c
mov byte [rsp + 0x30], 0x26
mov byte [rsp + 0x31], 0
mov byte [rsp + 0x32], 0x3b
mov byte [rsp + 0x33], 0x96
mov byte [rsp + 0x34], 0xe3
mov byte [rsp + 0x35], 0xe5
mov byte [rsp + 0x36], 0xff
mov byte [rsp + 0x37], 0xb8
mov byte [rsp + 0x38], 0x27
mov byte [rsp + 0x39], 0
mov byte [rsp + 0x3a], 0x2b
mov byte [rsp + 0x3b], 0x85
mov byte [rsp + 0x3c], 0xe4
mov byte [rsp + 0x3d], 0x83
mov byte [rsp + 0x3e], 0xe3
mov byte [rsp + 0x3f], 0xba
mov byte [rsp + 0x40], 0x21
mov byte [rsp + 0x41], 0x10
mov byte [rsp + 0x42], 0x27
mov byte [rsp + 0x43], 0x81
mov byte [rsp + 0x44], 0xe4
mov byte [rsp + 0x45], 0xd8
mov byte [rsp + 0x46], 0xe3
mov byte [rsp + 0x47], 0xa6
mov byte [rsp + 0x48], 0x22
mov byte [rsp + 0x49], 0x75
mov byte [rsp + 0x4a], 0x28
mov byte [rsp + 0x4b], 0xc7
mov eax, 0x150
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x14002312e
mov eax, 0x150
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword gs:[0x58]
mov ecx, 0x150
mov ecx, ecx
mov rax, qword [rax]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov eax, 0x130
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140002ea0
lea rcx, [0x140024a80]
call fcn.140008718
nop
mov eax, 0x130
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400085e0
add rsp, 0x68
ret
Function at 0x140003520
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x48
mov qword [0x14000d150], rcx
xor ecx, ecx
call qword [sym.imp.VBoxRT.dll_RTR3InitExeNoArguments]
test eax, eax
jns 0x140003544
mov ecx, eax
call qword [sym.imp.VBoxRT.dll_RTMsgInitFailure]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
jne 0x140003564
lea rdx, str.GetCommandLineW_failed
lea ecx, [rax + 1]
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
add rsp, 0x48
ret
lea r8, str.B:_bAntidetect_srcVBoxMain_src_helper_appsVBoxExtPackHelperApp.cpp
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.VBoxRT.dll_RTUtf16ToUtf8Tag]
test eax, eax
jns 0x140003597
mov r8d, eax
lea rdx, str.Failed_to_convert_the_command_line:__Rrc
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
add rsp, 0x48
ret
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.VBoxRT.dll_RTGetOptArgvFromString]
test eax, eax
js 0x1400035de
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
call fcn.140003610
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_RTGetOptArgvFree]
jmp 0x1400035f5
mov r8d, eax
lea rdx, str.RTGetOptArgvFromString_failed:__Rrc
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.VBoxRT.dll_RTStrFree]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x14002fa20
Capabilities:
Terminate process

Disassembly:
mov edx, ecx
retf 0xd36c
cld
pop r11
jmp 0x14002fa2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002fa3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002fa25
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002fa55
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002fa42
sub eax, 3
jb 0x14002fa6f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002faa6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002fa96
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002fa94
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002fa83
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002f9e2
jmp 0x14002fa2d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1e200
mov dl, 0xb
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002faf6
cmp rsi, rcx
jae 0x14002fafe
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002fadd
cmp al, 0x8f
ja 0x14002fadd
cmp byte [rsi - 2], 0xf
je 0x14002fae3
sub al, 0xe8
cmp al, 1
ja 0x14002fac7
cmp rsi, rcx
jae 0x14002fafe
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002facd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002fafe
lodsb al, byte [rsi]
jmp 0x14002fadd
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2d000]
mov eax, dword [rdi]
or eax, eax
je 0x14002fb5b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002fb0b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002fb55
mov qword [rbx], rax
add rbx, 8
jmp 0x14002fb2b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002fb95
cmp al, 0xef
ja 0x14002fb87
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002fb67
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002fb76
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14002fc14], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14002fc14
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002fc04
sub rsp, 0xffffffffffffff80
jmp 0x14001d50c
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013160
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144d0
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144e3
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001450d
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014521
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014533
xor al, al
jmp 0x140014551
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001454f
xor al, al
jmp 0x140014551
mov al, 1
add rsp, 0x38
ret
Function at 0x140011316
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140016140
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x720
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x130
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x748]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x6f8], rax
lea rcx, [0x1400230ad]
call fcn.14001138e
lea rax, [rbp + 0x10]
lea rcx, str._unknown_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f4
rep stosb byte [rdi], al
lea rax, [rbp + 0x240]
lea rcx, str.notepad.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x258]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f0
rep stosb byte [rdi], al
mov r8d, dword [rbp + 0x720]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x468], rax
cmp qword [rbp + 0x468], 0
je 0x140016295
lea r9, [rbp + 0x4a4]
mov r8d, 8
lea rdx, [rbp + 0x488]
mov rcx, qword [rbp + 0x468]
call fcn.140011069
test eax, eax
je 0x140016248
mov r9d, 0x104
lea r8, [rbp + 0x10]
mov rdx, qword [rbp + 0x488]
mov rcx, qword [rbp + 0x468]
call fcn.1400113c5
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140016288
lea rcx, str._nFOUND_NOTEPAD_PID__n
call fcn.1400111a9
mov r8d, dword [rbp + 0x720]
lea rdx, [rbp + 0x10]
lea rcx, str._t_s__PID:__u__n
call fcn.1400113fc
mov eax, dword [rbp + 0x720]
jmp 0x140016295
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001adc0]
call fcn.140011325
mov rax, rdi
mov rcx, qword [rbp + 0x6f8]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x700]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011410
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140015e30
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1a8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400230ad]
call fcn.14001138e
mov edx, dword [rbp + 0x160]
lea rcx, str.Notepad_pid:__d__n
call fcn.1400111a9
mov r8d, dword [rbp + 0x160]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140015f6a
lea rcx, str._nOPENED_HANDLE_TO_NOTEPAD__n
call fcn.1400111a9
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0xaa
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
mov edx, 0xaa
lea rcx, str._nallocated__zu_bytes_to_buffer__n
call fcn.1400111a9
mov qword [rsp + 0x20], 0
mov r9d, 0xaa
lea r8, [0x14001e0b0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp + 0x24]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140015f68
lea rcx, str._nFAILED_TO_CREATE_THREAD_AND_EXECUTE_n
call fcn.1400111a9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015f76
lea rcx, str._nERROR:_COULD_NOT_OPEN_NOTEPAD.EXE_HANDLE_n
call fcn.1400111a9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ae20]
call fcn.140011325
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x417760
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41790b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [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 fcn.00433f40
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x4177ce
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4177e1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417805
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417819
cmp rbx, 0x1000
jae 0x4177d8
nop
jmp 0x417889
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41782d
xor edx, edx
jmp 0x417880
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 fcn.00433f40
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
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]
nop
test dl, dl
jne 0x41780f
jmp 0x4177f5
call fcn.00464600
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004386a0
lea rax, [0x00521acb]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00438fa0
mov rax, qword [rsp + 0x38]
call fcn.00438ca0
lea rax, [0x00521b8b]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438fa0
mov rax, qword [rsp + 0x30]
call fcn.00438ca0
call fcn.00438900
call fcn.00438720
lea rax, [0x00524aed]
mov ebx, 0x21
call fcn.00436de0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460a40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417760
Function at 0x417940
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417b6a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00433fc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4179bb
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4179ce
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4179f0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x417a04
cmp rbx, 0x1000
jae 0x4179c5
jmp 0x417a8e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x417a16
xor esi, esi
jmp 0x417a80
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00433fc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x4179fa
jmp 0x4179e2
call fcn.00464600
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417b09
call fcn.004386a0
lea rax, [0x00522167]
mov ebx, 0x19
call fcn.00438fa0
mov rax, qword [rsp + 0x68]
call fcn.00438ca0
lea rax, [0x00521b8b]
mov ebx, 0x19
nop
call fcn.00438fa0
mov eax, dword [rsp + 0x34]
call fcn.00438ca0
call fcn.00438900
call fcn.00438720
lea rax, [0x0051dbb9]
mov ebx, 0xd
call fcn.00436de0
cmp eax, 0x5af
je 0x417ab3
call fcn.004386a0
lea rax, [0x00522167]
mov ebx, 0x19
call fcn.00438fa0
mov rax, qword [rsp + 0x38]
call fcn.00438ca0
lea rax, [0x00521b8b]
mov ebx, 0x19
nop dword [rax]
call fcn.00438fa0
mov eax, dword [rsp + 0x34]
call fcn.00438ca0
call fcn.00438900
call fcn.00438720
lea rax, [0x005241d9]
mov ebx, 0x1f
call fcn.00436de0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460a40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417940