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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400070a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001c40
mov rax, qword [0x1400070a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001adc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b67
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001ac0
mov rcx, r12
call fcn.140002540
mov rbp, rax
test rax, rax
je 0x140001c9d
mov rax, qword [0x1400070a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002670
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c82
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b60
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bf0
add dword [0x1400070a4], 1
cmp ebx, 8
jae 0x140001b98
test bl, 4
jne 0x140001c50
test ebx, ebx
je 0x140001b89
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001c70
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 0x140001b89
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 0x140001bca
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 [0x1400070a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140004358]
mov edx, eax
call fcn.140001a20
xor edi, edi
jmp 0x140001ae7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001b89
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001b89
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, [0x140004320]
mov r8, qword [rax + rdi + 0x18]
call fcn.140001a20
mov rdx, r12
lea rcx, [0x140004300]
call fcn.140001a20
nop
nop dword [rax]
Function at 0x1400021b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002204
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 0x1400021fb
test r12, r12
je 0x1400021fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021e0
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002540
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400044a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400025b9
mov rcx, r10
call fcn.140002410
test eax, eax
je 0x1400025b9
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 0x1400025b6
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 0x1400025ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400025b9
add r8, 0x28
cmp r8, r9
jne 0x140002598
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400013a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
cmp qword [section..data], 0xffffffffffffffff
mov r8d, ecx
jne 0x1400013bb
mov eax, 0xffffd8f8
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
lea eax, [rcx - 0xe0]
xor ebx, ebx
cmp eax, 7
ja case.default.0x1400013e0
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x15a4]
add rcx, rdx
jmp rcx
and byte [0x14000e888], 0xfe
jmp 0x14000147e
and byte [0x14000e888], 0xfd
jmp 0x14000147e
and byte [0x14000e888], 0xfb
jmp 0x14000147e
and byte [0x14000e888], 0xf7
jmp 0x14000147e
and byte [0x14000e888], 0xef
jmp 0x14000147e
and byte [0x14000e888], 0xdf
jmp 0x14000147e
and byte [0x14000e888], 0xbf
jmp 0x14000147e
and byte [0x14000e888], 0x7f
jmp 0x14000147e
mov r9d, ebx
lea r10, [0x14000e88a]
mov rcx, rbx
movsx eax, byte [rcx + r10]
lea edx, [r9 + 1]
cmp eax, r8d
je 0x14000145c
inc rcx
mov r9d, edx
cmp rcx, 0xa
jl 0x140001440
jmp 0x14000147e
mov eax, 0xa
movsxd rdx, edx
sub eax, r9d
movsxd rcx, r9d
movsxd r8, eax
add rdx, r10
add rcx, r10
call sub.ntdll.dll_memcpy
mov byte [0x14000e893], bl
inc dword [0x14000e028]
mov dword [0x14000e02c], 0x123c2c2f
call fcn.1400071c0
movsd xmm0, qword [0x14000e889]
lea rdx, [0x14000e020]
mov rcx, qword [section..data]
xor r9d, r9d
mov dword [0x14000e024], eax
mov r8d, 0x1c
movzx eax, byte [0x14000e888]
mov byte [0x14000e030], al
movzx eax, word [0x14000e891]
mov word [0x14000e039], ax
movzx eax, byte [0x14000e893]
mov byte [0x14000e03b], al
lea rax, [0x14000e840]
mov dword [rsp + 0x28], setsockopt
mov qword [rsp + 0x20], rax
movsd qword [0x14000e031], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x140001516
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffd8f4
add rsp, 0x48
ret
mov rcx, qword [section..data]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000e430]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x58], setsockopt
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x140001563
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffd8f5
add rsp, 0x48
ret
mov eax, dword [0x14000e02c]
cmp dword [0x14000e43c], eax
je 0x140001582
mov ebx, 0xffffd8f6
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
mov ecx, dword [0x14000e028]
mov eax, 0xffffd8f7
cmp dword [0x14000e438], ecx
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret

Function at 0x140001c60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
cmp byte [0x14000e8c1], 0
je 0x140001c8c
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, setsockopt
lea rcx, str.mute_process
movups xmmword [rsp + 0x20], xmm0
call fcn.140006a40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400033f0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xc8
xor ebx, ebx
mov qword [rsp + 0x30], rcx
lea rax, [r11 + 8]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x30]
lea rax, [r11 + 0x18]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x48], rax
lea r8, [0x140003950]
lea rax, [r11 + 0x10]
mov dword [r11 + 0x18], ebx
xor edx, edx
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov dword [r11 + 0x10], ebx
mov byte [r11 + 8], bl
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140003460
add rsp, 0xc8
pop rsi
pop rbx
ret
mov qword [rsp + 0xb8], rdi
movaps xmmword [rsp + 0x90], xmm7
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor edx, edx
mov rcx, rsi
mov rdi, rax
xorps xmm7, xmm7
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000363e
mov qword [rsp + 0xc0], rbp
lea rbp, [0x14000a478]
mov qword [rsp + 0xb0], r14
lea r14, [0x14000a3d8]
movaps xmmword [rsp + 0x80], xmm8
movss xmm8, dword [0x14000a79c]
movaps xmmword [rsp + 0x70], xmm9
movss xmm9, dword [0x14000a7b0]
movaps xmmword [rsp + 0x60], xmm10
movss xmm10, dword [0x14000a7ac]
movaps xmmword [rsp + 0xa0], xmm6
nop dword [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0xe8], 0
je 0x1400035db
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r8d, dword [rsp + 0xf0]
mov rdx, rax
sub rdx, rdi
mov r9, rax
cmp rdx, 0x3e8
jbe 0x140003563
mov ecx, r8d
xorps xmm0, xmm0
sub ecx, ebx
movd xmm7, ecx
cvtdq2ps xmm7, xmm7
test rdx, rdx
js 0x140003544
cvtsi2ss xmm0, rdx
jmp 0x140003559
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm7, xmm0
mov rdi, r9
mov ebx, r8d
movd xmm4, dword [rsp + 0xe8]
lea rcx, str.Downloaded__0.1f____0.0f__0.0fKB__0.1fKB_s
cmp dword [0x14000e8c4], 0
movaps xmm0, xmm7
movd xmm5, r8d
xorps xmm6, xmm6
cvtdq2ps xmm5, xmm5
cmove rcx, r14
mulss xmm0, xmm9
movaps xmm1, xmm5
cvtdq2ps xmm4, xmm4
mulss xmm0, xmm8
divss xmm5, xmm4
cvtss2sd xmm6, xmm0
movaps xmm0, xmm4
mulss xmm1, xmm8
mulss xmm5, xmm10
cvtps2pd xmm2, xmm1
mulss xmm0, xmm8
cvtps2pd xmm1, xmm5
movq r8, xmm2
movsd qword [rsp + 0x20], xmm6
cvtps2pd xmm3, xmm0
movq rdx, xmm1
movq r9, xmm3
call fcn.140001c10
jmp 0x1400035fb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp dword [0x14000e8c4], 0
lea rcx, str.Getting_network_file_size...
mov rdi, rax
cmove rcx, rbp
call fcn.140001c10
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400034f0
movaps xmm10, xmmword [rsp + 0x60]
movaps xmm9, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0xa0]
mov r14, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0x90]
mov rdi, qword [rsp + 0xb8]
add rsp, 0xc8
pop rsi
pop rbx
ret
Function at 0x140003670
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xb8
xor ebx, ebx
mov qword [rsp + 0x30], rcx
lea rax, [r11 + 8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
lea rax, [r11 + 0x18]
mov dword [r11 + 0x18], ebx
mov qword [rsp + 0x40], rax
lea r8, [0x140003a20]
lea rax, [r11 + 0x10]
mov dword [r11 + 0x10], ebx
xor edx, edx
mov qword [r11 - 0x80], rax
xor ecx, ecx
mov byte [r11 + 8], bl
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400036da
add rsp, 0xb8
pop rsi
pop rbx
ret
mov qword [rsp + 0xa8], rdi
movaps xmmword [rsp + 0x80], xmm7
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor edx, edx
mov rcx, rsi
mov rdi, rax
xorps xmm7, xmm7
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400038ab
mov qword [rsp + 0xb0], rbp
lea rbp, [0x14000a430]
mov qword [rsp + 0xa0], r14
lea r14, [0x14000a3d8]
movaps xmmword [rsp + 0x70], xmm8
movss xmm8, dword [0x14000a79c]
movaps xmmword [rsp + 0x60], xmm9
movss xmm9, dword [0x14000a7b0]
movaps xmmword [rsp + 0x50], xmm10
movss xmm10, dword [0x14000a7ac]
movaps xmmword [rsp + 0x90], xmm6
nop
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0xd8], 0
je 0x14000384b
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r8d, dword [rsp + 0xe0]
mov rdx, rax
sub rdx, rdi
mov r9, rax
cmp rdx, 0x3e8
jbe 0x1400037d3
mov ecx, r8d
xorps xmm0, xmm0
sub ecx, ebx
movd xmm7, ecx
cvtdq2ps xmm7, xmm7
test rdx, rdx
js 0x1400037b4
cvtsi2ss xmm0, rdx
jmp 0x1400037c9
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm7, xmm0
mov rdi, r9
mov ebx, r8d
movd xmm4, dword [rsp + 0xd8]
lea rcx, str.Downloaded__0.1f____0.0f__0.0fKB__0.1fKB_s
cmp dword [0x14000e8c4], 0
movaps xmm0, xmm7
movd xmm5, r8d
xorps xmm6, xmm6
cvtdq2ps xmm5, xmm5
cmove rcx, r14
mulss xmm0, xmm9
movaps xmm1, xmm5
cvtdq2ps xmm4, xmm4
mulss xmm0, xmm8
divss xmm5, xmm4
cvtss2sd xmm6, xmm0
movaps xmm0, xmm4
mulss xmm1, xmm8
mulss xmm5, xmm10
cvtps2pd xmm2, xmm1
mulss xmm0, xmm8
cvtps2pd xmm1, xmm5
movq r8, xmm2
movsd qword [rsp + 0x20], xmm6
cvtps2pd xmm3, xmm0
movq rdx, xmm1
movq r9, xmm3
call fcn.140001c10
jmp 0x14000386b
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp dword [0x14000e8c4], 0
lea rcx, str.Getting_new_version_file_size...
mov rdi, rax
cmove rcx, rbp
call fcn.140001c10
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140003760
movaps xmm10, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0x80]
mov rdi, qword [rsp + 0xa8]
add rsp, 0xb8
pop rsi
pop rbx
ret
Function at 0x140006700
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140006827
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140006807
mov r8d, dword [rsp + 0xa8]
xor edx, edx
mov rcx, qword [0x14000ea48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0xa8]
lea r9, [rsp + 0xa0]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006807
mov ebx, dword [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.140005c00
mov rcx, qword [0x14000ea48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x40]
sub rdi, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1400067f2
inc rax
test ecx, ecx
jne 0x1400067e0
test edx, edx
sete al
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140006827
mov rcx, qword [0x14000ea48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x90]
xor al, al
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006980
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
lea rax, [r11 - 0x18]
mov ebx, r8d
mov qword [r11 - 0x28], rax
movzx edi, r9b
mov rbp, rdx
mov qword [r11 - 0x30], 0
mov rsi, rcx
mov qword [r11 - 0x38], 0
mov r8, rcx
lea rdx, str.SOFTWARENeptune
mov r9d, 8
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x1400069e5
test dil, dil
je 0x1400069fc
cmp dword [rsp + 0x40], ebx
je 0x140006a02
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x40], ebx
ja 0x1400069e5
lea rax, [rsp + 0x40]
mov r9d, 8
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWARENeptune
mov qword [rsp + 0x28], rbp
mov r8, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
sete al
jmp 0x1400069e7

Function at 0x140006a40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], r8d
mov r9d, 3
mov qword [rsp + 0x20], rdx
mov r8, rcx
lea rdx, str.SOFTWARENeptune
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140006dd0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
cmp byte [0x14000ea44], 0
je 0x140006e42
mov rcx, qword [0x14000ea50]
lea r8, [rsp + 0x38]
mov eax, dword [str.___]
mov dword [rcx], eax
movzx eax, byte [0x14000aa98]
mov byte [rcx + 4], al
mov rcx, qword [0x14000ea50]
mov rdx, qword [rsp + 0x30]
add rcx, 4
call fcn.1400060a0
movsxd rcx, eax
mov rax, qword [0x14000ea50]
mov word [rcx + rax + 4], 0xa
mov rcx, qword [0x14000ea50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x28
ret

Function at 0x140006e50
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r9, rcx
test edx, edx
jle 0x140006e82
lea r10, [0x14000e008]
mov r8d, eax
lea r9, [r9 + 1]
and r8d, 0xf
movzx ecx, byte [r8 + r10]
xor cl, byte [r9 - 1]
xor cl, al
inc eax
not cl
mov byte [r9 - 1], cl
cmp eax, edx
jl 0x140006e60
ret

Function at 0x140006fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, r8
mov r14, rdx
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov r8d, 7
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007095
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140007075
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x14000ea48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x78]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007075
mov eax, dword [rsp + 0x40]
mov rcx, rdi
mov qword [r14], rbx
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140007097
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140007095
mov rcx, qword [0x14000ea48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret

Function at 0x1400070b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov ebx, r8d
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007138
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400071e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov edi, ecx
mov dword [rsp + 0x20], 0x130
mov ecx, 2
xor edx, edx
xor sil, sil
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000724a
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140007241
cmp dword [rsp + 0x28], edi
je 0x14000723e
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140007225
jmp 0x140007241
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x150]
movzx eax, sil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x141cc0230
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141cc03b7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141cc0261
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cc0247
add dl, dl
jne 0x141cc026e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cc02ce
xor eax, eax
add dl, dl
jne 0x141cc027d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cc0385
add dl, dl
jne 0x141cc028e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cc029b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cc02a8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cc02b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141cc02c2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141cc0256
mov eax, 1
add dl, dl
jne 0x141cc02de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cc02eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cc02d3
sub eax, ebx
mov ebx, 1
jne 0x141cc0324
mov ecx, 1
add dl, dl
jne 0x141cc0306
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cc0313
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cc02fb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cc0256
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141cc0340
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cc034d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cc0335
cmp eax, 0x7d00
jae 0x141cc0373
cmp eax, 0x500
jb 0x141cc036e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cc0256
cmp eax, 0x7f
ja 0x141cc0376
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cc0256
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141cc03aa
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141cc0256
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400011c0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x690
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x680], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000121b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_creating_process_snapshot.
call fcn.140001cb0
lea rdx, [0x140001e80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x1400012e5
mov qword [rsp + 0x6a0], rdi
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
xor edi, edi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400012d2
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea r8, str.GTAProcess.exe
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x470]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400012ce
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001243
jmp 0x1400012d2
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x6a0]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140002090
add rsp, 0x690
pop rbx
ret