joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061020
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 edi, dl
lea rbp, [0x1400f9b50]
lea rdx, [rax + 8]
mov rbx, rcx
mov rsi, rcx
call fcn.140060e50
test al, al
je 0x140061118
test dil, dil
je 0x14006108c
cmp byte [rsp + 0x160], 0
je 0x14006108c
mov r9, rbx
lea r8, str._script__s
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14009a330
mov rsi, qword [0x140124ca0]
lea rbp, [rsp + 0x50]
mov byte [rsp + 0x40], 0
lea rcx, [0x140124530]
xor edi, edi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8, rbp
mov rdx, rsi
mov byte [rsp + 0x20], dil
call fcn.14005eec0
test eax, eax
jne 0x1400610f5
mov r9, rbx
lea r8, str.Could_not_launch__s
lea edx, [rdi + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.14009a330
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0xd0]
call fcn.1400a1190
mov rax, qword [0x14011eb00]
lea rcx, [0x1400f9b50]
test rax, rax
je 0x140061112
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 0x140062920
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x140062958
cmp word [rcx + 2], 0x3a
jne 0x140062958
cmp word [rcx + 4], 0
jne 0x140062958
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 0x140062970
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x140124cbc], 0
je 0x140062981
mov rcx, rbx
call fcn.140062990
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140062990
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d7a10
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400629bd
lea rbx, [rsp + 0x20]
jmp 0x1400629c2
test rbx, rbx
je 0x1400629d1
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.14005f9b0
add rsp, 0x10020
pop rbx
ret

Function at 0x1400629e0
Capabilities:
Get common file path

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

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140067845
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140067870
mov ecx, ebx
cmp edx, 1
je 0x140067862
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 0x14006787c
cmp bl, 3
jne 0x140067883
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x1400678a0
cmp qword [0x140122d70], 0
jne 0x1400678c2
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140122d78], 0
je 0x14006788d
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140022990
test al, al
je 0x1400678c2
mov cl, 1
call fcn.140022730
lea rcx, [0x140122d80]
movzx eax, byte [rbx + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret
Function at 0x14006b4d0
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 0x14006b5d4
test dl, dl
jne 0x14006b50c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14006b5d4
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 0x14006b533
xor edi, edi
test rax, rax
je 0x14006b551
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14006b551
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006b5d4
test al, 0x10
je 0x14006b5d4
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x14006b570
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 0x14006bdf0
Capabilities:
Enumerate processes

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, 0x270
xor r9d, r9d
movzx r14d, dl
xor edx, edx
mov rbp, rcx
lea r8d, [r9 + 1]
call fcn.14009a0d0
test eax, eax
je 0x14006be91
mov rcx, rbp
call fcn.14009ab90
mov rbx, rax
test eax, eax
je 0x14006be93
test r14b, r14b
jne 0x14006be93
mov r8d, ebx
xor edx, edx
mov ecx, 0x101000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14006be93
mov rcx, rax
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, ebx
jne 0x14006be71
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14006bf23
cmp esi, 0x102
jne 0x14006be93
mov eax, ebx
jmp 0x14006bf25
xor ebx, ebx
xor edx, edx
mov dword [rsp + 0x30], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14006bf1a
nop dword [rax]
test ebx, ebx
je 0x14006beda
cmp ebx, dword [rsp + 0x38]
je 0x14006bf43
mov edx, 0x5c
lea rcx, [rsp + 0x5c]
call fcn.1400b972c
test rax, rax
je 0x14006bef4
add rax, 2
jmp 0x14006bef9
lea rax, [rsp + 0x5c]
mov rdx, rbp
mov rcx, rax
call fcn.1400be170
mov rcx, rdi
test eax, eax
je 0x14006bf58
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14006bed0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x270]
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
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
cmovne ebx, dword [rsp + 0x50]
mov eax, ebx
jmp 0x14006bf25
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
test r14b, r14b
cmovne eax, dword [rsp + 0x50]
jmp 0x14006bf25

