joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007dfc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov rax, qword [rcx + 8]
xor r15d, r15d
mov esi, r15d
mov ebp, r15d
mov rdi, rcx
movabs r14, 0xb5026f5aa96619e9
movabs r12, 0x38eb3ffff6d3
nop
lea ecx, [rax + 0xff]
shl rsi, cl
add rsi, rsi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x138
jne 0x14007e075
lea rax, [r10 + 0x10]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 8]
xor r8d, dword [rax]
lea rax, [rax + 8]
btr r8d, 0x1f
xor r8, qword [rax - 0x10]
movzx ecx, r8b
and cl, 1
neg cl
sbb rdx, rdx
shr r8, 1
and rdx, r14
xor rdx, qword [rax + 0x4d0]
xor rdx, r8
mov qword [rax + 0x9b0], rdx
sub r9, 1
jne 0x14007e030
mov ecx, dword [r10]
jmp 0x14007e15b
cmp ecx, 0x270
jb 0x14007e15b
lea r11, [r10 + 0x9c8]
mov ebx, 0x9c
mov rax, qword [r11]
mov rdx, qword [r11 + 8]
lea r8, [r11 + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r14
xor rcx, qword [r11 + 0x4e0]
xor rcx, rdx
mov qword [r11 - 0x9c0], rcx
lea r11, [r8]
sub rbx, 1
jne 0x14007e090
lea r11, [r10 + 0xea8]
mov ebx, 0x9b
mov rax, qword [r11]
nop
mov rdx, rax
lea r8, [r11 + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r14
xor rcx, qword [r11 - 0xea0]
xor rcx, rdx
mov qword [r11 - 0x9c0], rcx
lea r11, [r8]
sub rbx, 1
jne 0x14007e0e0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r14
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov ecx, r15d
mov dword [r10], r15d
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
xor rdx, rax
mov rax, rdx
and rax, r12
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rcx, rdx
shr rcx, 0x2b
xor rcx, rdx
cmp rcx, qword [rdi + 0x10]
ja 0x14007e010
mov rax, qword [rdi + 8]
or rsi, rcx
add rbp, rax
cmp rbp, 0x40
jb 0x14007e000
mov rbx, qword [rsp + 0x20]
mov rax, rsi
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x14008c1f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14008c2e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
mov ebx, eax
call fcn.14008f0b0
mov r8, qword [rax]
xor edx, edx
mov ecx, dword [0x1402ba854]
call r8
test eax, eax
je 0x14008c2e2
call fcn.14008f0b0
mov rdi, qword [rax + 8]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14008cee0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14008c267
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
lea r9, str.xprocKill
mov qword [rsp + 0x30], r9
lea rax, str._s:_TerminateProcess_failed_err_d___s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb4
lea r8, str.C:code_app_playerhdSourcexplXprocWinnt.cpp
mov edx, dword [0x1402ba854]
xor ecx, ecx
call rdi
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14008c2e2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c2dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008c2dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a6d30
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x14008eb50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov ecx, 1
call fcn.1400a6bdc
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14008d400]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14008ebc0
cmp dword [rsp + 0x38], 0
je 0x14008ebd3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14008ebb8
add rsp, 0x58
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14008faa0
Capabilities:
Check if file exists
Delete file

Disassembly:
jmp 0x140096bf0
push rbx
sub rsp, 0x50
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140096c1c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x140096c6f
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096c6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096c6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test bl, bl
je 0x140096c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140096c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret
Function at 0x14008ff00
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
call fcn.140096cc0
mov edi, eax
test eax, eax
je 0x14008ff89
call fcn.14008f0b0
mov ecx, dword [0x1402ba860]
mov edx, 1
mov r8, qword [rax]
call r8
test eax, eax
je 0x14008ff89
call fcn.14008f0b0
cmp qword [rbx + 0x18], 0x10
mov r10, qword [rax + 8]
mov rax, rbx
jb 0x14008ff50
mov rax, qword [rbx]
mov edx, dword [0x1402ba860]
lea r9, str.xfileMove
mov dword [rsp + 0x38], edi
lea r8, str.C:code_app_playerhdSourcexplXfile.cpp
mov qword [rsp + 0x30], rax
mov ecx, 1
lea rax, str.Error_in_flushing_file__s_to_disk._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x9f
call r10
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140096e00
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
call fcn.14008ada0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140096e33
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140096e4a
mov rax, qword [rax]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140096ea6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096ea1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096ea1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140096f00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096efb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096efb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test bl, bl
je 0x140096f13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
jmp 0x140096f15
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a6d30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140090550
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ebx, r9d
mov rsi, r8
mov rdi, rcx
xor r14d, r14d
mov qword [rbp - 0x21], r14
lea rcx, [rbp + 0xf]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140090594
mov rax, qword [rax]
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
mov r9d, 0x101
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400905f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400905f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400905f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test edi, edi
jne 0x1400906ce
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.14008ada0
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009067a
cmp dword [rbp - 0x29], 4
jne 0x14009067a
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x15]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009067a
mov ebx, dword [rbp - 0x15]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400906bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400906b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400906b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400906de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140096bf0
Capabilities:
Check if file exists
Delete file

Disassembly:
jmp 0x140096bf0
push rbx
sub rsp, 0x50
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140096c1c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x140096c6f
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096c6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096c6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test bl, bl
je 0x140096c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140096c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret

Function at 0x140096d30
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140096d5c
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x140096db1
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096dac
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096dac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test bl, bl
je 0x140096de2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140096de2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret
Function at 0x140096e00
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
call fcn.140096cc0
mov edi, eax
test eax, eax
je 0x14008ff89
call fcn.14008f0b0
mov ecx, dword [0x1402ba860]
mov edx, 1
mov r8, qword [rax]
call r8
test eax, eax
je 0x14008ff89
call fcn.14008f0b0
cmp qword [rbx + 0x18], 0x10
mov r10, qword [rax + 8]
mov rax, rbx
jb 0x14008ff50
mov rax, qword [rbx]
mov edx, dword [0x1402ba860]
lea r9, str.xfileMove
mov dword [rsp + 0x38], edi
lea r8, str.C:code_app_playerhdSourcexplXfile.cpp
mov qword [rsp + 0x30], rax
mov ecx, 1
lea rax, str.Error_in_flushing_file__s_to_disk._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x9f
call r10
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140096e00
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
call fcn.14008ada0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140096e33
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140096e4a
mov rax, qword [rax]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140096ea6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096ea1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096ea1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140096f00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140096efb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096efb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test bl, bl
je 0x140096f13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
jmp 0x140096f15
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a6d30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140097070
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x14009709c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 8
jb 0x1400970ec
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400970e7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400970e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
cmp ebx, 0xffffffff
jne 0x140097111
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0x50
pop rbx
ret

Function at 0x140097130
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140097167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov qword [rbx], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400973a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400973d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c610
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov qword [rbx], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140098670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 0x10
mov rbx, rdx
mov r11, qword [r8 + 0x10]
mov rdx, r8
mov rdi, rcx
jb 0x140098691
mov rdx, qword [r8]
xor r10d, r10d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x1400986c4
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [r10 + rdx]
inc r10
xor r9, rax
imul r9, rcx
cmp r10, r11
jb 0x1400986b0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140097c60
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400986eb
mov qword [rbx], rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi + 8]
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140098700
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 0x10
mov rbx, rdx
mov r11, qword [r8 + 0x10]
mov rdx, r8
mov rdi, rcx
jb 0x140098721
mov rdx, qword [r8]
xor r10d, r10d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x140098754
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [r10 + rdx]
inc r10
xor r9, rax
imul r9, rcx
cmp r10, r11
jb 0x140098740
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140097d30
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14009877b
mov qword [rbx], rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi + 8]
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, [0x140001b70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
or eax, 4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
lea rdx, [0x140001b40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
xor eax, eax
add rsp, 0x78
ret

Function at 0x1400012a0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xc0000001
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1400012dc
mov rax, qword [rsp + 0x28]
jmp 0x1400012de
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001310
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0xc0000001
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x28], 0
jne 0x140001350
jmp 0x1400013f9
mov r8d, 0x31313131
mov edx, 8
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000137d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400013f9
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x20], 0x10000
jmp 0x1400013a4
mov eax, dword [rsp + 0x20]
add eax, 0x1000
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x20000000
jge 0x1400013ca
lfence
movsxd rax, dword [rsp + 0x20]
mov r8d, 0x1000
xor edx, edx
mov rcx, rax
call fcn.140001940
jmp 0x1400013c8
jmp 0x140001397
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400013f9
add rsp, 0x48
ret
Function at 0x140028570
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140029050
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14002d860
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14002d882
mov rcx, qword [rsp + 0x40]
call fcn.14002d930
jmp 0x14002d899
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14002d899
mov rcx, qword [rsp + 0x40]
call fcn.14002d9e0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14002d930
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14002d951
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14002d9d5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14002d9a0
mov dword [rsp + 4], 0x9908b0df
jmp 0x14002d9a8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14002d944
add rsp, 0x18
ret