joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014e60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14004f808]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
xor edi, edi
test rcx, rcx
je 0x140014e91
mov rax, qword [rcx]
call qword [rax + htons]
mov qword [rbx + 8], rdi
mov ecx, 0x30
call fcn.140023e88
test rax, rax
je 0x140014f64
mov qword [rax + 8], rdi
lea rcx, vtable.StLibs::MemoryStream.0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x28], 0x6400000
mov dword [rax + 0x2c], 1
lea rcx, vtable.StLibs::IOB.0
mov qword [rax + 0x10], rcx
mov qword [rbx + 8], rax
mov eax, dword [0x140053248]
mov dword [rbx + 0x10], 0x40000
mov word [rbx + 0x16], di
test al, 1
jne 0x140014f01
or eax, 1
lea rcx, [0x14003a890]
mov dword [0x140053248], eax
call fcn.1400246bc
lea rdx, [rsp + 0x20]
lea rcx, [0x140053040]
call fcn.14001a850
cmp qword [rsp + 0x30], rdi
je 0x140014f41
cmp qword [rsp + 0x38], 8
lea r9, [rsp + 0x20]
lea r8, [0x140043680]
cmovae r9, qword [rsp + 0x20]
lea rcx, [rbx + 0x16]
mov edx, 0x104
call fcn.140014d10
jmp 0x140014f50
lea rdx, [rbx + 0x16]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp qword [rsp + 0x38], 8
jb 0x140014f62
mov rcx, qword [rsp + 0x20]
call fcn.140023a0c
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400229a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140014fe0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x280
mov rax, qword [0x14004f808]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x14001500e
xor eax, eax
jmp 0x14001517d
mov rax, qword [rcx]
mov qword [rsp + 0x270], rbp
call qword [rax + 0x20]
mov ebp, eax
test eax, eax
je 0x140015175
cmp byte [rsi + 0x14], 0
mov qword [rsp + 0x268], rdi
mov qword [rsp + 0x260], r12
jne 0x140015163
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ecx, dword [rsi + 0x10]
cmp rax, rcx
jbe 0x140015163
lea rcx, [rsi + 0x16]
lea r9, [rsp + 0x40]
lea rdx, [0x140043688]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140015163
mov ecx, 0x10
call fcn.140023e88
mov rdi, rax
test rax, rax
je 0x140015163
lea rax, vtable.StLibs::FileStream.0
mov qword [rdi + 8], 0xffffffffffffffff
mov qword [rdi], rax
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400150b7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400150ff
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
jmp 0x140015163
mov rcx, qword [rsi + 8]
xor edx, edx
mov qword [rsp + 0x278], rbx
mov rax, qword [rcx]
lea r8d, [rdx + 1]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
mov rdx, rdi
mov r8, qword [rcx]
mov r12, rax
call qword [r8 + 0x30]
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov rbx, rax
call qword [rdx + 0x28]
cmp rbx, rax
mov rbx, qword [rsp + 0x278]
jne 0x1400150f0
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
call qword [rax + htons]
mov qword [rsi + 8], rdi
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [rax + 0x10]
mov byte [rsi + 0x14], 1
mov rdi, qword [rsp + 0x268]
mov r12, qword [rsp + 0x260]
mov eax, ebp
mov rbp, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400229a0
add rsp, 0x280
pop rsi
ret
Function at 0x14001a730
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14004f808]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov r8, rdx
sub rcx, rdx
nop word [rax + rax]
movzx eax, word [r8]
add r8, 2
mov word [rcx + r8 - 2], ax
test ax, ax
jne 0x14001a760
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001a7b1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a7bc
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x14001a7d0
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001a821
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a82e
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400229a0
add rsp, 0x260
pop rbx
ret

Function at 0x14002388c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400238a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400238a4
xor eax, eax
test eax, eax
je 0x1400238b4
mov ecx, eax
call fcn.1400251ac
or eax, 0xffffffff
jmp 0x1400238b6
xor eax, eax
add rsp, 0x28
ret
Function at 0x140028a4b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14004f808]
jne 0x1400229ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400229b6
repz ret
ror rcx, 0x10
jmp 0x1400289a4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140051620]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140051718]
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 0x140028a29
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, [0x140051620]
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 0x140028a4b
mov rax, qword [rsp + 0x88]
mov qword [0x140051718], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400516b8], rax
mov rax, qword [0x140051718]
mov qword [0x140051590], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400516a0], rax
mov dword [0x140051580], 0xc0000409
mov dword [0x140051584], 1
mov rax, qword [0x14004f808]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14004f810]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140051618], eax
mov ecx, 1
call fcn.140031bd8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003c3f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140051618], 0
jne 0x140028ad2
mov ecx, 1
call fcn.140031bd8
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 0x14002985c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400296cc
Function at 0x140033908
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14004f808]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14002af4c
xor ebx, ebx
cmp qword [0x1400525e0], rbx
mov rdi, rax
jne 0x140033a1b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140033af2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140033af2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400525e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400525e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400525f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140052600], rax
test rax, rax
je 0x140033a12
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400525f8], rax
jmp 0x140033a22
mov rax, qword [0x1400525f8]
jmp 0x140033a29
mov rax, qword [0x1400525f8]
mov r11, qword [0x140052600]
cmp rax, rdi
je 0x140033a90
cmp r11, rdi
je 0x140033a90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140052600]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140033a90
test rax, rax
je 0x140033a90
call rsi
test rax, rax
je 0x140033a8a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140033a8a
test byte [rsp + 0x40], 1
jne 0x140033a90
bts ebp, 0x15
jmp 0x140033ad0
mov rcx, qword [0x1400525e8]
cmp rcx, rdi
je 0x140033ad0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140033ad0
call rax
mov rbx, rax
test rax, rax
je 0x140033ad0
mov rcx, qword [0x1400525f0]
cmp rcx, rdi
je 0x140033ad0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140033ad0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400525e0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140033af2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140033af4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400229a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001fc4
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002011
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14000209e
mov r8d, 0x14
lea rdx, str.DiagnosticsHub.StandardCollector.Service
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000205a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_2_0.dll_QueryServiceStatus]
test eax, eax
je 0x14000205a
cmp dword [rsp + 0x24], 1
jne 0x140002079
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x140002070
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140002087
lea rcx, str.SUCCESS:_The_service_was_started_successfully_n
jmp 0x140002080
lea rcx, str.WARNING:_The_service_is_already_started_n
call fcn.140003f20
xor esi, esi
test rbx, rbx
je 0x140002095
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003260
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400020c4
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, 1
xor edx, edx
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002115
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400021a3
mov r8d, 0x24
lea rdx, str.DiagnosticsHub.StandardCollector.Service
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000215f
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_2_0.dll_QueryServiceStatus]
test eax, eax
je 0x14000215f
cmp dword [rsp + 0x24], esi
je 0x14000217e
lea r8, [rsp + 0x20]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_2_0.dll_ControlService]
test eax, eax
jne 0x140002175
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14000218c
lea rcx, str.SUCCESS:_The_service_was_stopped_successfully_n
jmp 0x140002185
lea rcx, str.WARNING:_The_service_is_already_stopped_n
call fcn.140003f20
xor esi, esi
test rbx, rbx
je 0x14000219a
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003260
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140003641
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140003641
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003641
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140003625
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000361f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140003627
add rdx, 0x28
jmp 0x140003604
xor edx, edx
test rdx, rdx
jne 0x140003630
xor al, al
jmp 0x140003647
test dword [rdx + 0x24], 0x80000000
je 0x14000363d
xor al, al
jmp 0x140003647
mov al, 1
jmp 0x140003647
xor al, al
jmp 0x140003647
add rsp, 0x18
ret
Function at 0x140003954
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140008750], eax
call fcn.140003688
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x140008750], 0
jne case.default.0x1400039aa
mov ecx, 1
call fcn.140003688
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
lodsb al, byte [rsi]
invalid
Function at 0x140001f10
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 fcn.140007c90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007c90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x1400020b0
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001fcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002055
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001fb0
mov rcx, rbx
call fcn.1400029d0
mov rdi, rax
test rax, rax
je 0x1400020d2
mov rax, qword [0x14000d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002b10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400020b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000204e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002060
add dword [0x14000d0b4], 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 [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000204e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001f10
nop dword [rax]
xor esi, esi
jmp 0x140001fd8
mov rax, qword [0x14000d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001f10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001f10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x14000269c
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 0x140002693
test rsi, rsi
je 0x140002693
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002678
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 0x1400029d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002a50
Capabilities:
Parse pe header

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

Function at 0x140002b10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a960]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x140004388]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r15, rcx
lea rcx, [rsp + 0x40]
movsd xmm0, qword [str.kernel32.dll]
mov ebp, edx
movsd qword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0xc
mov qword [rsp + 0x58], 0xf
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x4c], 0
call fcn.140001350
mov edx, 0x4fc53f84
mov rcx, rax
mov rbx, rax
call fcn.140001aa0
mov edx, 0x1aec829b
mov rcx, rbx
mov rdi, rax
call fcn.140001aa0
mov edx, 0xaf180075
mov rcx, rbx
mov rsi, rax
call fcn.140001aa0
mov edx, 0x6bb6fde2
mov rcx, rbx
mov r14, rax
call fcn.140001aa0
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call rax
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call rdi
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call rsi
mov r9, rax
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x88]
add rdx, rax
mov r11d, dword [rdx + 0x1c]
mov r8d, dword [rdx + 0x20]
add r11, rax
mov edi, dword [rdx + 0x24]
add r8, rax
mov r10d, dword [rdx + 0x18]
add rdi, rax
test r10d, r10d
je 0x140001d59
nop word [rax + rax]
mov eax, dword [r8]
mov ecx, 0x562aded
add rax, r9
movsx edx, byte [rax]
inc rax
test edx, edx
je 0x140001cd1
nop word [rax + rax]
imul ecx, ecx, 0x21
lea rax, [rax + 1]
add ecx, edx
movsx edx, byte [rax - 1]
test edx, edx
jne 0x140001cc0
cmp ecx, ebp
je 0x140001ce2
inc ebx
add r8, 4
cmp ebx, r10d
jb 0x140001ca0
jmp 0x140001d59
mov eax, ebx
movzx ecx, word [rdi + rax*2]
mov ebx, dword [r11 + rcx*4]
add rbx, r9
je 0x140001d59
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140001f90
mov rcx, rax
call fcn.140001350
test rax, rax
je 0x140001d59
mov edx, ebp
mov rcx, rax
call fcn.140001aa0
mov rdi, rax
mov rcx, qword [rax]
cmp rcx, qword [rbx]
jne 0x140001d2a
mov rcx, qword [rax + 8]
cmp rcx, qword [rbx + 8]
je 0x140001d59
mov edx, 0x10
lea r9, [rsp + 0x60]
mov rcx, rdi
lea r8d, [rdx + 0x30]
call r14
movups xmm0, xmmword [rbx]
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov edx, 0x10
mov rcx, rdi
movups xmmword [rdi], xmm0
call r14
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400020c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002a54
Capabilities:
Parse pe header

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