joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005b1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802fe080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x18005aad0]
mov qword [rcx + 8], rax
mov rcx, qword [0x180301960]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.18005b470
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov byte [rbx + 1], al
call fcn.18005c430
mov qword [rbx + 0x20], rax
mov rcx, rax
test rax, rax
jne 0x18005b288
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_allocate_memory_n
call fcn.1800044e0
jmp 0x18005b386
mov rax, qword [rbx + 8]
mov r8d, 0x3000
mov qword [rbx + 0x2e], rax
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + 0xc], ax
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18005b270
mov qword [0x180301978], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
lea r8d, [rdx + 0x3b]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005b357
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
call fcn.1800044e0
jmp 0x18005b381
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18008fb40
add rsp, 0x30
pop rbx
ret
Function at 0x18005bd00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1802fe080]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rdx
mov qword [rcx + 8], rdx
mov rbx, rcx
mov byte [rcx], 1
mov qword [rcx + 0x10], 0
mov edx, 0x66
mov rcx, rdi
mov dword [rbp - 0x19], 0x41525150
mov dword [rbp - 0x15], 0x41514150
mov dword [rbp - 0x11], 0x55534152
mov dword [rbp - 0xd], 0x8948006a
mov dword [rbp - 9], 0xfa894ce9
mov dword [rbp - 5], 0x24048d4c
mov dword [rbp - 1], 0x48e58948
mov dword [rbp + 3], 0x48f0e483
mov dword [rbp + 7], 0xff20ec83
mov dword [rbp + 0xb], 0x2d15
mov dword [rbp + 0xf], 0xec894800
mov dword [rbp + 0x13], 0xf8834858
mov dword [rbp + 0x17], 0x5b415d00
mov dword [rbp + 0x1b], 0x59415a41
mov dword [rbp + 0x1f], 0x595a5841
mov word [rbp + 0x23], 0xf58
mov byte [rbp + 0x25], 0x84
mov dword [rbp + 0x2a], 0x6e0f4866
mov dword [rbp + 0x2e], 0x5d8b48c0
mov dword [rbp + 0x32], 0xec8948f8
mov dword [rbp + 0x36], 0x89485e5d
mov word [rbp + 0x3a], 0xffdc
mov byte [rbp + 0x3c], 0xe6
call fcn.18005c430
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
jne 0x18005be04
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_allocate_memory_for_i2i_hook_n
call fcn.1800044e0
jmp 0x18005bebe
movaps xmm0, xmmword [rbp - 0x19]
lea r9, [rbp + 0x47]
movaps xmm1, xmmword [rbp - 9]
mov eax, edi
sub eax, ecx
mov edx, 0x66
sub eax, 0x43
mov dword [rbp + 0x26], eax
lea rax, [0x18005bbd0]
mov qword [rbp + 0x3d], rax
mov rax, qword [rdi]
lea r8d, [rdx - 0x46]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbp + 0x3f]
movups xmmword [rcx + 8], xmm0
movaps xmm0, xmmword [rbp + 7]
movups xmmword [rcx + 0x18], xmm1
movaps xmm1, xmmword [rbp + 0x17]
movups xmmword [rcx + 0x28], xmm0
movaps xmm0, xmmword [rbp + 0x27]
movups xmmword [rcx + 0x38], xmm1
movsd xmm1, qword [rbp + 0x37]
movups xmmword [rcx + 0x48], xmm0
movsd qword [rcx + 0x58], xmm1
mov dword [rcx + 0x60], eax
movzx eax, word [rbp + 0x43]
mov word [rcx + 0x64], ax
mov rcx, qword [rbx + 0x10]
mov dword [rbp + 0x47], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 5
lea r9, [rbp + 0x47]
mov rcx, rdi
lea r8d, [rdx + 0x3b]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rbp + 0x47]
lea r9, [rbp + 0x47]
mov byte [rdi], 0xe9
mov edx, 5
mov eax, dword [rbx + 0x10]
mov rcx, rdi
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.18008fb40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18005c430
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rbp, edx
mov ebx, 0x10000
nop
movsxd rdi, ebx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbp
lea rcx, [rdi + rsi]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18005c49d
mov rcx, rsi
lea r9d, [rax + 0x40]
sub rcx, rdi
mov r8d, 0x3000
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18005c49d
add ebx, 0x10000
cmp ebx, 0x7fffffff
jl 0x18005c450
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18005ed30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rdx, rcx
call fcn.18005f790
mov r10, rax
mov r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18005ed5e
mov rdx, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x18005ed93
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r8
jb 0x18005ed80
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, r10
call fcn.180060f70
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x18005edb3
mov rax, qword [rax + 0x30]
jmp 0x18005edc3
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x18005edd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rdx, rcx
call fcn.18005f790
lea r10, [rax + 0x40]
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18005edff
mov rcx, qword [rbx]
xor edx, edx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x18005ee33
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rdx
cmp rdx, r8
jb 0x18005ee20
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, r10
call fcn.180060f70
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x18005ee53
mov rax, qword [rax + 0x30]
jmp 0x18005ee63
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x18005f790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x38
cmp qword [rdx + 0x18], 0xf
mov r8, rdx
mov r10, qword [rdx + 0x10]
jbe 0x18005f7a5
mov r8, qword [rdx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x18005f7d4
movabs r11, 0x100000001b3
movzx eax, byte [r8 + rcx]
inc rcx
xor r9, rax
imul r9, r11
cmp rcx, r10
jb 0x18005f7c0
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.180060820
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x18005f7f4
add rax, 0x30
add rsp, 0x38
ret
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
Function at 0x180062480
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x1800624a5
cvtsi2ss xmm0, rdx
jmp 0x1800624ba
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1802f0440]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x1800624e8
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1800624e8
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x18006251a
cmp rbx, 0x200
jae 0x180062517
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x18006251a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800601c0
Function at 0x180075250
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1800752b1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180075270
mov ecx, dword [r9]
jmp 0x18007539b
cmp ecx, 0x4e0
jb 0x18007539b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800752d0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180075320
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180077040
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1800770a7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180077062
mov ecx, dword [r10]
jmp 0x1800771c8
cmp ecx, 0x270
jb 0x1800771c8
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1800770e0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x180077140
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x180081c70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1802fe080]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
call fcn.18005b520
mov rdi, qword [0x180301c38]
mov rbx, qword [0x180301c30]
cmp rbx, rdi
je 0x180081cc2
nop dword [rax + rax]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
add rbx, 8
cmp rbx, rdi
jne 0x180081cb0
mov rbx, qword [0x180301fe0]
test rbx, rbx
je 0x180081ce3
mov rcx, rbx
call fcn.180081f20
mov edx, 0xf8
mov rcx, rbx
call fcn.180090104
mov qword [0x180301fe0], rsi
mov rcx, qword [0x180301a70]
test rcx, rcx
je 0x180081d33
call fcn.18005c820
mov rdi, qword [rax + 0x10]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180081d33
nop word [rax + rax]
mov rcx, qword [0x180301a70]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb0]
mov rdx, qword [rbx + 0x30]
call r8
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rdi
jne 0x180081d10
mov rcx, qword [0x180301a60]
test rcx, rcx
je 0x180081d4b
mov rax, qword [rcx]
mov rdx, qword [rax + 0x3f0]
call rdx
call fcn.18005b0c0
mov rcx, qword [0x180301a08]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x180301a30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x180301a28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x180301a18]
test rcx, rcx
je 0x180081d88
call fcn.180081e60
mov rcx, qword [0x180301a00]
test rcx, rcx
je 0x180081d99
call fcn.180081e60
cmp qword [0x180301980], rsi
je 0x180081dae
lea rcx, [0x180301980]
call fcn.180082610
mov qword [0x180301a70], rsi
mov ecx, 0x10
call fcn.18008fc80
mov rcx, qword [0x180301ab8]
mov qword [rax], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x180082500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180081e4f
cmp dword [rsp + 0x38], 0
je 0x180081e43
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180081e43
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18008fb40
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x180081e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802fe080]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx], 0
mov rbx, rcx
jne 0x180081ef5
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], 0
cmp byte [rcx], 0xe9
jne 0x180081ed1
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180081ed1
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, 0x38
mov rcx, rbx
call fcn.180090104
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18008fb40
add rsp, 0x30
pop rbx
ret
Function at 0x180082180
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802fe080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x1800814a0]
mov qword [rcx + 8], rax
mov rcx, qword [0x180301a38]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.18005b470
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov byte [rbx + 1], al
call fcn.18005c430
mov qword [rbx + 0x20], rax
mov rcx, rax
test rax, rax
jne 0x180082218
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_allocate_memory_n
call fcn.1800044e0
jmp 0x180082316
mov rax, qword [rbx + 8]
mov r8d, 0x3000
mov qword [rbx + 0x2e], rax
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + 0xc], ax
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180082200
mov qword [0x180301a20], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
lea r8d, [rdx + 0x3b]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800822e7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
call fcn.1800044e0
jmp 0x180082311
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18008fb40
add rsp, 0x30
pop rbx
ret
Function at 0x180082330
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802fe080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x1800813c0]
mov qword [rcx + 8], rax
mov rcx, qword [0x1803019b8]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.18005b470
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov byte [rbx + 1], al
call fcn.18005c430
mov qword [rbx + 0x20], rax
mov rcx, rax
test rax, rax
jne 0x1800823c8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_allocate_memory_n
call fcn.1800044e0
jmp 0x1800824c6
mov rax, qword [rbx + 8]
mov r8d, 0x3000
mov qword [rbx + 0x2e], rax
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + 0xc], ax
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1800823b0
mov qword [0x180301a10], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
lea r8d, [rdx + 0x3b]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180082497
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
call fcn.1800044e0
jmp 0x1800824c1
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18008fb40
add rsp, 0x30
pop rbx
ret