joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a480
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008c048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x14008f268]
mov rbx, rax
test rax, rax
jne 0x14003a60d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14002f200
nop
lea r8, [0x14008f6a0]
cmp qword [0x14008f6b8], 8
cmovae r8, qword [0x14008f6a0]
mov r9, qword [0x14008f6b0]
mov rcx, rax
call fcn.140005b00
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x14008f480]
cmp qword [0x14008f498], 8
cmovae r8, qword [0x14008f480]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003a5b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a5b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a656
call fcn.14003d300
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14003a609
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a604
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a650
call fcn.14003d300
xor al, al
jmp 0x14003a62f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003d2e0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140043d54
nop
call fcn.140043d54
nop
int3
Function at 0x14003a800
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14008c048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x14003a840
lea rdx, [rcx + 0x60]
mov rcx, rdi
call fcn.140012080
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003a84d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003a90b
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003a869
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x14003a90b
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003a901
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14003d5c0
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14003f470
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003a8f9
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.14003d300
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14003a946
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14003a941
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a97a
mov rcx, r8
call fcn.14003d300
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003d2e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140043d54
int3
Function at 0x14003e0f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e13a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e13a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e13a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e13a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e13a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003e13c
xor al, al
add rsp, 0x28
ret

Function at 0x140047e0c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140047c9f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047c9f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047c9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047c9f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047c9f
cmp dword [rcx + 0x84], 0xe
jbe 0x140047c9f
cmp dword [rcx + 0xf8], 0
je 0x140047c9f
mov ecx, ebx
call fcn.140047d40
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140047b30
cmp dword [rbp + 0x20], 0
je 0x140047cec
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140047cf4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140047c38
Function at 0x14005f760
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005f788
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005f788
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001b88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bd4
xor al, al
add rsp, 0x28
ret

Function at 0x1407ec000
Capabilities:
Encode data using xor