Function at 0x140070a70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x14011eac0]
mov r8, rdx
cmp eax, 3
je 0x140070abb
add eax, 0xfffffffc
cmp eax, 1
ja 0x140070acc
mov rcx, qword [0x14011ea48]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x14011ea40]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x14011eacc]
jge 0x140070acc
cmp qword [0x14011ea68], r8
je 0x140070acc
mov rdx, r8
jmp fcn.140008878
ret
Function at 0x1400793d0
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.1400be2f4
mov rbp, rax
test rax, rax
jne 0x14007943a
mov rcx, rbx
call fcn.140010fe0
jmp 0x140079561
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 0x14007947e
mov rcx, qword [r13 + 0x28]
test eax, eax
jne 0x1400794b9
xor r9d, r9d
mov r8, rdi
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400794d0
mov rdi, 0xffffffffffffffff
cmp rdi, rdi
jne 0x1400794d0
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 0x1400794d0
test esi, esi
je 0x1400794d0
xor esi, esi
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x10], esi
mov qword [rbx], rbp
mov qword [rbx + 8], r14
jmp 0x140079561
lea r8, [rdi - 1]
mov r9, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, rax
jne 0x14007947e
mov rcx, rbp
call fcn.1400be2e0
test esi, esi
je 0x14007959a
cmp esi, 2
jne 0x1400794ef
test byte [r13 + 0x51], sil
jne 0x14007959a
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 0x14007955c
xor esi, esi
lea r14, [rax + rax]
cmp rax, 0xff
ja 0x14007957a
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 0x14007955c
lea rax, [0x1400f9b50]
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.1400be2f4
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140079524
mov rcx, rbx
call fcn.140010fe0
test eax, eax
je 0x14007955c
jmp 0x140079530
lea eax, [rdi + 1]
mov dword [rbx + 0x10], 1
movsxd rcx, eax
mov qword [rbx], rcx
jmp 0x140079561
Function at 0x140079c80
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 0x140079cbc
inc rbx
cmp word [r15 + rbx*2], r15w
jne 0x140079cb2
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + rbx]
cmp rbx, 0xff
ja 0x140079d2b
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 0x140079d0d
mov rax, qword [rdi]
cmp word [rax + rcx*2 - 2], r15w
jne 0x140079d0d
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.1400be2f4
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x140079cd2
mov rcx, rdi
call fcn.140010fe0
cmp eax, 1
je 0x140079cde
xor eax, eax
jmp 0x140079d12

Function at 0x140079e50
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x30], 0
mov rbx, rcx
je 0x140079f90
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140079ec6
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x140079ec6
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 0x140079eb3
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
sub rsi, 1
jne 0x140079e90
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 0x140079f06
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 0x140079f06
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 0x140079f1d
cmp rbx, qword [0x140122a78]
jne 0x140079f44
test rax, rax
je 0x140079f23
lea rdx, [rax + 0x20]
jmp 0x140079f2a
lea rdx, [0x140122a78]
mov rcx, qword [rbx + 0x20]
lea r8, [rcx + 0x28]
test rcx, rcx
jne 0x140079f3e
lea r8, [0x140122c98]
mov qword [rdx], rcx
mov qword [r8], rax
mov rcx, rbx
mov qword [rbx + 0x30], 0
call fcn.140079fa0
cmp byte [rbx + 0x115], 0
je 0x140079f66
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [0x140122a3c], 0
jne 0x140079f90
lea rcx, [0x140124530]
call fcn.140046520
test al, al
jne 0x140079f90
mov edx, 4
lea rcx, [0x140124530]
call fcn.140046940
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140085c00
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 [0x14011c180], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
je 0x140085c66
cmp dword [0x140122a2c], 0
jne 0x140085c66
movsxd r10, dword [rdx + 0x48]
test r10d, r10d
jle 0x140085c66
mov rax, qword [rdx + 0x38]
xor ecx, ecx
mov edx, dword [r8 + 0x10]
add rax, 0xe
nop dword [rax]
cmp dword [rax - 6], edx
jne 0x140085c5a
cmp byte [rax], 1
je 0x140085c82
inc rcx
add rax, 0x10
cmp rcx, r10
jl 0x140085c50
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 [0x140122a3c]
cmp eax, dword [reloc.WSOCK32.dll_inet_addr]
jge 0x140085c66
mov rbx, qword [0x14011c188]
cmp dword [rbx + 0x68], 0
jg 0x140085c66
inc eax
add rbx, 0xc8
mov dword [0x140122a3c], eax
mov rax, qword [0x140122a30]
mov qword [0x14011c188], rbx
test rax, rax
je 0x140085cc8
lea rcx, [rax + 0x80]
jmp 0x140085cca
xor ecx, ecx
test rbx, rbx
je 0x140085cd8
lea rax, [rbx + 0x80]
jmp 0x140085cda
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, [0x140124530]
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.140045c80
movzx eax, byte [rbx + 0xc2]
test al, al
jne 0x140085d4e
mov byte [rbx + 0xc2], al
cmp dword [0x140124cd4], 0
je 0x140085d60
cmp dword [0x140124cd0], 0
jne 0x140085d64
test al, al
je 0x140085d9a
mov dword [rbx + 0x88], reloc.WSOCK32.dll_recv
mov byte [rbx + 0x7f], 0
test al, al
jne 0x140085d9a
cmp dword [0x140124cd4], 0
jge 0x140085d88
mov dword [rbx + 0x70], 0xffffffff
jmp 0x140085d9a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x74], eax
mov eax, dword [0x140124cd4]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140124cd8], 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.140091fa0
mov rdx, qword [rdi]
mov rcx, rdi
mov ebx, eax
call qword [rdx + reloc.WSOCK32.dll_recv]
call fcn.1400047f0
cmp ebx, 7
sete al
jmp 0x140085c68
Function at 0x140085e10
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 0x140085f23
xor dil, dil
cmp word [rcx + 2], 0
je 0x140085e63
movzx eax, word [rbx]
cmp ax, 0x21
je 0x140085e53
cmp ax, 0x2b
je 0x140085e4f
cmp ax, 0x5e
jne 0x140085e63
mov al, 2
jmp 0x140085e55
mov al, 1
jmp 0x140085e55
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x140085e36
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.140023320
movzx esi, al
test al, al
je 0x140085f23
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.140023230
movzx edx, ax
test ax, ax
jne 0x140085eee
xor edx, edx
movzx ecx, sil
call fcn.140023e80
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 0x140087ac0
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 0x140087ae0
cmp ax, 9
jne 0x140087ae6
add rbx, 2
jmp 0x140087ad1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x140087d0f
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x140087b17
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x140087d11
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400b97d8
mov rbp, rax
test rax, rax
je 0x140087bf8
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x140087b58
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x140087b4f
cmp ax, 9
jne 0x140087b58
sub rdi, 2
cmp rdi, rbx
ja 0x140087b40
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400be350
test eax, eax
jne 0x140087b7d
or sil, 1
jmp 0x140087bb7
mov r8, rdi
lea rdx, [0x1400fe440]
mov rcx, rbx
call fcn.1400be350
test eax, eax
jne 0x140087b99
or sil, 4
jmp 0x140087bb7
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call fcn.1400be350
test eax, eax
jne 0x140087d0f
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140087bcf
cmp ax, 9
jne 0x140087bd5
add rbx, 2
jmp 0x140087bc0
test ax, ax
je 0x140087d0f
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400b97d8
mov rbp, rax
test rax, rax
jne 0x140087b33
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x140087cc9
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 0x140087c29
mov dl, 0xd
movzx eax, dl
jmp 0x140087ce4
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 0x140087c7c
cmp dl, 0xff
jne 0x140087c7c
cmp bx, 0x5a
ja 0x140087c69
cmp bx, 0x41
jb 0x140087c81
movzx eax, bl
cmp bx, 0x5a
ja 0x140087c77
cmp bx, 0x41
jb 0x140087c77
mov cl, 1
jmp 0x140087c79
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x140087c81
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x140087c88
xor dl, dl
movzx eax, dl
jmp 0x140087ce4
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140087c97
or sil, 8
jmp 0x140087cb5
test cl, 2
je 0x140087ca6
test sil, 3
jne 0x140087ca6
or sil, 1
test cl, 4
je 0x140087cb5
test sil, 0xc
jne 0x140087cb5
or sil, 4
test cl, 1
je 0x140087cc4
test sil, 0x30
jne 0x140087cc4
or sil, 0x10
movzx eax, dl
jmp 0x140087ce4
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023320
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x140087cf3
or byte [r14], 8
test sil, 4
je 0x140087cfd
or byte [r14], 0x10
test sil, 0x10
je 0x140087d07
or byte [r14], 4
test ax, ax
setne al
jmp 0x140087d11
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
Function at 0x140095a80
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov r14, rdx
mov qword [rbp + 0x38], rsi
mov rbx, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140095b74
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140095b74
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140095af0
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x140095b17
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d7a10
sub rsp, rax
lea r8, str.__s_
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14009a330
lea ebx, [rbx*2 + 6]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140095b62
cmp dword [rbp + 0x40], ebx
je 0x140095b65
mov esi, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmove esi, r12d
mov rbx, qword [rbp + 0x30]
mov eax, esi
mov rsi, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret