joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015410
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, r9b
mov byte [rsp + 0x20], al
mov r13d, r8d
mov r12, rdx
mov rdi, rcx
movzx ebp, word [rsp + 0xc0]
xor ebx, ebx
mov ecx, 0xff
cmp bp, cx
jne 0x14001545c
mov al, 1
jmp 0x1400155d0
mov r15d, eax
mov eax, ebp
shl eax, 8
or eax, r15d
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140015489
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
jne 0x1400154a4
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r8d, dword [rsp + 0x40]
movzx edx, r8b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x41]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x42]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x43]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rdi + 0x80]
and rcx, rdx
shl rcx, 4
add rcx, qword [rdi + 0x68]
mov rax, qword [rcx + 8]
mov rdx, qword [rdi + 0x58]
cmp rax, rdx
je 0x140015526
mov rcx, qword [rcx]
cmp r8d, dword [rax + 0x10]
je 0x140015523
cmp rax, rcx
je 0x140015526
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x140015514
mov rbx, rax
xor sil, sil
test rbx, rbx
cmove rbx, rdx
cmp rbx, rdx
jne 0x1400155c3
mov r9d, ebp
mov r8d, r15d
mov edx, r13d
mov rcx, r12
call qword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
setne sil
test eax, eax
je 0x1400155c3
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x50]
call fcn.140015fa0
mov rcx, qword [rax]
mov qword [rcx + 0x18], r12
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x50]
call fcn.140015fa0
mov rcx, qword [rax]
mov dword [rcx + 0x20], r13d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x50]
call fcn.140015fa0
mov rcx, qword [rax]
movzx eax, byte [rsp + 0x20]
mov byte [rcx + 0x24], al
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x50]
call fcn.140015fa0
mov rcx, qword [rax]
mov word [rcx + 0x26], bp
jmp 0x1400155c3
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movzx eax, sil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a4d30
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015b30
Capabilities:
Hash data using fnv

Disassembly:
movzx r10d, r8w
movzx eax, dl
mov r8d, r10d
shl r8d, 8
or r8d, eax
movabs rax, 0xcbf29ce484222325
movzx edx, r8b
xor rdx, rax
mov r11d, r8d
movabs r8, 0x100000001b3
movzx eax, r10b
imul rdx, r8
xor rdx, rax
mov eax, r11d
imul r8, rdx
mov rdx, qword [rcx + 0x58]
shr rax, 0x10
xor r8, rax
movabs rax, 0x366000002e329
imul r8, rax
and r8, qword [rcx + 0x80]
shl r8, 4
add r8, qword [rcx + 0x68]
mov rax, qword [r8 + 8]
cmp rax, rdx
je 0x140015bc1
mov rcx, qword [r8]
cmp r11d, dword [rax + 0x10]
je 0x140015bc3
nop dword [rax + rax]
cmp rax, rcx
je 0x140015bc1
mov rax, qword [rax + 8]
cmp r11d, dword [rax + 0x10]
jne 0x140015bb0
jmp 0x140015bc3
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
setne cl
je 0x140015bda
movups xmm0, xmmword [rax + 0x18]
movups xmmword [r9], xmm0
movzx eax, cl
ret

Function at 0x140015cb0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
mov r11, rdx
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
mov r9, qword [r10 + 8]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
mov rdx, qword [r10 + 0x30]
imul r8, rcx
xor r8, rax
imul r8, rcx
and rdx, r8
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rcx, qword [rdx + 8]
cmp rcx, r9
je 0x140015d31
mov eax, dword [r11]
mov r8, qword [rdx]
cmp eax, dword [rcx + 0x10]
je 0x140015d33
cmp rcx, r8
je 0x140015d31
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x140015d21
jmp 0x140015d33
xor ecx, ecx
test rcx, rcx
je 0x140015d8e
mov rax, qword [rdx]
cmp qword [rdx + 8], rcx
jne 0x140015d59
cmp rax, rcx
jne 0x140015d4f
mov qword [rdx], r9
mov qword [rdx + 8], r9
jmp 0x140015d64
mov r9, qword [rcx + 8]
mov qword [rdx + 8], r9
jmp 0x140015d64
cmp rax, rcx
jne 0x140015d64
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x10]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x28
call fcn.1400a4fe0
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140016270
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400162a5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140015e60
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400163e6
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140016360
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400163d5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14001639d
mov r10, qword [rdx]
cmp r10, rax
je 0x140016397
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400163d5
cmp r9, rdx
je 0x1400163b1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400163f7
cmp r9, rdx
jne 0x1400163a2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140016310
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400163d5
Function at 0x1400186d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0x17], rdx
xor ebx, ebx
cmp qword [rcx + 0x48], rbx
jne 0x1400187a3
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
nop word [rax + rax]
movzx ecx, bl
mov edx, 1
shl rdx, cl
test r14d, edx
je 0x140018797
lea r8d, [rbx + 0x41]
mov edx, 1
lea rcx, [rbp + 0x1f]
call fcn.140019250
nop
mov rcx, qword [rbp + 0x2f]
mov rdx, qword [rbp + 0x37]
cmp rcx, rdx
jae 0x14001876d
lea rax, [rcx + 1]
mov qword [rbp + 0x2f], rax
lea rax, [rbp + 0x1f]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0x1f]
mov word [rax + rcx], 0x3a
jmp 0x140018779
mov r9b, 0x3a
lea rcx, [rbp + 0x1f]
call fcn.14000b9c0
lea rcx, [rsi + 0x98]
lea r8, [rbp + 0x1f]
lea rdx, [rbp + 7]
call fcn.140019520
nop
lea rcx, [rbp + 0x1f]
call fcn.14000ad90
inc bl
cmp bl, 0x20
jb 0x140018720
jmp 0x1400188df
lea rcx, [rbp + 7]
call fcn.14000e4c0
movsd xmm0, qword [rax]
movsd qword [rbp - 0x29], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rbp - 0x29]
test edx, edx
je 0x1400187cd
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x14001890b
cmp ecx, 3
jne 0x1400187ef
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.140010930
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.140018300
jmp 0x1400188df
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400187fc
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.14000d820
cmp rax, r11
je 0x14001884c
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140018823
cmp cx, 0x2f
jne 0x14001882c
add rax, 2
cmp rax, r11
jne 0x140018814
cmp rax, r11
je 0x14001884c
lea rcx, [r10 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x14001884c
cmp dx, 0x2f
je 0x14001884c
mov r10, rcx
cmp rax, rcx
jne 0x140018831
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x2f], rbx
mov qword [rbp + 0x37], rbx
mov r8, r11
mov rdx, r10
lea rcx, [rbp + 0x1f]
call fcn.140012c90
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x1f]
call fcn.14000d910
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov r9, qword [rbp - 9]
add r9, rdx
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rax, qword [rbp - 0x19]
cmp rax, r9
je 0x1400188b6
cmp byte [rax], 0x5c
jne 0x1400188ae
mov byte [rax], 0x2f
inc rax
cmp rax, r9
jne 0x1400188a6
lea r8, [rbp - 0x19]
lea rdx, [rbp + 7]
lea rcx, [rsi + 0xa8]
call fcn.1400196a0
nop
lea rcx, [rbp - 0x19]
call fcn.14000ad90
nop
lea rcx, [rbp + 0x1f]
call fcn.14000ad20
nop
mov rcx, rdi
call fcn.14000ad20
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400a4d30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov r8, rdi
lea rcx, str.status
call fcn.14000e160
int3
Function at 0x14001b020
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14001b041
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001b06e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001b070
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001b0c9
test ecx, ecx
jle 0x14001b0a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001b0c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001b0c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14001b0f0
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 0x14001b112
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001b121
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 0x14001b144
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b146
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001b182
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b21e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001b1bd
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 rbx, 0xfff
jbe 0x14001b1fe
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001b21e
cmp rbx, rax
ja 0x14001b1d0
test rbx, rbx
je 0x14001b21e
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
movabs al, byte [0xafc8afc0afa8af]
add byte [rbx], cl
add al, ch
add byte [rax], al
add byte [rax - 0x54], al
lodsb al, byte [rsi]
push rax
lodsb al, byte [rsi]
pop rax
Function at 0x14001b630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001b65d
xor eax, eax
jmp 0x14001b7c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b697
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001b697
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001b7c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001b7bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001b6da
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001b705
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 0x14001b7c1
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 0x14001b774
sub eax, 1
je 0x14001b774
cmp eax, 2
jne 0x14001b7bc
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 0x14001b7c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001b7a2
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 0x14001b7bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001b7c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001b920
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001b9fa
cmp byte [rcx + 0x71], 0
je 0x14001b9fa
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14001d9d0.0]
cmp eax, 0xffffffff
je 0x14001b9f6
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 0x14001b9bb
sub eax, 1
je 0x14001b9bf
cmp eax, 2
jne 0x14001b9f6
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a4d30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001b9ed
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 0x14001b9f6
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001b9a3
xor al, al
jmp 0x14001b9a3
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a4d30
add rsp, 0x60
pop rbx
ret
Function at 0x140023af0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
xor edi, edi
mov rsi, rdx
lea ecx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
jne 0x140023b40
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
jne 0x140023b40
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
je 0x140023b45
mov edi, 2
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
mov ebx, edi
or ebx, 4
mov ecx, 0x12
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
mov edi, ebx
or edi, 8
mov ecx, 0x90
test al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
mov ebx, edi
bts ebx, 8
mov ecx, 0x14
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
mov edi, ebx
or edi, 1
test al, 1
lea rax, [rbp - 0xc]
cmove edi, ebx
mov ebx, edi
cmp rax, 0x84
ja case.0x140023bcd.14
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x23c94]
mov ecx, dword [rdx + rax*4 + 0x23c70]
add rcx, rdx
jmp rcx
bts ebx, 9
and esi, 0x1000000
test rsi, rsi
cmove ebx, edi
jmp case.0x140023bcd.14
bts ebx, 9
and esi, 0x1000000
test rsi, rsi
cmovne ebx, edi
jmp case.0x140023bcd.14
bts ebx, 9
jmp case.0x140023bcd.14
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
jne case.0x140023bcd.91
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
je case.0x140023bcd.14
bts ebx, 0xb
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
jne case.0x140023bcd.91
mov ecx, 0xa3
jmp 0x140023c10
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
jne case.0x140023bcd.91
mov ecx, 0xa5
jmp 0x140023c10
bts ebx, 0xa
jmp case.0x140023bcd.14
Function at 0x140023d20
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001e0be
jmp 0x140023d20
ret
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
xor edi, edi
lea eax, [rdx - 0x101]
test eax, 0xfffffffb
sete dl
lea eax, [rbp - 0x100]
test eax, 0xfffffffb
mov ecx, 1
mov eax, 3
cmovne ecx, eax
lea eax, [rbp - 0x104]
mov ebx, edi
cmp eax, 2
setbe bl
mov eax, 2
test dl, dl
cmovne ecx, eax
mov dword [rsp + 0x28], ecx
mov rdx, r9
mov rcx, r8
call fcn.140023af0
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], edi
cmp ebp, 0x102
sete dil
mov dword [rsp + 0x40], edi
jne 0x140023e01
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 7
test al, 1
je 0x140023e01
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdx, rax
movzx ecx, r15w
call qword [sym.imp.USER32.dll_VkKeyScanExW]
mov ecx, 0x600
and ax, cx
cmp ax, cx
jne 0x140023e01
mov eax, dword [rsp + 0x2c]
and eax, 0xfffffff3
bts eax, 0xc
mov dword [rsp + 0x2c], eax
lea rdi, [r14 + 0xc8]
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140023e26
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
jne 0x140023e41
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rbx, qword [r14 + 0x118]
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x140023e6e
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14001d9d0.0]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
test rbx, rbx
je 0x140023ed3
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14001d9d0.0]
nop
mov rcx, qword [rax]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
mov rax, qword [rax + 0x120]
call qword [case.0x14001d9d0.0]
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140023ed3
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rax, 8
add rcx, rax
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001d9d0.0]
nop
test rbx, rbx
je 0x140023ef5
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001d9d0.0]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret