joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021f0
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x100
lea rcx, [0x14002f468]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x1400023a0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0xc8
xor rbx, 0x974a6aa
call fcn.140005840
mov r8, rbx
lea rdx, str._lld
lea rcx, [rsp + 0x30]
call fcn.1400025a0
xor edx, edx
lea r8, [rsp + 0x30]
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea edx, [rdi + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, [rsp + 0x30]
mov qword [0x1401563a0], rax
call fcn.140002600
lea rdx, [rsp + 0x30]
call fcn.140002600
mov rcx, qword [0x140156390]
mov rdx, rax
mov rbx, rax
mov qword [rcx + 0x10], 0x4300
lea rcx, str.FileMapping__i__n
call fcn.140001100
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 6]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
lea rcx, str.pDrawList__llx__n
mov rbx, rax
call fcn.140001100
xor edx, edx
lea rcx, str.C:WindowsSystem32_notepad.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
mov r8d, 0x7200
lea rdx, [0x140149120]
lea rcx, str.notepad.exe
call fcn.1400034b0
mov rcx, qword [rbx + 0x30]
lea rdx, [0x14002f520]
mov qword [rbx + 0x10], rcx
mov r8d, 0x119c00
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x18], rcx
lea rcx, str.dwm.exe
mov qword [rbx + 0x38], rdi
call fcn.1400034b0
nop word [rax + rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [0x140156390]
mov qword [rcx + 8], rax
mov eax, dword [0x1401563b8]
inc eax
cmp eax, 0xff
cmovg eax, edi
mov dword [0x1401563b8], eax
mov rax, qword [0x140156390]
test rax, rax
je 0x140002330
mov ecx, dword [rax + 4]
cmp ecx, 0x1000
jl 0x14000237e
mov dword [rax + 4], edi
mov ecx, edi
cmp byte [rax + 1], dil
jne 0x140002330
cmp byte [rax], 1
jne 0x140002330
test ecx, ecx
jne 0x140002330
call fcn.1400016e0
mov rax, qword [0x140156390]
mov word [rax], 0x100
jmp 0x140002330
lea rcx, str.111_n
call fcn.1400010a0
xor edi, edi
lea rdx, [rsp + 0x110]
lea rcx, str.Start__d_n
mov dword [rsp + 0x110], edi
call fcn.140001160
mov rbx, qword [rsp + 0x118]
xor eax, eax
add rsp, 0x100
pop rdi
ret
Function at 0x140002600
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
lea rdi, [0x1401563c8]
mov rcx, rdi
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea rdx, [0x1401563f0]
mov dword [0x140156400], 0
mov qword [0x1401563f8], rdi
mov dword [0x1401563f0], 0x18
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], 0x115000
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [0x1401563a8], rax
test rax, rax
jne 0x14000268c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400026b9
mov word [rax], 1
mov qword [0x140156390], rax
mov rax, qword [0x1401563a8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400033b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140003429
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140003429
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x5c]
call fcn.140010224
test eax, eax
jne 0x140003427
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x140003436
jmp 0x1400033eb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x278
ret

Function at 0x1400034b0
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x90]
call fcn.1400033b0
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003586
mov dword [rsp + 0x68], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x74], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x6c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000357b
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400035b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov eax, 0xfffffffe
jmp 0x140003641
mov rcx, qword [rsp + 0x58]
call fcn.140003440
movzx eax, al
test eax, eax
jne 0x1400035dc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x140003641
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8d, eax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
call fcn.1400026e0
movzx eax, al
test eax, eax
jne 0x140003634
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff8
jmp 0x140003641
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x80
pop rdi
ret
Function at 0x14001076c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140010749
call fcn.140010b08
mov dword [rax], 0x16
call fcn.140010134
or eax, 0xffffffff
jmp 0x140010766
sub dword [rcx + 0x10], 1
jns 0x140010758
add rsp, 0x28
jmp 0x140018998
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140010728
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1400189ca
call fcn.140010b08
mov dword [rax], 0x16
call fcn.140010134
jmp 0x140018ae7
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140018ae7
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140018ae7
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400189f9
lock or dword [rcx + 0x14], 0x10
jmp 0x140018ae7
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140018a0d
call fcn.140018b04
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1400174bc
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1400190d8
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140018ad5
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140018aa0
mov rcx, rdi
call fcn.1400174bc
cmp eax, esi
je 0x140018a8b
mov rcx, rdi
call fcn.1400174bc
cmp eax, 0xfffffffe
je 0x140018a8b
mov rcx, rdi
call fcn.1400174bc
movsxd rbx, eax
lea r14, [0x140155e10]
mov rcx, rdi
sar rbx, 6
call fcn.1400174bc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140018a92
lea rdx, [0x140154230]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140018aa0
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140018ac4
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140018ac4
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140018ac4
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140018aea
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400143f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014220
Function at 0x140001900
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rcx + 4], 0
mov rbx, rcx
mov eax, r8d
mov rsi, rdx
btr eax, 0x1c
mov r10d, 0x20000
mov dword [rcx + 0x30], eax
lea eax, [r9 + 0x18]
mov word [rcx], ax
add r9w, 0x40
mov word [rcx + 2], r9w
mov rcx, qword [0x14002bb20]
add rcx, rdx
mov qword [rbx + 0x28], rcx
and qword [rdx + 0x18], 0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
test byte [rcx + 3], 2
je 0x14000197a
mov eax, r8d
and eax, 0xffff0000
cmp eax, r10d
je 0x140001995
bt r8d, 0x1c
jae 0x1400019a6
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
test byte [rcx + 3], 0x40
jne 0x1400019a6
mov dword [rbx + 0x34], 0xc0000022
mov eax, 0xc0000022
jmp 0x140001a57
lea r14, [rdx + 0x10]
mov r8d, dword [r14]
lea rdi, [rdx + 0x20]
mov r9, rdi
jmp 0x1400019d8
mov rcx, qword [r9]
mov rdx, r9
add r9, 8
dec r8d
test rcx, rcx
je 0x1400019d8
mov rax, qword [0x14002bb20]
add qword [rcx], rax
sub rcx, rbx
mov qword [rdx], rcx
test r8d, r8d
jne 0x1400019b6
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [0x14002bb18]
mov r8, rbx
mov qword [rsp + 0x28], rax
mov edx, r10d
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x40], 0x3b8
call fcn.1400010a4
sub rsi, qword [0x14002bb20]
mov qword [rbx + 0x28], rsi
mov r8d, dword [r14]
jmp 0x140001a48
mov rdx, qword [rdi]
mov rcx, rdi
add rdi, 8
dec r8d
test rdx, rdx
je 0x140001a48
add rdx, rbx
mov qword [rcx], rdx
mov rcx, qword [0x14002bb20]
sub qword [rdx], rcx
test r8d, r8d
jne 0x140001a26
test eax, eax
jns 0x140001a54
mov dword [rbx + 0x34], eax
mov eax, dword [rbx + 0x34]
mov rcx, qword ds:[rsp + 0x48]
xor rcx, rsp
call fcn.140003550
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop r11
lfence
jmp r11
Function at 0x140002f80
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9, rcx
mov r8d, 0xe7e477bb
cmp byte [rcx], r10b
je 0x140002fbd
mov rdx, r8
mov rax, r8
shl rdx, 0x16
inc r10d
shr rax, 7
or rdx, rax
movzx eax, word [rcx]
imul rdx, rax
mov ecx, r10d
xor r8, rdx
add rcx, r9
add r8, r8
cmp byte [rcx], 0
jne 0x140002f91
mov rax, r8
pop r11
lfence
jmp r11
Function at 0x140003e98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003ee2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003ee2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003ee2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003ee2
cmp dword [rcx + 0x84], 0xe
jbe 0x140003ee2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003ee4
xor al, al
add rsp, 0x28
ret

Function at 0x140010694
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010703
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010703
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010703
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010703
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010703
cmp dword [rcx + 0x84], 0xe
jbe 0x140010703
cmp dword [rcx + 0xf8], 0
je 0x140010703
mov ecx, ebx
call fcn.1400107c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010590
nop
cmp dword [rbp + 0x20], 0
je 0x140010751
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001075c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140010694

Function at 0x1400108a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010694
Function at 0x140015e58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140015edf
mov rsi, rbx
cmp word [rax], bp
je 0x140015e9e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140015e88
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140015e84
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140012ae0
mov rdi, rax
test rax, rax
je 0x140015ecc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001d120
mov rbp, rdi
xor ecx, ecx
call fcn.140011e90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ca00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ca28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ca28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400aa000
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400aa070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400b70a4]
mov rbx, rcx
test esi, esi
jle 0x1400aa1a0
mov rax, qword [0x1400b70a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400aa0bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400aa145
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400aa0a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400aa1c2
mov rax, qword [0x1400b70a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400b70a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400aa1a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400aa13e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400aa150
add dword [0x1400b70a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400b70a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400aa13e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400aa0c8
mov rax, qword [0x1400b70a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400aa730
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400b7100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b70e0]
test rbx, rbx
je 0x1400aa78c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400aa783
test rsi, rsi
je 0x1400aa783
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400aa768
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400aa9a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400aa9b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400aa9c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400aa9d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400aaa1d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400aaa14
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400aaa1f
add rax, 0x28
cmp rax, r9
jne 0x1400aaa00
xor eax, eax
ret

Function at 0x1400aaa20
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400aaab0
mov rdx, qword [0x1400b3f00]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400aaa9e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400aaa9e
cmp word [rax + 0x18], 0x20b
jne 0x1400aaa9e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400aaab0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400aaa89
add rbx, 0x28
cmp rbx, rdi
je 0x1400aaab0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400aaa80
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400b3f00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400aaae0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400aaae8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400aaae0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400aab3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400aab34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400aaae0
add rax, 0x28
cmp rax, r9
jne 0x1400aab20
xor eax, eax
ret

Function at 0x1400aab40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b3f00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400aab5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400aab68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400aab5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400aab80
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400b3f00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400aaba0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400aaba8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400aaba0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400aabf0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400aabe7
test rcx, rcx
je 0x1400aaba0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400aabd8
xor eax, eax
ret

Function at 0x1400aac00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b3f00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400aac1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400aac28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400b3f00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400aac60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400aac68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400aac60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400aac60
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400aacb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400aacc0
add rdx, 0x28
cmp r9, rdx
jne 0x1400aaca0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400b3f00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400aacf2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400aad00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400aacf2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400aacf2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400aacf2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400aad55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400aad68
add rdx, 0x28
cmp rdx, r10
jne 0x1400aad40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400aad77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400aad87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400aad5e
test ecx, ecx
jg 0x1400aad70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret