joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041210
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.14002b020
sub rsp, rax
mov rax, qword [0x14006a100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003bc78
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004125f
mov rax, rbp
jmp 0x140041367
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 + 0x6cc90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140042c30
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6cc90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140041363
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 0x140041363
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140042c30
test rax, rax
js 0x140041363
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140041363
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140041355
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140041355
cmp byte [rcx], 0xd
jne 0x14004133b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004134a
cmp byte [rcx + 1], 0xa
jne 0x14004134a
inc rcx
jmp 0x14004134a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6a540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004131d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140041367
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002a8a0
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 0x140041fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14006cc90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140042027
cmp word [rdx], r13w
jne 0x140042027
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004202c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140042151
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140042172
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140042065
mov rdx, r9
mov word [rbx], cx
jmp 0x14004208c
cmp r9, r8
jae 0x14004209c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140042046
jmp 0x140042151
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140042146
cmp dword [rsp + 0x80], esi
je 0x140042146
lea r8, [0x14006cc90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004211e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400420ee
mov word [rbx], r13w
jmp 0x14004214e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400420fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004214e
cmp word [rsp + 0x70], r13w
jne 0x14004212b
cmp rbx, r14
je 0x1400420e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140042c38
cmp word [rsp + 0x70], r13w
je 0x140042151
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14006cc90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004214b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140042151
Function at 0x1400458a0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400458d0
xor eax, eax
jmp 0x140045993
mov rbp, rbx
cmp word [rax], si
je 0x1400458f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400458dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400458d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140042df4
movsxd r14, eax
test eax, eax
jne 0x140045933
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400458c9
mov rcx, r14
call fcn.14003e000
mov rdi, rax
test rax, rax
jne 0x14004594c
xor ecx, ecx
call fcn.14003cfb4
jmp 0x140045928
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140042df4
test eax, eax
jne 0x14004597d
mov rcx, rdi
call fcn.14003cfb4
jmp 0x140045987
xor ecx, ecx
call fcn.14003cfb4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400489f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003b874
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140048a99
cmp ebx, dword [rsp + 0x30]
je 0x140048a92
test esi, esi
je 0x140048a92
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140048a6d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140048a7a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140048a57
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140048a7e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140048a9b
mov eax, 1
jmp 0x140048a9b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004cd0c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140034f08
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004cd96
cmp byte [rbp - 0x21], r15b
je 0x14004cd91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004cdcc
call fcn.14003d7f0
test eax, eax
jne 0x14004cdb8
cmp byte [rbp - 0x21], r15b
je 0x14004cdb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004cdcc
cmp byte [rbp - 0x21], r15b
je 0x14004cdc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140037b04
test eax, eax
jne 0x14004ce6c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140034f08
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004ce0b
cmp byte [rbp - 0x21], r15b
je 0x14004ce40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004ce40
call fcn.14003d7f0
test eax, eax
jne 0x14004ce2c
cmp byte [rbp - 0x21], r15b
je 0x14004ce25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004ce40
cmp byte [rbp - 0x21], r15b
je 0x14004ce3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140037b04
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004ce6c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004ce6f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004ce7d
mov rcx, rdi
call fcn.14003cfb4
cmp byte [rbp + 0x3f], r15b
je 0x14004ce8c
mov rcx, qword [rbp + 0x27]
call fcn.14003cfb4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14004d870
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140042c38
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140042c38
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004d9c0
cmp rax, 0xffffffffffffffff
je 0x14004d9c0
xor edi, edi
test rbp, rbp
jle 0x14004d96b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003c154
mov rbx, rax
test rax, rax
jne 0x14004d8f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004d961
mov edx, 0x8000
mov ecx, r14d
call fcn.14003914c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14003ccac
cmp eax, 0xffffffff
je 0x14004d941
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004d908
mov edx, r15d
mov ecx, r14d
call fcn.14003914c
jmp 0x14004d961
cmp byte [rsi + 0x38], dil
je 0x14004d958
cmp dword [rsi + 0x34], 5
jne 0x14004d958
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004d961
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003cfb4
jmp 0x14004d9d4
jns 0x14004d9d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140042c38
cmp rax, 0xffffffffffffffff
jne 0x14004d98c
cmp byte [rsi + 0x30], dil
je 0x14004d9d4
mov edi, dword [rsi + 0x2c]
jmp 0x14004d9d4
mov ecx, r14d
call fcn.1400464a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004d9d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14004d9d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004d9cd
mov eax, dword [rsi + 0x2c]
jmp 0x14004d9d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140042c38
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14004e1e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004e208
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004e208
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180005560
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
and dword [rsp + 0x30], 0
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o____lc_locale_name_func]
mov r9d, 2
lea r8, [rsp + 0x30]
mov rcx, qword [rax + 0x28]
lea edx, [r9 + 0x20]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
jne 0x1800159b2
lea eax, [rcx + 2]
add rsp, 0x28
ret
sub ecx, 1
je 0x1800159cd
cmp ecx, 1
je 0x1800159c3
xor eax, eax
jmp 0x180005599
mov eax, 3
jmp 0x180005599
mov eax, 1
jmp 0x180005599

Function at 0x1800212e0
Capabilities:
Copy file

Disassembly:
mov rax, rsp
sub rsp, 0x48
and qword [rax - 0x10], 0
lea r8, [rax - 0x28]
and dword [rax - 0x24], 0
xorps xmm0, xmm0
movdqu xmmword [rax - 0x20], xmm0
mov dword [rax - 0x28], 0x20
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_CopyFile2]
test eax, eax
js 0x180021311
xor eax, eax
jmp 0x180021314
movzx eax, ax
add rsp, 0x48
ret

Function at 0x180021b40
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18008f910]
xor rax, rsp
mov qword [rbp - 0x10], rax
or rax, 0xffffffffffffffff
mov rbx, rcx
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
call fcn.180015d58
mov rcx, qword [rbp - 0x20]
mov edx, 0x2f
test rcx, rcx
je 0x180021bba
mov r9, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
cmp r9, 8
cmovae rax, r8
setae r10b
cmp word [rax + rcx*2 - 2], dx
je 0x180021bcb
test r10b, r10b
lea rax, [rbp - 0x30]
cmovne rax, r8
cmp word [rax + rcx*2 - 2], 0x5c
je 0x180021bcb
lea rcx, [rbp - 0x30]
call fcn.180015fb0
mov r9, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp r9, 8
lea rcx, [rbp - 0x30]
lea r9, [rbp - 0x40]
cmovae rcx, r8
lea rdx, [rbp - 0x38]
lea r8, [rbp - 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x180021c05
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x50], rax
movups xmm0, xmmword [rbp - 0x60]
lea rcx, [rbp - 0x30]
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
call fcn.18000ca78
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180012490
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x180033ed0
Capabilities:
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs rcx, 0xcbf29ce484222325
test r8, r8
je 0x180028268
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x18002824a
mov rax, rcx
ret
sub r8, rdx
sar r8, 1
add r8, r8
jmp 0x180028238
Function at 0x180035ee8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x180035f49
test byte [rbx + 6], 0xf
jne 0x180035f3c
xor edi, edi
cmp word [rbx + 4], di
jne 0x180035f3c
cmp word [rbx + 2], di
jne 0x180035f3c
cmp word [rbx], di
jne 0x180035f3c
lea esi, [rdi + 1]
jmp 0x180035f41
mov esi, 2
movzx eax, si
jmp 0x180036141
xor edi, edi
test cx, cx
jne 0x180035f64
mov rcx, rbx
call fcn.180035d68
movzx ecx, ax
cmp di, ax
jl 0x18003613e
movsx edx, cx
test esi, esi
jle 0x180035f94
sub ebp, edx
cmp ebp, esi
jg 0x180035f94
movsd xmm0, qword [sym.msvcp_win.dll__Inf]
cmp word [rbx + 6], di
jge 0x180035f86
xorps xmm0, xmmword [0x180061ab0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x180036141
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x180035fc1
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x180036141
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x180036133
test ebp, ebp
jns 0x180036133
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x180036056
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x180036028
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1800360d5
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1800360eb
jne 0x18003610a
test byte [rbx], sil
je 0x18003610a
add word [rbx], si
jne 0x18003610a
add word [rbx + 2], si
jne 0x18003610a
add word [rbx + 4], si
jne 0x18003610a
add r11w, si
mov word [rbx + 6], r11w
jmp 0x180035fb9
cmp r11w, r15w
jne 0x180035fb9
cmp word [rbx + 4], di
jne 0x180035fb9
cmp word [rbx + 2], di
jne 0x180035fb9
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x180036141
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000fb70
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov rdx, rcx
jbe 0x14000fb86
mov rdx, qword [rcx]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp qword [rbx + 0x18], 7
jbe 0x14000fb9d
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
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, [0x14003a078]
lea rcx, str.SteamClientLaunch
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003a078]
lea rcx, str.SteamEnv
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.140006250
cmp qword [rax + 0x18], 7
jbe case.default.0x14000fc1b
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.SteamPath
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sbb eax, 0xb495f34f
clc
pop rax
invalid
mov ecx, 0x57fce55f
mov edi, 0x96d7abc9
fldenv [rbp - 0x7a]
cmpsb byte [rsi], byte [rdi]
sbb dword [rbx], esi
push rax
invalid
mov bl, 0x27
outsb dx, byte [rsi]
jrcxz case.0x14000fc1b.2
pop rdi
jnp 0x140085674
invalid
sbb dword [rsi - 0x391c6908], 0x6bee0275
movabs eax, dword [0x386b7cc52ab70d6e]
jl 0x14008577d
cmp byte [0xc50a8b4e], bh
add al, byte [rbp + 0x2b3f0df1]
int 0xd8
add al, byte [rbp + 0x2b3f0df1]
int 0xd8
adc al, 0xcc
lodsd eax, dword [rsi]
sbb al, 0x65
invalid
invalid
out 0x5e, eax
out 0xc2, eax
ja 0x1400856ee
enter 0x4ec7, 0xffffffffffffffdd
add al, 0xb3
invalid
wait
out dx, al
std
imul edi, dword [rsi], 0x732ff1f8
out dx, al
mov ebp, dword [rdi + 0x50c4f2f3]
mov ah, byte [rdx - 0x42]
invalid
mov esi, 0x185ba8af
invalid
invalid
invalid
invalid
Function at 0x1800047e0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180004847
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [0x1800f6530], rbx
lea r8, [0x180002e30]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x18005e100]
mov qword [0x1800f6540], rax
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [rbx + 1]
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x180004858
mov rcx, qword [0x1800f6540]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1800073f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000744d
lea rbx, [0x1800dc1d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180007434
cmp r10, 2
jb 0x180007434
cmp byte [r9], r8b
jne 0x180007434
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180007410
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000748f
lea rbx, [0x1800dc1d0]
cmp r8b, 0x23
jne 0x180007473
cmp byte [r9], r8b
jne 0x180007473
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180007460
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800075d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1800075ea
mov qword [r8], 0
lea rdx, [0x1800e0554]
call fcn.1800074a0
mov rbx, rax
test rax, rax
jne 0x18000760a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1800076e1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800076e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800076e1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800076e1
cmp rdi, 0xffffffffffffffff
je 0x1800076e1
mov rax, qword [0x1800f6570]
test rax, rax
je 0x18000767e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1800076e1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1800076ce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800f6570]
test rax, rax
je 0x1800076c3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800076ea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800076dc
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800076ec
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret