joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002e7d
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140018ad0
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor r14d, r14d
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
cmp byte [rbx + 8], r14b
jne 0x140018c5e
nop dword [rax]
nop word [rax + rax]
xor sil, sil
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdi, r14
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 3
test rax, rax
je 0x140018b7f
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x28]
mov rcx, qword [rax + rdi*8]
call fcn.140001d34
test al, al
je 0x140018b6b
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rdx, qword [rdx + rdi*8]
mov rcx, rbx
call qword [rax + 0x10]
mov sil, 1
inc rdi
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 3
cmp rdi, rax
jb 0x140018b41
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x140018bab
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jl 0x140018bab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
jmp 0x140018c54
test sil, sil
jne 0x140018c54
or edi, 0xffffffff
test ecx, ecx
jle 0x140018be3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
sub ecx, eax
add ecx, dword [rbx + 0x28]
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x68], r14d
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x68]
test ecx, ecx
cmovle rax, rdx
mov edi, dword [rax]
mov rax, qword [rsp + 0x30]
sub rax, qword [rsp + 0x28]
cmp rax, 8
jae 0x140018c20
cmp edi, 0xffffffff
jne 0x140018c12
lea r8, str.timeout___INFINITE
mov edx, 0x47
lea rcx, str.agentEventLoop.cc
call fcn.1400045f7
jmp 0x140018c16
test edi, edi
je 0x140018c54
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c54
sar rax, 3
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x140018c54
lea r8, str.result___WAIT_FAILED
mov edx, 0x4f
lea rcx, str.agentEventLoop.cc
call fcn.1400045f7
cmp byte [rbx + 8], 0
je 0x140018b20
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140018ce2
mov rax, qword [rsp + 0x38]
sub rax, rcx
sar rax, 3
movabs rdx, 0x1fffffffffffffff
cmp rax, rdx
jbe 0x140018c89
call fcn.140003f85
int3
lea rax, [rax*8]
cmp rax, 0x1000
jb 0x140018cdd
test byte [rsp + 0x28], 0x1f
je 0x140018ca6
call fcn.140003f85
int3
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx - 8]
cmp rdx, rcx
jb 0x140018cba
call fcn.140003f85
int3
mov rax, qword [rsp + 0x28]
sub rax, rdx
cmp rax, 8
jae 0x140018cce
call fcn.140003f85
int3
cmp rax, 0x27
jbe 0x140018cda
call fcn.140003f85
int3
mov rcx, rdx
call fcn.140001a28
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140002e91
Capabilities:
Terminate process

Disassembly:
jmp 0x14002afc4
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002f31
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140030830
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x14008e058]
mov ecx, 4
lea r8, [0x14008e050]
lea rdx, str.FlsAlloc
call fcn.1400300e8
mov rbx, rax
test rax, rax
je 0x140030873
mov rcx, rax
call fcn.140002694
mov rcx, rdi
call rbx
jmp 0x140030879
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003391
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400689e8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140091358]
mov ecx, 5
lea r8, [0x140091350]
lea rdx, str.FlsGetValue
call fcn.140068218
mov rdi, rax
test rax, rax
je 0x140068a2a
mov rcx, rax
call qword [section..00cfg]
mov ecx, ebx
call rdi
jmp 0x140068a32
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400035fd
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140068a54
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140091368]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140091360]
call fcn.140068218
mov rsi, rax
test rax, rax
je 0x140068aa1
mov rcx, rax
call qword [section..00cfg]
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140068aac
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000373d
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140068910
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x140091338]
mov ecx, 3
lea r8, [0x140091330]
lea rdx, str.FlsAlloc
call fcn.140068218
mov rbx, rax
test rax, rax
je 0x140068954
mov rcx, rax
call qword [section..00cfg]
mov rcx, rdi
call rbx
jmp 0x14006895a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003887
Capabilities:
Set console window title

Disassembly:
jmp 0x140020570
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x14002057e
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
jne 0x14002059b
lea rcx, str.SetConsoleTitleW_failed
add rsp, 0x28
jmp fcn.140001e10
add rsp, 0x28
ret
Function at 0x140003a58
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x14001c340
push rbx
push rbp
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov ebp, esi
cmp byte [rcx + 0x10], sil
je 0x14001c3b6
lea rdx, [rcx + 0x20]
mov dword [rsp + 0x58], esi
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x58]
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14001c393
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
setne sil
mov eax, esi
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x58]
mov byte [rbx + 0x10], sil
call qword [rax + 8]
mov dword [rbx + 0x14], esi
mov ebp, 2
mov rax, qword [rbx]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov rcx, rbx
mov dword [rsp + 0x60], esi
mov byte [rsp + 0x50], sil
call qword [rax + 0x10]
test al, al
je 0x14001c482
lea rdi, [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rsp + 0x60]
lea rdx, [rbx + 0x40]
xor eax, eax
mov dword [rbx + 0x14], r8d
lea r9, [rsp + 0x58]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov dword [rsp + 0x58], esi
mov qword [rbx + 0x38], rax
mov rcx, qword [rcx + 0x98]
mov qword [rsp + 0x20], rdi
cmp byte [rsp + 0x50], sil
je 0x14001c43e
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14001c444
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001c491
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x58]
call qword [rax + 8]
mov dword [rbx + 0x14], esi
lea r8, [rsp + 0x50]
mov rax, qword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov ebp, 2
call qword [rax + 0x10]
test al, al
jne 0x14001c3f0
mov eax, ebp
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001c4b1
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov byte [rbx + 0x10], 1
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov eax, 1
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret

Function at 0x140003afd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140059dc0
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140059a28
Function at 0x140003be8
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140012c10
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd rsi, r9d
mov r15, r8
mov r12, rdx
mov r14, rcx
mov rcx, r8
call fcn.140013040
mov edi, eax
cmp eax, 0xffffffff
jne 0x140012dbb
mov ecx, dword [0x1400aa988]
mov rax, qword gs:[0x58]
mov edx, 0x104
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400aa90c], ecx
jle 0x140012cc7
lea rcx, [0x1400aa90c]
call fcn.1400011db
cmp dword [0x1400aa90c], 0xffffffff
jne 0x140012cc7
call fcn.14000335f
test al, al
je 0x140012cb4
lea rcx, str.input
call fcn.140003e2c
test al, al
mov byte [0x1400aa908], 1
jne 0x140012cbb
mov byte [0x1400aa908], 0
lea rcx, [0x1400aa90c]
call fcn.1400015dc
cmp byte [0x1400aa908], 0
je 0x140012e63
mov qword [rbp - 9], 0xf
xor ebx, ebx
mov qword [rbp - 0x11], rbx
mov byte [rbp - 0x21], bl
xor r8d, r8d
lea edx, [rbx + 0x40]
lea rcx, [rbp - 0x21]
call fcn.140003008
mov qword [rbp - 0x11], rbx
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rax, qword [rbp - 0x21]
mov byte [rax], bl
lea r8d, [rbx + 0x22]
lea rdx, str.Discarding_invalid_UTF_8_sequence:
lea rcx, [rbp - 0x21]
call fcn.140003a99
mov r14, rsi
mov edi, ebx
test esi, esi
jle 0x140012d92
lea r12, [0x140088300]
lea esi, [rbx + 2]
nop
mov dl, 0x20
lea rcx, [rbp - 0x21]
call fcn.1400039c2
movzx ecx, byte [rdi + r15]
mov eax, ecx
shr rax, 4
and eax, 0xf
movzx eax, byte [rax + r12]
mov byte [rbp - 0x41], al
and ecx, 0xf
movzx eax, byte [rcx + r12]
mov byte [rbp - 0x40], al
mov byte [rbp - 0x3f], 0
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], rsi
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rbp - 1], xmm0
movsd xmm1, qword [rbp - 0x31]
movsd qword [rbp + 0xf], xmm1
mov r8, rsi
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.140003a99
inc rdi
cmp rdi, r14
jl 0x140012d30
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdx, qword [rbp - 0x21]
lea rcx, [0x1400876ec]
call fcn.140001e10
nop
lea rcx, [rbp - 0x21]
call fcn.140001a05
jmp 0x140012e63
cmp edi, 0xffff
jbe 0x140012dc8
or eax, 0xffffffff
jmp 0x140012dd1
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanW]
xor ebx, ebx
movzx r8d, bx
movzx ecx, bx
mov r9d, edi
mov edx, edi
movzx r10d, byte [rbp + 0x7f]
cmp ax, 0xffff
je 0x140012e36
movzx r8d, ax
mov r11d, 0xff
and r8w, r11w
mov r11d, 0x100
test r11w, ax
je 0x140012e07
lea ecx, [rbx + 0x10]
mov r11d, 0x200
test r11w, ax
je 0x140012e17
or cx, 8
mov r11d, 0x400
test r11w, ax
je 0x140012e27
or cx, 1
test r10b, r10b
je 0x140012e46
test cl, 8
je 0x140012e36
mov r9d, ebx
mov edx, ebx
test r10b, r10b
je 0x140012e46
mov edx, ebx
or cx, 2
mov ebx, 2
mov word [rsp + 0x38], bx
mov dword [rsp + 0x30], edi
mov word [rsp + 0x28], cx
mov dword [rsp + 0x20], edx
mov rdx, r12
mov rcx, r14
call fcn.140002897
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003e1d
Capabilities:
Print debug messages

Disassembly:
jmp 0x14006c864
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.140002bcb
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x14006c8b7
test rbx, rbx
je 0x14006c8a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x14006c8b7
mov edi, 4
jmp 0x14006c960
call fcn.14000150f
test al, al
jne 0x14006c8d4
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x14006c960
test bpl, bpl
je 0x14006c937
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x14006c61c]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006c960
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x14006c931
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006c960
mov edi, dword [rsp + 0x44]
jmp 0x14006c929
call fcn.140003cba
test al, al
jne 0x14006c948
bts esi, 0x15
xor ecx, ecx
jmp 0x14006c950
call fcn.140001eec
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.140003233
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x1400041b5
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x140024930
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor edx, edx
mov rdi, r8
call fcn.140002a27
mov rax, qword [rbx + 8]
test rax, rax
je 0x140024992
mov edx, edi
mov rcx, rsi
call rax
test al, al
setne bl
test bl, bl
jne 0x14002497f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_RtlGenRandom_SystemFunction036_failed:__u
call fcn.140001e10
movzx eax, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rbx + 0x10], 0
je 0x1400249da
mov rcx, qword [rbx + 0x18]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
setne bl
test bl, bl
jne 0x14002497f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.GenRandom:_CryptGenRandom_failed__size_d__lasterror_u
mov r8d, eax
call fcn.140001e10
movzx eax, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140004417
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1400124c0
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
movzx esi, r8w
mov ebp, edx
mov r14, rcx
cmp r9d, 0x10000
jae 0x140012513
lea eax, [r9 - 0xd800]
cmp eax, 0x7ff
jbe 0x140012594
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x60], ax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.1400014a1
cmp r9d, 0x110000
jae 0x140012594
mov ecx, 0xd800
mov qword [rsp + 0x40], rbx
movzx ebx, word [rsp + 0x60]
movzx r8d, si
mov qword [rsp + 0x48], rdi
lea edi, [r9 - 0x10000]
mov r9d, edi
mov word [rsp + 0x20], bx
shr r9d, 0xa
or r9w, cx
mov ecx, 0x3ff
and di, cx
mov ecx, 0xdc00
or di, cx
mov rcx, r14
call fcn.1400014a1
movzx r9d, di
mov word [rsp + 0x60], bx
movzx r8d, si
mov edx, ebp
mov rcx, r14
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.1400014a1
mov edx, r9d
lea rcx, str.INTERNAL_ERROR:_appendInputRecordCP:_invalid_codePoint:_U_04X
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140001e10
Function at 0x14000461a
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140013200
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x40], 0x10
jb 0x140013233
mov rbp, qword [rcx + 0x28]
jmp 0x140013237
lea rbp, [rcx + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
xor ebx, ebx
cmp qword [rcx + 0x38], rbx
jbe 0x14001328d
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi + 0x38]
sub r9d, ebx
lea r8, [rbx + rbp]
mov byte [rsp + 0x20], r14b
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14000332d
cmp eax, 0xffffffff
je 0x14001328d
cdqe
add rbx, rax
cmp rbx, qword [rdi + 0x38]
jb 0x140013260
mov r8, rbx
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.140002f90
mov rcx, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
sub rcx, r10
movabs rbx, 0x6666666666666667
mov rax, rbx
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400132ff
mov dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, edx
mov rdx, r10
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400132f5
lea rcx, str.WriteConsoleInputW_failed
call fcn.140001e10
mov r10, qword [rsp + 0x38]
mov qword [rsp + 0x40], r10
test r10, r10
je 0x14001332d
mov rcx, qword [rsp + 0x48]
sub rcx, r10
mov rax, rbx
imul rcx
sar rdx, 3
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, r10
lea rcx, [rsp + 0x38]
call fcn.1400015e6
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e270
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x14000e270
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov dword [rbp - 0x39], edx
cmp edx, 1
jl 0x14000e2b2
cmp ebx, 1
jge 0x14000e2ca
lea r8, str.cols___1__rows___1
mov edx, 0x281
lea rcx, str.agentAgent.cc
call fcn.1400045f7
lea rcx, [0x140085f30]
lea rax, [rbp - 0x39]
cmp edi, 0x9c4
cmovg rax, rcx
mov eax, dword [rax]
mov dword [rbp - 0x39], eax
lea rcx, [0x140085f34]
lea rax, [rbp + 0x77]
cmp ebx, 0x7d0
cmovg rax, rcx
mov eax, dword [rax]
mov dword [rbp + 0x77], eax
lea rdi, [rsi + 0x40]
mov qword [rbp - 0x19], rdi
movzx r14d, byte [rdi + 8]
mov byte [rbp - 0x11], r14b
movzx edx, byte [rsi + 0x48]
mov rcx, rdi
call fcn.140002144
nop
movzx eax, word [rbp - 0x39]
mov word [rbp - 0x39], ax
movzx eax, word [rbp + 0x77]
mov word [rbp - 0x37], ax
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov dword [rbp + 7], eax
mov word [rbp + 0xb], ax
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.14000382d
nop
mov ebx, dword [rbp - 0x39]
mov dword [rbp - 0x39], ebx
lea r9, [rbp - 9]
lea r8, [rbp - 0x39]
mov rdx, qword [rbp - 0x29]
mov rcx, qword [rsi + 0x68]
call fcn.1400026b7
mov rcx, qword [rsi + 0xa8]
mov rax, qword [rbp + 1]
mov qword [rcx + 0xec], rax
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x14000e394
mov dword [rbp - 0x39], ebx
lea r9, [rbp - 9]
lea r8, [rbp - 0x39]
mov rdx, qword [rsi + 0x78]
call fcn.1400026b7
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], eax
mov eax, 4
mov word [rbp + 0xf], ax
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x29]
call fcn.140001654
mov ecx, dword [rax]
mov dword [rbp + 0x13], ecx
mov dword [rbp - 0x31], 0
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r9, [rbp - 0x31]
mov r8d, 1
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
nop
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14000e40c
cmp byte [rbx + 8], 0
je 0x14000e3fe
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rbx
call fcn.1400035d0
nop
movzx edx, r14b
mov rcx, rdi
call fcn.140002144
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400124c0
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1400124c0
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
movzx esi, r8w
mov ebp, edx
mov r14, rcx
cmp r9d, 0x10000
jae 0x140012513
lea eax, [r9 - 0xd800]
cmp eax, 0x7ff
jbe 0x140012594
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x60], ax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.1400014a1
cmp r9d, 0x110000
jae 0x140012594
mov ecx, 0xd800
mov qword [rsp + 0x40], rbx
movzx ebx, word [rsp + 0x60]
movzx r8d, si
mov qword [rsp + 0x48], rdi
lea edi, [r9 - 0x10000]
mov r9d, edi
mov word [rsp + 0x20], bx
shr r9d, 0xa
or r9w, cx
mov ecx, 0x3ff
and di, cx
mov ecx, 0xdc00
or di, cx
mov rcx, r14
call fcn.1400014a1
movzx r9d, di
mov word [rsp + 0x60], bx
movzx r8d, si
mov edx, ebp
mov rcx, r14
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.1400014a1
mov edx, r9d
lea rcx, str.INTERNAL_ERROR:_appendInputRecordCP:_invalid_codePoint:_U_04X
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140001e10

Function at 0x1400125f0
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1400125f0
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
mov rdi, rcx
mov qword [rsp + 0x20], rax
movzx ebx, r9w
mov qword [rsp + 0x28], rax
mov eax, 1
mov dword [rsp + 0x24], edx
xor edx, edx
movzx ecx, r8w
mov word [rsp + 0x20], ax
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], r8w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x2e], bx
mov word [rsp + 0x2c], ax
mov rcx, rdi
movzx eax, word [rsp + 0x80]
mov dword [rsp + 0x30], eax
call fcn.14000276b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x140012c10
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140012c10
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd rsi, r9d
mov r15, r8
mov r12, rdx
mov r14, rcx
mov rcx, r8
call fcn.140013040
mov edi, eax
cmp eax, 0xffffffff
jne 0x140012dbb
mov ecx, dword [0x1400aa988]
mov rax, qword gs:[0x58]
mov edx, 0x104
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400aa90c], ecx
jle 0x140012cc7
lea rcx, [0x1400aa90c]
call fcn.1400011db
cmp dword [0x1400aa90c], 0xffffffff
jne 0x140012cc7
call fcn.14000335f
test al, al
je 0x140012cb4
lea rcx, str.input
call fcn.140003e2c
test al, al
mov byte [0x1400aa908], 1
jne 0x140012cbb
mov byte [0x1400aa908], 0
lea rcx, [0x1400aa90c]
call fcn.1400015dc
cmp byte [0x1400aa908], 0
je 0x140012e63
mov qword [rbp - 9], 0xf
xor ebx, ebx
mov qword [rbp - 0x11], rbx
mov byte [rbp - 0x21], bl
xor r8d, r8d
lea edx, [rbx + 0x40]
lea rcx, [rbp - 0x21]
call fcn.140003008
mov qword [rbp - 0x11], rbx
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rax, qword [rbp - 0x21]
mov byte [rax], bl
lea r8d, [rbx + 0x22]
lea rdx, str.Discarding_invalid_UTF_8_sequence:
lea rcx, [rbp - 0x21]
call fcn.140003a99
mov r14, rsi
mov edi, ebx
test esi, esi
jle 0x140012d92
lea r12, [0x140088300]
lea esi, [rbx + 2]
nop
mov dl, 0x20
lea rcx, [rbp - 0x21]
call fcn.1400039c2
movzx ecx, byte [rdi + r15]
mov eax, ecx
shr rax, 4
and eax, 0xf
movzx eax, byte [rax + r12]
mov byte [rbp - 0x41], al
and ecx, 0xf
movzx eax, byte [rcx + r12]
mov byte [rbp - 0x40], al
mov byte [rbp - 0x3f], 0
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], rsi
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rbp - 1], xmm0
movsd xmm1, qword [rbp - 0x31]
movsd qword [rbp + 0xf], xmm1
mov r8, rsi
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.140003a99
inc rdi
cmp rdi, r14
jl 0x140012d30
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdx, qword [rbp - 0x21]
lea rcx, [0x1400876ec]
call fcn.140001e10
nop
lea rcx, [rbp - 0x21]
call fcn.140001a05
jmp 0x140012e63
cmp edi, 0xffff
jbe 0x140012dc8
or eax, 0xffffffff
jmp 0x140012dd1
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanW]
xor ebx, ebx
movzx r8d, bx
movzx ecx, bx
mov r9d, edi
mov edx, edi
movzx r10d, byte [rbp + 0x7f]
cmp ax, 0xffff
je 0x140012e36
movzx r8d, ax
mov r11d, 0xff
and r8w, r11w
mov r11d, 0x100
test r11w, ax
je 0x140012e07
lea ecx, [rbx + 0x10]
mov r11d, 0x200
test r11w, ax
je 0x140012e17
or cx, 8
mov r11d, 0x400
test r11w, ax
je 0x140012e27
or cx, 1
test r10b, r10b
je 0x140012e46
test cl, 8
je 0x140012e36
mov r9d, ebx
mov edx, ebx
test r10b, r10b
je 0x140012e46
mov edx, ebx
or cx, 2
mov ebx, 2
mov word [rsp + 0x38], bx
mov dword [rsp + 0x30], edi
mov word [rsp + 0x28], cx
mov dword [rsp + 0x20], edx
mov rdx, r12
mov rcx, r14
call fcn.140002897
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret