joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140ca9101
Capabilities:
Encode data using xor

Disassembly:
and dword [rsp + 0x30], 0x7d1a5949
not qword [rsp + 0x30]
mov r15d, r14d
lea rdi, [r14 + r14*4 + 0x522045f2]
setb r15b
setbe byte [rsp + 0x30]
mov word [rsp + 0x30], 0x7821
or r14, r15
not r14d
add rdi, r15
test r14b, r14b
lea rdi, [r14 + rdi*8 + 0x70c632ba]
movzx di, word [rsp + 0x30]
setne dil
or di, word [rsp + 0x33]
mov dil, 0x1f
add qword [rsp], 0xffffffffffffc8c0
call fcn.140c5c0a8
lea rsi, [rsi + rsi*4 + 0x43a1764e]
mov dword [rsp + 0x78], esi
je fcn.140bb3c00
neg word [rsp + 0x78]
and word [rsp + 0x78], 0x382a

Function at 0x140cb9d60
Capabilities:
Encode data using base64
Encrypt data using speck

Disassembly:
push qword [rsp + 0x30]
popfq
lea rsp, [rsp + 0x38]
call fcn.140cf7dc6
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x20]
call fcn.140cf4cc3
Function at 0x140001000
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, [0x140001d40]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x50]
lea rcx, [0x1400014e0]
mov qword [rax + 0x68], rcx
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x50]
lea rdx, [0x140001420]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1400010f0]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1400010d0]
mov qword [rcx + rax + 0x70], rdx
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, section..data
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
lea rdx, section..data
lea rcx, [0x140003010]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000b240
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
lea esi, [r8 - 7]
mov rbp, rdx
cmp r8d, esi
jbe case.0x18000b29d.0
lea edi, [r8 - 0xd9]
xor r14d, r14d
lea r15, [0x180000000]
lea r12, str.Triangulate
nop
cmp edi, 0x1d
ja case.0x18000b29d.7
movzx eax, byte [r15 + rdi + 0xb428]
mov ecx, dword [r15 + rax*4 + 0xb408]
add rcx, r15
jmp rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0x3b]
call fcn.1800465e0
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor ecx, ecx
lea edx, [r9 + 0x5c]
call fcn.18003b1d0
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0x3b]
call fcn.1800465e0
jmp case.0x18000b29d.7
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 0x22]
call fcn.180015080
mov dword [rsp + 0x70], eax
jmp case.0x18000b29d.7
cmp qword [0x180074488], r14
je case.0x18000b29d.7
mov ebx, PathYetAnotherMakeUniqueName
nop dword [rax + rax]
cmp ebx, 0x48
je 0x18000b367
cmp ebx, 0x2fd0
je 0x18000b350
cmp ebx, 0x5f58
je 0x18000b347
cmp ebx, 0x8ee0
je 0x18000b33e
cmp ebx, 0xbe68
jne 0x18000b39b
mov byte [0x18007410f], r14b
jmp 0x18000b39b
mov dword [0x180074484], r14d
jmp 0x18000b39b
mov dword [0x180074480], r14d
jmp 0x18000b39b
mov qword [0x180074488], r14
mov dword [0x180074478], r14d
mov dword [0x18007447c], r14d
jmp 0x18000b39b
mov rax, qword [0x180073a58]
mov r8, qword [rax + 0x38]
test r8, r8
je 0x18000b38e
xor edx, edx
mov ecx, 0x15b
call fcn.180038180
mov rax, qword [0x180073a58]
mov qword [rax + 0x38], r14
mov rcx, qword [0x180074488]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebx, 0x2f88
cmp ebx, 0xeda8
jbe 0x18000b310
jmp case.0x18000b29d.7
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x18000b3e9
dec edi
lea eax, [rdi + 0xd9]
cmp eax, esi
ja 0x18000b280
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov eax, r14d
jmp 0x18000b3d2
mov rax, qword [0x180073a58]
movzx ecx, byte [rax + 8]
mov byte [rsp + 0x70], cl
jmp case.0x18000b29d.0
mov eax, 1
jmp 0x18000b3d2
Function at 0x180021e20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea esi, [r8 - 8]
mov ebx, r8d
mov r15, rdx
mov rbp, rcx
cmp r8d, esi
jbe 0x180021ff0
mov r14, qword [rsp + 0x98]
lea edi, [r8 - 0x116]
mov r12, qword [rsp + 0x98]
lea r13, [0x180000000]
nop dword [rax + rax]
cmp edi, 0x10
ja case.0x180021e84.1
mov ecx, dword [r13 + rdi*4 + 0x22058]
add rcx, r13
jmp rcx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], 2
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0xbb
mov rdx, r14
mov ecx, 2
call fcn.18005f180
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x18002200f
cmp qword [r8 + 8], 2
jne 0x18002200f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov ecx, 0x88
call fcn.180016bb0
mov r12, rax
jmp case.0x180021e84.1
mov eax, 0x118
cmp eax, 0x118
je 0x180022035
add eax, 0x5780
cmp eax, 0x5780
jbe 0x180021f00
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0xbb
mov rdx, r14
mov ecx, 1
call fcn.18005f180
jmp case.0x180021e84.1
mov r9d, 0xba
mov byte [rsp + 0x90], 1
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, r14
call fcn.1800401b0
mov r14, rax
jmp case.0x180021e84.1
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf1
call fcn.180021380
mov r14, rax
mov qword [rsp + 0x98], 0
jmp case.0x180021e84.1
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], 3
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0xbb
mov rdx, r14
mov ecx, 3
call fcn.18005f180
jmp case.0x180021e84.1
xor r8d, r8d
mov r9, r12
xor ecx, ecx
lea edx, [r8 + 0x4c]
call fcn.180006ae0
jmp case.0x180021e84.1
mov eax, dword [r15]
mov dword [rbp + 0x40], eax
dec ebx
dec edi
cmp ebx, esi
ja 0x180021e70
mov eax, dword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.CoreFieldsTreeNodeTypeAreaLevel6
call fcn.18005f980
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test rbp, rbp
jne 0x180022041
mov eax, 0xffffffff
jmp 0x180021ff7
mov r8d, 0xb2
mov rdx, rbp
xor ecx, ecx
call fcn.18005d210
neg al
sbb eax, eax
jmp 0x180021ff7
Function at 0x1800365a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea esi, [r9 + 0x667]
mov ebx, r9d
mov rdi, rdx
cmp r9d, esi
jae 0x1800366a6
xor ebp, ebp
nop dword [rax]
cmp ebx, 0xf0
ja 0x1800366f3
je 0x1800366de
mov eax, ebx
sub eax, 0x37
je 0x1800366c0
sub eax, 5
je 0x18003668d
sub eax, 0x8c
je 0x180036753
sub eax, 9
je 0x18003662c
cmp eax, 0x1c
jne 0x180036740
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rsp + 0x30], rax
jmp 0x180036740
mov r9d, PathMakeUniqueName
mov byte [0x1800738ea], 1
xor r8d, r8d
mov byte [rsp + 0x68], bpl
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.1800162c0
cmp byte [0x1800738eb], bpl
jne 0x180036740
mov rax, qword [0x180073a58]
cmp byte [rax + 9], bpl
je 0x180036740
lea rcx, str.icudt58l_ast_ES.res
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180036740
mov byte [0x1800738eb], 1
jmp 0x180036740
mov rax, qword [0x180073a58]
cmp byte [rax + 7], bpl
je 0x180036740
mov dword [rsp + 0x30], 0xffffffff
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rdi, rdi
je 0x1800366a6
mov r9, qword [rdi]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
mov r8d, 0xf8
call fcn.180034340
jmp 0x180036740
lea r8, str.Browse
mov edx, 0x50
xor ecx, ecx
call fcn.180020650
jmp 0x180036740
mov eax, ebx
sub eax, 0x105
je 0x18003669e
sub eax, 0x61
je 0x18003672e
sub eax, 0x1c
je 0x1800366a6
sub eax, 0x79
je 0x180036714
cmp eax, 0x95
je 0x1800366a6
jmp 0x180036740
xor edx, edx
lea rcx, [0x180073950]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebp
jmp 0x180036740
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0xc7
call fcn.180046da0
add ebx, 0x95
cmp ebx, esi
jb 0x1800365d0
jmp 0x1800366a6
mov eax, dword [rdi]
lea r8, [rsp + 0x68]
mov rcx, qword [0x180073ee8]
mov edx, 0xce
mov dword [rsp + 0x68], eax
call fcn.180051270
mov dword [rsp + 0x30], eax
jmp 0x1800366a6
Function at 0x18003dd50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
mov r14, r9
mov rdi, r8
mov rbp, rdx
mov r15, rcx
lea esi, [rbx + 0x30c]
cmp ebx, esi
jae 0x18003de88
xor r12d, r12d
mov eax, ebx
sub eax, 0xc8
je 0x18003de69
sub eax, 0x17
je 0x18003de0b
sub eax, 0x2b
je 0x18003de55
cmp eax, 0x98
jne 0x18003de45
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], 5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, PathYetAnotherMakeUniqueName
mov dword [rsp + 0x80], 7
lea rdx, str.DS_MIN_F32_si
mov rcx, rdi
call fcn.18003e630
lea rdx, str.PTR_IMM_ATOMIC_CMP_XCHG
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x80], 8
jmp 0x18003de25
mov dword [rsp + 0x30], 6
lea rdx, str._mouseAction
mov dword [rsp + 0x80], 6
lea rax, [rsp + 0x80]
mov r8d, PathYetAnotherMakeUniqueName
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.18003e630
add ebx, 0xc3
cmp ebx, esi
jb 0x18003dd92
jmp 0x18003de88
mov r8, qword [r15]
mov r9, rbp
mov rdx, qword [r14]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
jmp 0x18003de8d
mov r8, qword [0x180073ee8]
mov r9d, 0x127
xor edx, edx
mov qword [rsp + 0x20], r12
xor ecx, ecx
call fcn.180033860
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x18005f8e0
Capabilities:
Terminate process

Disassembly:
mov r9d, 0x8f
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp fcn.180044d60

Function at 0x18005f900
Capabilities:
Check for software breakpoints

Disassembly:
mov r9d, 0x152
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp fcn.180004c00
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140014830
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 0x140015b70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015b90
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015ba3
xor al, al
jmp 0x140015c11
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 0x140015bcd
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015be1
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015bf3
xor al, al
jmp 0x140015c11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015c0f
xor al, al
jmp 0x140015c11
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400043f0]
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
mov rax, qword [0x140004390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400043d0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004340]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014c3
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call dbg.__main
mov dword [rbp - 4], 0
mov eax, dword [0x140003010]
mov edx, eax
lea rax, section..data
mov rcx, rax
call sym.decrypt
mov eax, dword [0x140003010]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov eax, dword [0x140003010]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8, rdx
lea rdx, section..data
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [sym.threadFunction]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001850
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 0x1400018c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x1400019f0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000190b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001995
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a12
mov rax, qword [0x1400070a8]
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 [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000198e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019a0
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000198e
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 0x140001918
mov rax, qword [0x1400070a8]
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 0x140001f80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001fdc
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 0x140001fd3
test rsi, rsi
je 0x140001fd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fb8
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 0x1400021f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002208
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002210
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002220
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 0x14000226d
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 0x140002264
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000226f
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002300
mov rdx, qword [0x140004390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022ee
cmp word [rax + 0x18], 0x20b
jne 0x1400022ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002300
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002300
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022d0
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 0x140002310
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002330
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002338
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002330
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000238d
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 0x140002384
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002330
add rax, 0x28
cmp rax, r9
jne 0x140002370
xor eax, eax
ret

Function at 0x140002390
Capabilities:
Parse pe header

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

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002440
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002437
test rcx, rcx
je 0x1400023f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002428
xor eax, eax
ret
Function at 0x140002450
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140004390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002542
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002550
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002542
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002542
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002542
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 0x1400025a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002590
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ae
test ecx, ecx
jg 0x1400025c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret