joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024148
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
je 0x14006b3b0
xor ebx, ebx
test rax, rax
jne 0x14002418e
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x14006b3ba
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006b3d8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r14d
mov r8d, esi
mov edx, eax
mov r15d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006b3ce
lea esi, [rax + 0x12]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x1400242d8
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ebx, 4
jmp 0x140024292
mov eax, 1
jmp 0x1400242bf
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x14002419f
mov ebx, 3
jmp 0x140024292
mov ebx, 2
jmp 0x1400242bd
Function at 0x140024628
Capabilities:
Print debug messages
Write file on windows

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 r14
sub rsp, 0x40
mov r14b, byte [0x1400f13b7]
mov rdi, rdx
mov rsi, rcx
call fcn.140032d2c
mov ecx, eax
mov edx, 0x8000
call fcn.140032b54
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x14006b42a
lea rcx, [rsp + 0x20]
call fcn.140005418
mov rcx, rdi
call fcn.1400090d0
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.14001c364
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b7b20]
mov rcx, rsi
call fcn.1400246f8
movsxd rbx, eax
test r14b, r14b
jne 0x14006b458
lea rcx, [rsp + 0x20]
call fcn.1400054ac
mov rcx, rsi
call fcn.1400331cc
mov rcx, rsi
call fcn.140032d2c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.140032b54
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, rdi
call fcn.140082870
mov rcx, rdi
movsxd rbx, eax
call fcn.140082818
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140032f94
mov rbx, rax
jmp 0x1400246b5
mov rcx, rdi
call fcn.1400090d0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x1400246ab

Function at 0x140024b50
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140049520
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140004344
add rsp, 0x10020
pop rbx
ret

Function at 0x1400297d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002953c
Function at 0x14004175c
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 0x1400415fc
call fcn.140035b64
mov dword [rax], socket
call fcn.14003b6f4
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 0x1400415e4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400415e4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14004162e
lock or dword [rax + 0x14], 0x10
jmp 0x1400415e4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14004164b
mov rcx, qword [rbp + 0x10]
call fcn.140046cdc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140032d2c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140041034
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400416a2
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 0x1400415e4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14004170e
mov rcx, qword [rbp + 0x10]
call fcn.140032d2c
cmp eax, 0xffffffff
je 0x1400416f5
mov rcx, qword [rbp + 0x10]
call fcn.140032d2c
cmp eax, 0xfffffffe
je 0x1400416f5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140032d2c
movsxd rdi, eax
lea rsi, [0x1400f0880]
mov rcx, rbx
sar rdi, 6
call fcn.140032d2c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400416fc
lea rax, [0x1400eb300]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004170e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140041744
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140041740
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140041740
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 0x1400415e7
jmp 0x1400415b4
Function at 0x14006ccdc
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rbx, rcx
xor r15d, r15d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x228], r15
mov rsi, r9
mov r14, r8
mov rdi, rdx
call fcn.1400053cc
lea rcx, [rsp + 0x38]
call fcn.1400053cc
lea rcx, [rsp + 0x78]
call fcn.1400053cc
lea rdx, [0x1400dd1e0]
lea rcx, [rsp + 0x58]
call fcn.140004344
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140003f78
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.140003f78
lea rcx, [rsp + 0x38]
call fcn.1400068c4
test rdi, rdi
je 0x14006cd99
cmp word [rdi], 0x5c
je 0x14006cd99
cmp word [rdi + 2], 0x5c
je 0x14006cd99
lea rdx, [0x1400dd218]
lea rcx, [rsp + 0x38]
call fcn.140004344
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140003f78
test rsi, rsi
je 0x14006cdfb
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.1400267d0
lea rdx, [rsp + 0x38]
mov dword [rbp - 0x64], r15d
lea rcx, [rsp + 0x78]
call fcn.14000449c
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.140003f78
mov rax, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
mov rdx, qword [rbp + 0x230]
xor r9d, r9d
mov r8, rsi
mov qword [rbp - 0x50], rax
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov ebx, eax
test eax, eax
js 0x14006cebc
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov ebx, eax
test eax, eax
jne 0x14006cebc
mov rdx, qword [rsp + 0x58]
lea rax, [rbp + 0x228]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14006ceb1
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x30]
mov dword [rbp + 0x218], 0x1fe
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14006cea4
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
shr eax, 1
mov rdx, r14
mov dword [rbp + 0x218], eax
mov word [rbp + rax*2 - 0x30], r15w
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ebx, eax
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.1400054ac
lea rcx, [rsp + 0x38]
call fcn.1400054ac
lea rcx, [rsp + 0x58]
call fcn.1400054ac
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006d878
Capabilities:
Get token privileges

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 r14
sub rsp, 0x30
mov rsi, qword [rsp + 0x60]
xor r9d, r9d
mov r14, r8
mov qword [rax - 0x18], rsi
mov r8, qword [r8]
mov rbp, rcx
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test eax, eax
jne 0x14006d8f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006d8f9
mov ebx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r14], rax
test rax, rax
je 0x14006d8f9
mov r9d, dword [rsi]
lea edx, [rdi + 3]
mov r8, rax
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
mov rbx, qword [rsp + 0x40]
test edi, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
setne al
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14006dfe4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
xor r10d, r10d
mov rbp, r9
mov qword [rax + 0x30], r10
mov r14, r8
mov eax, dword [rsp + 0xa0]
mov r15, rdx
lea ebx, [r10 + 1]
test bl, al
je 0x14006e023
mov edi, ebx
jmp 0x14006e030
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x14006e090
and qword [rsp + 0x80], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14006e0f6
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xd0]
mov r9d, edi
mov ecx, dword [rsp + 0xb8]
mov r8, rbp
mov qword [rsp + 0x50], rax
bts ecx, 0xa
mov rax, qword [rsp + 0xc8]
mov rdx, r14
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov rcx, r15
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14006e109
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x60]
mov al, sil
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14006e260
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, reloc.OLEAUT32.dll_RegisterActiveObject
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x14006e2dd
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret
Function at 0x14006e4a0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
lea r9, [rsi + 0x10]
mov dword [rsp + 0x30], 2
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rax, qword [r15]
lea r8, [0x14006e588]
and qword [rsp + 0x28], 0
mov r9, rsi
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x14006e8e4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
lea r9, [rsp + 0x60]
mov r15, rcx
lea r8, [rsp + 0x68]
mov rcx, qword [rcx]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x68], eax
jae 0x14006e9aa
mov rcx, qword [r15]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov rdi, rax
test eax, eax
je 0x14006e9aa
cmp edi, dword [rsp + 0x68]
jb 0x14006e9aa
cmp edi, dword [rsp + 0x60]
jb 0x14006e9aa
lea ebx, [rax + 1]
lea rcx, [rsi - 1]
lea eax, [rsi + 2]
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400251f8
mov rcx, qword [r15]
lea edx, [rsi + 0xd]
mov r9, rax
mov r8d, ebx
mov r14, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14006e99d
cmp dword [rsp + 0x60], edi
je 0x14006e98a
mov ecx, dword [rsp + 0x60]
mov word [r14 + rcx*2], si
mov eax, dword [rsp + 0x68]
mov rcx, rbp
lea rdx, [r14 + rax*2]
call fcn.140004344
mov sil, 1
mov rcx, r14
call fcn.1400251b4
mov al, sil
jmp 0x14006e9ac
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006f628
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov rcx, qword [rcx]
mov dl, 1
call fcn.140071120
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x14006f684
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8d, ebx
shl eax, 0x10
mov edx, 0x100
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, ebx
jmp 0x14006f6c0
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov rcx, qword [rdi]
mov edx, 0x101
shl eax, 0x10
mov r9d, eax
mov eax, 0xc0000001
or r9, rax
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
xor edx, edx
call fcn.140071120
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140070098
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp dl, 1
jne 0x1400700ee
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1388
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x14007010b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x140070101
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret

Function at 0x140071120
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140071152
call fcn.1400714cc
test al, al
jne 0x14007116f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x140071165
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x140071338
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov r14, rdx
mov rcx, rdx
call fcn.1400068c4
mov r15, qword [rbx]
mov rcx, r15
call fcn.1400714cc
xor edi, edi
test al, al
je 0x140071376
xor al, al
jmp 0x14007143d
mov rcx, qword [rbx]
call fcn.1400714cc
test al, al
jne 0x14007139c
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
test eax, eax
jne 0x1400713a1
mov ebp, 0x7fff
mov rcx, 0xffffffffffffffff
lea ebx, [rbp + 1]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400251f8
mov r9, rax
mov r8d, ebx
mov edx, reloc.WSOCK32.dll_listen
mov rcx, r15
mov rsi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jle 0x140071433
mov rcx, rsi
call fcn.14002e050
mov ecx, ebp
cmp rax, rcx
jne 0x140071428
test rax, rax
je 0x140071402
mov cl, byte [rdi + rsi]
sub cl, 0x20
cmp cl, 0x5e
ja 0x140071428
inc rdi
cmp rdi, rax
jb 0x1400713ef
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400710a8
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140009494
lea rcx, [rsp + 0x20]
call fcn.1400054ac
jmp 0x140071433
mov rdx, rsi
mov rcx, r14
call fcn.140004344
mov rcx, rsi
call fcn.1400251b4
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140073c08
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x220
mov rbx, rcx
mov edx, 0x3e9
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
test rax, rax
je 0x140073c9d
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test byte [rbx + 0x10], 1
je 0x140073c5c
cmp word [rsp + 0x20], di
jne 0x140073c5c
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140073c9d
movsd xmm0, qword [rbx + 0x18]
comisd xmm0, xmmword [0x1400c81a8]
jbe 0x140073c7d
mov rcx, qword [rbx + 0x88]
mov edx, 0x40a
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x20]
call fcn.140004344
mov rcx, qword [rbx + 0x88]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x230]
add rsp, 0x220
pop rdi
ret
Function at 0x140078134
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
mov eax, 2
movsxd rcx, r14d
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400251f8
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov r8, rbx
mov rcx, rax
mov r15, rax
call fcn.140026290
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x1400781c3
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
sub rcx, 1
jne 0x1400781b5
mov rbx, qword [rsp + 0x30]
mov rax, r15
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x1400788ec
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, qword [rcx + 0x28]
neg rax
sbb edx, edx
and edx, 2
cmp dword [rcx], edx
cmovge edx, dword [rcx]
mov ecx, edx
jmp fcn.140079ff4

Function at 0x140078904
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, qword [rcx + 0x28]
neg rax
sbb edx, edx
and edx, 2
cmp dword [rcx + 4], edx
cmovge edx, dword [rcx + 4]
mov ecx, edx
jmp fcn.140079ff4