joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400806f0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov rdi, rdx
mov edx, ecx
lea rcx, [rsp + 0xe0]
lea rax, str.GROUP_ON_System.ConnectedSearch.ApplicationSearchScope_AGGREGATE_CHILDCOUNT___OVER_SELECT_System.ConnectedSearch.ApplicationSearchScope_FROM_SystemIndex_WHERE__s_System.ConnectedSearch.ItemSource___d_
mov r9d, 3
lea r8d, [r9 + 0x7d]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rax, r8
sub r9, 1
jne 0x14008072e
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x10], eax
movups xmm0, xmmword [str.SCOPE__winrt:___AND]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [0x1400b52c8]
movups xmmword [rsp + 0xb8], xmm1
movsd xmm0, qword [0x1400b52d8]
movsd qword [rsp + 0xc8], xmm0
mov eax, dword [0x1400b52e0]
mov dword [rsp + 0xd0], eax
movzx eax, word [0x1400b52e4]
mov word [rsp + 0xd4], ax
and qword [rsp + 0x40], r9
and qword [rsp + 0x48], r9
and qword [rsp + 0x50], r9
lea rax, [0x1400aa710]
lea r8, [rsp + 0xa8]
cmp edx, 1
cmovne r8, rax
mov r9d, edx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.14007fd88
mov ebx, eax
test eax, eax
js 0x1400808d5
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14007f4a4
nop
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rax, [0x1400a5bd8]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xa0], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14007f838
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rax]
cmp rcx, rax
jb 0x140080893
xor r9d, r9d
jmp 0x14008089d
or rcx, 0xffffffffffffffff
mov r9d, 0x80070216
mov rax, qword [rsp + 0x2a8]
test r9d, r9d
jns 0x1400808be
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstorestatisticsendpoint.cxx
mov edx, 0xf3
mov rcx, rax
call fcn.140068d84
mov qword [rdi], rcx
mov qword [rsi], rdx
lea rcx, [rsp + 0x60]
call fcn.140002ba8
nop
jmp 0x1400808d5
lea rcx, [rsp + 0x40]
call fcn.140054f2c
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140036b90
add rsp, 0x290
pop rdi
pop rsi
pop rbx
ret
Function at 0x140080944
Capabilities:
Reference sql statements

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov r9d, ecx
lea rcx, [rsp + 0xd0]
lea rax, str.GROUP_ON_System.AppUserModel.PackageFamilyName_AGGREGATE_CHILDCOUNT___OVER_SELECT_System.AppUserModel.PackageFamilyName_FROM_SystemIndex_WHERE__s_System.ConnectedSearch.ItemSource___d_
mov edx, 0x80
lea r8d, [rdx - 0x7e]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rax, rdx
sub r8, 1
jne 0x14008097d
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
movups xmm0, xmmword [str.SCOPE__winrt:___AND]
movups xmmword [rsp + 0x98], xmm0
movups xmm1, xmmword [0x1400b52c8]
movups xmmword [rsp + 0xa8], xmm1
movsd xmm0, qword [0x1400b52d8]
movsd qword [rsp + 0xb8], xmm0
mov eax, dword [0x1400b52e0]
mov dword [rsp + 0xc0], eax
movzx eax, word [0x1400b52e4]
mov word [rsp + 0xc4], ax
and qword [rsp + 0x28], r8
and qword [rsp + 0x30], r8
and qword [rsp + 0x38], r8
lea rax, [0x1400aa710]
lea r8, [rsp + 0x98]
cmp r9d, 1
cmovne r8, rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.14007fd88
test eax, eax
js 0x140080ae0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14007f4a4
nop
and qword [rsp + 0x20], 0
lea rax, [0x1400a5c60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14007f838
nop
lea rcx, [rsp + 0x48]
call fcn.140002ba8
nop
jmp 0x140080ae0
lea rcx, [rsp + 0x28]
call fcn.140054f2c
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140036b90
add rsp, 0x260
pop rbx
ret
Function at 0x1400827f0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x218
mov rsi, rcx
xor ebx, ebx
lea rdx, str.SystemIndex
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140082a52
lea r8d, [rbx + 7]
lea rdx, [0x1400aa5d0]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140082a52
lea r8, str.CSM_Policy_Key_Mutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140082a2d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x60]
call fcn.140008d24
nop
and qword [rsp + 0x38], rbx
and qword [rsp + 0x40], rbx
and qword [rsp + 0x48], rbx
and dword [rsp + 0x50], ebx
lea rdx, [0x1400d2518]
lea rcx, [rsp + 0x258]
call fcn.14001a960
nop
lea rdx, str.DefaultIndexedPaths
lea rcx, [rsp + 0x250]
call fcn.140016b70
nop
lea rdx, [0x1400aa710]
lea rcx, [rsp + 0x248]
call fcn.140016b70
nop
lea rdx, str.SoftwareMicrosoftWindows_SearchCurrentPolicies
lea rcx, [rsp + 0x240]
call fcn.140016b70
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x250]
lea r8, [rsp + 0x248]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x60]
call fcn.140008f80
nop
mov rcx, qword [rsp + 0x240]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
mov rcx, qword [rsp + 0x248]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
mov rcx, qword [rsp + 0x250]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
mov rcx, qword [rsp + 0x258]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
lea rcx, [rsp + 0x38]
call fcn.14001185c
lea rcx, [rsp + 0x60]
call fcn.140008f10
mov r14d, dword [rax + 8]
xor edi, edi
test ebx, ebx
js 0x140082a17
cmp edi, r14d
jae 0x140082a17
and qword [rsp + 0x248], 0
lea rcx, [rsp + 0x60]
call fcn.1400837a0
mov edx, edi
mov rcx, rax
call fcn.140082050
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x248]
mov rdx, qword [rax]
mov rcx, rsi
call fcn.140083500
test eax, eax
js 0x140082a03
cmp qword [rsp + 0x248], 0
jne 0x140082a03
lea r8, [rsp + 0x248]
movzx edx, word [rsp + 0x240]
mov rcx, rsi
call fcn.140082af4
mov ebx, eax
lea rcx, [rsp + 0x248]
call fcn.140003bbc
inc edi
jmp 0x14008298f
lea rcx, [rsp + 0x60]
call fcn.140008da4
nop
jmp 0x140082a48
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140082a48
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rsp + 0x30]
call fcn.14001d64c
mov eax, ebx
add rsp, 0x218
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008d364
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
jmp 0x14008d508
cmp ecx, 0x7c
je 0x14008d511
cmp ecx, 0x29
jne 0x14008d3a3
cmp dword [rbx + 0x1c], 0
jne 0x14008d511
test dword [rbx + 0x80], 0x10000000
je 0x14008d476
cmp ecx, 0x2e
jne 0x14008d3c3
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14008faac
mov rcx, rbx
call fcn.14008fb00
jmp 0x14008d4fb
cmp ecx, 0x5c
jne 0x14008d427
mov rcx, rbx
call fcn.14008fb00
test byte [rbx + 0x80], 0x80
je 0x14008d41a
cmp word [rbx + 0x78], 0x62
jne 0x14008d3fb
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14008faac
mov rcx, rbx
call fcn.14008fb00
jmp 0x14008d503
cmp word [rbx + 0x78], 0x42
jne 0x14008d41a
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14008faac
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14008d3ee
mov rcx, rbx
call fcn.14008d548
jmp 0x14008d4fb
cmp ecx, 0x5b
jne 0x14008d458
mov rcx, rbx
call fcn.14008fb00
mov rcx, rbx
call fcn.14008dcb0
cmp dword [rbx + 0x7c], 0x5d
je 0x14008d3b6
mov ecx, 4
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
nop dword [rax + rax]
int3
cmp ecx, 0x28
jne 0x14008d488
mov rcx, rbx
call fcn.14008fb00
mov rcx, rbx
call fcn.14008fffc
cmp dword [rbx + 0x7c], 0x29
mov dil, al
je 0x14008d4ee
mov ecx, 5
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
nop dword [rax + rax]
int3
cmp ecx, 0x5e
jne 0x14008d495
lea edx, [rcx - 0x5c]
jmp 0x14008d3e5
cmp ecx, 0x24
jne 0x14008d4a2
lea edx, [rcx - 0x21]
jmp 0x14008d3e5
cmp ecx, 0x3f
je 0x14008d52f
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14008d52f
cmp ecx, 0x7b
je 0x14008d52f
cmp ecx, 0x7d
jne 0x14008d4c9
test dword [rbx + 0x80], 0x10000000
je 0x14008d51d
cmp ecx, 0x5d
jne 0x14008d4de
test dword [rbx + 0x80], 0x10000000
je 0x14008d446
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14008cb58
mov dil, 1
mov rcx, rbx
call fcn.14008fb00
test dil, dil
je 0x14008d503
mov rcx, rbx
call fcn.14008fb40
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x14008d37b
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 6
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
nop dword [rax + rax]
int3
mov ecx, 0xa
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
nop dword [rax + rax]
int3
Function at 0x14009c8c8
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov dword [rax - 0x18], 0x104
cmp qword [rcx], 0
jne 0x14009c91d
and dword [rcx + 8], 0
and qword [rcx], 0
mov qword [rax - 0x30], rcx
mov dword [rax - 0x38], 9
lea r8, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplications
mov rdx, 0xffffffff80000002
call fcn.140024fd4
test eax, eax
jle 0x14009c91b
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14009c972
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8, rdi
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
jne 0x14009c95d
mov eax, 1
jmp 0x14009c972
test eax, eax
je 0x14009c96d
jle 0x14009c972
movzx eax, ax
or eax, 0x80070000
jmp 0x14009c972
xor eax, eax
inc dword [rbx + 8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400a07dc
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, r9
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
nop dword [rax + rax]
test eax, eax
je 0x1400a0858
mov qword [rsp + 0x28], rbp
lea rdx, str._s__u___s_:__s
mov r9d, esi
mov qword [rsp + 0x20], rbx
mov r8, rdi
lea rcx, [rsp + 0x30]
call fcn.1400a0878
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14001d7e0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036b90
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404650]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404660]
mov dword [rax], 1
mov rax, qword [0x00404670]
mov dword [rax], 1
mov rax, qword [0x00404640]
mov dword [rax], 1
mov rax, qword [0x00404500]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00404630]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00404590]
mov qword [rdx], rax
mov rdx, qword [0x00404580]
mov qword [rdx], rax
mov rax, qword [0x004045f0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004044b0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401530
Capabilities:
Execute command

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x240
lea rbp, [rsp + 0x80]
call dbg.__main
lea rdx, [rbp - 0x60]
lea rax, str.start_powershell.exe__WindowStyle_Hidden__noExit__ExecutionPolicy_Unrestricted__proc___false__DO__if__Get_Process__name_SUMADI____proc___true___sumadiProcess__Get_Process__name_SUMADI_if___sumadiProcess.Length__lt_2____proc___false__if__Get_Process__name_explorer___Write_Output_Explorer_up_already___else__start_explorer___Stop_process__name_SUMADI____else___proc___false___if__Get_Process__name_explorer___Write_Output_Explorer_up_already___else__start_explorer____start_sleep_5___While___proc__eq__true_
mov ecx, 0x43
mov rdi, rdx
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, rsi
mov rdx, rdi
mov ecx, dword [rax]
mov dword [rdx], ecx
lea rdx, [rdx + 4]
lea rax, [rax + 4]
movzx ecx, word [rax]
mov word [rdx], cx
lea rdx, [rdx + 2]
lea rax, [rax + 2]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, 0
add rsp, 0x240
pop rsi
pop rdi
pop rbp
ret
Function at 0x4017b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4018ca
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017fe
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4018b0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4017e2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401902
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4018e5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4018a9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4018a9
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4018d1
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40180b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x4024e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4024f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402500
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402541
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402538
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402543
add rax, 0x28
cmp rax, r9
jne 0x402524
xor eax, eax
repz ret

Function at 0x4025f0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00404500]
cmp word [rbx], 0x5a4d
je 0x402610
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402604
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4152c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415466
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004313e0
xorps xmm15, xmm15
mov r14, qword [0x005c7768]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x41532b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415340
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x415365
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415379
cmp rbx, 0x1000
jae 0x415335
nop dword [rax]
jmp 0x4153e9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41538d
xor edx, edx
jmp 0x4153e0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004313e0
xorps xmm15, xmm15
mov r14, qword [0x005c7768]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x41536f
jmp 0x415354
call fcn.004608c0
xorps xmm15, xmm15
mov r14, qword [0x005c7768]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435920
lea rax, [0x004c81a0]
mov ebx, 0x18
call fcn.00436220
mov rax, qword [rsp + 0x38]
call fcn.00435f20
lea rax, [0x004c8260]
mov ebx, 0x19
call fcn.00436220
mov rax, qword [rsp + 0x30]
nop
call fcn.00435f20
call fcn.00435b80
call fcn.004359a0
lea rax, [0x004ca557]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00433fe0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cd20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004152c0
Function at 0x4154a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4156ca
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00431460
xorps xmm15, xmm15
mov r14, qword [0x005c7768]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415519
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x41552c
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415550
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
nop
jmp 0x415564
cmp rbx, 0x1000
jae 0x415523
jmp 0x4155e5
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415576
xor esi, esi
jmp 0x4155d6
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00431460
xorps xmm15, xmm15
mov r14, qword [0x005c7768]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41555a
nop
jmp 0x415542
call fcn.004608c0
xorps xmm15, xmm15
mov r14, qword [0x005c7768]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415665
call fcn.00435920
lea rax, [0x004c8648]
mov ebx, 0x19
call fcn.00436220
mov rax, qword [rsp + 0x68]
call fcn.00435f20
lea rax, [0x004c8260]
mov ebx, 0x19
call fcn.00436220
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00435f20
call fcn.00435b80
call fcn.004359a0
lea rax, [0x004c51a6]
mov ebx, 0xd
nop dword [rax + rax]
call fcn.00433fe0
cmp eax, 0x5af
je 0x415608
call fcn.00435920
lea rax, [0x004c8648]
mov ebx, 0x19
nop dword [rax]
call fcn.00436220
mov rax, qword [rsp + 0x38]
call fcn.00435f20
lea rax, [0x004c8260]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436220
mov eax, dword [rsp + 0x34]
call fcn.00435f20
call fcn.00435b80
call fcn.004359a0
lea rax, [0x004c9e2a]
mov ebx, 0x1f
call fcn.00433fe0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cd20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004154a0