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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x450
mov r14, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
test rax, rax
je 0x14005ffb4
lea r8d, [rbp + 0x64]
mov rcx, rax
lea rdx, [rsp + 0x180]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14005ffbc
mov word [rsp + 0x180], bp
mov rbx, qword [0x140127d48]
mov rsi, 0xffffffffffffffff
mov word [rsp + 0x80], bp
test rbx, rbx
je 0x140060098
nop dword [rax + rax]
cmp byte [rbx + 0x16], bpl
je 0x140060032
mov rcx, qword [rbx]
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
mov dword [rsp + 0x20], ebp
xor edx, edx
call fcn.1400daa34
test rax, rax
je 0x14006000d
mov rax, qword [rax + 0x20]
jmp 0x140060016
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r9, rax
lea r8, [0x140106ae8]
mov edx, 0x7d
lea rcx, [rsp + 0x80]
call fcn.14009ce30
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14005ffe0
cmp word [rsp + 0x80], bp
je 0x140060098
lea rcx, [rsp + 0x80]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bp
jne 0x140060050
cmp rax, 0x7b
jbe 0x14006008b
lea rdi, [rsp + 0x80]
mov ebx, 0x7f
lea rdi, [rdi + rax*2]
sub rbx, rax
mov r8, rbx
lea rdx, [0x140103150]
mov rcx, rdi
call fcn.1400cf354
mov word [rdi + rbx*2], bp
jmp 0x140060098
cmp word [rsp + rax*2 + 0x7e], 0x20
jne 0x140060098
mov word [rsp + rax*2 + 0x7e], bp
mov rax, qword [0x140125ae0]
cmp byte [rax + 0x7c], bpl
je 0x1400600b3
cmp byte [0x140127dbd], bpl
mov ebx, 1
je 0x1400600b5
mov ebx, ebp
mov eax, dword [0x140125b08]
cmp eax, 1
jle 0x1400600c3
lea ebp, [rax - 1]
mov cl, 1
call fcn.140022740
movzx ecx, al
lea rdx, [rsp + 0x250]
call fcn.140022b70
mov edx, dword [0x140125b08]
lea r11, [0x140100a30]
mov r10d, dword [0x140125ae8]
lea r8, [0x140106af0]
mov qword [rsp + 0x70], rax
lea r9, [0x140100a28]
mov eax, dword [0x140125b30]
lea rcx, [0x1400fbbd0]
mov dword [rsp + 0x68], eax
sub r10d, ebx
mov dword [rsp + 0x60], edx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x58], r10d
cmp edx, 1
mov edi, 0xfffe
cmovg rcx, r8
mov edx, edi
cmp qword [0x140125e00], 0
mov r8, r9
mov qword [rsp + 0x50], rcx
mov rcx, r14
mov dword [rsp + 0x48], ebp
cmove r8, r11
cmp qword [0x140125e08], 0
mov qword [rsp + 0x40], rax
mov eax, dword [0x140127d58]
cmove r9, r11
mov dword [rsp + 0x38], eax
mov eax, dword [0x140127d5c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x140106b70]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x180]
call fcn.14009cd90
movsxd rcx, eax
mov edx, edi
sub edx, eax
lea rbx, [r14 + rcx*2]
mov rcx, rbx
call fcn.140017800
nop word [rax + rax]
cmp word [rbx + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x1400601b0
cmp qword [0x140125b40], 0
lea rax, [0x1401068a0]
lea rbx, [rbx + rsi*2]
lea r8, [0x140106ce0]
mov rcx, rbx
cmovne r8, rax
mov rax, rbx
sub rax, r14
sar rax, 1
sub edi, eax
mov edx, edi
call fcn.14009cd90
lea r11, [rsp + 0x450]
movsxd rcx, eax
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret
Function at 0x140062180
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set current directory

Disassembly:
push rbx
push rbp
sub rsp, 0x458
mov rbp, rcx
mov rbx, rdx
mov rcx, qword [0x140127da8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne r8b
mov byte [rbx], r8b
jne 0x14006233d
mov qword [rsp + 0x470], rsi
mov qword [rsp + 0x450], rdi
xor edi, edi
mov esi, edi
nop word [rax + rax]
mov r9d, esi
lea rax, [rsp + 0x480]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1401074a8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006231c
mov rcx, qword [rsp + 0x480]
lea rax, [rsp + 0x478]
mov qword [rsp + 0x28], rax
lea rdx, [0x140107490]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x478], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x480]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14006231c
mov edx, dword [rsp + 0x478]
test edx, edx
je 0x14006231c
shr edx, 1
mov ecx, edx
dec edx
mov dword [rsp + 0x478], edx
cmp word [rsp + rdx*2 + 0x30], di
jne 0x1400622b1
test edx, edx
je 0x140062323
mov ecx, edx
mov r8d, edx
nop dword [rax + rax]
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rsp + rax*2 + 0x30], di
jne 0x1400622c7
mov dword [rsp + 0x478], eax
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140062290
jmp 0x1400622c7
mov dword [rsp + 0x478], ecx
cmp ecx, 0x104
jae 0x14006231c
mov word [rsp + rcx*2 + 0x30], di
mov edx, ecx
test edx, edx
je 0x140062323
mov rsi, qword [rsp + 0x470]
movzx eax, word [rsp + rdi + 0x30]
mov word [rsp + rdi + 0x240], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x1400622d3
mov rdi, qword [rsp + 0x450]
test edx, edx
je 0x140062331
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x458
pop rbp
pop rbx
ret
mov word [rsp + 0x30], di
mov edx, edi
test esi, esi
jne 0x1400622cb
mov esi, 0x200
jmp 0x1400621d0
xor al, al
add rsp, 0x458
pop rbp
pop rbx
ret
mov al, 1
add rsp, 0x458
pop rbp
pop rbx
ret
Function at 0x140062350
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x150
movzx ebp, dl
lea rsi, [0x1400fbbd0]
lea rdx, [rax + 8]
mov rbx, rcx
mov rdi, rcx
call fcn.140062180
test al, al
je 0x140062448
test bpl, bpl
je 0x1400623bc
cmp byte [rsp + 0x160], 0
je 0x1400623bc
mov r9, rbx
lea r8, [0x140107310]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14009cd90
mov rdi, qword [0x140127da0]
lea rsi, [rsp + 0x50]
mov byte [rsp + 0x40], 0
lea rcx, [0x140127620]
xor ebp, ebp
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov r8, rsi
mov rdx, rdi
mov byte [rsp + 0x20], bpl
call fcn.140060220
test eax, eax
jne 0x140062425
mov r9, rbx
lea r8, [0x140107328]
lea edx, [rbp + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.14009cd90
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 0x10]
lea rcx, [rsp + 0xd0]
call fcn.1400a3a00
mov rax, qword [0x140121b10]
lea rcx, [0x1400fbbd0]
test rax, rax
je 0x140062442
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140063c40
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x140063c78
cmp word [rcx + 2], 0x3a
jne 0x140063c78
cmp word [rcx + 4], 0
jne 0x140063c78
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x32], 0x5c003a
mov word [rsp + 0x36], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140063c90
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x140127dbc], 0
je 0x140063ca1
mov rcx, rbx
call fcn.140063cb0
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140063cb0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d9fd0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
lea rdx, [rsp + 0x20]
cmove rdx, rbx
test rdx, rdx
je 0x140063cee
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140060ce0
add rsp, 0x10020
pop rbx
ret

Function at 0x140063d00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400d9fd0
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140063d33
lea rcx, [rsp + 0x20]
call fcn.1400cc720
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x140068d90
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140068da5
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140068dd0
mov ecx, ebx
cmp edx, 1
je 0x140068dc2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x140068ddc
cmp bl, 3
jne 0x140068de3
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x140068e00
cmp qword [0x140125e00], 0
jne 0x140068e22
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140125e08], 0
je 0x140068ded
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.1400229c0
test al, al
je 0x140068e22
mov cl, 1
call fcn.140022740
lea rcx, [0x140125e20]
movzx eax, byte [rbx + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret
Function at 0x14006ca20
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
cmp word [rcx], 0
je 0x14006cb24
test dl, dl
jne 0x14006ca5c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14006cb24
mov al, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
lea r9, [rsp + 0x280]
mov edx, 0x104
lea r8, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14006ca83
xor edi, edi
test rax, rax
je 0x14006caa1
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14006caa1
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006cb24
test al, 0x10
je 0x14006cb24
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x14006cac0
lea rax, [rsp + 0x60]
mov word [rsp + rbx*2 + 0x62], di
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov eax, 0x614
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
mov rbx, qword [rsp + 0x288]
xor al, al
add rsp, 0x270
pop rdi
ret
Function at 0x140072940
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x140121ad0]
mov r8, rdx
cmp eax, 3
je 0x14007298b
add eax, 0xfffffffc
cmp eax, 1
ja 0x14007299c
mov rcx, qword [0x140121a58]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x140121a50]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x140121adc]
jge 0x14007299c
cmp qword [0x140121a78], r8
je 0x14007299c
mov rdx, r8
jmp fcn.1400089c0
ret
Function at 0x14007b4f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
mov r13, r8
mov esi, r9d
mov rbx, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r13 + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
lea ecx, [rax*2 + 2]
movsxd rcx, ecx
call fcn.1400c09a4
mov rbp, rax
test rax, rax
jne 0x14007b55a
mov rcx, rbx
call fcn.140011170
jmp 0x14007b681
mov rcx, qword [r13 + 0x28]
lea r8d, [r14 + 1]
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd r14, eax
cmp rdi, 0xffffffffffffffff
je 0x14007b59e
mov rcx, qword [r13 + 0x28]
test eax, eax
jne 0x14007b5d9
xor r9d, r9d
mov r8, rdi
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14007b5f0
mov rdi, 0xffffffffffffffff
cmp rdi, rdi
jne 0x14007b5f0
mov rcx, qword [r13 + 0x28]
mov r9, rbp
mov edx, 0x158
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007b5f0
test esi, esi
je 0x14007b5f0
xor esi, esi
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x10], esi
mov qword [rbx], rbp
mov qword [rbx + 8], r14
jmp 0x14007b681
lea r8, [rdi - 1]
mov r9, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, rax
jne 0x14007b59e
mov rcx, rbp
call fcn.1400c0990
test esi, esi
je 0x14007b6ba
cmp esi, 2
jne 0x14007b60f
test byte [r13 + 0x51], sil
jne 0x14007b6ba
mov rcx, qword [r13 + 0x28]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x40], r15
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14007b67c
xor esi, esi
lea r14, [rax + rax]
cmp rax, 0xff
ja 0x14007b69a
mov rax, qword [rbx + 0x18]
mov qword [rbx], rax
mov word [r14 + rax], si
mov qword [rbx + 8], r15
mov r9, qword [rbx]
mov r8, rdi
mov rcx, qword [r13 + 0x28]
mov edx, 0x148
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
jne 0x14007b67c
lea rax, [0x1400fbbd0]
mov dword [rbx + 0x10], esi
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret
lea rcx, [r14 + 2]
call fcn.1400c09a4
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14007b644
mov rcx, rbx
call fcn.140011170
test eax, eax
je 0x14007b67c
jmp 0x14007b650
lea eax, [rdi + 1]
mov dword [rbx + 0x10], 1
movsxd rcx, eax
mov qword [rbx], rcx
jmp 0x14007b681
Function at 0x14007bda0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov rcx, qword [r8 + 0x28]
mov rbp, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r14, eax
xor r15d, r15d
mov rbx, r14
cmp r14, 0xffffffffffffffff
jne 0x14007bddc
inc rbx
cmp word [r15 + rbx*2], r15w
jne 0x14007bdd2
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + rbx]
cmp rbx, 0xff
ja 0x14007be4b
mov rax, qword [rdi + 0x18]
mov qword [rdi], rax
mov word [rsi + rax], r15w
mov qword [rdi + 8], rbx
mov rdx, qword [rdi]
lea r8d, [r14 + 1]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rcx, eax
mov qword [rdi + 8], rcx
test eax, eax
je 0x14007be2d
mov rax, qword [rdi]
cmp word [rax + rcx*2 - 2], r15w
jne 0x14007be2d
lea rax, [rcx - 1]
mov qword [rdi + 8], rax
mov eax, 1
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rcx, [rsi + 2]
call fcn.1400c09a4
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14007bdf2
mov rcx, rdi
call fcn.140011170
cmp eax, 1
je 0x14007bdfe
xor eax, eax
jmp 0x14007be32

Function at 0x14007bf70
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x30], 0
mov rbx, rcx
je 0x14007c0b0
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14007bfe6
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x14007bfe6
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov esi, eax
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov r8, rdi
mov edx, 0x414
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14007bfd3
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
sub rsi, 1
jne 0x14007bfb0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007c026
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_SetMenu]
cmp byte [rbx + 0x110], 0
jne 0x14007c026
mov rcx, qword [rbx + 0x30]
mov byte [rbx + 0x110], 1
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [rbx + 0x28]
test rax, rax
jne 0x14007c03d
cmp rbx, qword [0x140125b38]
jne 0x14007c064
test rax, rax
je 0x14007c043
lea rdx, [rax + 0x20]
jmp 0x14007c04a
lea rdx, [0x140125b38]
mov rcx, qword [rbx + 0x20]
lea r8, [rcx + 0x28]
test rcx, rcx
jne 0x14007c05e
lea r8, [0x140125dd0]
mov qword [rdx], rcx
mov qword [r8], rax
mov rcx, rbx
mov qword [rbx + 0x30], 0
call fcn.14007c0c0
cmp byte [rbx + 0x115], 0
je 0x14007c086
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [0x140125b08], 0
jne 0x14007c0b0
lea rcx, [0x140127620]
call fcn.140047160
test al, al
jne 0x14007c0b0
mov edx, 4
lea rcx, [0x140127620]
call fcn.140047580
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140087d80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
cmp dword [0x14011f180], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
je 0x140087de6
cmp dword [0x140125adc], 0
jne 0x140087de6
movsxd r10, dword [rdx + 0x48]
test r10d, r10d
jle 0x140087de6
mov rax, qword [r14 + 0x38]
xor ecx, ecx
mov edx, dword [r8 + 0x10]
add rax, 0xe
nop dword [rax]
cmp dword [rax - 6], edx
jne 0x140087dda
cmp byte [rax], 1
je 0x140087e02
inc rcx
add rax, 0x10
cmp rcx, r10
jl 0x140087dd0
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, dword [0x140125b08]
cmp eax, dword [reloc.WSOCK32.dll_inet_addr]
jge 0x140087de6
mov rbx, qword [0x14011f188]
cmp dword [rbx + 0x68], 0
jg 0x140087de6
inc eax
add rbx, 0xc8
mov dword [0x140125b08], eax
mov rax, qword [0x140125ae0]
mov qword [0x14011f188], rbx
test rax, rax
je 0x140087e48
lea rcx, [rax + 0x80]
jmp 0x140087e4a
xor ecx, ecx
test rbx, rbx
je 0x140087e58
lea rax, [rbx + 0x80]
jmp 0x140087e5a
xor eax, eax
movups xmm0, xmmword [rcx]
xor edx, edx
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rcx + 0x40]
xorps xmm1, xmm1
movsd qword [rax + 0x40], xmm0
lea rcx, [0x140127620]
movups xmmword [rbx], xmm1
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm1
movups xmmword [rbx + 0x40], xmm1
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm1
movups xmmword [rbx + 0x70], xmm1
mov byte [rbx + 0x7f], 1
mov dword [rbx + 0x68], 0
call fcn.140046900
movzx eax, byte [rbx + 0xc2]
test al, al
jne 0x140087ece
mov byte [rbx + 0xc2], al
cmp dword [0x140127dd4], 0
je 0x140087ee0
cmp dword [0x140127dd0], 0
jne 0x140087ee4
test al, al
je 0x140087f1a
mov dword [rbx + 0x88], reloc.WSOCK32.dll_recv
mov byte [rbx + 0x7f], 0
test al, al
jne 0x140087f1a
cmp dword [0x140127dd4], 0
jge 0x140087f08
mov dword [rbx + 0x70], 0xffffffff
jmp 0x140087f1a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x74], eax
mov eax, dword [0x140127dd4]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140127dd8], eax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r9d, dword [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea rcx, [r14 + 0x38]
mov qword [rsp + 0x28], rdi
mov r8d, 2
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x58], rbp
call fcn.1400943e0
mov rdx, qword [rdi]
mov rcx, rdi
mov ebx, eax
call qword [rdx + reloc.WSOCK32.dll_recv]
call fcn.140004840
cmp ebx, 7
sete al
jmp 0x140087de8
Function at 0x140087f90
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp word [rcx], 0
mov rbx, rcx
je 0x1400880a3
xor dil, dil
cmp word [rcx + 2], 0
je 0x140087fe3
movzx eax, word [rbx]
cmp ax, 0x21
je 0x140087fd3
cmp ax, 0x2b
je 0x140087fcf
cmp ax, 0x5e
jne 0x140087fe3
mov al, 2
jmp 0x140087fd5
mov al, 1
jmp 0x140087fd5
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x140087fb6
xor ecx, ecx
mov byte [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023340
movzx esi, al
test al, al
je 0x1400880a3
movzx eax, dil
or al, 4
test byte [rsp + 0x40], 0xc
movzx ecx, al
movzx eax, dil
cmove ecx, eax
movzx r8d, cl
movzx eax, r8b
or al, 2
test byte [rsp + 0x40], 3
movzx ecx, al
cmove ecx, r8d
movzx edx, cl
mov rcx, rbx
movzx eax, dl
or al, 1
test byte [rsp + 0x40], 0x30
movzx edi, al
cmove edi, edx
xor edx, edx
call fcn.140023250
movzx edx, ax
test ax, ax
jne 0x14008806e
xor edx, edx
movzx ecx, sil
call fcn.140023e90
movzx edx, ax
mov eax, 0x100
and dx, ax
movzx eax, dil
or al, 8
movzx ecx, al
test dx, dx
movzx eax, dil
cmove ecx, eax
movzx eax, cl
shl ax, 8
or ax, si
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140089c40
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140089c60
cmp ax, 9
jne 0x140089c66
add rbx, 2
jmp 0x140089c51
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x140089e86
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x140089c97
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x140089e88
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400bbe98
mov rbp, rax
test rax, rax
je 0x140089d78
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x140089cd8
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x140089ccf
cmp ax, 9
jne 0x140089cd8
sub rdi, 2
cmp rdi, rbx
ja 0x140089cc0
sub rdi, rbx
lea rdx, [0x1401004e0]
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400c0a00
test eax, eax
jne 0x140089cfd
or sil, 1
jmp 0x140089d37
mov r8, rdi
lea rdx, [0x1401004f0]
mov rcx, rbx
call fcn.1400c0a00
test eax, eax
jne 0x140089d19
or sil, 4
jmp 0x140089d37
mov r8, rdi
lea rdx, [0x1401004f8]
mov rcx, rbx
call fcn.1400c0a00
test eax, eax
jne 0x140089e86
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140089d4f
cmp ax, 9
jne 0x140089d55
add rbx, 2
jmp 0x140089d40
test ax, ax
je 0x140089e86
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400bbe98
mov rbp, rax
test rax, rax
jne 0x140089cb3
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x140089e3e
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov rbx, rax
cmp ax, 0xa
jne 0x140089da6
mov dl, 0xd
jmp 0x140089e59
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x140089df7
cmp dl, 0xff
jne 0x140089df7
cmp bx, 0x5a
ja 0x140089de6
cmp bx, 0x41
jb 0x140089dfc
movzx edx, bl
cmp bx, 0x5a
ja 0x140089df5
cmp bx, 0x41
jb 0x140089df5
mov cl, 1
jmp 0x140089df7
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x140089dfc
movzx edx, bl
and dl, 0xdf
xor cl, cl
test cl, 0x38
je 0x140089e00
xor dl, dl
jmp 0x140089e59
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140089e0f
or sil, 8
jmp 0x140089e2d
test cl, 2
je 0x140089e1e
test sil, 3
jne 0x140089e1e
or sil, 1
test cl, 4
je 0x140089e2d
test sil, 0xc
jne 0x140089e2d
or sil, 4
test cl, 1
je 0x140089e59
test sil, 0x30
jne 0x140089e59
or sil, 0x10
jmp 0x140089e59
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023340
movzx edx, al
movzx eax, dl
mov word [r14 + 2], ax
test sil, 1
je 0x140089e6b
or byte [r14], 8
test sil, 4
je 0x140089e75
or byte [r14], 0x10
test sil, 0x10
je 0x140089e7f
or byte [r14], 4
test dl, dl
setne al
jmp 0x140089e88
xor al, al
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret