joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004f6f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x18004f712
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18004f72e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x18004f745
cmp byte [rcx + 1], 0x25
jne 0x18004f789
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x18004f751
cmp al, 0xe9
jne 0x18004f789
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x18004f774
cmp rcx, 0xffffffff80000000
jae 0x18004f76b
lea rsi, [rcx + 0x7ff80000]
jmp 0x18004f789
mov rsi, 0xfffffffffff80000
jmp 0x18004f789
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x18004f789
mov edi, 0x80000
mov rdx, qword [0x180064428]
mov rax, qword [0x180064420]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x18004f7b0
test rax, rax
je 0x18004f7c7
mov rdx, rax
mov qword [0x180064428], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x18004f7c7
cmp rcx, rdi
jb 0x18004f7c7
cmp rcx, rsi
jbe 0x18004f91a
mov qword [0x180064428], rax
mov rdx, rax
test rax, rax
je 0x18004f812
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18004f7fc
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004f7fc
cmp rax, rdi
jb 0x18004f7fc
cmp rax, rsi
jbe 0x18004f91a
mov rdx, qword [rdx + 8]
mov qword [0x180064428], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x18004f7e0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18004f83c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.18004f510
mov rdx, rax
test rax, rax
jne 0x18004f8c8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x18004f862
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.18004f600
mov rdx, rax
test rax, rax
jne 0x18004f8c8
cmp rbx, 0x40000000
jbe 0x18004f882
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.18004f600
mov rdx, rax
test rax, rax
jne 0x18004f8c8
cmp rbx, rbp
jae 0x18004f89e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.18004f510
mov rdx, rax
test rax, rax
jne 0x18004f8c8
mov rdx, rbx
mov rcx, rdi
call fcn.18004f510
mov rdx, rax
test rax, rax
jne 0x18004f8c8
mov rdx, rsi
mov rcx, rbx
call fcn.18004f600
mov rdx, rax
test rax, rax
je 0x18004f951
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180064428], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180064420]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180064420], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x18004f902
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x18004f951
cmp rax, rsi
ja 0x18004f951
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180053890]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x18004f953
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18004fba0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18004fbce
xor al, al
jmp 0x18004fc10
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18004fbdf
xor al, al
jmp 0x18004fc10
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x18004fc06
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x18004fc06
mov al, 1
jmp 0x18004fc10
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x1800500f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180064438], eax
je 0x180050117
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18006443c]
test eax, eax
jne 0x180050257
test rbp, rbp
jne 0x180050136
mov eax, 0x57
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x180050152
cmp qword [rsi], 0
jne 0x18005015e
mov dword [0x18006443c], 6
mov qword [0x180064440], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.180051140
mov rdi, rax
test rax, rax
jne 0x180050184
mov ebx, 8
jmp 0x18005022c
mov rcx, qword [rsi]
xor edx, edx
call fcn.180050040
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180050040
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x18005021e
cmp rdx, 0x1e
ja 0x18005021e
cmp qword [rbx + 0x50], rax
jne 0x18005021e
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800501e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18005022c
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x180064450]
mov qword [rdi], rax
xor eax, eax
mov qword [0x180064450], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x180064430], 0
mov ebx, 9
jne 0x180050237
mov dword [0x18006443c], ebx
test rdi, rdi
je 0x180050244
mov edx, 0x30
mov rcx, rdi
call fcn.180051184
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x180064440], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180050260
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180064438], 0
jne 0x180050307
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180064438], ecx
jne 0x180050307
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180064420]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180064450], rdi
mov qword [0x180064448], rdi
mov qword [0x180064440], rdi
test rbx, rbx
je 0x1800502f0
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800502e8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800502c0
jmp 0x1800502f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18006443c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180050920
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18006443c]
mov rdi, rcx
test eax, eax
jne 0x1800509c5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18005094a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180051140
mov rbx, rax
test rax, rax
jne 0x180050968
mov edi, 8
jmp 0x18005098b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800509a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180051184
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18006443c], edi
mov qword [0x180064440], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180064448]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180064448], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, rcx
test rcx, rcx
je 0x1400040e4
test rdx, rdx
je 0x1400040e4
movzx eax, byte [rdx]
xor r8d, r8d
test al, al
je 0x140004085
nop
ror r8d, 0xd
lea rdx, [rdx + 1]
movsx eax, al
add r8d, eax
movzx eax, byte [rdx]
test al, al
jne 0x140004070
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov ecx, dword [rax + rcx + 0x88]
add rcx, r11
mov r10d, dword [rcx + 0x20]
mov edi, dword [rcx + 0x24]
add r10, r11
mov esi, dword [rcx + 0x1c]
add rdi, r11
mov ebx, dword [rcx + 0x18]
add rsi, r11
test ebx, ebx
je 0x1400040e4
mov edx, dword [r10]
xor eax, eax
add rdx, r11
movzx ecx, byte [rdx]
test cl, cl
je 0x1400040d3
nop
ror eax, 0xd
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x1400040c0
cmp eax, r8d
je 0x1400040f6
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x1400040b0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movzx ecx, word [rdi + r9*2]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x18]
mov eax, dword [rsi + rcx*4]
mov rsi, qword [rsp + 0x10]
add rax, r11
ret

Function at 0x1400045e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c8
call fcn.14000ee20
sub rsp, rax
mov rax, qword [0x140017040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x24], eax
inc rcx
cmp rcx, 0x270
jb 0x140004620
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.14000d0d0
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14000dd90
add rsp, 0x13c8
ret
Function at 0x14000d0d0
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 0x14000d131
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 0x14000d0f0
mov ecx, dword [r9]
jmp 0x14000d21b
cmp ecx, 0x4e0
jb 0x14000d21b
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 0x14000d150
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 0x14000d1a0
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 0x14000e9f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ea3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ea3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ea3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ea3a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ea3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ea3c
xor al, al
add rsp, 0x28
ret
Function at 0x140001100
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x9af2b37
mov rdi, rcx
jne 0x140001162
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x140001162
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001162
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x14000114c
mov ebx, 0xc0000001
jmp 0x140001153
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140001167
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001174
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x9af2b37
mov rsi, rcx
je 0x140001198
mov eax, 0xc0000001
jmp 0x140001250
xor edi, edi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000124e
test rbx, rbx
je 0x1400011d0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400011c0
test rbx, rbx
je 0x14000124e
mov r8d, dword [rbx]
test r8d, r8d
je 0x140001243
mov edx, edi
shl rdx, 5
test byte [rdx + rbx + 0x10], 1
je 0x14000123c
cmp qword [rdx + rbx + 0x18], 0x200000
jne 0x14000123c
mov ecx, dword [0x1400020a0]
mov r9b, byte [0x1400020a4]
cmp dword [rdx + rbx + 0x20], ecx
jne 0x14000123c
cmp byte [rdx + rbx + 0x24], r9b
je 0x140001260
inc edi
cmp edi, r8d
jb 0x14000120a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + rbx + 8]
mov qword [rcx], rax
jmp 0x14000124e
Function at 0x140001270
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x9af2b37
mov rbx, rcx
jne 0x140001313
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001313
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001313
mov rdi, qword [0x140004060]
test rdi, rdi
je 0x140001313
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.140001a60
test rax, rax
je 0x140001313
mov ecx, eax
lea r9, [rsp + 0x38]
and ecx, 0xfff
mov edx, 0x1000
sub edx, ecx
mov rcx, rax
cmp edx, esi
cmovl esi, edx
cmp byte [rbx + 0x20], 0
mov rdx, qword [rbx + 0x10]
movsxd r8, esi
je 0x14000130a
call fcn.140001bec
jmp 0x14000130f
call fcn.140001860
xor eax, eax
jmp 0x140001318
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400013c4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x140004068], 0
mov r13, rcx
jne 0x1400013f2
call fcn.140001524
cmp qword [0x140004090], 0
jne 0x140001427
call fcn.140001328
mov rcx, rax
lea r8, [0x140002060]
lea rdx, [0x140002090]
call fcn.1400018f8
movsxd rcx, dword [rax + 8]
mov rax, qword [rcx + rax + 0xc]
mov qword [0x140004090], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140004088]
xor r15d, r15d
mov rcx, qword [0x140004080]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x140001458
cmp qword [rsi], rbx
je 0x140001506
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x1400014e7
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140004090]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x1400014cd
cmp qword [rdi + rax + 8], r12
jne 0x1400014cd
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
shl rax, 0xc
mov qword [0x140004060], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400014cd
cmp r14, qword [rsp + 0x58]
je 0x1400014db
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x140001473
jmp 0x1400014e7
mov rcx, qword [0x140004060]
test rcx, rcx
jne 0x1400014fd
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x140001446
jmp 0x140001506
mov rax, qword [r13 + 8]
mov qword [rax], rcx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180007104
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x180100010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rcx]
lea r8, [0x180101350]
lea rdx, [0x180049dd0]
mov rbx, rcx
call qword [rax + 0x38]
test eax, eax
js 0x1800072a6
mov rcx, qword [0x180101350]
lea rdx, [0x180101378]
mov rax, qword [rcx]
call qword [rax + 0x140]
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 0x60]
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
mov qword [0x180101368], rax
lea r8, [0x180049de8]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x48]
mov rcx, qword [0x180101350]
lea r9, [0x180101360]
mov rdx, qword [rsp + 0x20]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1801011f8]
test rax, rax
jne 0x18000725b
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbx, qword [rax]
mov r10, rbx
mov r8, qword [r10 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x180007240
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x180007240
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0x811c9dc5
lea rax, [rsi + rdx*4]
mov ecx, dword [rax + r8]
add rcx, r8
mov al, byte [rcx]
inc rcx
test al, al
je 0x18000723c
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
inc rcx
test al, al
jne 0x18000721d
cmp r11d, 0xb652e838
je 0x18000728c
test edx, edx
jne 0x180007201
mov rax, qword [r10]
mov r10, rax
cmp rax, rbx
je 0x180007252
cmp qword [rax + 0x30], 0
jne 0x1800071dd
xor eax, eax
mov qword [0x1801011f8], rax
mov rcx, qword [0x180101368]
lea r8, [0x1800070c8]
mov edx, 0xfffffffc
call rax
mov qword [0x180101358], rax
call fcn.180006b54
mov byte [0x1801003e2], 0
call fcn.18003cec0
mov al, 1
jmp 0x1800072a8
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
jmp 0x180007254
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180046e90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000c64c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
mov r9d, 4
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1800bc390]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x18000c655
not r8d
mov eax, r8d
ret

Function at 0x18000c680
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000c6da
mov r11b, 0x23
lea rdi, [0x1800bc390]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18000c6c4
cmp rdx, 2
jb 0x18000c6c4
cmp byte [r10], r11b
jne 0x18000c6c4
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000c6a2
jmp 0x18000c71b
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000c71b
mov r11b, 0x23
lea rdi, [0x1800bc390]
cmp dl, r11b
jne 0x18000c6ff
cmp byte [r10], r11b
jne 0x18000c6ff
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18000c6ed
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x18000c8b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x18000c8ed
mov r8d, 0x646
lea rdx, str.F:extasium_fivemextasiumimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x18000c8f6
and qword [rdi], 0
lea rdx, [0x1800f5cc8]
mov rcx, rbx
call fcn.18000c72c
mov rbx, rax
test rax, rax
je 0x18000c9da
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18000c9d1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c9d1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18000c9d1
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c9d1
cmp rsi, 0xffffffffffffffff
je 0x18000c9d1
mov rax, qword [0x180101320]
test rax, rax
je 0x18000c97b
inc dword [rax + 0x3b0]
mov rdx, qword [0x180101310]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbp, rax
test rax, rax
je 0x18000c9d1
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x18000c9be
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call fcn.18000f23c
jmp 0x18000c9da
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x18000c9cc
mov qword [rdi], rsi
mov rax, rbp
jmp 0x18000c9dc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000e658
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xc8]
mov rdi, rdx
mov rbx, rcx
test eax, eax
jg 0x18000e692
mov r8d, 0x6c3
lea rdx, str.F:extasium_fivemextasiumimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rbx + 0xc8]
movsxd rcx, eax
xor edx, edx
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18000c680