joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b4890
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xa8
movaps xmmword [r11 - 0x18], xmm6
mov rax, qword [0x1801217d0]
test rax, rax
jne 0x1800b4adc
movups xmm0, xmmword [0x180105e00]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180105e10]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x180105e20]
movups xmmword [rsp + 0x70], xmm0
mov eax, dword [0x180105e30]
mov dword [r11 - 0x28], eax
movzx eax, word [0x180105e34]
mov word [r11 - 0x24], ax
movzx eax, byte [0x180105e36]
mov byte [r11 - 0x22], al
xor ecx, ecx
cmp dword [0x18011f018], 2
jl 0x1800b4a3c
movdqa xmm5, xmmword [0x180108e50]
movdqa xmm4, xmmword [0x180109040]
movdqa xmm6, xmmword [0x180108e80]
movdqa xmm0, xmmword [0x180108f50]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [r11 - 0x54]
mov r8d, dword [rsp + 0x20]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x30
jl 0x1800b4932
cmp ecx, 0x37
jge 0x1800b4a7e
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x37
jl 0x1800b4a50
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800b4aa0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.18001d0a0
nop
lea rcx, [rsp + 0x30]
call fcn.1800b31c0
mov qword [0x1801217d0], rax
lea rcx, [rsp + 0x30]
call fcn.18001f2b0
mov rax, qword [0x1801217d0]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
ret
Function at 0x1800b4af0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xa8
movaps xmmword [r11 - 0x18], xmm6
mov rax, qword [0x1801217c8]
test rax, rax
jne 0x1800b4d1c
movups xmm0, xmmword [0x180105dc0]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180105dd0]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x180105de0]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x180105df0]
movups xmmword [r11 - 0x28], xmm1
xor ecx, ecx
cmp dword [0x18011f018], 2
jl 0x1800b4c87
movdqa xmm5, xmmword [0x180108e50]
movdqa xmm4, xmmword [0x180109040]
movdqa xmm6, xmmword [0x180108e80]
movdqa xmm0, xmmword [0x180108f50]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [r11 - 0x54]
mov r8d, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x40
jl 0x1800b4b80
jmp 0x1800b4cbe
lea r8, [rsp + 0x50]
nop dword [rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x40
jl 0x1800b4c90
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800b4ce0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.18001d0a0
nop
lea rcx, [rsp + 0x30]
call fcn.1800b31c0
mov qword [0x1801217c8], rax
lea rcx, [rsp + 0x30]
call fcn.18001f2b0
mov rax, qword [0x1801217c8]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
ret
Function at 0x1800b4d30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rdi, qword [0x1801217a0]
movups xmm0, xmmword [str.t_HHXLl_07]
movups xmmword [rsp + 0x30], xmm0
mov eax, dword [0x180106998]
mov dword [rsp + 0x40], eax
xor ebx, ebx
cmp byte [0x18010699b], bl
je 0x1800b4efe
mov ecx, ebx
cmp dword [0x18011f018], 2
jl 0x1800b4eba
movdqa xmm5, xmmword [0x180108e50]
movdqa xmm4, xmmword [0x180109040]
movdqa xmm6, xmmword [0x180108e80]
movdqa xmm0, xmmword [0x180108f50]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x34]
mov r8d, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x1800b4db0
cmp ecx, 0x14
jge 0x1800b4efe
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x14
jl 0x1800b4ed0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1800b4f20
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.18001d0a0
nop
test rdi, rdi
je 0x1800b4f55
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1800049d0
test eax, eax
jle 0x1800b4f55
movsxd rbx, eax
add rbx, rdi
lea rcx, [rsp + 0x48]
call fcn.18001f2b0
mov rax, rbx
mov rbx, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rdi
ret
Function at 0x1800c5c78
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800c5cdc
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800c5cca
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800c5cc3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800c5c97
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180120ec0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800c5cec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1801223c0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800c5d22
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800c5d58
mov eax, 0xa
jmp 0x1800c5de7
test esi, esi
je 0x1800c5d7a
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800c5d9b
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800c5d9b
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800c5d95
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800c5d9b
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800c6244
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800c625b
cmp r8b, 0x90
je 0x1800c625b
cmp r8b, 0xcc
jne 0x1800c627d
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800c6279
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800c627d
add edx, r10d
cmp edx, r9d
jb 0x1800c6269
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800c65e4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800c662e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1801223b8]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1800c6667
cmp rbx, r14
jb 0x1800c6664
cmp rbx, r12
jae 0x1800c6664
cmp qword [rbx + 8], rsi
jne 0x1800c67c9
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c6650
mov r15, rdi
cmp rdi, r14
jb 0x1800c6783
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800c66b3
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800c66ed
cmp dword [rbp - 0x10], 0x10000
je 0x1800c66bd
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800c66ed
sub r15, r13
cmp r15, r14
jae 0x1800c6689
jmp 0x1800c66ed
test r15, r15
je 0x1800c66ed
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800c678e
cmp r15, r14
jae 0x1800c6678
test rbx, rbx
jmp 0x1800c6781
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800c67c9
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800c67c9
cmp dword [rbp - 0x10], 0x10000
je 0x1800c675c
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800c6719
jmp 0x1800c67c9
test rdi, rdi
je 0x1800c67c9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800c678e
cmp rdi, r12
jbe 0x1800c66f5
jmp 0x1800c67c9
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800c679a
mov rax, qword [0x1801223b8]
mov qword [rbx], rax
mov qword [0x1801223b8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800c7080
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800c72a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800c7187
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800c70e4
mov rax, qword [0x18011f008]
cmp qword [rsp + 0x20], rax
ja 0x1800c70e4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800c70a6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800c7113
jmp 0x1800c7187
cmp dword [rsp + 0x50], 0x10000
jne 0x1800c716a
cmp qword [rsp + 0x48], 0x10000
jb 0x1800c716a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800c7158
mov rax, qword [rsp + 0x28]
jmp 0x1800c7189
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800c7182
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800c72a0
mov qword [rsp + 0x20], rax
jmp 0x1800c70a6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800c7190
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800c72e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800c7293
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800c71eb
mov rax, qword [0x18011f008]
cmp qword [rsp + 0x20], rax
ja 0x1800c71eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800c71ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800c721a
jmp 0x1800c7293
cmp dword [rsp + 0x50], 0x10000
jne 0x1800c7271
cmp qword [rsp + 0x48], 0x10000
jb 0x1800c7271
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800c725f
mov rax, qword [rsp + 0x28]
jmp 0x1800c7295
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800c728e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800c72e0
mov qword [rsp + 0x20], rax
jmp 0x1800c71ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800c7330
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800c78c0
mov qword [rsp + 0x28], 0
cmp qword [0x180120588], 0
jne 0x1800c7378
cmp qword [0x180120580], 0
je 0x1800c7378
mov rax, qword [0x180120580]
mov qword [0x180120588], rax
cmp qword [0x180120588], 0
je 0x1800c741e
mov rax, qword [0x180120588]
cmp qword [rax + 0x10], 0
je 0x1800c741e
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800c741e
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800c741e
mov rax, qword [0x180120588]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800c73e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800c73eb
xor eax, eax
jmp 0x1800c7599
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800c7599
mov rax, qword [0x180120580]
mov qword [0x180120588], rax
jmp 0x1800c7440
mov rax, qword [0x180120588]
mov rax, qword [rax + 8]
mov qword [0x180120588], rax
cmp qword [0x180120588], 0
je 0x1800c748d
cmp qword [0x180120588], 0
je 0x1800c748b
mov rax, qword [0x180120588]
cmp qword [rax + 0x10], 0
je 0x1800c748b
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800c748b
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800c748b
jmp 0x1800c73bc
jmp 0x1800c742e
mov rcx, qword [rsp + 0x60]
call fcn.1800c94f0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800c75a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800c7597
mov rax, qword [rsp + 0x48]
mov qword [0x180120588], rax
mov rax, qword [0x180120588]
mov dword [rax], 0x52727464
mov rax, qword [0x180120588]
mov qword [rax + 0x10], 0
mov rax, qword [0x180120588]
mov rcx, qword [0x180120580]
mov qword [rax + 8], rcx
mov rax, qword [0x180120588]
mov qword [0x180120580], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180120588]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800c7548
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800c7582
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800c753e
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800c73bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800cafd0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800cb00a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800cb00f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800cb058
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800eff50]
cmp byte [rcx + rax], 0
je 0x1800cb058
dec r8
sub rdx, 1
jne 0x1800cb03e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x403420
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 0x403460
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov ecx, dword [rax + 0xc]
mov r8d, ecx
cmp r8, rdx
ja 0x403457
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x403462
add rax, 0x28
cmp rax, r9
jne 0x403444
xor eax, eax
repz ret

Function at 0x403520
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x403544
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call fcn.004033e0
test eax, eax
je 0x40353b
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00403420
Function at 0x140001920
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
xor edi, edi
lea ecx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000199f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000199f
nop
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000199a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140001970
jmp 0x14000199f
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400036f0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret

Function at 0x140001ae0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001b5e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001b5e
nop
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140001b5a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001b30
jmp 0x140001b5e
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400036f0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140004070
Capabilities:
Parse pe header

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