joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d3c0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x43d527
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x43d3d2
cmp edx, ecx
jne 0x43d515
nop word [rax + rax]
test rsi, rsi
jne 0x43d515
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x43d434
nop
call sym.runtime.nanotime1.abi0
xorps xmm15, xmm15
mov r14, qword [0x005341d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call sym.runtime.updateTimerPMask
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x43d510
mov rdx, qword [0x004e11c8]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x43d505
mov rcx, qword [0x004e11c0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x004e1c50]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x004e1c50], rax
nop
mov edx, 1
lea rsi, [0x004e1c58]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x43d4f3
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x004782c8]
mov ebx, 0x28
nop
call sym.runtime.throw
mov rax, rsi
mov rcx, rdx
call sym.runtime.panicIndex
call sym.runtime.panicshift
lea rax, [0x004779db]
mov ebx, 0x23
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.pidleput
Function at 0x4474c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x447637
movzx edx, byte [rax]
test edx, edx
jne 0x4474f4
nop dword [rax]
test r8b, r8b
jne 0x4474f4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x447507
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4475f7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x4475e5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x4475d7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44755d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x4475a0
mov eax, 1
cmp rax, rbx
ja 0x44758b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call sym.runtime.panicSliceB
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x4475cf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x447593
mov rcx, r11
mov eax, r12d
jmp 0x447562
mov rcx, rbx
call sym.runtime.panicIndex
xor eax, eax
mov rcx, rax
nop dword [rax]
call sym.runtime.panicIndex
mov eax, r8d
mov rcx, rbx
call sym.runtime.panicSliceB
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44762d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x4475f0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44750d
mov eax, edx
mov rcx, rbx
call sym.runtime.panicIndex
xor eax, eax
mov rcx, rax
nop dword [rax]
call sym.runtime.panicIndex
nop
int3
Function at 0x44ea00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44eaaf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x005341d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x457220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00533fc8], 0
je 0x45722e
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x457240
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00533fc8], 0
je 0x457255
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x457260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00533fc8], 0
je 0x457295
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00534500]
aesenc xmm0, xmmword [0x00534510]
aesenc xmm0, xmmword [0x00534520]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x4572a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00533fc8], 0
je 0x4572d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00534500]
aesenc xmm0, xmmword [0x00534510]
aesenc xmm0, xmmword [0x00534520]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x458b80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x458f80
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x458fb4
mov rcx, 0x28
jmp 0x458fbf
shl rcx, 3
add rcx, 0x1480
mov qword [0x005341d8], rcx
pop rbp
ret
Function at 0x45e520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e5ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x005341d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x45e5cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004673e0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x45e5be
mov edi, 1
lea rsi, [0x004673e0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0048ca18]
lea rsi, [0x0048c818]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x140068f8f
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov eax, dword [0x140176798]
cmp eax, 0xffffffff
jne 0x14006909f
mov r8d, 0x68
mov edx, 0
lea rax, [0x140750080]
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [0x140750080], 0x68
mov r8d, 0x18
mov edx, 0
lea rax, [0x1407500f0]
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [0x1407500f0]
mov qword [rsp + 0x48], rax
lea rax, [0x140750080]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.cmd.exe__c_ver
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x140069095
mov rax, qword [0x1407500f0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x1407500f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x1407500f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x140176798], 1
jmp 0x14006909f
mov dword [0x140176798], 0
mov eax, dword [0x140176798]
add rsp, 0x50
pop rbp
ret
Function at 0x14007b193
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
mov ecx, eax
call fcn.14007ad54
test eax, eax
sete al
test al, al
je 0x14007b1bd
mov rax, 0xfffffffffffffffe
jmp 0x14007b26a
mov rdx, qword [0x140207e90]
mov eax, dword [rbp + 0x10]
cdqe
imul rax, rax, 0x88
add rax, rdx
mov qword [0x1407690f8], rax
mov rax, qword [0x1407690f8]
movzx eax, byte [rax + 0x80]
test al, al
je 0x14007b1f5
mov rax, 0xfffffffffffffffc
jmp 0x14007b26a
mov rdx, qword [0x140207e88]
mov eax, dword [rbp + 0x10]
cdqe
shl rax, 3
add rax, rdx
mov qword [0x140769100], rax
lea rdx, [0x14076910c]
mov rax, qword [0x140769100]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
lea rdx, [0x140769108]
mov dword [rdx], eax
mov rax, qword [0x140769108]
mov edx, eax
mov eax, 0xffffffff
cmp rdx, rax
jne 0x14007b263
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x14007b263
mov rax, 0xfffffffffffffffd
jmp 0x14007b26a
mov rax, qword [0x140769108]
add rsp, 0x20
pop rbp
ret
Function at 0x14007cbdd
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov eax, dword [rbp + 0x10]
mov ecx, eax
call fcn.14007ad54
test eax, eax
sete al
test al, al
je 0x14007cc11
mov eax, 0xfffffffe
jmp 0x14007cda8
mov rdx, qword [0x140207e90]
mov eax, dword [rbp + 0x10]
cdqe
imul rax, rax, 0x88
add rax, rdx
mov qword [0x1407691e0], rax
mov rax, qword [0x1407691e0]
movzx eax, byte [rax + 0xa]
test al, al
jne 0x14007cc47
mov eax, 0xfffffffd
jmp 0x14007cda8
cmp qword [rbp + 0x28], 0
jns 0x14007cc58
mov eax, 0xfffffffc
jmp 0x14007cda8
cmp qword [rbp + 0x18], 0xffffffffffffffff
je 0x14007cc8d
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp + 0x10]
mov ecx, eax
call fcn.14007ca6e
mov dword [0x1407691e8], eax
mov eax, dword [0x1407691e8]
test eax, eax
setne al
test al, al
je 0x14007cc8d
mov eax, dword [0x1407691e8]
jmp 0x14007cda8
mov rdx, qword [0x140207e88]
mov eax, dword [rbp + 0x10]
cdqe
shl rax, 3
add rax, rdx
mov qword [0x1407691f0], rax
jmp 0x14007cd98
mov eax, 0xffffffff
cmp qword [rbp + 0x28], rax
jle 0x14007ccd1
mov dword [0x1407691f8], 0xffffffff
movabs rax, 0xffffffff00000001
add qword [rbp + 0x28], rax
jmp 0x14007cce3
mov rax, qword [rbp + 0x28]
mov dword [0x1407691f8], eax
mov qword [rbp + 0x28], 0
mov ecx, dword [0x1407691f8]
mov rax, qword [0x1407691f0]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [0x140769200]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x14007cd52
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [0x1407691d8], eax
mov eax, dword [0x1407691d8]
cmp eax, 5
je 0x14007cd44
mov eax, dword [0x1407691d8]
cmp eax, 0x21
jne 0x14007cd4b
mov eax, 0xfffffff9
jmp 0x14007cda8
mov eax, 0xfffffff7
jmp 0x14007cda8
mov rax, qword [0x140769200]
add qword [rbp + 0x20], rax
mov rax, qword [0x1407691e0]
mov rcx, qword [rax + 0x10]
mov rdx, qword [0x140769200]
mov rax, qword [0x1407691e0]
add rdx, rcx
mov qword [rax + 0x10], rdx
mov eax, dword [0x1407691f8]
mov edx, eax
mov rax, qword [0x140769200]
cmp rdx, rax
je 0x14007cd98
mov eax, 0xffffffff
jmp 0x14007cda8
cmp qword [rbp + 0x28], 0
jne 0x14007ccac
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x14007cdbb
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [0x14073d978], 0
mov eax, dword [rbp + 0x10]
mov ecx, eax
call fcn.14007ad54
test eax, eax
sete al
test al, al
je 0x14007cdfa
mov eax, 0xfffffffe
jmp 0x14007cff3
mov rdx, qword [0x140207e90]
mov eax, dword [rbp + 0x10]
cdqe
imul rax, rax, 0x88
add rax, rdx
mov qword [0x140769210], rax
mov rax, qword [0x140769210]
movzx eax, byte [rax + 9]
test al, al
jne 0x14007ce30
mov eax, 0xfffffffd
jmp 0x14007cff3
cmp qword [rbp + 0x28], 0
jns 0x14007ce41
mov eax, 0xfffffffc
jmp 0x14007cff3
cmp qword [rbp + 0x18], 0xffffffffffffffff
je 0x14007ce76
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp + 0x10]
mov ecx, eax
call fcn.14007ca6e
mov dword [0x140769218], eax
mov eax, dword [0x140769218]
test eax, eax
setne al
test al, al
je 0x14007ce76
mov eax, dword [0x140769218]
jmp 0x14007cff3
mov rdx, qword [0x140207e88]
mov eax, dword [rbp + 0x10]
cdqe
shl rax, 3
add rax, rdx
mov qword [0x140769220], rax
jmp 0x14007cfd8
mov eax, 0xffffffff
cmp qword [rbp + 0x28], rax
jle 0x14007ceba
mov dword [0x140769228], 0xffffffff
movabs rax, 0xffffffff00000001
add qword [rbp + 0x28], rax
jmp 0x14007cecc
mov rax, qword [rbp + 0x28]
mov dword [0x140769228], eax
mov qword [rbp + 0x28], 0
mov ecx, dword [0x140769228]
mov rax, qword [0x140769220]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [0x140769230]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
setne al
test al, al
je 0x14007cfa5
mov rax, qword [0x140769230]
add qword [rbp + 0x20], rax
mov rax, qword [0x140769210]
mov rcx, qword [rax + 0x10]
mov rdx, qword [0x140769230]
mov rax, qword [0x140769210]
add rdx, rcx
mov qword [rax + 0x10], rdx
mov rdx, qword [0x14073d978]
mov rax, qword [0x140769230]
add rax, rdx
mov qword [0x14073d978], rax
mov eax, dword [0x140769228]
mov edx, eax
mov rax, qword [0x140769230]
cmp rdx, rax
je 0x14007cfd8
mov eax, dword [0x140769228]
mov edx, eax
mov rax, qword [0x140769230]
sub rdx, rax
mov rax, qword [rbp + 0x28]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [0x140769210]
mov byte [rax + 0x19], 1
mov eax, 0xfffffff6
jmp 0x14007cff3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [0x140769208], eax
mov eax, dword [0x140769208]
cmp eax, 5
je 0x14007cfca
mov eax, dword [0x140769208]
cmp eax, 0x21
jne 0x14007cfd1
mov eax, 0xfffffff9
jmp 0x14007cff3
mov eax, 0xfffffff7
jmp 0x14007cff3
cmp qword [rbp + 0x28], 0
jne 0x14007ce95
mov rax, qword [0x140769210]
mov byte [rax + 0x19], 0
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x14009843b
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0xa1
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
shr ax, 0xf
movzx edx, al
mov eax, dword [0x140769ef8]
cmp edx, eax
setne al
test al, al
je 0x14009848d
mov eax, dword [0x140769ef8]
test eax, eax
sete al
movzx eax, al
mov dword [0x140769ef8], eax
mov eax, dword [0x140769ef8]
mov edx, eax
mov ecx, 0x36
call fcn.1400983a0
mov ecx, 0xa0
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
shr ax, 0xf
movzx edx, al
mov eax, dword [0x140769efc]
cmp edx, eax
setne al
test al, al
je 0x1400984d7
mov eax, dword [0x140769efc]
test eax, eax
sete al
movzx eax, al
mov dword [0x140769efc], eax
mov eax, dword [0x140769efc]
mov edx, eax
mov ecx, 0x2a
call fcn.1400983a0
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400989fd
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x140098a1c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x91
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x140098a3b
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x90
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret
Function at 0x1400a0450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
mov eax, 0x1028
push rbx
call fcn.1400c3790
sub rsp, rax
mov byte [0x14087d140], 0
mov rsi, rcx
mov rcx, qword [0x14087f140]
test rsi, rsi
je 0x1400a047e
cmp byte [rsi], 0
jne 0x1400a05ed
lea r9, [0x14087d140]
test rcx, rcx
je 0x1400a052f
call fcn.1400c4b10
lea rbx, [0x14087e140]
test rax, rax
je 0x1400a05c2
lea r11, [rax + 8]
movzx ecx, byte [rbx]
xor r8d, r8d
movzx eax, byte [rax + 8]
lea r9, [0x14087e140]
mov rdx, r11
nop dword [rax + rax]
test cl, cl
jne 0x1400a04e8
test al, al
je 0x1400a050d
test r8, r8
je 0x1400a05ad
test al, al
je 0x1400a05ad
movzx ecx, byte [r8]
test cl, cl
je 0x1400a04c8
mov r9, r8
nop dword [rax]
mov r10, r8
mov r8, r9
cmp cl, 0x2a
je 0x1400a0540
cmp cl, 0x3f
jne 0x1400a0570
add r9, 1
test al, al
movzx ecx, byte [r8 + 1]
jne 0x1400a0581
test cl, cl
jne 0x1400a0598
mov r8d, 0x1000
mov rdx, r11
lea r9, [0x14087d140]
mov rcx, r9
call sub.msvcrt.dll_strncpy
mov byte [0x14087e13f], 0
mov r9, rax
mov rax, r9
add rsp, 0x1028
pop rbx
pop rsi
ret
add r9, 1
test al, al
movzx ecx, byte [r8 + 1]
jne 0x1400a0560
jmp 0x1400a05a0
movzx eax, byte [rdx + 1]
add rdx, 1
test al, al
je 0x1400a04c0
cmp al, cl
jne 0x1400a0550
movzx eax, byte [rdx]
jmp 0x1400a04e8
cmp cl, al
jne 0x1400a073d
movzx ecx, byte [r8 + 1]
add r9, 1
movzx eax, byte [rdx + 1]
mov r8, r10
add rdx, 1
jmp 0x1400a04c0
mov r8, r9
jmp 0x1400a04ee
test cl, cl
je 0x1400a050d
jmp 0x1400a04e8
mov rcx, qword [0x14087f140]
call fcn.1400c4b10
test rax, rax
jne 0x1400a04a3
mov rcx, qword [0x14087f140]
call fcn.1400c4cf0
lea r9, [0x14087d140]
mov qword [0x14087f140], 0
mov rax, r9
add rsp, 0x1028
pop rbx
pop rsi
ret
test rcx, rcx
je 0x1400a0602
call fcn.1400c4cf0
mov qword [0x14087f140], 0
mov edx, 0x2a
mov rcx, rsi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400a06d0
mov edx, 0x2f
mov rcx, rsi
call sub.msvcrt.dll_strrchr
test rax, rax
mov rbx, rax
je 0x1400a0689
lea rdx, [rbx + 1]
mov r8d, 0x1000
sub rbx, rsi
lea rcx, [0x14087e140]
add rbx, 1
call sub.msvcrt.dll_strncpy
mov eax, 0xfff
mov rdx, rsi
mov byte [0x14087f13f], 0
lea rcx, [rsp + 0x20]
cmp rbx, rax
cmova rbx, rax
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
mov rcx, rax
call fcn.1400c49a0
mov rcx, rax
mov qword [0x14087f140], rax
jmp 0x1400a047e
mov edx, 0x5c
mov rcx, rsi
call sub.msvcrt.dll_strrchr
test rax, rax
mov rbx, rax
jne 0x1400a062d
lea rcx, [0x14087e140]
mov rdx, rsi
mov r8d, 0x1000
call sub.msvcrt.dll_strncpy
mov edx, 0x2f2e
mov byte [rsp + 0x22], 0
mov byte [0x14087f13f], 0
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], dx
jmp 0x1400a0675
mov edx, 0x3f
mov rcx, rsi
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x1400a0618
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400a070e
test al, 0x10
jne 0x1400a070e
mov rcx, rsi
call fcn.14009fdd0
mov r8d, 0x1000
mov rdx, rax
jmp 0x1400a0516
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rsi
call sub.msvcrt.dll_strncpy
mov byte [rsp + 0x101f], 0
mov rcx, rax
mov eax, 0x2a
mov word [0x14087e140], ax
jmp 0x1400a0675
mov r8, r10
jmp 0x1400a04c8
Function at 0x1400a08d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rcx + 0x10]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
mov qword [rcx], rbp
je 0x1400a0a0b
mov rcx, rdx
call sub.msvcrt.dll_strlen
cmp rax, 0xf
mov rdi, rax
mov qword [rsp + 0x38], rax
ja 0x1400a09b8
cmp rax, 1
jne 0x1400a09a8
movzx edx, byte [rsi]
mov byte [rbx + 0x10], dl
mov qword [rbx + 8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov byte [rbp + rax], 0
mov rcx, rsi
mov rbp, qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
call rbp
test eax, eax
mov edi, eax
je 0x1400a095d
mov edx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.14015fb50
mov r8, qword [rbx]
xor r9d, r9d
mov edx, edi
mov rcx, rsi
call rbp
test eax, eax
jne 0x1400a09f8
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400a0996
test al, 0x10
je 0x1400a0996
mov rdx, qword [rbx + 8]
mov rax, qword [rbx]
cmp byte [rax + rdx - 1], 0x5c
je 0x1400a0996
mov dword [rsp + 0x20], 0x5c
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call fcn.14015e710
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rax, rax
je 0x1400a0918
jmp 0x1400a09d7
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov rcx, rbx
call fcn.1401607c0
mov rbp, rax
mov qword [rbx], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
mov rcx, rbp
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x38]
mov rbp, qword [rbx]
jmp 0x1400a0918
lea edx, [rdi - 1]
xor r8d, r8d
mov rcx, rbx
call fcn.14015fb50
jmp 0x1400a095d
lea rcx, [0x1401a51a0]
call fcn.140174aa0
mov rsi, rax
mov rcx, rbx
call fcn.14015dd60
mov rcx, rsi
call fcn.1400c3f90
nop
nop dword [rax + rax]
Function at 0x1400a4990
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 0x10
mov rdi, rdx
mov rsi, r8
call sub.msvcrt.dll_malloc
lea r8, [0x1400a4860]
xor edx, edx
xor ecx, ecx
mov qword [rax], rdi
mov r9, rax
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rbx], rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400a59e0
Capabilities:
Enumerate gui resources

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov rbx, qword [0x140882ac8]
test rbx, rbx
je 0x1400a5a10
mov rax, rbx
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rsi, [rsp + 0x60]
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x60], eax
lea rcx, [0x1400a5840]
mov rdx, rsi
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rsp + 0x68]
test rbx, rbx
mov qword [0x140882ac8], rbx
jne 0x1400a59f9
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
mov rbx, rax
mov qword [0x140882ac8], rax
jne 0x1400a59f9
mov rax, qword [0x1401a58f8]
xor ecx, ecx
mov qword [rsp + 0x70], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rbp, str.hiddenWindowClass
mov qword [rsp + 0x60], rax
lea rax, [0x1400a58b0]
mov qword [rsp + 0x68], rax
call r12
xor ecx, ecx
mov rdi, qword [sym.imp.USER32.dll_LoadIconA]
mov edx, 0x7f00
mov qword [rsp + 0x78], rax
call rdi
xor ecx, ecx
mov edx, 0x7f00
mov qword [rsp + 0x80], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
xor ecx, ecx
mov edx, 0x7f00
mov qword [rsp + 0x90], 6
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], rbp
call rdi
mov rcx, rsi
mov qword [rsp + 0xa8], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x1400a5b63
xor ecx, ecx
call r12
mov dword [rsp + 0x38], 0x80000000
mov rdx, rbp
xor ecx, ecx
mov qword [rsp + 0x58], 0
mov r9d, 0xcf0000
mov qword [rsp + 0x50], rax
lea r8, str.hiddenWindow
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rbx, rax
mov qword [0x140882ac8], rbx
jmp 0x1400a59f9