Disassembly:
push r15
push r9
movabs r15, 0xbd6217e2b6aa959
lea r9, section.ic
mov eax, 0x7ead50
jmp 0x1407ec01f
xor byte [r9], r15b
rol r15, 1
inc r9
dec eax
jne 0x1407ec01f
jmp 0x1407ec036
pop r9
pop r15
jmp loc.1407ea121
Function at 0x140008b40
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d140]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e633], 0
je 0x140008cee
lea rcx, str.restoring_registry_entries__HKCS__1
call fcn.1400134d0
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 0x140008be7
mov eax, dword [0x14004d00c]
mov dword [rsp + 0x28], eax
lea rax, [0x14005a640]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14003a354]
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 0x140008cee
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 0x140008c00
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140001350
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKCS__2__error_
lea rcx, [rsp + 0x40]
call fcn.1400015f0
nop
mov rcx, rax
call fcn.140007e50
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140008ca2
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008c9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008d35
call fcn.140015708
movdqa xmm0, xmmword [0x14003b4a0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140008cee
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008ce9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008d2f
call fcn.140015708
cmp byte [0x14004e632], 0
jne 0x140008d17
lea rcx, str.removing_registry_entries__HKCS__2__added_by_loader_
call fcn.1400134d0
lea rdx, str.steam
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015ac0
add rsp, 0xa8
ret
call fcn.14001c51c
nop
call fcn.14001c51c
nop
int3
Function at 0x140008d40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d140]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e630], 0
je 0x140008f2a
lea rcx, str.restoring_registry_entries__HKCU_
call fcn.1400134d0
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 0x140008e2f
mov eax, dword [section..data]
mov dword [rsp + 0x28], eax
lea rax, [0x14004e640]
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 [0x14004d004]
mov dword [rsp + 0x28], eax
lea rax, [0x140052640]
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.140015ac0
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 0x140008e40
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140001350
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKCU___error_
lea rcx, [rsp + 0x40]
call fcn.1400015f0
nop
mov rcx, rax
call fcn.140007e50
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140008ede
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008ed9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f48
call fcn.140015708
movdqa xmm0, xmmword [0x14003b4a0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140008f2a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f42
call fcn.140015708
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015ac0
add rsp, 0xa8
ret
call fcn.14001c51c
nop
call fcn.14001c51c
nop
int3
Function at 0x140008f50
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d140]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e631], 0
je 0x14000911a
lea rcx, str.restoring_registry_entries__HKLM_
call fcn.1400134d0
mov qword [rsp + 0x38], 0
lea rdx, [0x14005e648]
cmp qword [0x14005e660], 7
cmova rdx, qword [0x14005e648]
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 0x14000901a
mov eax, dword [0x14004d008]
mov dword [rsp + 0x28], eax
lea rax, [0x140056640]
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.140015ac0
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 0x140009030
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140001350
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKLM___error_
lea rcx, [rsp + 0x40]
call fcn.1400015f0
nop
mov rcx, rax
call fcn.140007e50
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400090ce
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400090c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009138
call fcn.140015708
movdqa xmm0, xmmword [0x14003b4a0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000911a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009115
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009132
call fcn.140015708
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015ac0
add rsp, 0xa8
ret
call fcn.14001c51c
nop
call fcn.14001c51c
nop
int3
Function at 0x14000bbc0
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.1400156cc
test rax, rax
je 0x14000bde9
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.140037120
mov rdi, rbp
mov qword [rsp + 0x40], rbp
lea rax, [0x14005e668]
cmp qword [0x14005e680], 7
cmova rax, qword [0x14005e668]
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 0x14000bd78
mov rdx, r14
mov r8, r14
mov r15, rbx
test r12d, r12d
jle 0x14000bd73
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 0x14000bccb
lea rdi, [r8 + rax*2]
jmp 0x14000bd15
jbe 0x14000bd1a
mov rcx, rbp
sub rcx, r8
sar rcx, 1
cmp rax, rcx
jbe 0x14000bcfe
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400032f0
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
jmp 0x14000bd1a
sub rax, rdx
lea rbx, [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140037120
add rdi, rbx
mov qword [rsp + 0x40], rdi
lea rax, [0x14005e668]
cmp qword [0x14005e680], 7
cmova rax, qword [0x14005e668]
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 0x14000bca2
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, rsi
mov rcx, r15
call fcn.140001a30
nop
test rsi, rsi
je 0x14000bdd2
sub rbp, rsi
sar rbp, 1
add rbp, rbp
cmp rbp, 0x1000
jb 0x14000bdc7
add rbp, 0x27
mov rdx, qword [rsi - 8]
sub rsi, rdx
lea rcx, [rsi - 8]
cmp rcx, 0x1f
ja 0x14000bde9
mov rsi, rdx
mov rdx, rbp
mov rcx, rsi
call fcn.140015708
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.14001c51c
int3
Function at 0x14000df90
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov rdx, rcx
jbe 0x14000dfa6
mov rdx, qword [rcx]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x14000dfc0
mov rdx, qword [rbx]
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp qword [rbx + 0x18], 7
jbe case.default.0x14000dfe6
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.SteamOverlayGameId
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
invalid
out dx, eax
fucom st(6)
out 0x7e, eax
mov cl, 0x41
jae 0x140085861
add esp, ebx
add esp, ebx
sbb al, 0x47
ja 0x140085821
push rdx
sahf
sahf
adc dword [rsi - 0x24], ebx
movsb byte [rdi], byte [rsi]
adc byte [rsi - 0x5b93e73e], cl
push 0xffffffffe2f175ad
jp 0x1400857f3
pop rcx
or cl, byte [rdi]
cld
adc bl, byte [rbp - 0x6c]
iretd
mov dh, 0x97
push rdi
hlt
movabs al, byte [0x9a6af6807e7a0756]
push rsi
invalid
jp 0x1400858c7
xor dh, 0x6a
invalid
lodsb al, byte [rsi]
ret
cmp dword [rbx - 0x6a], eax
xchg esi, eax
or al, 0x4e
xor esp, dword [rsi]
and ecx, dword [rbx - 0x2ab5e6ed]
in al, dx
cmp dword [rdi], edi
invalid
mov al, 0x4e
adc al, byte [rbp + 0x1250a22d]
add al, 0x39
enter 0x5e88, 0x7b
adc esp, edi
and byte [rbx + 0x2c], cl
xchg dword [rdi], esp
jae 0x1400857fb
jle 0x1400857fe
jle 0x1400858ac
invalid
invalid
or esi, esp
invalid
invalid
int3
invalid
Function at 0x14000ec50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000ec81
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14000ecfb
mov rdi, r14
mov rcx, rbx
call fcn.1400076d0
test rax, rax
jle 0x14000ecd3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140036a80
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000eceb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000ecf3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000ec95
sub r14, rdi
jmp 0x14000eddf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ed12
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ed14
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ed46
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140036a80
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000eddc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ed81
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000edbd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400200cc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000eddc
cmp rbp, rax
ja 0x14000ed90
test rbp, rbp
je 0x14000eddc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400200cc
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400123e0
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 0x140012439
test rbx, rbx
je 0x140012525
lea rax, str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
jmp 0x140012522
cmp qword [rdi + 0x18], 7
mov qword [rsp + 0x68], 0
jbe 0x14001244c
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 0x140012501
cmp qword [rsp + 0x68], r14
jb 0x140012501
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 0x1400124d1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140012525
lea rax, str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
jmp 0x140012522
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 0x14001252b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140012525
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 0x1400137f0
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 0x14001382a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001382f
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 0x140013878
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003b5f0]
cmp byte [rcx + rax], 0
je 0x140013878
dec r8
sub rdx, 1
jne 0x14001385e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret