joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b69b4
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180002bb0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180002c00
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.180001b79
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1800b6ca0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov esi, r8d
test rcx, rcx
je 0x1800b6cd3
add rcx, 0xc
mov rdi, rcx
jmp 0x1800b6cd5
xor edi, edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rdx
mov rbx, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x88]
call fcn.180002bb0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180002c00
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.180001b79
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800b78f4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp + 0x10], rcx
mov ebx, edx
mov rdi, r8
mov rsi, r9
mov r14, qword [rbp + 0x38]
mov r15, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800b1b7c
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rdi, rdi
jne 0x1800b795a
xor r8d, r8d
jmp 0x1800b795e
lea r8, [rdi + 0x10]
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x50], rsi
mov r9, rsi
test r14, r14
jne 0x1800b7972
xor eax, eax
jmp 0x1800b7976
lea rax, [r14 + 0x10]
mov qword [rbp - 0x58], rax
test r15, r15
jne 0x1800b7984
xor r10d, r10d
jmp 0x1800b7988
lea r10, [r15 + 0x10]
mov qword [rbp - 0x60], r10
test r12, r12
jne 0x1800b7996
xor r11d, r11d
jmp 0x1800b799b
lea r11, [r12 + 0x10]
mov qword [rbp - 0x68], r11
mov rsi, qword [rbp + 0x30]
mov rcx, rdx
mov qword [rbp - 0x74], rcx
mov edx, ebx
mov dword [rbp - 0x6c], edx
mov qword [rbp - 0x7c], r8
mov qword [rbp - 0x84], r9
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x38], r11
lea rcx, [rbp - 0xb0]
call fcn.180002bb0
mov rcx, qword [rbp - 0x74]
mov edx, dword [rbp - 0x6c]
mov r8, qword [rbp - 0x7c]
mov r9, qword [rbp - 0x84]
call sub.ADVAPI32.dll_RegEnumValueW
mov esi, eax
lea rcx, [rbp - 0xb0]
call fcn.180002c00
nop
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x1800b7a2f
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.1800b1c04
mov eax, esi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800b7ce4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800b1b7c
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x1800b7d35
add rsi, 0xc
jmp 0x1800b7d37
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.180002bb0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.180002c00
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x1800b7db0
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.1800b1c04
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1800cadf0
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
sub rsp, 0x28
mov esi, ecx
mov edi, edx
call fcn.1800010a1
mov eax, dword [rax]
add eax, 0x165667b1
add eax, 8
imul edx, esi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
imul edx, edi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
mov edx, eax
shr edx, 0xf
xor eax, edx
imul eax, eax, 0x85ebca77
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae3d
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rsi
pop rdi
ret
Function at 0x140007c10
Capabilities:
Create thread
Inject thread

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rdx + 0x18], 0xf
mov rax, rdx
mov qword [r11 + 0x10], rbx
mov rbx, r8
mov qword [r11 - 8], rsi
mov rsi, rcx
mov qword [r11 - 0x18], r14
jbe 0x140007c4b
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rdx + 0x10]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0xc8], rbp
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x98], rdi
call fcn.140006a50
mov r14, qword [rsp + 0x70]
test r14, r14
jne 0x140007ca6
test rbx, rbx
je 0x140007c9c
lea rax, str.Failed_to_convert_path_to_wide_string
mov qword [rbx], rax
mov eax, 0x57
jmp 0x140007dce
lea r14, [r14*2 + 2]
mov dword [rsp + 0x20], 4
lea r8, [r14 + 4]
xor edx, edx
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x140007ce8
test rbx, rbx
je 0x140007dc8
lea rax, str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
jmp 0x140007dc5
xor ebp, ebp
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x78], 7
lea r8, [rsp + 0x60]
mov r9, r14
mov qword [rsp + 0x40], rbp
cmova r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007da4
cmp qword [rsp + 0x40], r14
jb 0x140007da4
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x28], ebp
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r14, rax
test rax, rax
jne 0x140007d76
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140007dc8
lea rax, str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
jmp 0x140007dc5
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140007dd0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140007dc8
lea rax, str.Failed_to_remotely_write_dll_path_with_WriteProcessMemory__
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rdx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
cmp rdx, 7
jbe 0x140007e2e
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007e29
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007e50
call fcn.14001aee0
mov eax, ebp
mov rbp, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001b060
add rsp, 0xa8
ret
call fcn.140020d74
int3
Function at 0x14000f140
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004d9cb], 0
je 0x14000f3a9
lea rdx, str.restoring_registry_entries__HKCU_2_
lea rcx, [0x14004da60]
call fcn.1400071d0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f267
mov eax, dword [0x14004c1cc]
mov dword [rsp + 0x28], eax
lea rax, [0x140059b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SourceModInstallPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004c1d0]
mov dword [rsp + 0x28], eax
lea rax, [0x14005db00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004c1d4]
mov dword [rsp + 0x28], eax
lea rax, [0x140061b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamExe
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.14001b060
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r10, [rsp + 0x95]
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r10], cl
mov ecx, edx
test edx, edx
jne 0x14000f280
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140007e60
nop
mov r9d, 0x41
lea r8, str.Unable_to_restore_the_original_registry_entry__HKCU_2___error_
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140011f20
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x40]
lea rcx, [0x14004da60]
call fcn.140006f40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000f35d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f358
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f3c7
call fcn.14001aee0
movdqa xmm0, xmmword [0x140038970]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000f3a9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f3a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f3c1
call fcn.14001aee0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001b060
add rsp, 0xa8
ret
call fcn.140020d74
nop
call fcn.140020d74
nop
int3
Function at 0x14000f3d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004d9cc], 0
je 0x14000f619
lea rdx, str.restoring_registry_entries__HKLM_
lea rcx, [0x14004da60]
call fcn.1400071d0
mov qword [rsp + 0x38], 0
lea rdx, [0x14004da20]
cmp qword [0x14004da38], 7
cmova rdx, qword [0x14004da20]
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 0x14000f4d6
mov eax, dword [0x14004c1d8]
mov dword [rsp + 0x28], eax
lea rax, [0x140065b00]
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 eax, dword [0x14004c1dc]
mov dword [rsp + 0x28], eax
lea rax, [0x140069b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Universe
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.14001b060
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r10, [rsp + 0x95]
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r10], cl
mov ecx, edx
test edx, edx
jne 0x14000f4f0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140007e60
nop
mov r9d, 0x3e
lea r8, str.Unable_to_restore_the_original_registry_entry__HKLM___error_
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140011f20
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x40]
lea rcx, [0x14004da60]
call fcn.140006f40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000f5cd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f5c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f637
call fcn.14001aee0
movdqa xmm0, xmmword [0x140038970]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000f619
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f614
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f631
call fcn.14001aee0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001b060
add rsp, 0xa8
ret
call fcn.140020d74
nop
call fcn.140020d74
nop
int3
Function at 0x1400143d0
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov rdx, rcx
jbe 0x1400143f5
mov rdx, qword [rcx]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp qword [rbx + 0x18], 0xf
jbe 0x14001440c
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, str.cold_player
lea rcx, str.SteamAppUser
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, str.cold_player
lea rcx, str.SteamUser
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003984c]
lea rcx, [0x140039850]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003984c]
lea rcx, str.SteamEnv
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.140007430
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14001447e
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140006a50
cmp qword [rax + 0x18], 7
jbe 0x1400144b0
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.SteamPath
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400144fe
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400144f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014511
call fcn.14001aee0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001b060
add rsp, 0x60
pop rbx
ret
call fcn.140020d74
int3
Function at 0x140014fe0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140015004
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140015092
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140015060
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140015060
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140034ae0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001507d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140015085
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140015021
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140015170
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400150a9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400150ab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400150dd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140034ae0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001516d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015118
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 rsi, 0xfff
jbe 0x14001514e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140022c40
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14001516d
cmp rsi, rax
ja 0x140015121
test rsi, rsi
je 0x14001516d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140022c40
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x140019028
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 0x140019062
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140019067
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 0x1400190b0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003a900]
cmp byte [rcx + rax], 0
je 0x1400190b0
dec r8
sub rdx, 1
jne 0x140019096
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001bc94
Capabilities:
Parse pe header

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

Function at 0x140024c10
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140024c7f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024c7f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024c7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024c7f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024c7f
cmp dword [rcx + 0x84], 0xe
jbe 0x140024c7f
cmp dword [rcx + 0xf8], 0
je 0x140024c7f
mov ecx, ebx
call fcn.140024d30
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140024b0c
nop
cmp dword [rbp + 0x20], 0
je 0x140024ccd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024cd8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140024c10

Function at 0x140024e14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024c10
Function at 0x14002b070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001b000
sub rsp, rax
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028f78
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002b0bf
mov rax, rbp
jmp 0x14002b1c7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x77090]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002c190
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x77090]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002b1c3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b1c3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002c190
test rax, rax
js 0x14002b1c3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002b1c3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002b1b5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002b1b5
cmp byte [rcx], 0xd
jne 0x14002b19b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002b1aa
cmp byte [rcx + 1], 0xa
jne 0x14002b1aa
inc rcx
jmp 0x14002b1aa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c720]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002b17d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002b1c7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001b060
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002b3e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002b3fe
mov al, 1
jmp 0x14002b45e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002b40f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002b45c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002f36c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002b45c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002b45c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002b45c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002b45e
xor al, al
add rsp, 0x20
pop rbx
ret