joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006e7b8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
lea eax, [r14 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002641c
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov rcx, rax
mov r8, rbx
mov r15, rax
call fcn.1400264e0
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x14006e847
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
dec rcx
jne 0x14006e83a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, r15
add rsp, 0x20
pop r15
ret

Function at 0x14006eec8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx]
cmp edx, eax
jge 0x14006eedc
mov edx, eax
jmp 0x14007061c
test edx, edx
js 0x1400706ab
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, edx
movaps xmmword [rsp + 0x20], xmm7
test edx, edx
jne 0x140070642
xor ecx, ecx
jmp 0x140070696
cmp ebx, 0xf
jae 0x140070694
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
je 0x140070694
xorps xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm6, xmm6
sub rax, qword [rsp + 0x60]
cvtsi2sd xmm6, rax
call fcn.140025b6c
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14007065e
jmp 0x14007069c
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_Sleep]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x14006eee4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx + 4]
cmp edx, eax
jge 0x14006eef9
mov edx, eax
jmp 0x14007061c
Function at 0x14006ef00
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, 0x120
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rdx], esi
mov word [rdx + 4], si
cmp qword [rcx + 0x28], rsi
je 0x14006ef9a
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14006f070
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x14006ef4f
cmp byte [rsp + 0x30], al
jne 0x14006ef58
cmp byte [rdi + 0x1e], sil
jne 0x14006ef58
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x14006ef6b
cmp byte [rdi + 0x1f], sil
jne 0x14006ef6b
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x14006ef7b
cmp byte [rdi + 0x20], sil
jne 0x14006ef7b
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x14006ef8b
cmp byte [rdi + 0x21], sil
jne 0x14006ef8b
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x14006f070
jmp 0x14006f066
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x14006efbf
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006efc8
cmp byte [rdi + 0x1e], sil
jne 0x14006efc8
mov byte [rbx], 1
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006efe8
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006eff2
cmp byte [rdi + 0x1f], sil
jne 0x14006eff2
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006f012
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006f01c
cmp byte [rdi + 0x20], sil
jne 0x14006f01c
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006f03c
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006f046
cmp byte [rdi + 0x21], sil
jne 0x14006f046
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006f066
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006f070
cmp byte [rdi + 0x22], sil
jne 0x14006f070
mov byte [rbx + 4], 1
lea r11, [rsp + 0x120]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006f68c
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, r8
mov r14, rdx
mov r8b, 1
mov rdx, rax
mov rbx, rcx
mov qword [rcx + 0x28], rax
call fcn.1400706ac
xor r15d, r15d
cmp byte [rbx + 8], 1
mov bpl, r15b
mov dword [rsp + 0x50], r15d
mov word [rsp + 0x54], r15w
jne 0x14006f6f5
xor r8d, r8d
mov dl, reloc.WSOCK32.dll_sendto
mov rcx, rbx
call fcn.14006fe1c
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov bpl, al
call fcn.14006ef00
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.14006ee9c
mov edi, r15d
movsxd rdx, edi
mov rcx, r14
call fcn.14001eb4c
movzx esi, word [rax]
test si, si
je 0x14006f731
mov rcx, rbx
inc edi
call fcn.14006f180
mov r8d, 1
movzx edx, si
mov rcx, rbx
call fcn.14006f5fc
mov dword [rbx + 0x18], r15d
mov word [rbx + 0x1c], r15w
jmp 0x14006f6f8
cmp byte [rbx + 8], 1
jne 0x14006f751
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400701c0
mov r8b, bpl
mov dl, reloc.WSOCK32.dll_sendto
mov rcx, rbx
call fcn.14006fe1c
mov rdx, qword [rbx + 0x28]
xor r8d, r8d
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1400706ac

Function at 0x14006fe1c
Capabilities:
Log keystrokes
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 r14
sub rsp, 0x30
movzx esi, dl
mov r14, rcx
mov bl, r8b
mov ecx, esi
mov ebp, esi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
and dil, 1
cmp bl, dil
je 0x14006fe9d
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov dl, sil
mov r8d, eax
mov rcx, r14
call fcn.1400707e8
mov rcx, r14
call fcn.14006eee4
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, 2
mov dl, sil
mov r8d, eax
mov rcx, r14
call fcn.1400707e8
mov rcx, r14
call fcn.14006eec8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14006febc
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov dil, byte [rdx]
mov bpl, byte [rdx + 7]
mov rbx, rcx
movzx ecx, word [rdx + 8]
xor r14d, r14d
mov rsi, rdx
mov r15d, 1
cmp qword [rbx + 0x28], r14
je 0x14006ffaa
cmp dil, 0x14
je 0x14006ffaa
lea eax, [rdi + 0x70]
cmp al, r15b
jbe 0x14006ffaa
cmp dil, 0xff
je 0x14006ff92
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14006ff3a
movzx eax, dil
lea rcx, [rsp + 0x60]
or byte [rsp + rax + 0x60], 0x80
call qword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, bpl
mov rcx, rsi
shl eax, 0x10
movsxd r9, eax
or r9, r15
call fcn.14006f140
cmp al, r15b
jne 0x14006ff59
bts r9, 0x18
cmp byte [rbx + 0x1b], r14b
jne 0x14006ff6b
cmp byte [rbx + 0x21], r14b
jne 0x14006ff6b
cmp dil, 0x12
jne 0x14006ff87
cmp byte [rbx + 0x1a], r14b
jne 0x14006ff87
cmp byte [rbx + 0x20], r14b
jne 0x14006ff87
bts r9, 0x1d
movzx r8d, dil
mov edx, 0x104
jmp 0x14006ff9e
movzx r8d, dil
mov edx, 0x100
jmp 0x14006ff9e
movzx r8d, cx
mov r9, r15
mov edx, 0x102
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140070007
cmp dil, 0xff
je 0x14006ffd5
mov rcx, rdx
call fcn.14006f140
mov r8b, bpl
mov dl, dil
mov rcx, rbx
cmp al, r15b
jne 0x14006ffcb
mov r9d, r15d
jmp 0x14006ffce
xor r9d, r9d
call fcn.1400707e8
jmp 0x140070007
mov word [rsp + 0x3a], cx
lea rdx, [rsp + 0x30]
mov r8d, SafeArrayCreateEx
mov ecx, r15d
mov dword [rsp + 0x30], r15d
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x3c], 4
mov qword [rsp + 0x48], r14
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp fcn.14006eee4
Function at 0x14007002c
Capabilities:
Check for time delay via queryperformancecounter
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 r14
sub rsp, 0x160
mov dil, byte [rdx]
mov bpl, byte [rdx + 7]
mov rbx, rcx
movzx ecx, word [rdx + 8]
xor r14d, r14d
mov rsi, rdx
cmp qword [rbx + 0x28], r14
je 0x14007010a
cmp dil, 0x14
je 0x14007010a
lea eax, [rdi + 0x70]
cmp al, 1
jbe 0x14007010a
cmp dil, 0xff
je 0x14007016e
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x1400700a8
movzx eax, dil
lea rcx, [rsp + 0x60]
xor byte [rsp + rax + 0x60], 0x80
call qword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, bpl
mov rcx, rsi
shl eax, 0x10
movsxd r9, eax
mov eax, 0xc0000001
or r9, rax
call fcn.14006f140
cmp al, 1
jne 0x1400700cb
bts r9, 0x18
cmp byte [rbx + 0x1b], r14b
jne 0x1400700dd
cmp byte [rbx + 0x21], r14b
jne 0x1400700dd
cmp dil, 0x12
jne 0x1400700f5
cmp byte [rbx + 0x1a], r14b
jne 0x1400700f5
cmp byte [rbx + 0x20], r14b
jne 0x1400700f5
bts r9, 0x1d
mov edx, 0x105
jmp 0x1400700fa
mov edx, 0x101
mov rcx, qword [rbx + 0x28]
movzx r8d, dil
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14007016e
cmp dil, 0xff
je 0x140070138
mov rcx, rdx
call fcn.14006f140
mov r8b, bpl
mov dl, dil
mov rcx, rbx
mov r9d, 3
cmp al, 1
je 0x140070131
mov r9d, 2
call fcn.1400707e8
jmp 0x14007016e
mov r8d, SafeArrayCreateEx
mov word [rsp + 0x3a], cx
lea rdx, [rsp + 0x30]
lea ecx, [r8 - 0x27]
mov dword [rsp + 0x30], 1
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x3c], 6
mov qword [rsp + 0x48], r14
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
jmp fcn.14006eec8

Function at 0x140070194
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14006febc
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14007002c
Function at 0x1400701c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x140070204
cmp byte [rdx + 1], sil
jne 0x140070204
cmp byte [rdx + 2], sil
jne 0x140070204
cmp byte [rdx + 3], sil
jne 0x140070204
cmp byte [rdx + 4], sil
je 0x1400703cc
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140070352
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140070352
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14007027a
mov al, byte [rsp + 0x40]
mov cl, 0x80
cmp byte [rbx], sil
je 0x140070243
or al, cl
or byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x140070252
or al, cl
or byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x14007025c
or byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x140070266
or byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x14007026f
or byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x140070285
cmp byte [rbx + 1], sil
je 0x1400702a8
movzx eax, byte [rdi + 0x32]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recv
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x1400702d1
movzx eax, byte [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recvfrom
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [rbx + 3]
test al, al
je 0x140070323
cmp byte [rbx + 2], sil
jne 0x1400702fc
cmp byte [rdi + 0x20], sil
jne 0x1400702fc
movzx eax, byte [rdi + 0x31]
mov edx, 0x104
shl eax, 0x10
movsxd r9, eax
or r9, 0x20000001
jmp 0x140070313
test al, al
je 0x140070323
movzx eax, byte [rdi + 0x31]
mov edx, 0x100
shl eax, 0x10
movsxd r9, eax
or r9, 1
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x1400703c4
movzx eax, byte [rdi + 0x35]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, 0x5b
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400703c4
cmp byte [rbx], sil
je 0x140070368
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
call fcn.1400707e8
cmp byte [rbx + 1], sil
je 0x14007037f
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, 0xa1
mov rcx, rdi
call fcn.1400707e8
cmp byte [rbx + 2], sil
je 0x140070396
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.1400707e8
cmp byte [rbx + 3], sil
je 0x1400703ad
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.1400707e8
cmp byte [rbx + 4], sil
je 0x1400703c4
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
call fcn.1400707e8
mov rcx, rdi
call fcn.14006eee4
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007061c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx]
cmp edx, eax
jge 0x14006eedc
mov edx, eax
jmp 0x14007061c
test edx, edx
js 0x1400706ab
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, edx
movaps xmmword [rsp + 0x20], xmm7
test edx, edx
jne 0x140070642
xor ecx, ecx
jmp 0x140070696
cmp ebx, 0xf
jae 0x140070694
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
je 0x140070694
xorps xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm6, xmm6
sub rax, qword [rsp + 0x60]
cvtsi2sd xmm6, rax
call fcn.140025b6c
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14007065e
jmp 0x14007069c
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_Sleep]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x1400706ac
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15b, r8b
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x1400706db
cmp byte [rcx + 9], dl
je 0x1400707ce
xor r14d, r14d
xor ebp, ebp
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ebx, eax
test r15b, r15b
je 0x14007078a
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r14 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400e5198], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r15d, eax
test rdi, rdi
je 0x140070763
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400e5198]
mov dword [0x1400e519c], eax
cmp ecx, eax
je 0x140070751
lea r8d, [r14 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14d, eax
mov eax, dword [0x1400e519c]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r15d, r15d
jne 0x1400707ce
test r14d, r14d
jne 0x1400707ce
test ebp, ebp
jne 0x1400707ce
mov eax, dword [0x1400e5198]
cmp ebx, eax
jne 0x1400707ce
cmp eax, dword [0x1400e519c]
jne 0x1400707ce
and qword [rsi + 0x28], 0
jmp 0x1400707ce
test rdi, rdi
je 0x1400707bb
mov edx, dword [0x1400e519c]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400e5198]
mov edx, dword [0x1400e519c]
cmp eax, edx
je 0x1400707c1
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400e5198]
xor r8d, r8d
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140070850
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx], 0xff
mov word [rcx + 8], dx
mov byte [rcx + 0xa], al
test dx, dx
je 0x1400708b8
movzx ecx, dx
call qword [sym.imp.USER32.dll_VkKeyScanW]
cmp ax, 0xffff
jne 0x140070885
xor al, al
jmp 0x1400708b8
movzx edi, ax
movzx ecx, al
xor edx, edx
sar di, 8
mov byte [rbx], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
test al, dil
je 0x1400708a6
mov byte [rbx + 1], al
test dil, 2
je 0x1400708af
mov byte [rbx + 3], al
test dil, 4
je 0x1400708b8
mov byte [rbx + 4], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400708c4
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov dword [rcx + 6], eax
mov dword [rcx + 1], eax
mov byte [rcx + 5], al
mov byte [rcx + 0xa], al
mov byte [rcx], dl
cmp dl, 0xff
je 0x1400708f2
movzx ecx, dl
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140072ca8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.140072b20
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140072f30
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140072f62
call fcn.140074988
test al, al
jne 0x140072f7f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov r8d, 1
jmp 0x140072f75
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x140072f88
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.140038b30
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.14007441c
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.14007441c
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x140073022
test dil, dil
je 0x14007301b
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.140027784
test eax, eax
je 0x140073014
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
jmp 0x1400730c6
xor al, al
jmp 0x1400730c6
lea rcx, [rbp + 0xff80]
call fcn.14007492c
test al, al
je 0x14007301b
lea rcx, [rbp - 0x80]
call fcn.14007492c
test al, al
je 0x1400730df
test dil, dil
je 0x14007301b
lea rdx, [0x1400ce8d8]
lea rcx, [rbp + 0xff80]
call fcn.140026cec
lea rcx, [rbp + 0xff80]
call fcn.140026b28
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.140026b28
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001f0bc
lea rcx, [rsp + 0x58]
call fcn.1400733f4
lea rcx, [rsp + 0x58]
test al, al
sete bl
call fcn.14001c29c
test bl, bl
jne 0x14007301b
lea rcx, [rbp - 0x80]
call fcn.14007492c
test al, al
jmp 0x140073046
Function at 0x1400733b8
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.DLL_CopyFileExW]
cmp eax, 1
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x1400733f4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [rcx]
lea rdx, [0x1400ab2ec]
mov edi, 1
mov qword [rbp - 0x40], rax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x38], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx + 0x18]
lea rcx, [rbp - 0x40]
add dword [rax], edi
mov qword [rbp - 0x28], rax
call fcn.14001f36c
mov rsi, qword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400734ea
call qword [sym.imp.KERNEL32.DLL_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x140073478
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x14007347d
jmp 0x1400734f8
cmp eax, 3
jne 0x1400734f3
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x20], rsi
lea rdx, [0x1400ab2ec]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
add dword [rax], edi
call fcn.14001ef60
or r8, 0xffffffffffffffff
cmp rax, r8
je 0x1400734df
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.14001efc4
lea rcx, [rbp - 0x20]
call fcn.1400733f4
test al, al
je 0x1400734dd
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea rcx, [rbp - 0x20]
call fcn.14001c29c
jmp 0x1400734f5
test al, 0x10
je 0x1400734f3
mov bl, dil
jmp 0x1400734f5
xor ebx, ebx
mov dil, bl
lea rcx, [rbp - 0x40]
call fcn.14001c29c
lea r11, [rsp + 0x60]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret