joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026d18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140026dd8
test rdx, rdx
je 0x140026dd8
xor r9d, r9d
lea rdx, [0x14002c2b8]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x140026d5f
xor ebx, ebx
jmp 0x140026d6e
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x14002c2b8]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x140026d8d
xor ecx, ecx
jmp 0x140026d9c
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x140026dcd
test rcx, rcx
je 0x140026dcd
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x140026dc7
cmp dword [rcx], eax
jne 0x140026dc7
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x140026dc7
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x140026dc9
xor edi, edi
mov eax, edi
jmp 0x140026dda
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140027138
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x20]
mov dword [rsp + 0x30], 6
mov r9d, 1
mov qword [r11 - 0x38], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftActive_SetupInstalled_Components89820200_ECBD_11CF_8B85_00AA005B4383
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002720d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Locale
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14002720d
lea rsi, [0x14002c450]
mov rdi, rsi
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8d, 3
call sub.msvcrt.dll__wcsnicmp
test eax, eax
je 0x1400271fb
inc ebx
add rdi, 0x10
movsxd rax, ebx
cmp rax, 0x1c
jb 0x1400271d3
jmp 0x14002720d
movsxd rax, ebx
add rax, rax
movzx eax, word [rsi + rax*8 + 8]
mov word [0x14003f69c], ax
movzx eax, word [0x14003f69c]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140027ea0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140027c90
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x14003f6b8], rbx
je 0x140027ce2
cmp rax, rbx
jne 0x140027cd5
mov ebx, 1
mov r14d, ebx
jmp 0x140027ce7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140027cb9
mov ebx, 1
mov eax, dword [0x14003f6c0]
cmp eax, ebx
jne 0x140027cfd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140027d66
mov eax, dword [0x14003f6c0]
test eax, eax
jne 0x140027d60
mov dword [0x14003f6c0], ebx
lea r12, [0x14002a6e0]
lea rdi, [0x14002a6c8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x140027d52
test eax, eax
jne 0x140027d56
mov rsi, qword [rdi]
test rsi, rsi
je 0x140027d47
mov rcx, rsi
mov rax, qword [0x14002a6a0]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140027d24
test eax, eax
je 0x140027d66
mov eax, 0xff
jmp 0x140027e47
mov dword [0x14003f094], ebx
mov eax, dword [0x14003f6c0]
cmp eax, ebx
jne 0x140027d8d
lea rdx, [0x14002a6c0]
lea rcx, [0x14002a6b0]
call sub.msvcrt.dll__initterm
mov dword [0x14003f6c0], 2
test r14d, r14d
jne 0x140027d9b
xor eax, eax
xchg qword [0x14003f6b8], rax
cmp qword [0x14003f6c8], 0
je 0x140027dd3
lea rcx, [0x14003f6c8]
call fcn.140028340
test eax, eax
je 0x140027dd3
mov rbx, qword [0x14003f6c8]
mov rcx, rbx
mov rax, qword [0x14002a6a0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x14003f0a8]
mov rdx, qword [0x14003f0a0]
mov ecx, dword [0x14003f098]
call fcn.14000b7fc
mov dword [0x14003f090], eax
cmp dword [0x14003f0b0], 0
jne 0x140027e03
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003f094], 0
jne 0x140027e18
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003f090]
jmp 0x140027e47
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.1400283d4
add rsp, 0x28
jmp 0x140027c90

Function at 0x14002822c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140028278
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028270
cmp dword [rcx + 0x3c], edx
jl 0x140028270
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140028270
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 0x140028278
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x1400130e0
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 0x140011276
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400118a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x40]
lea rcx, [0x140022015]
call fcn.140011375
cmp dword [rbp + 0xe0], 2
jge 0x1400118e9
mov rdx, qword [section..data]
lea rcx, str._s_usaeg:_program.exe__PID_
call fcn.140011195
mov eax, 1
jmp 0x140011b0e
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xe8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [0x14001d190], eax
mov r8d, dword [0x14001d190]
mov rdx, qword [0x14001d008]
lea rcx, str._s_trying_to_open_a_handle_to_process___ld__n
call fcn.140011195
mov r8d, dword [0x14001d190]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14001d1a0], rax
mov r9, qword [0x14001d1a0]
mov r8d, dword [0x14001d190]
mov rdx, qword [0x14001d008]
lea rcx, str._s_got_a_handle_to_the_process___ld__code_is____0x_p_n
call fcn.140011195
cmp qword [0x14001d1a0], 0
jne 0x140011996
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [0x14001d190]
mov rdx, qword [0x14001d010]
lea rcx, str.__s_couldnt_get_a_handle_to_the_process___ld___error:__ld_
call fcn.140011195
mov eax, 1
jmp 0x140011b0e
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 1
xor edx, edx
mov rcx, qword [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x14001d198], rax
mov r8d, 1
mov rdx, qword [0x14001d008]
lea rcx, str._s_allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions_n
call fcn.140011195
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [0x14001d018]
mov rdx, qword [0x14001d198]
mov rcx, qword [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, 1
mov rdx, qword [0x14001d008]
lea rcx, str._s_wrote__zu_bytes_with_to_process_memory_n
call fcn.140011195
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [0x14001d198]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [0x14001d1a8], rax
cmp qword [0x14001d1a8], 0
jne 0x140011a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [0x14001d010]
lea rcx, str._e_failed_to_get_a_handle_to_the_thread_error:__ld
call fcn.140011195
mov rcx, qword [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140011b0e
mov r9, qword [0x14001d1a8]
mov r8d, dword [0x14001d190]
mov rdx, qword [section..data]
lea rcx, str._s_got_a_handle_to_the_thread_pid_is:__ld_____0x_p_n
call fcn.140011195
mov edx, 0xffffffff
mov rcx, qword [0x14001d1a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [0x14001d008]
lea rcx, str._s_cleaning_up_n
call fcn.140011195
mov rcx, qword [0x14001d1a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [section..data]
lea rcx, str._s_finished__see_you_next_time
call fcn.140011195
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014430
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014450
xor al, al
jmp 0x1400144d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014463
xor al, al
jmp 0x1400144d1
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 0x14001448d
xor al, al
jmp 0x1400144d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144a1
xor al, al
jmp 0x1400144d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144b3
xor al, al
jmp 0x1400144d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400144cf
xor al, al
jmp 0x1400144d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c4ab0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c4ac0]
mov dword [rax], 1
mov rax, qword [0x1400c4ad0]
mov dword [rax], 1
mov rax, qword [0x1400c4a50]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c4aa0]
mov dword [0x1400ea00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400c4ba0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400c4b80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400c3e70]
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 [sym._matherr]
call sym.__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 0x1400018b8
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x20]
mov rdx, qword [rbp + 0x20]
mov r8, rdx
lea rdx, str.C:WindowsSystem32_
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov rax, qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call rax
test eax, eax
setne bl
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x140001928
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x140001eae
Capabilities:
Check if file exists

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
jmp 0x140001eca
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov rax, qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call rax
test eax, eax
sete al
test al, al
jne 0x140001ebc
lea rax, str.Download_completed:
mov rdx, rax
mov rax, qword [0x1400c4450]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
mov rax, qword [str._8_v_]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400021c1
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rbx, rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov r8d, 0
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
test eax, eax
setne al
test al, al
je 0x14000224e
lea rax, str.Overwritten:
mov rdx, rax
mov rax, qword [0x1400c4450]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x28]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
mov rax, qword [str._8_v_]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x1400022b8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 4], eax
lea rax, str.Failed_to_overwrite
mov rdx, rax
mov rax, qword [0x1400c4430]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x28]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
lea rax, str.._Error_code:
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 4]
mov edx, eax
call method.std::ostream.operator___unsigned_long_
mov rcx, rax
mov rax, qword [str._8_v_]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 0
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x14000d830
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000d8a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ea094]
test esi, esi
mov rbx, rcx
jle 0x14000d9d0
mov rax, qword [0x1400ea098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d8eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d975
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d8d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x14000d9f2
mov rax, qword [0x1400ea098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ea098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d9d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d96e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d980
add dword [0x1400ea094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400ea098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d96e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000d8f8
mov rax, qword [0x1400ea098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000df60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ea100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea0e0]
test rbx, rbx
je 0x14000dfbc
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 0x14000dfb3
test rsi, rsi
je 0x14000dfb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000df98
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 0x14000e1d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x14000e1e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x14000e1f0
Capabilities:
Parse pe header

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

Function at 0x14000e220
Capabilities:
Enumerate pe sections

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

Function at 0x14000e270
Capabilities:
Parse pe header

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

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

Function at 0x14000e390
Capabilities:
Parse pe header

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