joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003460
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003482
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000349b
lfence
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400034bc
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400034be
xor ecx, ecx
movsxd rax, ecx
mov rdi, rbp
test ecx, ecx
je 0x1400034f3
cmp rax, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, rbx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140003594
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000352e
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rdi, 0xfff
jbe 0x140003571
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140003594
cmp rbx, rax
ja 0x140003540
test rdi, rdi
je 0x140003594
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rdi
sub rbx, rax
sub rbp, rbx
mov rax, rbp
lfence
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400039c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140082010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400039ed
xor eax, eax
jmp 0x140003b48
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140003a18
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140003a18
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140003b48
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003b3b
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140003a5b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003a86
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003b40
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x140003b3b
cmp eax, 1
jle 0x140003af8
cmp eax, 3
jne 0x140003b3b
lfence
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003b40
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003b29
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140003b3b
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140003b40
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14004bc60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003da0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140082010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003e76
cmp byte [rcx + 0x71], 0
je 0x140003e76
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003e72
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003e34
sub eax, 1
je 0x140003e38
cmp eax, 2
jne 0x140003e72
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004bc60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003e69
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003e72
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003e1c
xor al, al
jmp 0x140003e1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004bc60
add rsp, 0x60
pop rbx
ret

Function at 0x1400095a0
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 0x140009601
lea rbx, [0x1400501a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400095e4
cmp r10, 2
jb 0x1400095e4
cmp byte [r9], r8b
jne 0x1400095e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
mov ecx, eax
xor rdx, r8
shr ecx, 8
mov eax, dword [rbx + rdx*4]
xor eax, ecx
test r10, r10
jne 0x1400095c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140009647
lea rbx, [0x1400501a0]
cmp r8b, 0x23
jne 0x140009627
cmp byte [r9], r8b
jne 0x140009627
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
mov ecx, eax
inc r9
shr ecx, 8
mov eax, dword [rbx + rdx*4]
xor eax, ecx
test r8b, r8b
jne 0x140009614
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140009780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000979a
mov qword [r8], 0
lea rdx, [0x14004ff8c]
call fcn.140009650
mov rbx, rax
test rax, rax
jne 0x1400097ba
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 0x1400098a5
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 0x1400098a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400098a5
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 0x1400098a5
cmp rdi, 0xffffffffffffffff
je 0x1400098a5
mov rax, qword [0x140082e70]
test rax, rax
je 0x140009836
inc dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x1400098a5
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 0x140009892
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140082e70]
test rax, rax
je 0x140009881
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400098ae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400098a0
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400098b0
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
Function at 0x140015cd0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x140082e70]
mov r9, rcx
mov rbx, qword [rax + 0x1ae0]
add rbx, 0xc8
movzx eax, r9b
lea r9, [0x1400501a0]
movsxd r10, dword [rbx]
mov r11, qword [rbx + 8]
mov r8d, dword [r11 + r10*4 - 4]
not r8d
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x31]
mov edx, dword [r9 + rcx*4]
xor edx, r8d
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x32]
mov r8d, dword [r9 + rcx*4]
xor r8d, edx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x33]
mov edx, dword [r9 + rcx*4]
xor edx, r8d
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x34]
mov r8d, dword [r9 + rcx*4]
xor r8d, edx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x35]
mov edx, dword [r9 + rcx*4]
xor edx, r8d
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x36]
mov r8d, dword [r9 + rcx*4]
xor r8d, edx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x37]
mov edx, dword [r9 + rcx*4]
xor edx, r8d
mov r8d, dword [rbx + 4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov edi, dword [r9 + rcx*4]
xor edi, edx
not edi
cmp r10d, r8d
jne 0x140015df7
lea ecx, [r10 + 1]
test r8d, r8d
je 0x140015ddc
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140015de1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.14001d240
mov r10d, dword [rbx]
mov r11, qword [rbx + 8]
movsxd rax, r10d
mov dword [r11 + rax*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140015e10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x140082e70]
mov r9d, ecx
mov rbx, qword [rax + 0x1ae0]
add rbx, 0xc8
movzx eax, r9b
lea r9, [0x1400501a0]
movsxd r10, dword [rbx]
mov r11, qword [rbx + 8]
mov r8d, dword [r11 + r10*4 - 4]
not r8d
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x31]
mov edx, dword [r9 + rcx*4]
xor edx, r8d
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x32]
mov r8d, dword [r9 + rcx*4]
xor r8d, edx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x33]
mov edx, dword [r9 + rcx*4]
xor edx, r8d
mov r8d, dword [rbx + 4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov edi, dword [r9 + rcx*4]
xor edi, edx
not edi
cmp r10d, r8d
jne 0x140015ede
lea ecx, [r10 + 1]
test r8d, r8d
je 0x140015ec3
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140015ec8
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.14001d240
mov r10d, dword [rbx]
mov r11, qword [rbx + 8]
movsxd rax, r10d
mov dword [r11 + rax*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140016da0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140082010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140082e70]
mov edi, edx
cmp byte [rbx + 0x1e25], 0
jne 0x140016e00
cmp byte [rbx + 0x1e26], 0
jne 0x140016e00
mov r9d, dword [rbx + 0x2ec8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140009490
test dil, 1
je 0x140016f24
jmp 0x140016e88
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ec8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140077fc8]
mulss xmm1, dword [0x140077fb8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x140077f14]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
call fcn.140009490
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov edx, r10d
test r9b, r9b
je 0x140016edc
lea r11, [0x1400501a0]
cmp r9b, 0x23
jne 0x140016ebb
cmp byte [r8], r9b
jne 0x140016ebb
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
mov eax, edx
inc r8
shr eax, 8
mov edx, dword [r11 + rcx*4]
xor edx, eax
test r9b, r9b
jne 0x140016ea8
not edx
mov ecx, edx
call fcn.1400107d0
test rax, rax
je 0x140016f24
cmp byte [rax + 0x8e], 0
je 0x140016f24
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xac], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ec8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ec8]
call fcn.140009490
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140012f80
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004bc60
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001b250
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x140082e70]
cmp byte [rbx + 0x2f5c], 0
je 0x14001b33c
cmp qword [rbx + 0x2f68], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f70]
je 0x14001b324
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14001b2cb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001cf70
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140009da0
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f68]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f78]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x140082e68]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140009da0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x14002d800
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140082010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140082ee0]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x140082e70]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140082ee8]
cvtsi2ss xmm0, qword [0x140082ef0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140082ee8], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x140082e70]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x14002d93f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x140082ee0]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14002d93f
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14002d9be
mov rdx, qword [0x140082ee0]
cmp rax, rdx
je 0x14002d977
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x14002d9be
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14002d9be
mov rcx, qword [0x140082ee0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14002d9be
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x14002d9ce
mov eax, 0xffffffff
jmp 0x14002d9db
mov rax, qword [0x140082e70]
mov eax, dword [rax + 0x1e20]
cmp dword [0x1400822cc], eax
je 0x14002d9ee
mov dword [0x1400822cc], eax
call fcn.14002d3b0
call fcn.14002d530
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004bc60
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14003c670
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x10], 0x100000
mov r10, rdx
je 0x14003c6ff
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14003c6d4
lea r10, [0x1400501a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14003c6b3
cmp byte [r8], r9b
jne 0x14003c6b3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
mov ecx, eax
inc r8
shr ecx, 8
mov eax, dword [r10 + rdx*4]
xor eax, ecx
test r9b, r9b
jne 0x14003c6a0
mov rcx, qword [0x140082e70]
not eax
cmp dword [rcx + 0x1b30], eax
jne 0x14003c6eb
mov dword [rcx + 0x1b34], eax
cmp dword [rcx + 0x1b70], eax
jne 0x14003c751
mov byte [rcx + 0x1b74], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x140082e70]
mov rax, qword [rbx + 0x1ae0]
movsxd rcx, dword [rax + 0xc8]
mov rax, qword [rax + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, r10
call fcn.1400095a0
cmp dword [rbx + 0x1b30], eax
jne 0x14003c73d
mov dword [rbx + 0x1b34], eax
cmp dword [rbx + 0x1b70], eax
jne 0x14003c74c
mov byte [rbx + 0x1b74], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140044200
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword gs:[0x58]
mov ebx, 1
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmm7, xmm1
mov edx, 4
mov rcx, qword [rax]
movaps xmmword [rsp + 0x20], xmm8
movaps xmm8, xmm0
mov eax, dword [rdx + rcx]
cmp dword [0x140082f58], eax
jle 0x1400442b8
lea rcx, [0x140082f58]
call fcn.14004c20c
cmp dword [0x140082f58], 0xffffffff
jne 0x1400442b8
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [0x1400842e4], 0xffffffff
lea r9, [0x140082f64]
mov dword [0x140082f64], eax
mov r8d, ebx
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul edx, edx, 0x6c078965
add edx, r8d
mov dword [r9 + r8*4], edx
mov eax, edx
inc r8
cmp r8, 0x270
jb 0x140044280
lea rcx, [0x140082f58]
mov dword [0x140082f60], 0x270
call fcn.14004c1ac
movss xmm6, dword [0x140078038]
movaps xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2f]
movss xmm1, dword [0x140077fd8]
divss xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm2, dword [0x140077f44]
xorps xmm3, xmm3
cvttss2si eax, xmm0
xorps xmm1, xmm1
cmp eax, ebx
cmovl eax, ebx
test eax, eax
jle 0x140044326
mov ebx, eax
nop word [rax + rax]
call fcn.140045460
mov r11d, eax
xorps xmm0, xmm0
cvtsi2ss xmm0, r11
subss xmm0, xmm3
mulss xmm0, xmm2
mulss xmm2, xmm6
addss xmm1, xmm0
sub rbx, 1
jne 0x140044300
movaps xmm6, xmmword [rsp + 0x40]
subss xmm7, xmm8
divss xmm1, xmm2
mulss xmm1, xmm7
movaps xmm7, xmmword [rsp + 0x30]
addss xmm1, xmm8
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm0, xmm1
add rsp, 0x50
pop rbx
ret
Function at 0x140044fb0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140082010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r15 + 3]
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14004502a
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r15b
jmp 0x14004516d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rax, [sub.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x54], r15
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400450a8
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], al
jmp 0x14004515f
mov edi, dword [rsp + 0x4c]
mov ecx, edi
call fcn.14004c498
mov r14, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9d, 0xc
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140045116
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], al
mov rcx, r14
call fcn.14004bc84
nop
jmp 0x14004515f
mov eax, dword [r14 + 0x18]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
test eax, eax
jne 0x140045138
mov rcx, r14
call fcn.14004bc84
nop
jmp 0x14004515f
lea rdx, [r14 + rax]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140045143
mov rcx, rsi
call fcn.1400078c0
nop
mov rcx, r14
call fcn.14004bc84
nop
test rbp, rbp
je 0x14004516d
mov rcx, rbp
call sub.KERNEL32.dll_CloseHandle
nop
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14004bc60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret