joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021a90
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14012ab90]
test r10, r10
je 0x140021bc9
movsxd rax, dword [0x14012abbc]
imul r9, rax, 0xd4
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], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x14012abb8], eax
sub ecx, dword [0x14012d048]
xorps xmm0, xmm0
mov dword [0x14012d048], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x14012abbc]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x14010fdc8]
mov rcx, qword [0x14012ab90]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140021b7e
cmp rax, qword [0x14012abb0]
je 0x140021b62
movsxd rcx, dword [0x14012abbc]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x14012ab90]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x14012abbc]
jmp 0x140021ba2
movsxd rdx, dword [0x14012abbc]
mov rax, qword [0x14012ab90]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140021ba2
movsxd rdx, dword [0x14012abbc]
movabs r8, 0x41002f004e
mov rax, qword [0x14012ab90]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x14012abb0], rbx
cmp edx, dword [0x1401241e0]
mov rbx, qword [rsp + 0x30]
mov dword [0x14012abbc], edx
jl 0x140021bc4
mov dword [0x14012abbc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140021c60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x140021da3
cmp ebx, esi
je 0x140021da3
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140021cd2
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.14001fa80
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.14001fa80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14012c648]
sete r14b
jne 0x140021d30
mov edx, 1
mov dword [0x1401241d0], 0
lea ecx, [rdx - 2]
call fcn.1400016f0
mov dword [0x1401241d0], 1
cmp dil, 0x14
jne 0x140021d87
cmp esi, 2
jne 0x140021d87
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140021d87
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.WSOCK32.dll_recv
mov ecx, esi
call fcn.14001fa80
test r14b, r14b
je 0x140021d87
lea edx, [rsi - 1]
mov dword [0x1401241d0], 0
lea ecx, [rsi - 3]
call fcn.1400016f0
mov dword [0x1401241d0], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x140021d8e
Function at 0x140022620
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x14012ae58], 0
je 0x14002263e
test cl, cl
jne 0x14002263e
movzx eax, byte [0x14012ad79]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebp, ebp
mov ecx, reloc.WSOCK32.dll_recv
test ax, ax
cmovns ecx, ebp
movzx ebx, cl
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x20
movzx edx, cl
test ax, ax
mov ecx, 0xa2
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
test ax, ax
mov ecx, 0xa3
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
test ax, ax
mov ecx, 0xa4
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
test ax, ax
mov ecx, 0xa5
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
test ax, ax
lea ecx, [rbp + 0x5b]
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
test ax, ax
lea ecx, [rbp + 0x5c]
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx esi, cl
cmovns esi, ebx
cmp qword [0x14012ae58], rbp
movzx edi, sil
je 0x1400227c5
movzx ebx, sil
not bl
and bl, byte [0x14012ad79]
cmp byte [0x14012ad74], bpl
je 0x14002277d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14012af70]
cmp eax, 0x14
jae 0x14002277d
movzx ecx, byte [0x14012ad74]
test bl, cl
je 0x14002277d
movzx eax, cl
not al
and bl, al
or dil, cl
test bl, bl
je 0x1400227c5
movzx edx, byte [0x14012ad77]
lea rcx, [0x14012ae70]
movzx eax, bl
not al
and byte [0x14012ad79], al
and dl, al
and byte [0x14012ad78], al
mov byte [0x14012ad77], dl
call fcn.1400227f0
mov rcx, qword [0x14012afb8]
test rcx, rcx
je 0x1400227c5
test byte [rcx + 0xc], bl
je 0x1400227c5
mov qword [0x14012afb8], rbp
mov rsi, qword [rsp + 0x40]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140022bf0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140022dcc
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x140106c00]
mov eax, dword [0x140106c50]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140106c10]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140106c20]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140106c30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x140106c40]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140106c54]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140022d8c
lea rax, [rbp + 0x200]
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 0x140022d88
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x140022d88
mov edx, dword [rbp + 0x1f8]
test edx, edx
je 0x140022d88
shr edx, 1
mov ecx, edx
dec edx
mov dword [rbp + 0x1f8], edx
cmp word [rbp + rdx*2 - 0x50], si
jne 0x140022d60
test edx, edx
je 0x140022d8c
mov ecx, edx
mov r8d, edx
nop
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rbp + rax*2 - 0x50], si
jne 0x140022d75
mov dword [rbp + 0x1f8], eax
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140022d40
jmp 0x140022d75
mov dword [rbp + 0x1f8], ecx
cmp ecx, 0x104
jae 0x140022d88
mov word [rbp + rcx*2 - 0x50], di
mov edx, ecx
test edx, edx
je 0x140022d8c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140022d8c
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140022d9c
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140022dcc
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022dc3
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022f20
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
sub rsp, 0x148
movzx edi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rdi - 0x41]
mov rbp, rax
cmp dl, 0x19
ja 0x14002312c
mov qword [rsp + 0x170], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x178], rsi
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x140], r14
call fcn.1400e2a10
xor esi, esi
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], esi
lea r9, [rsp + 0x168]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 2
xor edx, edx
lea ecx, [rsi + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x168]
cmp eax, 2
mov dword [rsp + 0x28], esi
movzx ebx, si
mov dword [rsp + 0x20], 2
cmove bx, word [rsp + 0x168]
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r14d, eax
test eax, eax
jns 0x140023004
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x160]
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
lea ecx, [rsi + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bx, bx
je 0x1400230fa
cmp bx, 0xa
jne 0x140023023
movzx edx, byte [rsp + 0x160]
mov dil, ntohs
jmp 0x1400230c6
mov rdx, rbp
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdi, ax
mov rcx, rdi
shr rcx, 8
cmp cl, 0xff
jne 0x14002307f
cmp dil, 0xff
jne 0x14002307f
cmp bx, 0x5a
ja 0x140023068
cmp bx, 0x41
jb 0x1400230fa
movzx eax, bl
cmp bx, 0x5a
ja 0x14002307a
cmp bx, 0x41
jb 0x14002307a
mov cl, 1
jmp 0x14002307c
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x1400230fa
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edi, al
test cl, 0x38
jne 0x1400230fa
movzx edx, byte [rsp + 0x160]
movzx eax, cl
and al, 6
cmp al, 6
jne 0x14002309a
or dl, 8
jmp 0x1400230b4
test cl, 2
je 0x1400230a7
test dl, 3
jne 0x1400230a7
or dl, 1
test cl, 4
je 0x1400230b4
test dl, 0xc
jne 0x1400230b4
or dl, 4
test cl, 1
je 0x1400230c1
test dl, 0x30
jne 0x1400230c1
or dl, 0x10
test dil, dil
je 0x1400230fa
lea rcx, [rsp + 0x40]
call fcn.1400227f0
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x160]
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x40]
xor edx, edx
movzx ecx, dil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbx, qword [rsp + 0x170]
test r14d, r14d
mov r14, qword [rsp + 0x140]
je 0x140023117
movzx esi, word [rsp + 0x168]
movzx eax, si
mov rsi, qword [rsp + 0x178]
add rsp, 0x148
pop rdi
pop rbp
ret
mov ecx, edi
mov r8, rbp
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x148
pop rdi
pop rbp
ret
Function at 0x140023240
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movzx r10d, word [rcx]
movzx ebp, r8b
mov rsi, rcx
test r10w, r10w
je 0x140023385
movzx r9d, word [rcx + 2]
movzx ecx, r10w
test r9w, r9w
jne 0x14002328e
mov r8, qword [rsp + 0x60]
mov r9b, 1
call fcn.1400233a0
jmp 0x140023387
mov edx, 0xffdf
lea eax, [r10 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r10w
cmp cx, 0x56
jne 0x1400232f0
movzx ecx, r9w
lea eax, [r9 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r9w
cmp cx, 0x4b
jne 0x1400232f0
lea rcx, [rsi + 4]
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x40]
call fcn.1400cbc18
mov rcx, qword [rsp + 0x40]
xor edi, edi
movzx edx, al
cmp word [rcx], di
cmove edi, edx
movzx eax, dil
jmp 0x140023387
lea r15, str.Numpad0
xor edi, edi
mov rbx, r15
lea r14, [0x140124aa0]
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.1400c51bc
test eax, eax
je 0x140023377
inc edi
add rbx, 0x10
cmp rbx, r14
jl 0x140023303
test bpl, bpl
jne 0x140023385
xor edx, edx
mov rcx, rsi
call fcn.140023150
test ax, ax
je 0x140023385
movzx edx, ax
sub edx, 0x45
je 0x140023373
mov r8d, 0xff
sub edx, 0xf1
je 0x14002334c
cmp edx, 0xf
jne 0x140023350
and ax, r8w
bt ax, 8
jae 0x140023363
and ax, r8w
mov ecx, 0xe000
or ax, cx
movzx ecx, ax
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
jmp 0x140023387
mov al, reloc.WSOCK32.dll_send
jmp 0x140023387
movsxd rax, edi
add rax, rax
movzx eax, byte [r15 + rax*8 + 8]
jmp 0x140023387
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400233a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx esi, r9b
mov rdi, rdx
movzx ebx, cx
cmp cx, 0xa
jne 0x1400233d1
mov al, 0xd
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x140023426
cmp dl, 0xff
jne 0x140023426
test sil, sil
je 0x14002342b
cmp bx, 0x5a
ja 0x140023413
cmp bx, 0x41
jb 0x14002342b
movzx eax, bl
cmp bx, 0x5a
ja 0x140023421
cmp bx, 0x41
jb 0x140023421
mov cl, 1
jmp 0x140023423
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14002342b
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x14002343d
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x140023480
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140023450
or byte [rdi], 8
jmp 0x140023470
test cl, 2
je 0x140023460
movzx eax, byte [rdi]
test al, 3
jne 0x140023460
or al, 1
mov byte [rdi], al
test cl, 4
je 0x140023470
movzx eax, byte [rdi]
test al, 0xc
jne 0x140023470
or al, 4
mov byte [rdi], al
test cl, 1
je 0x140023480
movzx eax, byte [rdi]
test al, 0x30
jne 0x140023480
or al, 0x10
mov byte [rdi], al
mov rbx, qword [rsp + 0x30]
movzx eax, dl
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140023bf0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r14d, r14d
movsxd rbp, r9d
movzx ebx, dx
mov rsi, r8
mov word [r8], r14w
movzx edi, cl
lea r15, [0x140000000]
test cl, cl
jne 0x140023c7a
test bx, bx
je 0x140023cfc
mov edx, ebx
movzx ecx, bx
sub edx, 0x45
je 0x140023c75
mov r8d, 0xff
sub edx, 0xf1
je 0x140023c4c
cmp edx, 0xf
jne 0x140023c50
and cx, r8w
bt cx, 8
jae 0x140023c63
and cx, r8w
mov eax, 0xe000
or cx, ax
movzx ecx, cx
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
jmp 0x140023ca7
mov dil, reloc.WSOCK32.dll_send
jmp 0x140023ca7
test bx, bx
jne 0x140023ca7
cmp dil, 0xd
je 0x140023c94
mov dl, 1
call fcn.140023d90
movzx ebx, ax
test ax, ax
jne 0x140023ca7
xor edx, edx
movzx ecx, dil
call fcn.140023d90
movzx ebx, ax
test ax, ax
je 0x140023d01
lea eax, [rdi + 0x64]
cmp al, 3
jbe 0x140023d01
mov ecx, r14d
lea rax, [0x140124328]
lea rdx, [0x1401243f8]
nop
cmp word [rax], bx
je 0x140023cd6
inc ecx
add rax, 0x10
cmp rax, rdx
jl 0x140023cc0
mov word [rsi], r14w
jmp 0x140023cf6
movsxd rdx, ecx
lea r8, [rbp - 1]
add rdx, rdx
mov rcx, rsi
mov rdx, qword [r15 + rdx*8 + 0x124320]
call fcn.1400d3cf4
mov word [rsi + rbp*2 - 2], r14w
cmp word [rsi], r14w
je 0x140023d01
mov rax, rsi
jmp 0x140023d6d
mov ecx, r14d
lea rax, [0x1401243f8]
lea rdx, [0x140124aa8]
cmp byte [rax], dil
je 0x140023d40
inc ecx
add rax, 0x10
cmp rax, rdx
jl 0x140023d12
movzx ecx, dil
call fcn.140022f20
mov word [rsi], ax
test ax, ax
je 0x140023d3a
mov word [rsi + 2], r14w
jmp 0x140023d60
mov word [rsi], r14w
jmp 0x140023d60
movsxd rdx, ecx
lea r8, [rbp - 1]
add rdx, rdx
mov rcx, rsi
mov rdx, qword [r15 + rdx*8 + 0x1243f0]
call fcn.1400d3cf4
mov word [rsi + rbp*2 - 2], r14w
cmp word [rsi], r14w
mov rax, qword [rsp + 0x60]
cmovne rax, rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140023d90
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ebx, cl
movzx edi, dl
mov ecx, ebx
sub ecx, 0x13
je 0x140023e64
sub ecx, 0x19
je 0x140023e5d
cmp ecx, 0x64
je 0x140023e56
mov edx, 4
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test ax, ax
jne 0x140023dde
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 0xe000
mov r9d, 0x100
test ax, dx
je 0x140023dfa
mov eax, 0xff
and dx, ax
or dx, r9w
add ebx, 0xfffffff3
cmp ebx, 0x94
ja case.0x140023e23.14
lea r8, [0x140000000]
movsxd rax, ebx
movzx eax, byte [r8 + rax + 0x23e8c]
mov ecx, dword [r8 + rax*4 + 0x23e80]
add rcx, r8
jmp rcx
movzx eax, dx
mov ecx, eax
or ecx, r9d
test dil, dil
cmovne eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
or dx, r9w
xor eax, eax
test dil, dil
cmove ax, dx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x145
jmp 0x140023e69
mov ecx, 0x137
jmp 0x140023e69
mov ecx, 0x45
mov rbx, qword [rsp + 0x30]
xor eax, eax
test dil, dil
cmove ax, cx
add rsp, 0x20
pop rdi
ret
Function at 0x140027800
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140027839
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
movzx eax, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov esi, 0x5c
mov edx, esi
call fcn.1400c0194
mov rbx, rax
cmp rax, rdi
jbe 0x140027870
cmp word [rax - 2], 0x3a
je 0x140027870
xor eax, eax
mov rcx, rdi
mov word [rbx], ax
call fcn.140027800
mov word [rbx], si
test al, al
je 0x14002788c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002789e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002789e
mov rsi, qword [rsp + 0x30]
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x30]
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140028640
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x10040
call fcn.1400de970
sub rsp, rax
movzx eax, r8b
mov r10, rdx
inc eax
mov qword [rsp + 0x30], 0
mov rbx, rcx
mov dword [rsp + 0x28], 0
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400286a4
xor al, al
mov rbx, qword [rsp + 0x10068]
add rsp, 0x10040
pop rdi
ret
mov qword [rsp + 0x10050], rbp
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x10058], rsi
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400286c0
cmp r8, 0x8000
lea rcx, [rsp + 0x40]
mov eax, 0x7fff
mov rdx, rbx
cmovae r8, rax
lea r8, [r8*2 + 2]
call fcn.1400e2370
lea rcx, [rsp + 0x40]
call fcn.1400d16c8
mov r8d, 0xa
lea rdx, [rsp + 0x40]
xor ecx, ecx
xor sil, sil
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14002876a
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002876a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002876a
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x10060]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x10050]
movzx eax, sil
mov rsi, qword [rsp + 0x10058]
mov rbx, qword [rsp + 0x10068]
add rsp, 0x10040
pop rdi
ret
Function at 0x1400287a0
Capabilities:
Copy file
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20030
call fcn.1400de970
sub rsp, rax
mov rax, rdx
movzx edi, r8b
mov rbx, rcx
lea r8, [rsp + 0x10030]
mov rcx, rax
xor r9d, r9d
mov edx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x14012cdd8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rax, qword [0x140126b60]
lea rcx, [0x140100be0]
test rax, rax
je 0x140028816
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, 0xffffffff
mov dword [rsp + 0x20], 1
mov edx, r9d
lea r8, [rsp + 0x10030]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x140028867
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140028867
mov al, 1
mov rbx, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret
mov r8d, edi
lea rdx, [rsp + 0x10030]
xor r8d, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rbx, qword [rsp + 0x20040]
test eax, eax
setne al
add rsp, 0x20030
pop rdi
ret
Function at 0x14002c8e0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x190
mov r9d, dword [rcx]
mov rsi, rdx
movsxd rdi, r8d
mov r14, rcx
test r9d, r9d
je 0x14002cafd
sub r9d, 2
je 0x14002caf4
sub r9d, 1
je 0x14002caeb
sub r9d, 1
je 0x14002c940
cmp r9d, 1
je 0x14002c934
lea rax, [0x140100be0]
jmp 0x14002cb04
lea rax, [0x1401073a8]
jmp 0x14002cb04
test rsi, rsi
je 0x14002cae2
movzx eax, word [rcx + 0x68]
mov qword [rsp + 0x1a8], rbp
test ax, ax
je 0x14002c977
xor ebp, ebp
mov word [rdx], ax
mov word [rdx + 2], bp
lea rax, str.EndKey
mov rbp, qword [rsp + 0x1a8]
jmp 0x14002cb04
cmp byte [rcx + 0x6b], 0
mov qword [rsp + 0x1a0], rbx
je 0x14002ca47
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x100
call fcn.1400e2a10
mov byte [rsp + 0xa0], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
mov ebx, ebp
test rax, rax
je 0x14002c9ef
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14002c9ef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002c9ef
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x65]
mov ebx, ebp
cmp dword [0x14012ab2c], ebx
mov rdi, rax
setne bl
xor edx, edx
call fcn.140023d90
movzx ecx, byte [r14 + 0x65]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14002cad2
xor ebp, ebp
mov word [rdx], bp
cmp byte [rcx + 0x6a], bpl
je 0x14002ca9f
movzx edx, word [rcx + 0x66]
lea rax, [0x140124328]
mov ecx, ebp
lea r8, [0x1401243f8]
cmp word [rax], dx
je 0x14002ca78
inc ecx
add rax, 0x10
cmp rax, r8
jl 0x14002ca66
jmp 0x14002ca9f
movsxd rdx, ecx
lea rax, str.NumpadEnter
add rdx, rdx
lea r8, [rdi - 1]
mov rcx, rsi
mov rdx, qword [rax + rdx*8]
call fcn.1400d3cf4
mov word [rsi + rdi*2 - 2], bp
cmp word [rsi], bp
jne 0x14002cad2
cmp byte [r14 + 0x6a], bpl
mov r8d, edi
movzx ecx, byte [r14 + 0x65]
mov rdx, rsi
sete r9b
call fcn.140022e50
cmp word [rsi], bp
jne 0x14002cad2
movzx r9d, word [r14 + 0x66]
lea r8, str.sc_03X
mov edx, edi
mov rcx, rsi
call fcn.1400a1160
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
lea rax, str.EndKey
jmp 0x14002cb04
lea rax, str.Match
jmp 0x14002cb04
lea rax, str.Timeout
jmp 0x14002cb04
lea rax, str.Stopped
lea r11, [rsp + 0x190]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret