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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, rdx
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r15, r9
mov rbx, r8
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov r10d, dword [rsp + 0x50]
mov r9d, 0
mov r11, rax
mov eax, 0x811c9dc5
add r10, r10
je 0x1400442fa
movzx ecx, byte [r9 + r11]
inc r9
xor ecx, eax
imul eax, ecx, 0x1000193
cmp r9, r10
jb 0x1400442e5
xor edx, edx
mov dword [r15], eax
div dword [rdi + 0x18]
mov rdi, qword [rdi + 8]
mov dword [rbx], edx
test rdi, rdi
je 0x140044385
mov r14, qword [rsp + 0x70]
xor esi, esi
mov rdi, qword [rdi + rdx*8]
and qword [r14], rsi
test rdi, rdi
je 0x140044385
mov eax, dword [r15]
cmp dword [rdi + 0x18], eax
jne 0x14004436f
mov rcx, qword [rdi]
lea rdx, [rsp + 0x58]
mov rbx, qword [r12]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov ecx, dword [rsp + 0x50]
cmp dword [rsp + 0x58], ecx
jne 0x14004436f
mov r8d, ecx
mov rdx, rax
add r8, r8
mov rcx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
test al, al
jne 0x140044378
mov rsi, rdi
mov rdi, qword [rdi + 0x10]
jmp 0x14004431b
mov rax, qword [rsp + 0x78]
mov qword [r14], rsi
mov qword [rax], rdi
jmp 0x14004438e
mov rax, qword [rsp + 0x78]
and qword [rax], 0
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140058b1c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov edi, edx
mov r15, rcx
test edx, edx
jne 0x140058b6f
and dword [rax - 0x50], edx
lea r8d, [rdx + 0x2c]
lea rcx, [rax - 0x4c]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemInfo]
mov edi, dword [rsp + 0x48]
cmp edi, 1
jae 0x140058b6f
mov eax, 0x80070057
jmp 0x140058d29
xor ebx, ebx
mov qword [rsp + 0x90], rbx
lea ecx, [rbx + 0x38]
call fcn.1400caf20
test rax, rax
je 0x140058bb6
lea rcx, [0x1400dd648]
mov qword [rax], rcx
and qword [rax + 8], rbx
lea rcx, [0x1400dda78]
mov qword [rax + 0x10], rcx
and qword [rax + 0x18], rbx
lea rcx, [0x1400dda70]
mov qword [rax + 0x20], rcx
and qword [rax + 0x28], rbx
and qword [rax + 0x30], rbx
test rax, rax
je 0x140058bd3
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140058e5c
mov rbx, qword [rsp + 0x90]
lea r8, [rbx + 8]
lea rdx, [0x140058d50]
mov ecx, 4
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleExW]
test eax, eax
jne 0x140058c10
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, 0x80004005
test ebx, ebx
cmovns ebx, esi
jmp 0x140058cc1
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140058d50]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov rsi, rax
mov rcx, qword [rbx + 0x28]
cmp rax, rcx
je 0x140058c43
test rcx, rcx
je 0x140058c3f
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolWork]
and qword [rbx + 0x28], 0
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x28], 0
jne 0x140058c6e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
jns 0x140058c73
jmp 0x140058cbf
mov esi, 0x80004005
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpool]
mov r14, rax
mov rcx, qword [rbx + 0x18]
cmp rax, rcx
je 0x140058c9b
test rcx, rcx
je 0x140058c97
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpool]
and qword [rbx + 0x18], 0
mov qword [rbx + 0x18], r14
cmp qword [rbx + 0x18], 0
jne 0x140058cd2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
jns 0x140058cd2
mov ebx, ecx
lea rcx, [rsp + 0x90]
call fcn.140058ddc
mov eax, ebx
jmp 0x140058d29
mov edx, edi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMaximum]
lea rcx, [r15 + 0x10]
lea rax, [rsp + 0x90]
cmp rcx, rax
je 0x140058d06
and qword [rsp + 0x90], 0
cmp rbx, qword [rcx]
je 0x140058d06
mov rdx, rbx
call fcn.140058e5c
nop
lea rcx, [rsp + 0x90]
call fcn.140058ddc
xor eax, eax
jmp 0x140058d29
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140059608
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ResetEvent]
lea rdx, [rdi + 0xa8]
mov rcx, rdi
call fcn.1400593a8
xor esi, esi
test eax, eax
js 0x1400596a8
mov rcx, qword [rdi + 0xf0]
call fcn.14005c284
test eax, eax
js 0x1400596a8
lea rbx, [rdi + 0xc8]
xor edx, edx
mov rcx, rbx
lea r8d, [rsi + 0x20]
call sub.msvcrt.dll_memset
mov rax, qword [rdi + 0xc0]
mov rdx, rbx
mov rcx, qword [rdi + 0xb0]
mov qword [rdi + 0xe0], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_2_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x14005968b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov dword [rdi + 0xe8], esi
cmp esi, 0x3e5
je 0x1400596a6
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14005b2b0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov rsi, rcx
lock inc dword [rcx + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001e4e0
nop
mov r9, qword [rbx + 8]
mov r10, qword [r9]
mov r8d, dword [r10 + 0x48]
mov rdx, qword [r10 + 0x40]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x88]
lea rax, [r10 + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
jne 0x14005b34b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e5
je 0x14005b34b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14005b351
mov edi, 0x8000ffff
jmp 0x14005b351
xor edi, edi
test edi, edi
jns 0x14005b357
mov al, byte [rsp + 0x40]
jmp 0x14005b374
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rsi
call rbx
xor al, al
mov byte [rsp + 0x40], al
xor edi, edi
test al, al
je 0x14005b38b
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
lock dec dword [rbx + 0x58]
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14005b3a4
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov rsi, rcx
lock inc dword [rcx + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001e4e0
nop
mov rcx, qword [rbx]
add rcx, 0xa8
xor edx, edx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xa0]
mov qword [rcx + 0xc0], rax
mov r9, qword [rbx]
mov r8, qword [r9 + 0xe8]
sub r8, qword [r9 + 0xe0]
mov rax, qword [r9 + 0x88]
mov rcx, qword [rax + 0x20]
mov edx, dword [r9 + 0xf8]
lea rax, [r9 + 0xa8]
sub r8d, edx
add rdx, qword [r9 + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x14005b47f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e5
je 0x14005b47f
cmp eax, 0xea
je 0x14005b47f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14005b485
mov edi, 0x8000ffff
jmp 0x14005b485
xor edi, edi
test edi, edi
jns 0x14005b48b
mov al, byte [rsp + 0x40]
jmp 0x14005b4a8
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rsi
call rbx
xor al, al
mov byte [rsp + 0x40], al
xor edi, edi
test al, al
je 0x14005b4bf
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
lock dec dword [rbx + 0x58]
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400bd738
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov ebx, r9d
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov r8d, edx
sub r8d, 0xe
je 0x1400bd844
sub r8d, 1
je 0x1400bd7f0
sub r8d, 1
je 0x1400bd7ca
cmp r8d, 1
je 0x1400bd7a4
test ebx, ebx
je 0x1400bd8a3
mov edx, r14d
mov rcx, rdi
call fcn.1400930e0
add ebx, 0xffffffff
jne 0x1400bd78f
jmp 0x1400bd8a3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x1400bd7c5
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.14009a7f0
add ebx, 0xffffffff
jne 0x1400bd7b0
jmp 0x1400bd8a3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x1400bd7eb
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.14009a7f0
add ebx, 0xffffffff
jne 0x1400bd7d6
jmp 0x1400bd8a3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bf49c
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x1400bd842
mov esi, 1
mov rbx, r14
add r14, 2
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.1400a1b48
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor cx, ax
mov word [rbx], cx
cmp r14, r15
jne 0x1400bd810
jmp 0x1400bd8a3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bf49c
mov r9, qword [rsi]
mov r10, qword [rsi + 8]
cmp r9, r10
je 0x1400bd8a3
mov esi, 1
mov rax, r9
add r9, 2
mov byte [rbp - 8], 0
mov ecx, dword [rdi + 0x18]
mov r11d, dword [rdi + 0x20]
sub ecx, r11d
cmp ecx, esi
jb 0x1400bd898
mov rdx, qword [rdi + 0x10]
movsx r8d, byte [r11 + rdx]
lea ecx, [r11 + 1]
mov dword [rdi + 0x20], ecx
mov word [rax], r8w
cmp r9, r10
jne 0x1400bd864
jmp 0x1400bd8a3
mov edx, esi
mov rcx, rdi
call fcn.140073b34
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400bda24
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov ebx, r9d
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov r8d, edx
sub r8d, 0xe
je 0x1400bdb5e
sub r8d, 1
je 0x1400bdb0a
sub r8d, 1
je 0x1400bdaba
cmp r8d, 1
je 0x1400bda94
test ebx, ebx
je 0x1400bdbbc
mov edx, r14d
mov rcx, rdi
call fcn.1400930e0
add ebx, 0xffffffff
jne 0x1400bda7f
jmp 0x1400bdbbc
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x1400bdab5
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.14009a7f0
add ebx, 0xffffffff
jne 0x1400bdaa0
jmp 0x1400bdbbc
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bf5dc
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x1400bdb05
mov esi, 1
mov rbx, r14
add r14, 4
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14008e008
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor ecx, eax
mov dword [rbx], ecx
cmp r14, r15
jne 0x1400bdada
jmp 0x1400bdbbc
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bf5dc
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x1400bdb5c
mov esi, 1
mov rbx, r14
add r14, 4
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.1400a1b48
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
cwde
mov dword [rbx], eax
cmp r14, r15
jne 0x1400bdb2a
jmp 0x1400bdbbc
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bf5dc
mov r9, qword [rsi]
mov r11, qword [rsi + 8]
cmp r9, r11
je 0x1400bdbbc
mov esi, 1
mov rax, r9
add r9, 4
mov byte [rbp - 8], 0
mov ecx, dword [rdi + 0x18]
mov r10d, dword [rdi + 0x20]
sub ecx, r10d
cmp ecx, esi
jb 0x1400bdbb1
mov rdx, qword [rdi + 0x10]
movsx r8d, byte [r10 + rdx]
lea ecx, [r10 + 1]
mov dword [rdi + 0x20], ecx
mov dword [rax], r8d
cmp r9, r11
jne 0x1400bdb7e
jmp 0x1400bdbbc
mov edx, esi
mov rcx, rdi
call fcn.140073b34
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400bdd4c
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov esi, r9d
mov rdi, r8
mov r14d, edx
mov rbx, rcx
mov ecx, edx
sub ecx, 0xe
je 0x1400bdec6
sub ecx, 1
je 0x1400bde6a
sub ecx, 1
je 0x1400bde13
cmp ecx, 1
je 0x1400bddb8
test r9d, r9d
je 0x1400bdf28
mov edx, r14d
mov rcx, rdi
call fcn.1400930e0
add esi, 0xffffffff
jne 0x1400bdda3
jmp 0x1400bdf28
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bf714
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bde0e
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14009a7f0
mov rax, qword [rbp - 0x20]
mov rcx, rax
shr rcx, 1
and rax, rsi
neg rax
xor rcx, rax
mov qword [rbx], rcx
cmp r14, r15
jne 0x1400bdddc
jmp 0x1400bdf28
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bf714
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bde65
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14008e008
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor eax, ecx
cdqe
mov qword [rbx], rax
cmp r14, r15
jne 0x1400bde37
jmp 0x1400bdf28
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bf714
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bdec4
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.1400a1b48
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
movsx rax, ax
mov qword [rbx], rax
cmp r14, r15
jne 0x1400bde8e
jmp 0x1400bdf28
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bf714
mov r9, qword [rbx]
mov r11, qword [rbx + 8]
cmp r9, r11
je 0x1400bdf28
mov esi, 1
mov rax, r9
add r9, 8
mov byte [rbp - 8], 0
mov ecx, dword [rdi + 0x18]
mov r10d, dword [rdi + 0x20]
sub ecx, r10d
cmp ecx, esi
jb 0x1400bdf1d
mov rdx, qword [rdi + 0x10]
movsx r8, byte [r10 + rdx]
lea ecx, [r10 + 1]
mov dword [rdi + 0x20], ecx
mov qword [rax], r8
cmp r9, r11
jne 0x1400bdeea
jmp 0x1400bdf28
mov edx, esi
mov rcx, rdi
call fcn.140073b34
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400cb090
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x1401434a8], rbx
je 0x1400cb0e2
cmp rax, rbx
jne 0x1400cb0d5
mov ebx, 1
mov r14d, ebx
jmp 0x1400cb0e7
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400cb0b9
mov ebx, 1
mov eax, dword [0x1401434b0]
cmp eax, ebx
jne 0x1400cb0fd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400cb166
mov eax, dword [0x1401434b0]
test eax, eax
jne 0x1400cb160
mov dword [0x1401434b0], ebx
lea r12, [0x1400d9058]
lea rdi, [0x1400d9040]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x1400cb152
test eax, eax
jne 0x1400cb156
mov rsi, qword [rdi]
test rsi, rsi
je 0x1400cb147
mov rcx, rsi
mov rax, qword [fcn.140009410]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400cb124
test eax, eax
je 0x1400cb166
mov eax, 0xff
jmp 0x1400cb247
mov dword [0x140133740], ebx
mov eax, dword [0x1401434b0]
cmp eax, ebx
jne 0x1400cb18d
lea rdx, [0x1400d9038]
lea rcx, [0x1400d86e8]
call sub.msvcrt.dll__initterm
mov dword [0x1401434b0], 2
test r14d, r14d
jne 0x1400cb19b
xor eax, eax
xchg qword [0x1401434a8], rax
cmp qword [0x1401434c8], 0
je 0x1400cb1d3
lea rcx, [0x1401434c8]
call fcn.1400cb6c0
test eax, eax
je 0x1400cb1d3
mov rbx, qword [0x1401434c8]
mov rcx, rbx
mov rax, qword [fcn.140009410]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x140133758]
mov rdx, qword [0x140133750]
mov ecx, dword [0x140133748]
call fcn.140009db4
mov dword [0x14013373c], eax
cmp dword [0x140133760], 0
jne 0x1400cb203
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140133740], 0
jne 0x1400cb218
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14013373c]
jmp 0x1400cb247
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.1401dd000
add rsp, 0x28
jmp 0x1400cb090

Function at 0x1400cb5ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400cb5f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cb5f0
cmp dword [rcx + 0x3c], edx
jl 0x1400cb5f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400cb5f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400cb5f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003650
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x140084080]
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 0x1400036d8
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1400036cf
nop
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400036ca
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400036a0
jmp 0x1400036cf
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.140067740
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x140007480
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x1400074b4
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x1400074a0
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140005ec0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400074d9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140012be0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140007553
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000754e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000754e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400679dc
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140007560
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140007594
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x140007580
mov byte [r8 + 9], sil
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140005ec0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400075b9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140012be0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140007633
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000762e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000762e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400679dc
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret