joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400055e0
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push rbx
sub rsp, 0x680
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor r9d, r9d
lea rax, [rsp + 0x460]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x2a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r9d, r9d
lea rax, [rsp + 0x250]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r8, 0xffffffffffffffff
test eax, eax
je 0x140005676
lea rax, [rsp + 0x40]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005664
lea rdx, [rsp + 0x40]
jmp 0x140005693
lea rax, [rsp + 0x250]
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140005680
lea rdx, [rsp + 0x250]
mov rcx, rbx
call fcn.140001e80
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 0x1b
jb 0x1400056ee
mov qword [rsp + 0x698], rdi
lea rdi, [rcx + 0x1b]
mov qword [rbx + 0x10], rdi
cmp rdx, 8
jb 0x1400056c8
mov rbx, qword [rbx]
lea rcx, [rbx + rcx*2]
mov r8d, 0x36
lea rdx, [0x14001a858]
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rdi*2], ax
mov rdi, qword [rsp + 0x698]
jmp 0x140005711
movzx r8d, byte [rsp + 0x30]
lea r9, [0x14001a858]
mov edx, 0x1b
mov qword [rsp + 0x20], 0x1b
mov rcx, rbx
call fcn.1400034c0
mov eax, 1
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140017310
add rsp, 0x680
pop rbx
ret

Function at 0x140005770
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov ecx, 0x104
lea rdx, [rsp + 0x30]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
test eax, eax
je 0x1400057e1
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x1400057d0
lea rdx, [rsp + 0x30]
jmp 0x1400057eb
xor r8d, r8d
lea rdx, [0x14001a5c0]
mov rcx, rbx
call fcn.140001230
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140017310
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140005820
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x190], rbx
mov rax, qword [0x140021228]
xor rax, rbp
mov qword [rbp + 0x150], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 8], rcx
xor eax, eax
mov dword [rbp], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rbp], 1
mov dword [rbp + 0x38], eax
lea rdx, [rbp + 0x38]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r8d, eax
test eax, eax
je 0x140005997
lea rdx, [r8 + 0xf]
cmp rdx, r8
ja 0x1400058a0
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1400173f0
sub rsp, rdx
lea rdi, [rsp + 0x30]
mov r9, rdi
mov edx, dword [rbp + 0x38]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140005997
lea r9, [rbp + 0x3c]
lea r8, [rbp + 0x30]
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140005997
mov rax, qword [rbp + 0x30]
movzx edx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], edx
lea r8, str.StringFileInfo_04x_04xProductVersion
mov edx, 0x104
lea rcx, [rbp + 0x40]
call fcn.140003990
lea r9, [rbp + 0x3c]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x40]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140005997
cmp dword [rbp + 0x3c], 0
jbe 0x140005997
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.140008070
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140005948
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140006360
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140005997
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005992
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005992
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rbp
call fcn.140017310
mov rbx, qword [rbp + 0x190]
lea rsp, [rbp + 0x160]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005ad0
Capabilities:
Enumerate processes

Disassembly:
lea rcx, str.GTAVLauncher.exe
jmp 0x140005f70
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov rdi, rcx
xor r12d, r12d
mov r14d, r12d
mov r15d, r12d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140005fd3
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140005fda
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140006112
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], rsi
mov qword [rsp + 0x2d0], r13
mov r13d, 1
nop dword [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r12
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x140006020
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140001230
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140006040
mov rsi, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rsi, 8
mov rdx, qword [rsp + 0x30]
cmovae r8, rbx
cmp rdx, rax
jne 0x14000609b
mov rcx, rdi
test rdx, rdx
je 0x140006089
sub r8, rdi
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000609b
add rcx, 2
sub rdx, r13
jne 0x140006076
mov ecx, dword [rsp + 0x48]
mov edx, r13d
mov r15d, r13d
call fcn.140006210
mov r14d, eax
cmp rsi, 8
jb 0x1400060d2
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400060ca
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006132
mov rcx, rbx
call fcn.14001726c
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140006000
test r15d, r15d
mov rcx, rbp
cmove r14d, r13d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x2c8]
mov eax, r14d
mov rbx, qword [rsp + 0x2c0]
mov r13, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140017310
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbp, r8
mov rbx, rcx
movzx edx, dx
lea r8, [0x14001a928]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140005dcf
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140005dcf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140005dcf
xor r12d, r12d
mov r14d, r12d
xor cl, cl
mov ebx, r12d
test esi, esi
je 0x140005db0
lea r15d, [rsi - 1]
mov eax, ebx
movzx edx, byte [rax + rdi]
cmp dl, 0xd
je 0x140005c7b
cmp dl, 0xa
je 0x140005c7b
xor dl, dl
lea eax, [rsi - 1]
cmp ebx, eax
je 0x140005c7d
test cl, cl
jne 0x140005da6
mov r14d, ebx
mov cl, 1
jmp 0x140005da6
mov dl, 1
test cl, cl
je 0x140005da6
cmp ebx, r15d
jne 0x140005c93
test dl, dl
mov eax, 1
je 0x140005c96
mov eax, r12d
sub eax, r14d
lea r8d, [rbx + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov edx, r14d
add rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140003080
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140008040
nop
mov rdx, qword [rbp + 8]
cmp rdx, qword [rbp + 0x10]
je 0x140005d0d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
add qword [rbp + 8], 0x20
jmp 0x140005d19
mov r8, rax
mov rcx, rbp
call fcn.140003320
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140005d57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005dc1
call fcn.14001726c
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140005da4
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005dc8
call fcn.14001726c
xor cl, cl
inc ebx
cmp ebx, esi
jb 0x140005c50
mov al, 1
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005f70
Capabilities:
Enumerate processes

Disassembly:
lea rcx, str.GTAVLauncher.exe
jmp 0x140005f70
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov rdi, rcx
xor r12d, r12d
mov r14d, r12d
mov r15d, r12d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140005fd3
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140005fda
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140006112
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], rsi
mov qword [rsp + 0x2d0], r13
mov r13d, 1
nop dword [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r12
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x140006020
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140001230
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140006040
mov rsi, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rsi, 8
mov rdx, qword [rsp + 0x30]
cmovae r8, rbx
cmp rdx, rax
jne 0x14000609b
mov rcx, rdi
test rdx, rdx
je 0x140006089
sub r8, rdi
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000609b
add rcx, 2
sub rdx, r13
jne 0x140006076
mov ecx, dword [rsp + 0x48]
mov edx, r13d
mov r15d, r13d
call fcn.140006210
mov r14d, eax
cmp rsi, 8
jb 0x1400060d2
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400060ca
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006132
mov rcx, rbx
call fcn.14001726c
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140006000
test r15d, r15d
mov rcx, rbp
cmove r14d, r13d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x2c8]
mov eax, r14d
mov rbx, qword [rsp + 0x2c0]
mov r13, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140017310
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140006210
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov r8d, ecx
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000623d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006480
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006587
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400064e0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140001230
nop
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140006519
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140003a00
add qword [rbx + 8], 0x20
jmp 0x14000652a
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call fcn.1400031a0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140006568
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400065ac
call fcn.14001726c
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400064c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140017310
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140006830
Capabilities:
Hide graphical window

Disassembly:
mov dword [rcx + 0xfc], 0
mov edx, 5
mov rcx, qword [rcx + 0x98]
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x140007850
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140021188]
mov rcx, rbx
call fcn.140007ab0
test al, al
je 0x1400078ab
cmp qword [0x1400211a0], 8
mov rcx, rbx
cmovae rcx, qword [0x140021188]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400078a3
cmp qword [0x1400211a0], 8
cmovae rbx, qword [0x140021188]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400078ab
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400078c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdx, [0x140021668]
lea rcx, [rsp + 0x68]
call fcn.1400073a0
nop
cmp qword [0x140021168], 0
je 0x140007a79
lea rbx, [0x140021188]
mov rcx, rbx
call fcn.140007ab0
test al, al
jne 0x140007937
lea rbx, [0x140021158]
cmp qword [0x140021170], 8
cmovae rbx, qword [0x140021158]
xor edi, edi
jmp 0x140007a63
cmp byte [0x140021690], 0
je 0x140007948
mov rcx, rbx
call fcn.1400075e0
mov rcx, rbx
call fcn.140016970
cmp eax, 1
je 0x140007a79
cmp qword [0x1400211a0], 8
cmovae rbx, qword [0x140021188]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rbx, [0x140021158]
cmp rax, 0xffffffffffffffff
je 0x140007a53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400079bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140007a4a
mov ebp, dword [0x140021168]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400081a0
cmp qword [rax + 0x18], 0x10
jb 0x1400079f1
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140007a4a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007a45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007a45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x140021170], 8
cmovae rbx, qword [0x140021158]
mov qword [0x140021168], rdi
mov word [rbx], di
call sub.MSVCP140.dll__Xtime_get_ticks
mov qword [0x1400216a0], rax
lea rcx, [rsp + 0x68]
call fcn.1400073e0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140017310
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
sub rsp, 0x28
call fcn.1400043f0
mov edx, 1
lea rcx, [0x140021710]
call fcn.14000b4c0
call fcn.140006fa0
call fcn.14000ad50
call fcn.140008ba0
mov rcx, qword [0x140021700]
test rcx, rcx
je 0x1400096f3
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x1400096e8
add rsp, 0x28
jmp fcn.140005e40
mov qword [0x140021700], 0
mov rcx, qword [0x1400233e0]
test rcx, rcx
je 0x140009710
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400233e0], 0
call qword [sym.imp.ole32.dll_CoUninitialize]
add rsp, 0x28
jmp 0x1400078c0
Function at 0x140007ab0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x140007ae4
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140017310
add rsp, 0x50
pop rbx
ret
cmp qword [0x140021148], 0
mov qword [rsp + 0x68], rbp
je 0x140007c2c
xor ebp, ebp
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
lea rcx, [0x14001c050]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140007c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140007b31
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rsp + 0x38]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x140007b40
mov rcx, rbx
call fcn.140001e80
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 0x1c
jb 0x140007bb5
mov qword [rsp + 0x70], rsi
lea rsi, [rcx + 0x1c]
mov qword [rsp + 0x78], rdi
mov rdi, rbx
mov qword [rbx + 0x10], rsi
cmp rdx, 8
jb 0x140007b8f
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x38
lea rdx, str.Rockstar_GamesSocial_Club_
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], bp
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
jmp 0x140007bd8
movzx r8d, byte [rsp + 0x30]
lea r9, str.Rockstar_GamesSocial_Club_
mov edx, 0x1c
mov qword [rsp + 0x20], 0x1c
mov rcx, rbx
call fcn.1400034c0
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140007be5
mov rcx, qword [rbx]
call fcn.140005510
test eax, eax
jne 0x140007c02
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140007bfb
mov rcx, qword [rbx]
xor edx, edx
call fcn.1400050b0
cmp qword [0x140021150], 8
lea rdx, [0x140021138]
mov r8, qword [0x140021148]
mov rcx, rbx
cmovae rdx, qword [0x140021138]
call fcn.140006360
mov al, 1
jmp 0x140007c2e
xor al, al
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140017310
add rsp, 0x50
pop rbx
ret
Function at 0x140008630
Capabilities:
Create process on windows
Create process suspended
Move file
Self delete

Disassembly:
push rbx
sub rsp, 0x710
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x700], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0xe0]
xor eax, eax
mov rbx, rcx
xor ecx, ecx
mov qword [rsp + 0xd0], rax
mov r8d, 0x104
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp qword [rbx + 0x18], 8
jb 0x140005402
mov rbx, qword [rbx]
lea r9, [rsp + 0xe0]
mov qword [rsp + 0x20], rbx
lea r8, str.cmd.exe__C_ping_127.0.0.1__n_5__w_1000___Nul__Del__f__q___s___cd_..__rmdir__q___s_
mov edx, 0x208
lea rcx, [rsp + 0x2f0]
call fcn.140006140
xor edx, edx
lea rcx, [rsp + 0xe0]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.140017310
add rsp, 0x710
pop rbx
ret
cmp byte [0x1400233e8], 0
je 0x140008645
lea rcx, [0x140021770]
jmp 0x140005380
ret
Function at 0x140009420
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x38]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov rdx, qword [0x1400216d0]
mov rbx, rcx
xor esi, esi
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea r9d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400094b9
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400094d9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rdx, [0x14001a5c0]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
xor r8d, r8d
mov qword [rbx + 0x18], rsi
jmp 0x14000950f
cmp dword [rsp + 0x40], 1
jne 0x1400094b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x140009500
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001230
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140017310
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret