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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140009231
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400092ab
mov rdi, r14
mov rcx, rbx
call fcn.14000b970
test rax, rax
jle 0x140009283
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140012400
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000929b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400092a3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140009245
sub r14, rdi
jmp 0x14000938f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400092c2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400092c4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400092f6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140012400
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000938c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140009331
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000936d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001a808
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000938c
cmp rbp, rax
ja 0x140009340
test rbp, rbp
je 0x14000938c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001a808
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140011028
Capabilities:
Parse pe header

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

Function at 0x140016c8c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016ab8
Function at 0x10000112c
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x10000114f
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x10000117a
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x100001173
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret
Function at 0x100007550
Capabilities:
Reference cloudflare dns server

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x100027100]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.1000066dc
mov rdi, rax
mov qword [rsp + 0x28], rax
xor ebp, ebp
cmp rax, rbp
jne 0x100007595
jmp 0x100007726
call fcn.100008184
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, rbp
jne 0x1000075e9
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x1000075dc
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x1000075d4
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x1000075cc
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
jmp 0x100007726
xor ecx, ecx
call qword [fcn.100004120]
movzx esi, ax
lea rcx, [0x1000048b8]
call qword [fcn.100004118]
mov edx, eax
movzx r8d, si
mov rcx, rbx
call fcn.1000082e4
cmp al, bpl
jne 0x100007676
mov qword [rsp + 0x20], rbx
lea rcx, [rbx + 0x10]
call fcn.100008484
nop
mov rcx, rbx
call fcn.10000853c
mov rcx, rbx
call fcn.100005edc
nop
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x100007669
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x100007661
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x100007659
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
jmp 0x100007726
xor eax, eax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
mov dword [rsp + 0x52], eax
mov word [rsp + 0x56], ax
mov word [rsp + 0x38], 2
lea rcx, [0x1000048c0]
call qword [fcn.100004118]
mov dword [rsp + 0x3c], eax
mov cx, 0x8ae
call qword [fcn.100004120]
mov word [rsp + 0x3a], ax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.100005fa8
cmp al, bpl
jne 0x10000772a
mov qword [rsp + 0x20], rbx
lea rcx, [rbx + 0x10]
call fcn.100008484
nop
mov rcx, rbx
call fcn.10000853c
mov rcx, rbx
call fcn.100005edc
nop
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x10000771e
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x100007716
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x10000770e
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
xor al, al
jmp 0x100007789
mov qword [rsp + 0x20], rbx
lea rcx, [rbx + 0x10]
call fcn.100008484
nop
mov rcx, rbx
call fcn.10000853c
mov rcx, rbx
call fcn.100005edc
nop
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x10000777f
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x100007777
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x10000776f
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1000233b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100007850
Capabilities:
Reference cloudflare dns server

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x100027100]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.1000066dc
mov rdi, rax
mov qword [rsp + 0x28], rax
xor ebp, ebp
cmp rax, rbp
jne 0x100007895
jmp 0x100007a26
call fcn.100008184
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, rbp
jne 0x1000078e9
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x1000078dc
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x1000078d4
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x1000078cc
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
jmp 0x100007a26
xor ecx, ecx
call qword [fcn.100004120]
movzx esi, ax
lea rcx, [0x1000048b8]
call qword [fcn.100004118]
mov edx, eax
movzx r8d, si
mov rcx, rbx
call fcn.1000082e4
cmp al, bpl
jne 0x100007976
mov qword [rsp + 0x20], rbx
lea rcx, [rbx + 0x10]
call fcn.100008484
nop
mov rcx, rbx
call fcn.10000853c
mov rcx, rbx
call fcn.100005edc
nop
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x100007969
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x100007961
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x100007959
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
jmp 0x100007a26
xor eax, eax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
mov dword [rsp + 0x52], eax
mov word [rsp + 0x56], ax
mov word [rsp + 0x38], 2
lea rcx, [0x1000048c0]
call qword [fcn.100004118]
mov dword [rsp + 0x3c], eax
mov cx, 0x8ae
call qword [fcn.100004120]
mov word [rsp + 0x3a], ax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.100006148
cmp al, bpl
jne 0x100007a2a
mov qword [rsp + 0x20], rbx
lea rcx, [rbx + 0x10]
call fcn.100008484
nop
mov rcx, rbx
call fcn.10000853c
mov rcx, rbx
call fcn.100005edc
nop
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x100007a1e
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x100007a16
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x100007a0e
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
xor al, al
jmp 0x100007a89
mov qword [rsp + 0x20], rbx
lea rcx, [rbx + 0x10]
call fcn.100008484
nop
mov rcx, rbx
call fcn.10000853c
mov rcx, rbx
call fcn.100005edc
nop
mov rbx, qword [rdi]
cmp rbx, rbp
je 0x100007a7f
mov rdx, qword [rbx + 0x2a8]
cmp rdx, rbp
je 0x100007a77
mov rax, qword [0x100027a90]
cmp byte [rax + 0x48], bpl
je 0x100007a6f
mov rbp, qword [rax + 0x40]
mov rcx, rbp
call fcn.100019d90
mov rcx, rbx
call fcn.100005edc
mov rcx, rdi
call fcn.100005edc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1000233b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10001c374
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
xor edx, edx
mov rbx, r8
lea ecx, [rdx + 0x10]
call fcn.100005e38
mov r9, rax
xor eax, eax
cmp r9, rax
je 0x10001c3bb
mov qword [rsp + 0x28], rax
lea r8, [0x100005e08]
xor edx, edx
xor ecx, ecx
mov qword [r9], rdi
mov qword [r9 + 8], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1000236e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10002372a
cmp rcx, 0xffffffffffffffff
je 0x10002372a
cmp word [rcx], 0x5a4d
jne 0x100023722
cmp dword [rcx + 0x3c], edx
jl 0x100023722
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100023722
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 0x10002372a
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1000238e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100027100]
jne 0x1000233ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1000233c6
repz ret
ror rcx, 0x10
jmp 0x100023840
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100027590]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x100027688]
mov qword [rsp + 0x58], rax
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 0x1000238c5
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, [0x100027590]
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 0x1000238e7
mov rax, qword [rsp + 0x88]
mov qword [0x100027688], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100027628], rax
mov rax, qword [0x100027688]
mov qword [0x100027500], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100027610], rax
mov dword [0x1000274f0], 0xc0000409
mov dword [0x1000274f4], 1
mov rax, qword [0x100027100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100027108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100004330]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400dd540]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400dd550]
mov dword [rax], 1
mov rax, qword [0x1400dd560]
mov dword [rax], 1
mov rax, qword [0x1400dd530]
mov dword [rax], 1
mov rax, qword [0x1400dd3a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400dd520]
mov dword [0x140108020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400dd4e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400dd4c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400dc7e0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x1400028b4
Capabilities:
Check for debugger via api
Check for outputdebugstring error
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
setne al
test al, al
je 0x1400028d8
mov ecx, 1
call sym.exit
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov eax, dword [rbp - 4]
test eax, eax
je 0x14000290c
mov ecx, 1
call sym.exit
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
lea rcx, [0x1400d71d1]
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x140002946
mov ecx, 1
call sym.exit
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000ce00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x14000ce70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1401080f4]
mov r12, rcx
test ebx, ebx
jle 0x14000cfa0
mov rax, qword [0x1401080f8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000cebc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000cf43
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000cea0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000cfc2
mov rax, qword [0x1401080f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401080f8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000cfa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000cf3c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000cf50
add dword [0x1401080f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1401080f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000cf3c
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 ebx, ebx
jmp 0x14000cec7
mov rax, qword [0x1401080f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140108160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140108140]
test rbx, rbx
je 0x14000d4d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000d4cb
test r12, r12
je 0x14000d4cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d4b0
lea rcx, [0x140108160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000d6f0
Capabilities:
Parse pe header

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

Function at 0x14000d720
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000d76c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x14000d763
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000d76e
add rax, 0x28
cmp rax, r9
jne 0x14000d750
xor eax, eax
ret

Function at 0x14000d770
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x14000d800
mov rdx, qword [0x1400dd3a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000d7ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000d7ee
cmp word [rax + 0x18], 0x20b
jne 0x14000d7ee
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14000d800
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x14000d7d9
add r12, 0x28
cmp r12, rsi
je 0x14000d800
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x14000d7d0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x1400dd3a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000d830
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000d838
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d830
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000d885
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000d87c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d830
add rax, 0x28
cmp rax, r9
jne 0x14000d868
xor eax, eax
ret

Function at 0x14000d890
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dd3a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000d8b0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000d8b8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000d8b0
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x14000d8d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400dd3a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000d8f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000d8f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000d8f0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000d938
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000d92f
test rcx, rcx
je 0x14000d8f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000d920
xor eax, eax
ret

Function at 0x14000d940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dd3a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000d960
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000d968
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x1400dd3a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000d9a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000d9a8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000d9a0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000d9a0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000d9e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d9f8
add rax, 0x28
cmp r9, rax
jne 0x14000d9d0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x1400dd3a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000da32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000da40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000da32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000da32
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x14000da32
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000da8d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000daa0
add rdx, 0x28
cmp r10, rdx
jne 0x14000da78
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000daaf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000dabf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000da96
test ecx, ecx
jg 0x14000daa8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret