joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043874
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rcx
cmp dword [rsp + 0x70], ebp
jne 0x14004397e
lea esi, [rbp + 1]
cmp r8d, esi
jne 0x1400438e1
mov rdx, qword [rsp + 0x60]
mov r8d, esi
mov qword [rax - 0x18], rdx
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_CallWindowProcW]
mov rcx, qword [rdi + 8]
lea r9d, [rbp + 0x24]
xor r8d, r8d
mov edx, 0x1036
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11, qword [rsp + 0x68]
mov qword [r11], rbx
mov eax, esi
jmp 0x140043980
cmp r8d, 0x201
jne 0x14004390d
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], esi
call fcn.140043e68
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
cmp dword [rsp + 0x70], ebp
je 0x14004397e
jmp 0x1400438da
cmp r8d, 0x203
je 0x1400438ea
cmp r8d, 0x100
jne 0x14004397e
cmp r9, 0x20
jne 0x140043976
mov rcx, qword [rcx + 8]
mov r9, rsi
or r8, 0xffffffffffffffff
mov edx, 0x100c
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
cmp eax, 0xffffffff
je 0x140043976
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140043976
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1037
call qword [sym.imp.USER32.dll_SendMessageW]
test al, 4
je 0x140043976
mov edx, ebx
mov rcx, rdi
call fcn.1400442e0
mov rax, qword [rsp + 0x68]
mov qword [rax], rsi
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140043e68
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x40], rax
movsx eax, dx
shr rdx, 0x10
mov rbx, r8
mov dword [rsp + 0x20], eax
movsx eax, dx
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x2c]
lea r8d, [rdx + 0x10]
mov dword [rsp + 0x24], eax
call fcn.1400c7360
mov r11, qword [rsp + 0x20]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x1012
mov qword [rsp + 0x28], r11
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
cmp eax, 0xffffffff
je 0x140043ef0
cmp dword [rsp + 0x30], 8
jne 0x140043ef0
lea ecx, [rsi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140043ef0
mov edx, dword [rsp + 0x34]
mov rcx, rdi
call fcn.1400442e0
mov dword [rbx], esi
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400be110
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400450d4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rcx
mov rcx, qword [rcx]
mov r14, rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r13]
xor edi, edi
lea ebx, [rdi + 2]
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0x90]
mov r8d, ebx
mov bpl, dil
mov dword [rsp + 0x98], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea esi, [rdi + 1]
test eax, eax
je 0x140045154
cmp dword [rsp + 0x98], edi
jbe 0x140045154
mov eax, 0xfeff
movzx ebp, dil
cmp word [rsp + 0x90], ax
cmove ebp, esi
mov rcx, qword [r13]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or r15, 0xffffffffffffffff
mov r12d, eax
test bpl, bpl
je 0x14004517e
lea edx, [rax + 1]
mov rax, rbx
mul rdx
cmovo rax, r15
mov rcx, rax
jmp 0x140045195
mov rcx, qword [r13]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [r12 + 1]
call fcn.1400b9290
mov dword [rsp + 0x30], edi
mov rbx, rax
test r12d, r12d
je 0x140045213
mov rcx, qword [r13]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400451c8
mov esi, edi
jmp 0x140045213
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140045213
test bpl, bpl
je 0x140045204
shr rax, 1
mov word [rbx + rax*2], di
test rbx, rbx
je 0x1400451f4
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
mov edi, ecx
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call fcn.14000c9f8
jmp 0x140045213
mov rdx, rbx
mov rcx, r14
mov byte [rax + rbx], dil
call fcn.14001c5ec
mov rcx, rbx
call fcn.1400bee7c
mov rbx, qword [rsp + 0x80]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060cb0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x140060e4f
cmp byte [rcx + 0x89], 0
je 0x140060e4f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140060d0f
xor al, al
jmp 0x140060e51
mov edx, 0xf
mov qword [rbp - 0x18], rdx
and qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x140060d38
lea rcx, str.string_too_long
call fcn.1400b8738
int3
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], r13
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x30]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x20]
lea r9, [rdx + rax]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140060d9d
dec eax
jne 0x140060e14
jmp 0x140060da4
mov byte [rbx + 0x89], 0
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp - 0x40]
sub rdi, rax
je 0x140060dee
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.1400c1120
cmp rdi, rax
jne 0x140060e28
mov r10, qword [rbp - 0x18]
mov r9, qword [rbp - 0x30]
cmp byte [rbx + 0x89], 0
je 0x140060e41
test rdi, rdi
jne 0x140060d59
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.14000aa80
jmp 0x140060d51
sub eax, 2
je 0x140060e1b
jmp 0x140060e28
cmp qword [rbp - 0x18], 0x10
jb 0x140060e4f
mov rcx, qword [rbp - 0x30]
jmp 0x140060e4a
cmp qword [rbp - 0x18], 0x10
jb 0x140060d08
mov rcx, qword [rbp - 0x30]
call fcn.1400be0f4
jmp 0x140060d08
cmp r10, 0x10
jb 0x140060e4f
mov rcx, r9
call fcn.1400be0f4
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x140064420
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
xor r8d, r8d
mov rcx, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebx, ebx
mov esi, eax
test eax, eax
jne 0x14006445a
mov rcx, rdi
call fcn.14000c82c
jmp 0x1400644c7
jns 0x140064467
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140064485
mov edx, esi
mov rcx, rdi
call fcn.14000c998
mov rdx, qword [rdi]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400644a0
mov eax, ebx
jmp 0x1400644ad
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x1400644de
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1400644de
mov dword [rcx - 0x10], eax
mov rcx, qword [rdi]
movsxd rdx, eax
mov word [rcx + rdx*2], bx
mov ebx, 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.14000cbb8
int3
Function at 0x140067314
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
and dword [rbp + 0x40], 0
mov rax, qword [rdx]
mov qword [rbp - 0x38], rax
mov r8, qword [rdx + 8]
mov qword [rbp - 0x30], r8
mov rbx, qword [rdx + 0x10]
mov qword [rbp - 0x28], rbx
test rbx, rbx
je 0x140067369
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x30]
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rbx
test rbx, rbx
je 0x140067382
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 0x28]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
or r12d, 0xffffffff
test rbx, rbx
je 0x1400673d2
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x1400673d2
mov rbx, qword [rbp - 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x1400673d2
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rdi], 0
mov dword [rbp + 0x40], 1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
lea r8, [0x1400674a4]
xor edx, edx
xor ecx, ecx
call fcn.1400c3bf8
mov rbx, rax
test rax, rax
je 0x140067411
or edx, 0xffffffff
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rdi], rbx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140067428
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp - 8], 0
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x14006745e
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x14006745e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14006745e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140067493
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140067493
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140067493
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rax, rdi
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140074784
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rsi, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov edx, 0x64
mov dword [rsp + 0x68], edx
xor ebp, ebp
mov dword [rsp + 0x70], ebp
lea edi, [rdx - 0x63]
mov ecx, edi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400747e6
lea rcx, [rsp + 0x78]
call fcn.14000c998
mov rbx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400beaac
test eax, eax
js 0x14007485b
cmp eax, dword [rbx - 0xc]
jg 0x14007485b
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
test esi, esi
je 0x14007483a
cmp esi, 0xea
je 0x14007483a
mov dil, bpl
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140074856
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
jmp 0x140074866
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140093088
Capabilities:
Log keystrokes via polling

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
sub rsp, 0x30
mov rbp, r9
mov rsi, r8
mov rdi, rcx
cmp edx, 0x100
jne 0x140093160
xor r12d, r12d
mov ebx, r12d
cmp r8, 0x20
jne 0x140093119
mov rcx, qword [rcx]
lea r8d, [rsi - 0x17]
mov edx, 0x110a
mov rcx, qword [rcx + 8]
mov r9, 0xffffffffffff0000
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
je 0x140093119
lea ecx, [rsi - 0xf]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140093119
mov rcx, qword [rdi]
lea r8d, [rsi - 0x17]
mov r9, rbx
mov rcx, qword [rcx + 8]
mov edx, 0x110b
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.1401afee0
mov rcx, qword [rdi]
mov r9, rsi
mov r8d, 0x100
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x40]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_CallWindowProcW]
mov rbp, rax
cmp rsi, 0x20
jne 0x140093151
test rbx, rbx
je 0x140093151
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.1401aef20
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rbp
mov eax, 1
jmp 0x140093197
mov eax, 0x201
cmp edx, eax
jne 0x14009317a
mov edx, eax
call fcn.140092e2c
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
jmp 0x140093159
mov eax, 0x203
cmp edx, eax
je 0x140093169
mov eax, 0x204
cmp edx, eax
jne 0x140093195
mov edx, eax
call fcn.140092f70
jmp 0x140093170
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140095d7c
Capabilities:
Log keystrokes via polling

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, 0x80
xor r14d, r14d
mov rbp, r9
mov rdi, r8
mov r12d, edx
mov rbx, rcx
lea r15d, [r14 + 2]
cmp r8, 0x20
jne 0x140095e7e
lea ecx, [r8 - 0xf]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140095ee4
mov rcx, qword [rbx]
mov r9d, r15d
or r8, 0xffffffffffffffff
mov rcx, qword [rcx + 8]
mov edx, 0x100c
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx]
add rcx, 0x48
mov edx, eax
mov rsi, rax
mov r8, qword [rcx]
call qword [r8 + 0x38]
test al, al
je 0x140095ee4
mov rcx, qword [rbx]
mov edx, esi
add rcx, 0x48
mov r8, qword [rcx]
call qword [r8 + 0x50]
mov rcx, qword [rbx]
mov r9d, r15d
mov rcx, qword [rcx + 8]
test al, al
mov edx, 0x100c
sete r13b
or r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
jmp 0x140095e71
add rcx, 0x48
mov edx, esi
mov r8, qword [rcx]
call qword [r8 + 0x68]
test al, al
je 0x140095e57
mov rcx, qword [rbx]
mov r8d, esi
mov dl, r13b
add rcx, 0x48
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbx]
movsxd r8, esi
mov r9, r15
mov rcx, qword [rcx + 8]
mov edx, 0x100c
call qword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov rcx, qword [rbx]
cmp eax, 0xffffffff
jne 0x140095e33
call fcn.1401ab3ac
cmp rdi, 0x41
jne 0x140095ee4
lea ecx, [rdi - 0x30]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140095ee4
mov rcx, qword [rbx]
lea edx, [rdi - 0x51]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x140095ee4
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x34]
xor edx, edx
mov dword [rsp + 0x30], r14d
call fcn.1400c7360
mov rax, qword [rbx]
mov rcx, qword [rax + 0x60]
lea r9, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov rcx, qword [rcx + 8]
mov edx, 0x102b
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x40], r15d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx]
mov r9, rdi
mov r8d, r12d
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x40]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_CallWindowProcW]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140096b64
Capabilities:
Log keystrokes via polling

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, 0x80
xor r14d, r14d
mov rbp, r9
mov rdi, r8
mov r12d, edx
mov rbx, rcx
lea r15d, [r14 + 2]
cmp r8, 0x20
jne 0x140096c66
lea ecx, [r8 - 0xf]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140096ccc
mov rcx, qword [rbx]
mov r9d, r15d
or r8, 0xffffffffffffffff
mov rcx, qword [rcx + 8]
mov edx, 0x100c
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx]
add rcx, 0x48
mov edx, eax
mov rsi, rax
mov r8, qword [rcx]
call qword [r8 + 0x38]
test al, al
je 0x140096ccc
mov rcx, qword [rbx]
mov edx, esi
add rcx, 0x48
mov r8, qword [rcx]
call qword [r8 + 0x50]
mov rcx, qword [rbx]
mov r9d, r15d
mov rcx, qword [rcx + 8]
test al, al
mov edx, 0x100c
sete r13b
or r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
jmp 0x140096c59
add rcx, 0x48
mov edx, esi
mov r8, qword [rcx]
call qword [r8 + 0x68]
test al, al
je 0x140096c3f
mov rcx, qword [rbx]
mov r8d, esi
mov dl, r13b
add rcx, 0x48
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbx]
movsxd r8, esi
mov r9, r15
mov rcx, qword [rcx + 8]
mov edx, 0x100c
call qword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov rcx, qword [rbx]
cmp eax, 0xffffffff
jne 0x140096c1b
call fcn.1401aaad0
cmp rdi, 0x41
jne 0x140096ccc
lea ecx, [rdi - 0x30]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140096ccc
mov rcx, qword [rbx]
lea edx, [rdi - 0x51]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x140096ccc
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x34]
xor edx, edx
mov dword [rsp + 0x30], r14d
call fcn.1400c7360
mov rax, qword [rbx]
mov rcx, qword [rax + 0x60]
lea r9, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov rcx, qword [rcx + 8]
mov edx, 0x102b
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x40], r15d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx]
mov r9, rdi
mov r8d, r12d
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x40]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_CallWindowProcW]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ae9d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
xor ebp, ebp
mov r11, r9
mov qword [rsp + 0x10], rsi
shr r11, 3
mov r10, rcx
mov esi, ebp
test r11, r11
je 0x1400aea26
mov rbx, rdx
mov rdi, r10
mov rcx, r8
sub rbx, r8
sub rdi, r8
mov rsi, r11
nop word [rax + rax]
mov rax, qword [rbx + rcx]
add rcx, 8
xor rax, qword [rcx - 8]
dec r11
mov qword [rdi + rcx - 8], rax
jne 0x1400aea10
lea rax, [rsi*8]
mov rsi, qword [rsp + 0x10]
sub r9, rax
je 0x1400aeab6
mov r11, r9
add r10, rax
add rdx, rax
shr r11, 2
add r8, rax
test r11, r11
je 0x1400aea73
mov rbx, rdx
mov rdi, r10
mov rcx, r8
sub rbx, r8
sub rdi, r8
mov rbp, r11
nop
mov eax, dword [rcx + rbx]
add rcx, 4
xor eax, dword [rcx - 4]
dec r11
mov dword [rcx + rdi - 4], eax
jne 0x1400aea60
lea rax, [rbp*4]
sub r9, rax
je 0x1400aeab6
add r10, rax
add rdx, rax
add r8, rax
test r9, r9
je 0x1400aeab6
sub rdx, r8
sub r10, r8
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
inc r8
xor al, byte [r8 - 1]
dec r9
mov byte [r8 + r10 - 1], al
jne 0x1400aeaa0
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
pop rdi
ret

Function at 0x1400aead0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r9d, r9d
mov r10, r8
mov rbx, rcx
shr r10, 3
mov r11d, r9d
mov esi, r9d
test r10, r10
je 0x1400aeb24
mov rdi, rcx
mov rax, rdx
mov rsi, r10
sub rdi, rdx
nop word [rax + rax]
mov rcx, qword [rdi + rax]
add rax, 8
xor rcx, qword [rax - 8]
or r11, rcx
dec r10
jne 0x1400aeb10
lea rax, [rsi*8]
sub r8, rax
jne 0x1400aeb47
test r11, r11
sete al
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r10, r11
add rbx, rax
add rdx, rax
shr r10, 0x20
mov rsi, r9
or r10d, r11d
mov r11, r8
shr r11, 2
test r11, r11
je 0x1400aeb92
mov rdi, rbx
mov rcx, rdx
mov rsi, r11
sub rdi, rdx
nop word [rax + rax]
mov eax, dword [rcx + rdi]
add rcx, 4
xor eax, dword [rcx - 4]
or r10d, eax
dec r11
jne 0x1400aeb80
lea rax, [rsi*4]
sub r8, rax
jne 0x1400aebb5
test r10d, r10d
sete al
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
add rbx, rax
add rdx, rax
mov ecx, r10d
shr ecx, 0x18
mov eax, r10d
shr eax, 0x10
or cl, al
mov eax, r10d
shr eax, 8
or cl, al
or cl, r10b
test r8, r8
je 0x1400aebf1
sub rbx, rdx
nop dword [rax]
movzx eax, byte [rdx + rbx]
inc rdx
xor al, byte [rdx - 1]
or cl, al
dec r8
jne 0x1400aebe0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
test cl, cl
sete al
ret
Function at 0x1400af3b0
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [r11 - 0x98], 0x10
mov byte [rsp + 0x79], 1
lea rax, [rsp + 0x38]
mov qword [r11 - 0x90], rax
mov qword [r11 - 0x38], 0x10
mov byte [r11 - 0x3f], 1
lea rax, [r11 - 0x88]
neg rax
and eax, 0xf
lea rsi, [rsp + rax + 0x90]
mov qword [r11 - 0x30], rsi
mov eax, dword [0x140389950]
mov dword [rsi], eax
mov eax, dword [0x140389954]
mov dword [rsi + 4], eax
mov eax, dword [0x140389958]
mov dword [rsi + 8], eax
mov eax, dword [0x14038995c]
mov dword [rsi + 0xc], eax
mov eax, dword [0x140389960]
mov dword [rsi + 0x10], eax
mov eax, dword [0x140389964]
mov dword [rsi + 0x14], eax
mov eax, dword [0x140389968]
mov dword [rsi + 0x18], eax
mov eax, dword [0x14038996c]
mov dword [rsi + 0x1c], eax
lea rax, vtable.CryptoPP::SHA256.0
mov qword [rsp + 0x28], rax
mov r8d, 0x20
mov rdx, qword [rcx + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1400aedd0
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400aedd0
mov rdi, qword [rbp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call qword [rbx + 0x38]
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x28]
call qword [rbx + reloc.OLEAUT32.dll_VarBstrFromCy]
mov byte [rbp + 0x70], 0
mov rdi, qword [rsp + 0xe8]
cmp rdi, rsi
jne 0x1400af4e1
xor eax, eax
mov rcx, qword [rsp + 0xe0]
rep stosd dword [rdi], eax
lea rax, [rsp + 0x38]
mov rdi, qword [rsp + 0x88]
cmp rdi, rax
jne 0x1400af4ff
xor eax, eax
mov rcx, qword [rsp + 0x80]
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400afda0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, r8
mov rbx, rdx
call fcn.1400b0050
mov r8, rbx
mov edx, edi
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400afe36
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], al
lea r8d, [rax + 0xe]
lea rdx, [0x140389c38]
lea rcx, [rsp + 0x28]
call fcn.1400031c0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400afb10
lea rdx, [0x140457468]
lea rcx, [rsp + 0x50]
call fcn.1400c744c
nop
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret