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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
cmp dword [0x14011c180], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
je 0x1400864e6
cmp dword [0x140122aac], 0
jne 0x1400864e6
movsxd r10, dword [rdx + 0x48]
test r10d, r10d
jle 0x1400864e6
mov rax, qword [rdx + 0x38]
xor ecx, ecx
mov edx, dword [r8 + 0x10]
add rax, 0xe
nop dword [rax]
cmp dword [rax - 6], edx
jne 0x1400864da
cmp byte [rax], 1
je 0x140086502
inc rcx
add rax, 0x10
cmp rcx, r10
jl 0x1400864d0
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, dword [0x140122abc]
cmp eax, dword [reloc.WSOCK32.dll_inet_addr]
jge 0x1400864e6
mov rbx, qword [0x14011c188]
cmp dword [rbx + 0x68], 0
jg 0x1400864e6
inc eax
add rbx, 0xc8
mov dword [0x140122abc], eax
mov rax, qword [0x140122ab0]
mov qword [0x14011c188], rbx
test rax, rax
je 0x140086548
lea rcx, [rax + 0x80]
jmp 0x14008654a
xor ecx, ecx
test rbx, rbx
je 0x140086558
lea rax, [rbx + 0x80]
jmp 0x14008655a
xor eax, eax
movups xmm0, xmmword [rcx]
xor edx, edx
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rcx + 0x40]
xorps xmm1, xmm1
movsd qword [rax + 0x40], xmm0
lea rcx, [0x1401245b0]
movups xmmword [rbx], xmm1
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm1
movups xmmword [rbx + 0x40], xmm1
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm1
movups xmmword [rbx + 0x70], xmm1
mov byte [rbx + 0x7f], 1
mov dword [rbx + 0x68], 0
call fcn.140045cc0
movzx eax, byte [rbx + 0xc2]
test al, al
jne 0x1400865ce
mov byte [rbx + 0xc2], al
cmp dword [0x140124d54], 0
je 0x1400865e0
cmp dword [0x140124d50], 0
jne 0x1400865e4
test al, al
je 0x14008661a
mov dword [rbx + 0x88], reloc.WSOCK32.dll_recv
mov byte [rbx + 0x7f], 0
test al, al
jne 0x14008661a
cmp dword [0x140124d54], 0
jge 0x140086608
mov dword [rbx + 0x70], 0xffffffff
jmp 0x14008661a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x74], eax
mov eax, dword [0x140124d54]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140124d58], eax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r9d, dword [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea rcx, [r14 + 0x38]
mov qword [rsp + 0x28], rdi
mov r8d, 2
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x58], rbp
call fcn.140092810
mov rdx, qword [rdi]
mov rcx, rdi
mov ebx, eax
call qword [rdx + reloc.WSOCK32.dll_recv]
call fcn.140004880
cmp ebx, 7
sete al
jmp 0x1400864e8
Function at 0x140086690
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp word [rcx], 0
mov rbx, rcx
je 0x1400867a3
xor dil, dil
cmp word [rcx + 2], 0
je 0x1400866e3
movzx eax, word [rbx]
cmp ax, 0x21
je 0x1400866d3
cmp ax, 0x2b
je 0x1400866cf
cmp ax, 0x5e
jne 0x1400866e3
mov al, 2
jmp 0x1400866d5
mov al, 1
jmp 0x1400866d5
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x1400866b6
xor ecx, ecx
mov byte [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400232d0
movzx esi, al
test al, al
je 0x1400867a3
movzx eax, dil
or al, 4
test byte [rsp + 0x40], 0xc
movzx ecx, al
movzx eax, dil
cmove ecx, eax
movzx r8d, cl
movzx eax, r8b
or al, 2
test byte [rsp + 0x40], 3
movzx ecx, al
cmove ecx, r8d
movzx edx, cl
mov rcx, rbx
movzx eax, dl
or al, 1
test byte [rsp + 0x40], 0x30
movzx edi, al
cmove edi, edx
xor edx, edx
call fcn.1400231e0
movzx edx, ax
test ax, ax
jne 0x14008676e
xor edx, edx
movzx ecx, sil
call fcn.140023e30
movzx edx, ax
mov eax, 0x100
and dx, ax
movzx eax, dil
or al, 8
movzx ecx, al
test dx, dx
movzx eax, dil
cmove ecx, eax
movzx eax, cl
shl ax, 8
or ax, si
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140088340
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140088360
cmp ax, 9
jne 0x140088366
add rbx, 2
jmp 0x140088351
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x14008858f
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x140088397
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x140088591
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400ba088
mov rbp, rax
test rax, rax
je 0x140088478
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x1400883d8
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x1400883cf
cmp ax, 9
jne 0x1400883d8
sub rdi, 2
cmp rdi, rbx
ja 0x1400883c0
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400bec00
test eax, eax
jne 0x1400883fd
or sil, 1
jmp 0x140088437
mov r8, rdi
lea rdx, [0x1400fe460]
mov rcx, rbx
call fcn.1400bec00
test eax, eax
jne 0x140088419
or sil, 4
jmp 0x140088437
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call fcn.1400bec00
test eax, eax
jne 0x14008858f
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14008844f
cmp ax, 9
jne 0x140088455
add rbx, 2
jmp 0x140088440
test ax, ax
je 0x14008858f
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400ba088
mov rbp, rax
test rax, rax
jne 0x1400883b3
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x140088549
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov rbx, rax
cmp ax, 0xa
jne 0x1400884a9
mov dl, 0xd
movzx eax, dl
jmp 0x140088564
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x1400884fc
cmp dl, 0xff
jne 0x1400884fc
cmp bx, 0x5a
ja 0x1400884e9
cmp bx, 0x41
jb 0x140088501
movzx eax, bl
cmp bx, 0x5a
ja 0x1400884f7
cmp bx, 0x41
jb 0x1400884f7
mov cl, 1
jmp 0x1400884f9
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x140088501
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x140088508
xor dl, dl
movzx eax, dl
jmp 0x140088564
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140088517
or sil, 8
jmp 0x140088535
test cl, 2
je 0x140088526
test sil, 3
jne 0x140088526
or sil, 1
test cl, 4
je 0x140088535
test sil, 0xc
jne 0x140088535
or sil, 4
test cl, 1
je 0x140088544
test sil, 0x30
jne 0x140088544
or sil, 0x10
movzx eax, dl
jmp 0x140088564
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400232d0
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x140088573
or byte [r14], 8
test sil, 4
je 0x14008857d
or byte [r14], 0x10
test sil, 0x10
je 0x140088587
or byte [r14], 4
test ax, ax
setne al
jmp 0x140088591
xor al, al
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140096300
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov r14, rdx
mov qword [rbp + 0x38], rsi
mov rbx, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400963f4
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400963f4
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140096370
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x140096397
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d8050
sub rsp, rax
lea r8, str.__s_
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14009abe0
lea ebx, [rbx*2 + 6]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400963e2
cmp dword [rbp + 0x40], ebx
je 0x1400963e5
mov esi, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmove esi, r12d
mov rbx, qword [rbp + 0x30]
mov eax, esi
mov rsi, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140096ed0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x240
xor esi, esi
mov dword [r11 + 0x10], 0xff
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [r11 + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140096fdc
nop
mov rax, qword [0x14011c188]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov r9d, dword [rax + 0xb0]
lea rax, [rsp + 0x270]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140096fe9
mov rcx, qword [rsp + 0x270]
call fcn.140096ed0
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140096fe9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x140096fe9
lea rax, [rsp + 0x278]
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x268]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x140096f20
xor eax, eax
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x140098a10
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14009c470
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400d8050
sub rsp, rax
mov rdi, rdx
lea rcx, str.ComSpec
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14009c4d9
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x14009c4d9
lea r8, [rbx*2 + 2]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400ba140
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x14009ce50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r12d, r8d
mov r14d, edx
mov r13, rcx
mov r15d, ebx
test rcx, rcx
je 0x14009ce8e
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x14009ce95
mov rdi, qword [0x140122b10]
test rdi, rdi
je 0x14009d05d
mov qword [rsp + 0x80], rbp
lea rbp, [0x1401250c4]
test r14d, r14d
jns 0x14009cebe
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x14009cef6
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x14009ce30]
mov dword [rsp + 0x40], eax
mov edx, recv
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x14009d028
mov r8d, recv
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14009d028
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009d028
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009d028
cmp r12d, 0xffffffff
cmovne esi, r12d
test esi, esi
jne 0x14009cf58
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
cmp bx, ax
jae 0x14009d028
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop word [rax + rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x14009cf98
cmp r9d, esi
setl cl
jmp 0x14009cf9d
cmp eax, esi
setge cl
test ecx, ecx
je 0x14009cfa7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x14009cf80
test r11, r11
je 0x14009d028
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14009d028
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009d028
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009d028
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r15, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14009d04a
test r15, r15
je 0x14009d04a
mov qword [rcx], rdi
mov rax, r15
jmp 0x14009d07e
test r13, r13
je 0x14009d058
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
jne 0x14009d045
test r14d, r14d
jle 0x14009d068
lea ebx, [r14 - 1]
jmp 0x14009d070
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400a02f0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x60], rbp
xor r9d, r9d
mov ebp, edx
mov rbx, rcx
lea edx, [rdi + 0x10]
test r8b, r8b
je 0x1400a037e
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400a0387
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x1400a0387
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400a0387
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a0387
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
test ebp, ebp
cmovns edi, ebp
mov rbp, qword [rsp + 0x60]
test edi, edi
je 0x1400a03eb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001710
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400a03eb
add edi, esi
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x1400a03eb
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001710
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400a03c0
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a2410
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x1400a24f3
mov eax, dword [rbx]
test eax, eax
je 0x1400a24f3
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400a244f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x1400a246d
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400a246d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x1400a2486
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400a24c4
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400a24c4
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.140031ab0
test eax, eax
jne 0x1400a24c4
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400a24f3
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400a29d0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp qword [0x140122dd0], 0
mov rax, qword [0x14011c188]
mov byte [rax + 0x7f], 1
je 0x1400a2aa8
movzx r8d, byte [0x140122ee1]
mov qword [rsp + 0x30], rbx
movzx eax, r8b
and al, 0xc0
neg al
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test r8b, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test r8b, 0x30
cmove ecx, edx
mov r9d, ecx
or r9d, 2
test r8b, 3
cmove r9d, ecx
mov eax, r9d
and al, 2
neg al
sbb al, al
and al, 3
movzx edx, al
movzx eax, dl
or al, 0x30
test r9b, 4
movzx ebx, al
cmove ebx, edx
or bl, 0xcc
not bl
and bl, byte [0x140122ddf]
je 0x1400a2aa3
cmp r9d, 8
jne 0x1400a2a86
movzx r8d, word [0x14011cb34]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
lea ecx, [r9 + 2]
call fcn.14001fb40
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 0
movzx edx, bl
xor ecx, ecx
call fcn.140021e50
mov rbx, qword [rsp + 0x30]
mov ecx, 0x4bf
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test ax, ax
je 0x1400a2acc
mov edx, 1
lea ecx, [rdx - 2]
add rsp, 0x38
jmp fcn.140001710
add rsp, 0x38
ret
Function at 0x1400a2ea0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400d8050
sub rsp, rax
xor r9d, r9d
mov dword [rsp + 0x18a0], edx
lea rax, [0x1400f9b70]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rax
lea rdx, [rsp + 0x20]
mov rax, qword [rcx + 0x10]
xorps xmm0, xmm0
lea rcx, [0x1400a3690]
mov qword [rsp + 0x1898], rax
mov byte [rsp + 0x1871], r9b
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x1400a2f54
mov rax, qword [0x14011c188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a2f54
mov edx, 1
call fcn.140001710
add rsp, 0x11cd8
ret
Function at 0x1400a2f60
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x11bd0]
mov eax, 0x11cd0
call fcn.1400d8050
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rsi, rcx
je 0x1400a31aa
xor ebx, ebx
mov byte [rcx], 1
cmp qword [0x140124568], rcx
je 0x1400a2fb6
mov qword [0x140124568], rcx
mov dword [0x140124578], ebx
cmp qword [0x140124570], rbx
jne 0x1400a2fd9
mov ecx, 0xfa0
call fcn.140097680
test rax, rax
je 0x1400a31c9
mov qword [0x140124570], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x14011c188]
mov rcx, rsi
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rdi, rax
call fcn.1400a3410
mov ecx, dword [0x140124578]
test rax, rax
mov dword [rbp + 0x1774], ebx
setne r15b
mov qword [rbp + 0x1778], rbx
test rax, rax
mov qword [rbp + 0x1780], rbx
mov qword [rbp + 0x1798], rbx
cmove ecx, ebx
mov qword [rbp + 0x17a8], rbx
mov dword [0x140124578], ecx
mov qword [rbp + 0x17b0], rbx
test r14b, r14b
je 0x1400a304a
mov byte [rbp + 0x1771], bl
test r15b, r15b
je 0x1400a3051
mov byte [rbp + 0x1771], 1
mov rax, qword [0x14011c188]
lea rdx, [0x1400f9b70]
mov r8, qword [0x140124570]
mov qword [rbp + 0x1788], r8
mov dword [rbp + 0x1790], ecx
mov qword [rbp + 0xf38], rdx
mov qword [rbp + 0xf40], rbx
mov qword [rbp + 0xf48], rdx
mov qword [rbp + 0xf50], rdx
test rax, rax
je 0x1400a309f
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400a30a4
mov qword [rsp + 0x28], rbx
test ecx, ecx
mov qword [rbp + 0xf68], rsi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
setg sil
nop dword [rax]
test r15b, r15b
je 0x1400a30f6
mov edx, ebx
test ecx, ecx
jle 0x1400a30df
mov rax, r8
nop
cmp qword [rax], rdi
je 0x1400a30f6
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400a30d0
cmp ecx, 0x1f4
jge 0x1400a30f6
movsxd rax, ecx
inc ecx
mov dword [0x140124578], ecx
mov qword [r8 + rax*8], rdi
mov dword [rbp + 0x1790], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a10d0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp + 0x1778]
test rcx, rcx
jne 0x1400a3137
test sil, sil
je 0x1400a31aa
mov r8, qword [0x140124570]
mov ecx, ebx
mov dword [0x140124578], ebx
xor sil, sil
jmp 0x1400a30c0
call fcn.14009ffe0
movsxd rcx, dword [0x140124578]
mov rdx, qword [rbp + 0x1778]
mov r8, qword [0x140124570]
test ecx, ecx
jle 0x1400a3167
mov rax, r8
cmp qword [rax], rdx
je 0x1400a3182
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a3158
cmp ecx, 0x1f4
jge 0x1400a3182
mov qword [r8 + rcx*8], rdx
inc ecx
mov rdx, qword [rbp + 0x1778]
mov dword [0x140124578], ecx
mov rax, qword [0x14011c188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a31a5
mov edx, 1
call fcn.140001710
mov rdx, qword [rbp + 0x1778]
mov rax, rdx
jmp 0x1400a31ac
xor eax, eax
lea r11, [rsp + 0x11cd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140011050
int3