joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013260
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
cmp eax, 0x80000000
je 0x14001344c
mov r9d, dword [rdx]
cmp r9d, 0x80000000
je 0x14001344c
cmp dword [0x140102ee0], 2
mov qword [rsp + 0x58], rbp
jne 0x1400132e2
movzx ebx, byte [rsp + 0x70]
mov ecx, 0x80000001
test bl, bl
mov ebp, 1
mov r8d, eax
cmovne ebp, ecx
xor edx, edx
mov ecx, ebp
call fcn.140013660
call fcn.140013b50
test bl, bl
je 0x140013447
mov rbp, qword [rsp + 0x58]
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x70], 0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
je 0x140013348
cmp dword [0x140102ee0], 1
jne 0x14001332f
mov eax, dword [0x140105388]
cmp eax, 0x80000000
jne 0x140013323
lea rcx, [0x140105388]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x140105388]
add dword [rdi], eax
mov eax, dword [0x14010538c]
add dword [rsi], eax
jmp 0x140013353
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x50]
add dword [rdi], eax
mov eax, dword [rsp + 0x54]
add dword [rsi], eax
jmp 0x140013353
mov r8d, 2
call fcn.14008a690
cmp dword [0x140102ee0], 1
jne 0x14001336c
mov eax, dword [rdi]
mov dword [0x140105388], eax
mov eax, dword [rsi]
mov dword [0x14010538c], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, 1
mov r14d, eax
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rdi]
mov r15d, eax
mov eax, ecx
sar ecx, 0x1f
shl eax, 0x10
and ecx, 0xfffffffe
cdq
inc ecx
idiv r14d
add ecx, eax
mov dword [rdi], ecx
mov ecx, dword [rsi]
mov eax, ecx
shl eax, 0x10
cdq
sar ecx, 0x1f
idiv r15d
and ecx, 0xfffffffe
lea r9d, [rcx + 1]
add r9d, eax
mov dword [rsi], r9d
test ebx, ebx
js 0x140013429
cmp ebx, 0x64
jle 0x1400133c7
lea ebx, [rbp + 0x63]
jmp 0x1400133cb
test ebx, ebx
je 0x140013429
cmp dword [0x140102ee0], ebp
je 0x140013429
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r8d, dword [rsp + 0x54]
or r9d, 0xffffffff
mov rcx, qword [rsp + 0x50]
mov eax, r8d
shl eax, 0x10
mov r10d, ebp
cdq
mov dword [rsp + 0x20], ebx
idiv r15d
test r8d, r8d
mov r8d, dword [rdi]
cmovs r10d, r9d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r14d
test ecx, ecx
mov edx, r10d
cmovs ebp, r9d
mov r9d, dword [rsi]
lea ecx, [rax + rbp]
call fcn.140062950
jmp 0x14001343d
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140013460
call fcn.140013b50
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400138f0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, 1
movzx esi, dl
cmp dword [0x140102ee0], edi
mov rbx, rcx
jne 0x1400139cd
xor al, al
cmp qword [0x140101f90], 0
movzx ebx, al
cmovne ebx, edi
cmp qword [0x140101f88], 0
je 0x140013933
or bl, 2
test bl, bl
je 0x14001394b
movzx ecx, byte [0x14010534e]
movzx edx, dil
not cl
and cl, bl
call fcn.14000a0c0
mov rdx, qword [0x140102ee8]
mov r8d, 0x28
mov ecx, dword [0x140105378]
call qword [0x1401052d8]
test bl, bl
je 0x140013a46
movzx eax, byte [0x14010534e]
and al, bl
test dil, al
je 0x1400139b2
movzx ecx, dil
call fcn.140014710
movzx r8d, al
xor r8b, sil
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x140102d2d]
or dl, r8b
mov byte [0x140102d2d], dl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x140102158], rax
movzx edx, dil
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000a0c0
mov r8, qword [0x140101fd0]
lea rdx, [0x140011970]
xor esi, esi
xor r9d, r9d
mov ecx, edi
mov dword [0x140105380], esi
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140101f40], rax
test rax, rax
je 0x140013a46
mov byte [0x140102d2c], dil
mov edx, edi
mov dword [0x1400fda50], esi
mov ecx, 0x8000012f
call fcn.140001710
cmp qword [0x140101f40], rsi
mov dword [0x1400fda50], edi
jne 0x140013a01
mov edx, dword [0x140105378]
mov rax, qword [0x1400ff3f8]
dec edx
mov byte [0x140102d2c], sil
mov rcx, qword [rax]
cmp dword [rcx + rdx*8], esi
jne 0x140013a46
mov eax, dword [rcx + rdx*8 + 4]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140013c70
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140101f80]
test r10, r10
je 0x140013da7
movsxd rax, dword [0x140101fe0]
imul r9, rax, 0xd4
mov eax, 0x69
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140101f9c], eax
sub ecx, dword [0x140104488]
xorps xmm0, xmm0
mov dword [0x140104488], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140101fe0]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x1400eb848]
mov rcx, qword [0x140101f80]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140013d61
cmp rax, qword [0x140101fd8]
je 0x140013d45
movsxd rcx, dword [0x140101fe0]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140101f80]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140101fe0]
jmp 0x140013d85
movsxd rdx, dword [0x140101fe0]
mov rax, qword [0x140101f80]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140013d85
movsxd rdx, dword [0x140101fe0]
movabs r8, 0x41002f004e
mov rax, qword [0x140101f80]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140101fd8], rbx
cmp edx, dword [0x1400fda60]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140101fe0], edx
add rsp, 0x28
ret

Function at 0x140013db0
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, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
mov ebp, edi
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
lea r8d, [rsi - 1]
neg al
sbb ebx, ebx
add ebx, 2
cmp r8d, 1
ja 0x140013edd
cmp ebx, esi
je 0x140013edd
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140013e24
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 1]
call fcn.140011bf0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 2]
call fcn.140011bf0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140104468]
sete bpl
test bpl, bpl
je 0x140013e85
mov edx, 1
mov dword [0x1400fda50], 0
or ecx, 0xffffffff
call fcn.140001710
mov dword [0x1400fda50], 1
cmp dil, 0x14
jne 0x140013edd
cmp esi, 2
jne 0x140013edd
lea ecx, [rsi + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140013edd
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, esi
call fcn.140011bf0
test bpl, bpl
je 0x140013edd
lea edx, [rsi - 1]
mov dword [0x1400fda50], 0
or ecx, 0xffffffff
call fcn.140001710
mov dword [0x1400fda50], 1
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014710
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140101f90], 0
je 0x14001472e
test cl, cl
jne 0x14001472e
movzx eax, byte [0x140102d2f]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xb
mov ecx, 0xa1
and al, 0x10
movzx ebx, al
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
mov esi, 0x8000
or cl, 0x20
movzx edx, cl
and ax, si
mov ecx, 0xa2
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
and ax, si
mov ecx, 0xa3
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
and ax, si
mov ecx, 0xa4
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
and ax, si
mov ecx, 0xa5
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
and ax, si
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edi, cl
and ax, si
mov ecx, 0x5c
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rbx, qword [rsp + 0x30]
test si, ax
mov rsi, qword [rsp + 0x38]
je 0x14001481f
or dil, 0x80
cmp qword [0x140101f90], 0
je 0x140014865
movzx eax, byte [0x140102d2f]
movzx ecx, dil
not cl
and cl, al
je 0x140014865
movzx edx, byte [0x140102d2d]
not cl
and byte [0x140102d2e], cl
and dl, cl
and al, cl
mov byte [0x140102d2d], dl
lea rcx, [0x140102d30]
mov byte [0x140102d2f], al
call fcn.140014880
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140014cf0
Capabilities:
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
test rcx, rcx
je 0x140014d34
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x140014d34
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014d34
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
add rsp, 0x70
pop rbx
ret
Function at 0x140014d50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x140014eec
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rsp + 0x94]
movaps xmm1, xmmword [0x1400e0fd0]
mov eax, dword [0x1400e1020]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400e0fe0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400e0ff0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400e1000]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400e1010]
mov dword [rsp + 0x90], eax
movzx eax, word [0x1400e1024]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov word [rsp + 0x94], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140014edc
lea rax, [rsp + 0x2f0]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014edc
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x2e0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x2e8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x140014edc
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x140014edc
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x140014eb5
test ecx, ecx
je 0x140014edc
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x140014ec7
mov ecx, edx
test edx, edx
jne 0x140014ea0
jmp 0x140014edc
inc ecx
cmp ecx, 0x104
jae 0x140014edc
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x140014edc
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x140014eec
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015180
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push rdi
sub rsp, 0x158
movzx esi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rsi - 0x41]
mov rdi, rax
cmp dl, 0x19
ja 0x1400152f6
mov qword [rsp + 0x150], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x148], rbp
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x140], r14
call fcn.1400a7db0
xor ebx, ebx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 2
xor edx, edx
lea ecx, [rbx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x180]
cmp eax, 2
movzx ecx, sil
movzx ebp, bx
mov dword [rsp + 0x28], ebx
cmove bp, word [rsp + 0x180]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r14d, eax
test eax, eax
jns 0x140015266
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x178]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
lea ecx, [rbx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x1400152c4
mov r9b, 1
lea rdx, [rsp + 0x170]
mov r8, rdi
movzx ecx, bp
call fcn.140015580
movzx esi, al
test al, al
je 0x1400152c4
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140014880
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x178]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
xor edx, edx
movzx ecx, sil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbp, qword [rsp + 0x148]
test r14d, r14d
mov r14, qword [rsp + 0x140]
je 0x1400152e1
movzx ebx, word [rsp + 0x180]
movzx eax, bx
mov rbx, qword [rsp + 0x150]
add rsp, 0x158
pop rdi
pop rsi
ret
movzx ecx, sil
mov r8, rdi
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x140015420
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r14
sub rsp, 0x38
movzx eax, word [rcx]
movzx ebp, r8b
mov r14, rcx
test ax, ax
jne 0x14001543f
add rsp, 0x38
pop r14
pop rbp
ret
cmp word [rcx + 2], 0
jne 0x14001545d
mov r8, qword [rsp + 0x70]
mov r9b, 1
movzx ecx, ax
add rsp, 0x38
pop r14
pop rbp
jmp fcn.140015580
mov qword [rsp + 0x58], rbx
movzx ebx, ax
test ebx, 0xffffff80
jne 0x140015480
mov edx, 2
mov ecx, ebx
call fcn.1400ab9d4
test eax, eax
je 0x140015480
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x1400154eb
movzx ecx, word [r14 + 2]
call fcn.14000ac20
cmp ax, 0x4b
jne 0x1400154eb
lea rcx, [r14 + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x50]
call fcn.1400acef4
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x1400154d2
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov qword [rsp + 0x60], rsi
xor edi, edi
mov qword [rsp + 0x28], r12
mov esi, edi
lea r12, str.Numpad0
mov qword [rsp + 0x20], r15
mov rbx, r12
lea r15, [0x1400fe210]
nop
mov rcx, qword [rbx]
mov rdx, r14
call fcn.1400a8e20
test eax, eax
je 0x140015551
inc esi
add rbx, 0x10
cmp rbx, r15
jl 0x140015510
test bpl, bpl
je 0x140015533
xor al, al
jmp 0x14001555e
mov rcx, r14
call fcn.140015320
test ax, ax
je 0x14001554b
movzx ecx, ax
call fcn.140015e30
movzx edi, al
movzx eax, dil
jmp 0x14001555e
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r12 + 8]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r14
pop rbp
ret

Function at 0x140015580
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edi, r9b
mov rbx, rdx
movzx esi, cx
cmp cx, 0xa
jne 0x1400155b1
mov al, 0xd
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
mov qword [rsp + 0x30], rbp
movzx ecx, si
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rbp, ax
mov rcx, rbp
shr rcx, 8
cmp cl, 0xff
jne 0x140015614
cmp bpl, 0xff
jne 0x140015614
test dil, dil
je 0x140015619
movzx edi, si
test edi, 0xffffff80
jne 0x140015619
mov edx, 0x103
mov ecx, edi
call fcn.1400ab9d4
test eax, eax
je 0x140015619
movzx ecx, si
call fcn.14000ac20
mov edx, 1
mov ecx, edi
movzx ebp, al
call fcn.1400ab9d4
test eax, eax
setne cl
test cl, 0x38
je 0x14001561d
xor al, al
jmp 0x140015664
test rbx, rbx
je 0x140015660
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140015630
or byte [rbx], 8
jmp 0x140015650
test cl, 2
je 0x140015640
movzx eax, byte [rbx]
test al, 3
jne 0x140015640
or al, 1
mov byte [rbx], al
test cl, 4
je 0x140015650
movzx eax, byte [rbx]
test al, 0xc
jne 0x140015650
or al, 4
mov byte [rbx], al
test cl, 1
je 0x140015660
movzx eax, byte [rbx]
test al, 0x30
jne 0x140015660
or al, 0x10
mov byte [rbx], al
movzx eax, bpl
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015ac0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, cl
lea rsi, [0x140000000]
movzx ebx, dl
lea eax, [rdi - 0x13]
cmp eax, 0x92
ja case.0x140015afe.45
cdqe
movzx eax, byte [rsi + rax + 0x15cd0]
mov ecx, dword [rsi + rax*4 + 0x15c64]
add rcx, rsi
jmp rcx
mov eax, 0x2a
jmp 0x140015bc9
mov eax, 0x136
jmp 0x140015bc9
mov eax, 0x1d
jmp 0x140015bc9
mov eax, 0x11d
jmp 0x140015bc9
mov eax, gethostname
jmp 0x140015bc9
mov eax, 0x138
jmp 0x140015bc9
mov eax, 0x15b
jmp 0x140015bc9
mov eax, 0x15c
jmp 0x140015bc9
mov eax, 0x45
jmp 0x140015bc9
mov eax, 0x52
jmp 0x140015bc9
mov eax, 0x4f
jmp 0x140015bc9
mov eax, 0x50
jmp 0x140015bc9
mov eax, 0x51
jmp 0x140015bc9
mov eax, 0x4b
jmp 0x140015bc9
mov eax, 0x4c
jmp 0x140015bc9
mov eax, 0x4d
jmp 0x140015bc9
mov eax, 0x47
jmp 0x140015bc9
mov eax, 0x48
jmp 0x140015bc9
mov eax, 0x49
jmp 0x140015bc9
mov eax, 0x53
jmp 0x140015bc9
mov eax, 0x145
jmp 0x140015bc9
mov eax, 0x135
jmp 0x140015bc9
mov eax, gethostname
jmp 0x140015bc9
mov eax, 0x4a
jmp 0x140015bc9
mov eax, 0x4e
jmp 0x140015bc9
mov eax, 0x137
test bl, bl
jne 0x140015c1f
movzx eax, ax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test ax, ax
je 0x140015c1f
add edi, 0xfffffffd
cmp edi, 0xb4
ja case.0x140015c11.5
movsxd rax, edi
movzx eax, byte [rsi + rax + 0x15d70]
mov ecx, dword [rsi + rax*4 + 0x15d64]
add rcx, rsi
jmp rcx
mov ecx, 0x100
or dx, cx
test bl, bl
je 0x140015c4f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
test bl, bl
je 0x140015c52
mov ecx, 0x100
or eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140015e30
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov r8d, ebx
mov eax, ebx
cmp ebx, 0x11c
ja 0x140015f17
cmp ebx, 0x11c
je 0x140015f0f
sub eax, 0x1d
cmp eax, 0x36
ja case.0x140015f3c.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x16010]
mov ecx, dword [rdx + rax*4 + 0x15fc4]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayGetLBound
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x140015f3c.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x16070]
mov ecx, dword [rdx + rax*4 + 0x16048]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, 0x6f
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
mov eax, 0x100
test ax, bx
je 0x140015fa9
movzx ecx, r8b
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x140015fbd
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov dword [0x140105390], ecx
lea rax, [0x140105394]
mov r8d, 1
mov edx, dword [rax - 4]
lea rax, [rax + 4]
shr edx, 0x1e
xor edx, dword [rax - 8]
imul ecx, edx, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rax - 4], ecx
cmp r8d, 0x270
jl 0x1400160d3
mov dword [0x1400ff3f4], 1
mov dword [0x140102f90], 1
ret
Function at 0x140016110
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140102f90], 0
lea rbx, [0x140105390]
jne 0x14001616f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140105390], eax
mov edx, 1
lea r8, [0x140105394]
nop
mov ecx, dword [r8 - 4]
lea r8, [r8 + 4]
shr ecx, 0x1e
xor ecx, dword [r8 - 8]
imul eax, ecx, 0x6c078965
add eax, edx
inc edx
mov dword [r8 - 4], eax
cmp edx, 0x270
jl 0x140016140
mov dword [0x140102f90], 1
mov dword [0x1400ff3f4], 0x270
mov r8d, 0xe3
mov qword [0x140105d50], rbx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, eax
xor ecx, dword [rbx]
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x634]
mov dword [rbx], ecx
add rbx, 4
sub r8d, 1
jne 0x140016190
mov r8d, 0x18c
nop word [rax + rax]
mov eax, dword [rbx + 4]
lea rdx, [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx - 0x38c]
mov dword [rbx], ecx
lea rbx, [rdx]
sub r8d, 1
jne 0x1400161d0
mov eax, dword [0x140105390]
mov ecx, dword [rdx]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rdx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret