joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 3
jne 0x1400c126a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c125a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400c12b2
cmp qword [rbx + 0x10], 0
jne 0x1400c129e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x14012342c]
call fcn.1400d5274
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c129e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1400d5500
mov rdi, rax
test rax, rax
jne 0x1400c12d5
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c12cc
call fcn.1400d21ec
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c7310
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400c7330
lea rcx, [rbx + rbx]
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400c7353
lea eax, [rdi + 0x1b]
jmp 0x1400c7422
xor ecx, ecx
test rbx, rbx
je 0x1400c7374
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], 0
inc rcx
cmp rcx, rbx
jb 0x1400c7360
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400c740f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400c7402
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.1400da9c8]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c9e10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400c9e52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c9e95
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c9ef2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c9eb0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c9f33
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14011270b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14011270c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c9f00
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400eb5d4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400eb474
call fcn.1400db708
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400d1a14
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400eb45c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400eb45c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400eb4a6
lock or dword [rax + 0x14], 0x10
jmp 0x1400eb45c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400eb4c3
mov rcx, qword [rbp + 0x10]
call fcn.1400edcfc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400e9ec0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400e7bdc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400eb51a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400eb45c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400eb586
mov rcx, qword [rbp + 0x10]
call fcn.1400e9ec0
cmp eax, 0xffffffff
je 0x1400eb56d
mov rcx, qword [rbp + 0x10]
call fcn.1400e9ec0
cmp eax, 0xfffffffe
je 0x1400eb56d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400e9ec0
movsxd rdi, eax
lea rsi, [0x14015dd60]
mov rcx, rbx
sar rdi, 6
call fcn.1400e9ec0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400eb574
lea rax, [0x14015a4b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400eb586
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400eb5bc
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400eb5b8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400eb5b8
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400eb45f
jmp 0x1400eb42c
Function at 0x1400090c3
Capabilities:
Create thread
Inject thread

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c5f28]
mov qword [0x1400c6390], rax
mov rcx, qword [0x1400c5f50]
push qword [0x1400c7100]
sub rsp, 0x28
call fcn.14001f570
add rsp, 0x28
lea rcx, [0x1400c6398]
pop rdx
call fcn.14001f4b0
push qword [0x1400c6398]
pop rcx
call fcn.140010270
mov r15, rax
inc r15
mov qword [0x1400c63a0], r15
push qword [0x1400c6390]
push 0
push 0x1f0fff
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_OpenProcess
mov qword [0x1400c63a8], rax
cmp qword [0x1400c63a8], 0
je 0x1400092d1
sub rsp, 8
push 4
push 0x1000
push qword [0x1400c63a0]
push 0
push qword [0x1400c63a8]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_VirtualAllocEx
add rsp, 0x30
mov qword [0x1400c63b0], rax
cmp qword [0x1400c63b0], 0
je 0x1400092c5
sub rsp, 8
lea rax, [0x1400c63b8]
mov rax, rax
push rax
push qword [0x1400c63a0]
push qword [0x1400c6398]
push qword [0x1400c63b0]
push qword [0x1400c63a8]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_WriteProcessMemory
add rsp, 0x30
mov r15, qword [0x1400c63b8]
cmp r15, qword [0x1400c63a0]
jl 0x1400092a3
movabs rax, str.Kernel32.dll
push rax
push 0
pop rcx
pop rdx
call fcn.140014580
and rax, rax
je 0x1400092a3
movabs rax, 0x140073769
push rax
push 0
pop rcx
pop rdx
call fcn.1400145e8
mov qword [0x1400c63c0], rax
push 0
pop rcx
call fcn.14001446c
cmp qword [0x1400c63c0], 0
je 0x1400092a3
sub rsp, 8
push 0
push 0
push qword [0x1400c63b0]
push qword [0x1400c63c0]
push 0
push 0
push qword [0x1400c63a8]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_CreateRemoteThread
add rsp, 0x40
mov qword [0x1400c63c8], rax
cmp qword [0x1400c63c8], 0
je 0x1400092a3
push 0xffffffffffffffff
push qword [0x1400c63c8]
pop rcx
pop rdx
call sub.KERNEL32.dll_WaitForSingleObject
lea rax, [0x1400c5ed0]
mov rax, rax
push rax
push qword [0x1400c63c8]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push qword [0x1400c63a0]
push qword [0x1400c63b0]
push qword [0x1400c63a8]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_VirtualFreeEx
push qword [0x1400c63a8]
pop rcx
call sub.KERNEL32.dll_CloseHandle
push qword [0x1400c5f50]
pop rcx
call fcn.14001a764
mov qword [0x1400c5ed0], rax
add rsp, 0x28
ret
Function at 0x14000ceb1
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000cebb
sub rsp, 0x28
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x14000cfc1
lea rax, [rsp + 0x38]
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and rax, rax
je 0x14000cfb7
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
pop rax
mov dword [rbp + 4], eax
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
pop rax
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], 2
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
mov byte [rsp + 0x28], al
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x14000cfd0
add rsp, 0x68
pop r15
pop rbp
ret
Function at 0x14000da68
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push r15
xor rax, rax
push rax
sub rsp, 0x28
movsxd rax, dword [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000daaf
mov qword [rsp + 0x28], 1
jmp 0x14000dac0
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
movsxd r15, dword [rsp + 0x48]
cmp r15, 1
je 0x14000db01
push 0x10
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000daf0
mov qword [rsp + 0x28], 1
jmp 0x14000db01
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
movsxd r15, dword [rsp + 0x50]
cmp r15, 1
je 0x14000db42
push 0x11
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000db31
mov qword [rsp + 0x28], 1
jmp 0x14000db42
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
movsxd r15, dword [rsp + 0x58]
cmp r15, 1
je 0x14000db83
push 0x12
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000db72
mov qword [rsp + 0x28], 1
jmp 0x14000db83
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
movsxd r15, dword [rsp + 0x48]
cmp r15, 1
jne 0x14000dbb6
push 0x10
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000dbb6
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
movsxd r15, dword [rsp + 0x50]
cmp r15, 1
jne 0x14000dbe9
push 0x11
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000dbe9
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
movsxd r15, dword [rsp + 0x58]
cmp r15, 1
jne 0x14000dc1c
push 0x12
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000dc1c
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000dc28
mov rax, 1
jmp 0x14000dc28
add rsp, 0x30
pop r15
ret
Function at 0x1400126ac
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400127ea
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001278b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140013590
mov rsi, rax
test rax, rax
je 0x1400127e1
mov rcx, qword [0x1400c6b90]
mov rdx, r13
call fcn.14001e9d4
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.140013534
mov rcx, rsi
mov rbx, rax
call fcn.14001350c
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.140013014
mov qword [rbp], rax
test rax, rax
je 0x140012781
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x1400127e1
mov rcx, rsi
call fcn.140013548
jmp 0x1400127e1
mov rcx, qword [0x1400c5ea8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400127e1
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001300c
mov rcx, qword [0x1400c5ea8]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x1400126ac
Function at 0x140012808
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400127ea
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001278b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140013590
mov rsi, rax
test rax, rax
je 0x1400127e1
mov rcx, qword [0x1400c6b90]
mov rdx, r13
call fcn.14001e9d4
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.140013534
mov rcx, rsi
mov rbx, rax
call fcn.14001350c
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.140013014
mov qword [rbp], rax
test rax, rax
je 0x140012781
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x1400127e1
mov rcx, rsi
call fcn.140013548
jmp 0x1400127e1
mov rcx, qword [0x1400c5ea8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400127e1
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001300c
mov rcx, qword [0x1400c5ea8]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x1400126ac
Function at 0x140012ba0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14d, edx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [0x1400c6b90]
mov edi, r8d
xor r12d, r12d
call fcn.14001ea74
mov rbx, rax
test rax, rax
je 0x140012b84
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r12
je 0x140012a82
mov rcx, r13
call fcn.14001319c
jmp 0x140012a00
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r12b
jne 0x1400129f5
mov rcx, qword [rbx + 0x20]
call fcn.14001356c
mov esi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r14d
mov byte [rbx + 0x2c], sil
call fcn.140012810
lea r11, [rsp + 0x88]
lea r8, [0x1400128bc]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], r12d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140012a5d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x140012a6c
mov edx, edi
mov rcx, r13
call fcn.1400132b0
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, esi
jmp 0x140012b30
mov esi, 1
mov ebp, r12d
test sil, r14b
cmovne ebp, esi
test r14b, 2
je 0x140012b3d
mov rcx, rax
call fcn.140012bac
lea rcx, [rbx + 8]
lea edx, [rsi + 0x1f]
call fcn.14001f370
mov rcx, qword [0x1400c6bb0]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r12, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x140012b84
mov rcx, qword [rsp + 0x30]
mov byte [r12 + 9], bpl
mov byte [r12 + 8], sil
mov qword [r12], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp edi, 0xffffffff
je 0x140012b1a
mov r8, r12
mov edx, edi
mov rcx, r13
call fcn.1400131cc
jmp 0x140012b28
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x140012b84
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp edi, 0xffffffff
je 0x140012b62
mov edx, edi
mov rcx, r13
call fcn.1400132b0
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x140012b84
mov r12, rsi
mov byte [rbx + 0x2c], sil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
or r8d, 0xffffffff
xor edx, edx
jmp 0x14001299c
Function at 0x1400137e4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001385b
movsxd rdx, ecx
lea rcx, [0x140013740]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400c6c08]
test rbx, rbx
je 0x1400138ce
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140013851
cmp byte [rbx + 0x20], 0
je 0x140013851
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140013817
jmp 0x1400138ce
mov rbx, qword [0x1400c6c08]
test rbx, rbx
je 0x1400138ce
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400138c6
cmp byte [rbx + 0x21], 0
je 0x14001388a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400138b6
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400c6c08]
call fcn.14001f3b4
mov rbx, rdi
test rdi, rdi
jne 0x140013867
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400195d8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x140019681
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140019681
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140019681
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140019681
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140019681
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140019681
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14001972b
test rbx, rbx
je 0x1400196c0
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x1400196b3
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x1400196b3
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x1400196c0
mov edx, 1
mov rcx, rbx
call fcn.140019584
test rdi, rdi
je 0x1400196da
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14001972b
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14001972b
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14001972b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14001972b
mov rcx, qword [0x1400c76f0]
lea rdx, [rdi - 1]
call fcn.14001ea74
test rax, rax
je 0x14001972b
mov rax, qword [rax + 0x10]
jmp 0x14001972d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret