joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140aa6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140aa61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140aa6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aa606f
add dl, dl
jne 0x140aa6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aa60f6
xor eax, eax
add dl, dl
jne 0x140aa60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aa61ad
add dl, dl
jne 0x140aa60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140aa60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140aa607e
mov eax, 1
add dl, dl
jne 0x140aa6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aa60fb
sub eax, ebx
mov ebx, 1
jne 0x140aa614c
mov ecx, 1
add dl, dl
jne 0x140aa612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aa613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aa6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aa607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140aa6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aa6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aa615d
cmp eax, 0x7d00
jae 0x140aa619b
cmp eax, 0x500
jb 0x140aa6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aa607e
cmp eax, 0x7f
ja 0x140aa619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aa607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140aa61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140aa607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005fd0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140006059
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140006010
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
test eax, eax
js 0x140006134
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140006134
nop word [rax + rax]
mov ebp, edi
lea rdx, [rbx + 0x30]
imul rax, rbp, 0x128
mov qword [rsp + 0x28], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], r14b
jne 0x1400060b2
lea rcx, [rsp + 0x28]
call fcn.140001ac0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1400060d2
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000616a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000612a
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006125
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400061bb
call fcn.140008104
inc edi
cmp edi, dword [rbx]
jb 0x140006080
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007d60
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
imul rax, rbp, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400061c7
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061c2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400061c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008104
mov rax, rdi
jmp 0x140006147
Function at 0x140006560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140006597
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400065b8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400065ba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006613
test ecx, ecx
jle 0x1400065f3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140006613
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006613
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140006640
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 0x140006662
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006678
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 rdx, qword [rax]
test rdx, rdx
je 0x140006694
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006696
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400066d0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140006777
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000670b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140006751
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 0x140006790
cmp rbx, rax
ja 0x140006720
mov r8, rdi
test rdi, rdi
je 0x140006777
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 r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000677a
Function at 0x140006ba0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140006bcd
xor eax, eax
jmp 0x140006d22
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140006bf8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140006bf8
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 0x140006d22
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140006d15
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140006c3b
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 0x140006c66
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 0x140006d1a
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
je 0x140006cd5
sub eax, 1
je 0x140006cd5
cmp eax, 2
jne 0x140006d15
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 0x140006d1a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006d03
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 0x140006d15
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140006d1a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007d60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006ec0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006f93
cmp byte [rcx + 0x71], 0
je 0x140006f93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140006f8f
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 0x140006f54
sub eax, 1
je 0x140006f58
cmp eax, 2
jne 0x140006f8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007d60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006f86
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 0x140006f8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006f3c
xor al, al
jmp 0x140006f3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007d60
add rsp, 0x60
pop rbx
ret
Function at 0x140001130
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov r9, rdx
mov r8d, ecx
call fcn.140001ad0
test eax, eax
jne 0x140001346
mov rax, qword [0x1400097f0]
mov qword [rsp + 0x30], rbx
test rax, rax
jne 0x140001172
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006d50]
call fcn.1400037e0
mov qword [0x1400097f0], rax
lea rcx, [0x140006660]
mov qword [rsp + 0x20], rdi
call rax
mov rbx, rax
test rax, rax
je 0x140001274
mov rax, qword [0x140009838]
mov qword [rsp + 0x38], rsi
test rax, rax
jne 0x1400011b7
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ed8]
call fcn.1400037e0
mov qword [0x140009838], rax
xor r8d, r8d
lea rcx, str._MessageBox
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x1400011f5
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ec0]
call fcn.1400037e0
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x140009838]
test rax, rax
jne 0x140001226
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ed8]
call fcn.1400037e0
mov qword [0x140009838], rax
xor r8d, r8d
lea rcx, str._SHGetSpecialFolderPath
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x140001264
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ec0]
call fcn.1400037e0
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x38]
call fcn.1400013b0
lea rcx, [0x1400064b0]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001312
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009878]
test rax, rax
jne 0x1400012c2
mov rcx, qword [0x1400098c8]
lea rdx, [0x1400069f8]
call fcn.1400037e0
mov qword [0x140009878], rax
lea rdx, [0x1400064c0]
mov rcx, rdi
call rax
test eax, eax
je 0x140001312
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x1400099b0]
test rax, rax
jne 0x140001303
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a10]
call fcn.1400037e0
mov qword [0x1400099b0], rax
xor r8d, r8d
lea rdx, [0x1400064c0]
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x20]
test rax, rax
jne 0x14000133d
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a98]
call fcn.1400037e0
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400013b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14004a010]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rax, [0x140001970]
mov ecx, 0x20
mov qword [rsp + 0x30], rax
lea rax, [0x1400018b0]
mov qword [rsp + 0x38], rax
lea rax, [0x140039270]
mov qword [rsp + 0x40], rax
lea rax, [0x1400394b0]
mov qword [rsp + 0x48], rax
call fcn.14003a640
mov r8d, 0x20
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rax
lea rbx, [rax + 0x20]
mov qword [rsp + 0x60], rbx
call sub.VCRUNTIME140.dll_memmove
lea rcx, [0x140001c80]
mov qword [rsp + 0x58], rbx
call fcn.14003a8b4
mov rsi, qword [rsp + 0x58]
xor edi, edi
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
je 0x140001472
nop dword [rax + rax]
mov r8, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rbx, 8
cmp rbx, rsi
jne 0x140001450
call fcn.140037aa0
mov rcx, qword [rsp + 0x50]
test al, al
sete dil
test rcx, rcx
je 0x1400014c0
mov rdx, qword [rsp + 0x60]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1400014bb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a8d4
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003a620
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400023b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14004a010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x14004a890]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x14004a860]
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 [0x14004a898]
cvtsi2ss xmm0, qword [0x14004a8a0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x14004a898], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0xe14], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0xe15], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x14004a860]
shr eax, 0xf
and al, 1
mov byte [rdi + 0xe17], 0
mov byte [rdi + 0xe16], al
cmp byte [rbx + 0xdb], 0
je 0x1400024ef
cvttss2si eax, dword [rbx + 0xdfc]
mov rcx, qword [0x14004a890]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0xe00]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1400024ef
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0xdfc], 0xff7fffff
mov dword [rbx + 0xe00], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14000256e
mov rdx, qword [0x14004a890]
cmp rax, rdx
je 0x140002527
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x14000256e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14000256e
mov rcx, qword [0x14004a890]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14000256e
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0xdfc], xmm0
movss dword [rbx + 0xe00], xmm1
cmp byte [rdi + 0x78], 0
je 0x14000257b
mov eax, 0xffffffff
jmp 0x140002588
mov rax, qword [0x14004a860]
mov eax, dword [rax + 0x4a28]
cmp dword [0x14004a0bc], eax
je 0x14000259b
mov dword [0x14004a0bc], eax
call fcn.140001f80
call fcn.1400020f0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003a620
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140004270
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 0x1400042cd
lea rbx, [0x14003e950]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400042b4
cmp r10, 2
jb 0x1400042b4
cmp byte [r9], r8b
jne 0x1400042b4
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 0x140004290
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000430f
lea rbx, [0x14003e950]
cmp r8b, 0x23
jne 0x1400042f3
cmp byte [r9], r8b
jne 0x1400042f3
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 0x1400042e0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000446a
mov qword [r8], 0
lea rdx, [0x14003e4dc]
call fcn.140004320
mov rbx, rax
test rax, rax
jne 0x14000448a
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 0x140004575
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 0x140004575
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140004575
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 0x140004575
cmp rdi, 0xffffffffffffffff
je 0x140004575
mov rax, qword [0x14004a860]
test rax, rax
je 0x140004506
inc dword [rax + 0xf4]
mov rdx, qword [0x14004a850]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140004575
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 0x140004562
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004a860]
test rax, rax
je 0x140004551
dec dword [rax + 0xf4]
mov rdx, qword [0x14004a850]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14000457e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140004570
mov qword [r14], rdi
mov rax, rsi
jmp 0x140004580
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