joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004cf30
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18004cd80
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18004cff2
mov dword [rsp + 0x20], 0
jmp 0x18004cf8f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18004cff2
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004cff0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18004cbd0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004cf85
add rsp, 0x38
ret

Function at 0x18004d000
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18004d08f
mov dword [rsp + 0x20], 0
jmp 0x18004d028
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18004d078
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004d076
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004d01e
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180088798]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x38
ret
Function at 0x18004d0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x60]
imul rax, rax, 0x38
mov rcx, qword [0x18008ada0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18004d10a
mov rax, qword [rsp + 0x30]
sub rax, 5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004d133
mov eax, 0xa
jmp 0x18004d264
cmp dword [rsp + 0x68], 0
je 0x18004d19e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x30]
add rax, 5
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18004d19c
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x48]
mov byte [rax + 1], 0xf9
jmp 0x18004d1ea
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18004d1ce
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18004d1ea
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x68]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x68]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x20], al
xor eax, eax
add rsp, 0x58
ret
Function at 0x18004da60
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x90], 0x40000000
jbe 0x18004dac1
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
cmp qword [rsp + 0x30], rax
jae 0x18004dac1
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
cmp qword [rsp + 0x28], rax
jbe 0x18004dae9
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 0xfff
mov qword [rsp + 0x28], rax
mov rax, qword [0x18008ad98]
mov qword [rsp + 0x20], rax
jmp 0x18004db14
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18004db4e
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x20], rax
jb 0x18004db34
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x20], rax
jb 0x18004db36
jmp 0x18004db07
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x18004db4c
mov rax, qword [rsp + 0x20]
jmp 0x18004dcc0
jmp 0x18004db07
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jb 0x18004dbb7
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.18004d860
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18004db8a
jmp 0x18004dbb7
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18004dbb5
jmp 0x18004dbb7
jmp 0x18004db5b
cmp qword [rsp + 0x20], 0
jne 0x18004dc28
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x40], rax
ja 0x18004dc28
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.18004d940
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18004dbfb
jmp 0x18004dc28
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18004dc26
jmp 0x18004dc28
jmp 0x18004dbcc
cmp qword [rsp + 0x20], 0
je 0x18004dcbb
mov rax, qword [rsp + 0x20]
add rax, 0x40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
add rax, 0x40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
cmp rax, 0xfc0
jbe 0x18004dc5b
mov rax, qword [rsp + 0x20]
mov rcx, qword [0x18008ad98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov qword [0x18008ad98], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x18004e460
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18004e4b9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18004e4b9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18004e4b9
xor eax, eax
jmp 0x18004e500
mov dword [rsp], 1
jmp 0x18004e4ca
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18004e4fb
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18004e4f9
xor eax, eax
jmp 0x18004e500
jmp 0x18004e4c2
mov eax, 1
add rsp, 0x18
ret
Function at 0x18004f5b8
Capabilities:
Get geographical location

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

Function at 0x14123a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14123a1df
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 0x14123a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123a06f
add dl, dl
jne 0x14123a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123a0f6
xor eax, eax
add dl, dl
jne 0x14123a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123a1ad
add dl, dl
jne 0x14123a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14123a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14123a07e
mov eax, 1
add dl, dl
jne 0x14123a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123a0fb
sub eax, ebx
mov ebx, 1
jne 0x14123a14c
mov ecx, 1
add dl, dl
jne 0x14123a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14123a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14123a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14123a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123a15d
cmp eax, 0x7d00
jae 0x14123a19b
cmp eax, 0x500
jb 0x14123a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123a07e
cmp eax, 0x7f
ja 0x14123a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14123a1d2
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 0x14123a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006ad0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006b00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
je 0x140006b00
cmp dword [rax], 0x4550
jne 0x140006b00
lea rcx, [rax + 4]
test rcx, rcx
je 0x140006b00
mov edx, 0x14c
cmp word [rcx], dx
sete al
ret
xor eax, eax
ret

Function at 0x140006b10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006b40
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
je 0x140006b40
cmp dword [rax], 0x4550
jne 0x140006b40
lea rcx, [rax + 4]
test rcx, rcx
je 0x140006b40
mov edx, 0x8664
cmp word [rcx], dx
sete al
ret
xor eax, eax
ret

Function at 0x140006b50
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, qword [rdx + 0x10]
mov rbx, r8
mov rdi, rdx
mov dword [rsp + 0x20], 4
add r14, r14
xor edx, edx
mov r9d, 0x3000
mov rsi, rcx
lea r8, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140006ba9
test rbx, rbx
je 0x140006c95
lea rax, str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
jmp 0x140006c92
cmp qword [rdi + 0x18], 7
mov qword [rsp + 0x68], 0
jbe 0x140006bbc
mov rdi, qword [rdi]
lea rax, [rsp + 0x68]
mov r9, r14
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140006c71
cmp qword [rsp + 0x68], r14
jb 0x140006c71
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140006c41
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140006c95
lea rax, str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
jmp 0x140006c92
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140006c9b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140006c95
lea rax, str.Failed_to_remotely_write_dll_path_with_WriteProcessMemory__
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000b1b0
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e7d3], 0
je 0x14000b35e
lea rcx, str.restoring_registry_entries__HKCS__1
call fcn.1400060e0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.steamShellOpenCommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b257
mov eax, dword [0x14004d15c]
mov dword [rsp + 0x28], eax
lea rax, [0x14005a7e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14003a444]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000b35e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rsp + 0x95]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000b270
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140006cb0
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKCS__2__error_
lea rcx, [rsp + 0x40]
call fcn.140006f50
nop
mov rcx, rax
call fcn.140005e70
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b312
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b30d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b3a5
call fcn.140015da0
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b35e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b359
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b39f
call fcn.140015da0
cmp byte [0x14004e7d2], 0
jne 0x14000b387
lea rcx, str.removing_registry_entries__HKCS__2__added_by_loader_
call fcn.1400060e0
lea rdx, str.steam
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f20
add rsp, 0xa8
ret
call fcn.14001bc14
nop
call fcn.14001bc14
nop
int3
Function at 0x14000b3b0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e7d0], 0
je 0x14000b59a
lea rcx, str.restoring_registry_entries__HKCU_
call fcn.1400060e0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareValveSteamActiveProcess
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b49f
mov eax, dword [0x14004d150]
mov dword [rsp + 0x28], eax
lea rax, [0x14004e7e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamClientDll
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004d154]
mov dword [rsp + 0x28], eax
lea rax, [0x1400527e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamClientDll64
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f20
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rsp + 0x95]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000b4b0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140006cb0
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKCU___error_
lea rcx, [rsp + 0x40]
call fcn.140006f50
nop
mov rcx, rax
call fcn.140005e70
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b54e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b549
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b5b8
call fcn.140015da0
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b59a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b595
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b5b2
call fcn.140015da0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f20
add rsp, 0xa8
ret
call fcn.14001bc14
nop
call fcn.14001bc14
nop
int3
Function at 0x14000b5c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e7d1], 0
je 0x14000b78a
lea rcx, str.restoring_registry_entries__HKLM_
call fcn.1400060e0
mov qword [rsp + 0x38], 0
lea rdx, [0x14005e7e8]
cmp qword [0x14005e800], 7
cmova rdx, qword [0x14005e7e8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b68a
mov eax, dword [0x14004d158]
mov dword [rsp + 0x28], eax
lea rax, [0x1400567e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f20
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rsp + 0x95]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000b6a0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140006cb0
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKLM___error_
lea rcx, [rsp + 0x40]
call fcn.140006f50
nop
mov rcx, rax
call fcn.140005e70
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b73e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b739
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b7a8
call fcn.140015da0
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b78a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b785
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b7a2
call fcn.140015da0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f20
add rsp, 0xa8
ret
call fcn.14001bc14
nop
call fcn.14001bc14
nop
int3
Function at 0x14000ddd0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rsi, r9
mov qword [rsp + 0x60], r9
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
mov ecx, 0x10025
call fcn.140015d64
test rax, rax
je 0x14000dff9
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov qword [rsp + 0x38], r14
lea rbp, [r14 + 0xfffe]
mov qword [rsp + 0x48], rbp
xor edx, edx
mov r8d, 0xfffe
mov rcx, r14
call fcn.140036820
mov rdi, rbp
mov qword [rsp + 0x40], rbp
lea rax, [0x14004d160]
cmp qword [0x14004d178], 7
cmova rax, qword [0x14004d160]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x7fff
mov r9, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r9d, eax
mov r12d, 3
mov rsi, r14
cmp eax, 0x7ffe
jne 0x14000df88
mov rdx, r14
mov r8, r14
mov r15, rbx
test r12d, r12d
jle 0x14000df83
mov rax, rdi
sub rax, rdx
sar rax, 1
add rax, rax
mov rdx, rdi
sub rdx, r8
sar rdx, 1
cmp rax, rdx
jae 0x14000dedb
lea rdi, [r8 + rax*2]
jmp 0x14000df25
jbe 0x14000df2a
mov rcx, rbp
sub rcx, r8
sar rcx, 1
cmp rax, rcx
jbe 0x14000df0e
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140007c40
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
jmp 0x14000df2a
sub rax, rdx
lea rbx, [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140036820
add rdi, rbx
mov qword [rsp + 0x40], rdi
lea rax, [0x14004d160]
cmp qword [0x14004d178], 7
cmova rax, qword [0x14004d160]
mov rbx, rdi
sub rbx, r14
sar rbx, 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, r14
mov r8, qword [rsp + 0x60]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r9d, eax
dec r12d
mov rdx, r14
mov rsi, r14
mov r8, r14
lea rcx, [rbx - 1]
cmp r9, rcx
je 0x14000deb2
mov r15, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor eax, eax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rax
mov r8d, r9d
mov rdx, r14
mov rcx, r15
call fcn.140001450
nop
test rsi, rsi
je 0x14000dfe2
sub rbp, rsi
sar rbp, 1
add rbp, rbp
cmp rbp, 0x1000
jb 0x14000dfd7
add rbp, 0x27
mov rdx, qword [rsi - 8]
sub rsi, rdx
lea rcx, [rsi - 8]
cmp rcx, 0x1f
ja 0x14000dff9
mov rsi, rdx
mov rdx, rbp
mov rcx, rsi
call fcn.140015da0
mov rax, r15
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14001bc14
int3