joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f190
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
mov r13, r8
mov esi, r9d
mov rbx, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r13 + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
lea ecx, [rax*2 + 2]
movsxd rcx, ecx
call fcn.1400c534c
mov rbp, rax
test rax, rax
jne 0x14007f1fa
mov rcx, rbx
call fcn.140010de0
jmp 0x14007f321
mov rcx, qword [r13 + 0x28]
lea r8d, [r14 + 1]
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd r14, eax
cmp rdi, 0xffffffffffffffff
je 0x14007f23e
mov rcx, qword [r13 + 0x28]
test eax, eax
jne 0x14007f279
xor r9d, r9d
mov r8, rdi
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14007f290
mov rdi, 0xffffffffffffffff
cmp rdi, rdi
jne 0x14007f290
mov rcx, qword [r13 + 0x28]
mov r9, rbp
mov edx, 0x158
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007f290
test esi, esi
je 0x14007f290
xor esi, esi
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x10], esi
mov qword [rbx], rbp
mov qword [rbx + 8], r14
jmp 0x14007f321
lea r8, [rdi - 1]
mov r9, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, rax
jne 0x14007f23e
mov rcx, rbp
call fcn.1400c5338
test esi, esi
je 0x14007f35a
cmp esi, 2
jne 0x14007f2af
test byte [r13 + 0x51], sil
jne 0x14007f35a
mov rcx, qword [r13 + 0x28]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x40], r15
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14007f31c
xor esi, esi
lea r14, [rax + rax]
cmp rax, 0xff
ja 0x14007f33a
mov rax, qword [rbx + 0x18]
mov qword [rbx], rax
mov word [r14 + rax], si
mov qword [rbx + 8], r15
mov r9, qword [rbx]
mov r8, rdi
mov rcx, qword [r13 + 0x28]
mov edx, 0x148
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
jne 0x14007f31c
lea rax, [0x140100be0]
mov dword [rbx + 0x10], esi
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret
lea rcx, [r14 + 2]
call fcn.1400c534c
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14007f2e4
mov rcx, rbx
call fcn.140010de0
test eax, eax
je 0x14007f31c
jmp 0x14007f2f0
lea eax, [rdi + 1]
mov dword [rbx + 0x10], 1
movsxd rcx, eax
mov qword [rbx], rcx
jmp 0x14007f321
Function at 0x14007fa40
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, 0x20
mov rcx, qword [r8 + 0x28]
mov rbp, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r14, eax
xor r15d, r15d
mov rbx, r14
cmp r14, 0xffffffffffffffff
jne 0x14007fa8a
nop word [rax + rax]
inc rbx
cmp word [r15 + rbx*2], r15w
jne 0x14007fa80
lea rsi, [rbx + rbx]
cmp rbx, 0xff
ja 0x14007faf4
mov rax, qword [rdi + 0x18]
mov qword [rdi], rax
mov word [rsi + rax], r15w
mov qword [rdi + 8], rbx
mov rdx, qword [rdi]
lea r8d, [r14 + 1]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rcx, eax
mov qword [rdi + 8], rcx
test eax, eax
je 0x14007fad6
mov rax, qword [rdi]
cmp word [rax + rcx*2 - 2], r15w
jne 0x14007fad6
lea rax, [rcx - 1]
mov qword [rdi + 8], rax
mov eax, 1
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
lea rcx, [rsi + 2]
call fcn.1400c534c
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14007fa9b
mov rcx, rdi
call fcn.140010de0
cmp eax, 1
je 0x14007faa7
xor eax, eax
jmp 0x14007fadb

Function at 0x14007fc20
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x30], 0
mov rbx, rcx
je 0x14007fd60
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14007fc96
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x14007fc96
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov esi, eax
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov r8, rdi
mov edx, 0x414
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14007fc83
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
sub rsi, 1
jne 0x14007fc60
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007fcd6
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_SetMenu]
cmp byte [rbx + 0x110], 0
jne 0x14007fcd6
mov rcx, qword [rbx + 0x30]
mov byte [rbx + 0x110], 1
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [rbx + 0x28]
test rax, rax
jne 0x14007fced
cmp rbx, qword [0x14012ab88]
jne 0x14007fd14
test rax, rax
je 0x14007fcf3
lea rdx, [rax + 0x20]
jmp 0x14007fcfa
lea rdx, [0x14012ab88]
mov rcx, qword [rbx + 0x20]
lea r8, [rcx + 0x28]
test rcx, rcx
jne 0x14007fd0e
lea r8, [0x14012ae20]
mov qword [rdx], rcx
mov qword [r8], rax
mov rcx, rbx
mov qword [rbx + 0x30], 0
call fcn.14007fd70
cmp byte [rbx + 0x115], 0
je 0x14007fd36
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [0x14012ab58], 0
jne 0x14007fd60
lea rcx, [0x14012c670]
call fcn.140047060
test al, al
jne 0x14007fd60
mov edx, 4
lea rcx, [0x14012c670]
call fcn.140047480
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14008b890
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 [0x1401241d0], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
je 0x14008b8f6
cmp dword [0x14012ab2c], 0
jne 0x14008b8f6
movsxd r10, dword [rdx + 0x48]
test r10d, r10d
jle 0x14008b8f6
mov rax, qword [r14 + 0x38]
xor ecx, ecx
mov edx, dword [r8 + 0x10]
add rax, 0xe
nop dword [rax]
cmp dword [rax - 6], edx
jne 0x14008b8ea
cmp byte [rax], 1
je 0x14008b912
inc rcx
add rax, 0x10
cmp rcx, r10
jl 0x14008b8e0
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 [0x14012ab58]
cmp eax, dword [reloc.WSOCK32.dll_inet_addr]
jge 0x14008b8f6
mov rbx, qword [0x1401241d8]
cmp dword [rbx + 0x68], 0
jg 0x14008b8f6
inc eax
add rbx, 0xc8
mov dword [0x14012ab58], eax
mov rax, qword [0x14012ab30]
mov qword [0x1401241d8], rbx
test rax, rax
je 0x14008b958
lea rcx, [rax + 0x80]
jmp 0x14008b95a
xor ecx, ecx
test rbx, rbx
je 0x14008b968
lea rax, [rbx + 0x80]
jmp 0x14008b96a
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, [0x14012c670]
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.140046870
movzx eax, byte [rbx + 0xc2]
test al, al
jne 0x14008b9de
mov byte [rbx + 0xc2], al
cmp dword [0x14012ce24], 0
je 0x14008b9f0
cmp dword [0x14012ce20], 0
jne 0x14008b9f4
test al, al
je 0x14008ba2a
mov dword [rbx + 0x88], reloc.WSOCK32.dll_recv
mov byte [rbx + 0x7f], 0
test al, al
jne 0x14008ba2a
cmp dword [0x14012ce24], 0
jge 0x14008ba18
mov dword [rbx + 0x70], 0xffffffff
jmp 0x14008ba2a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x74], eax
mov eax, dword [0x14012ce24]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012ce28], 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.140098680
mov rdx, qword [rdi]
mov rcx, rdi
mov ebx, eax
call qword [rdx + reloc.WSOCK32.dll_recv]
call fcn.140004780
cmp ebx, 7
sete al
jmp 0x14008b8f8
Function at 0x14008baa0
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 0x14008bbb3
xor dil, dil
cmp word [rcx + 2], 0
je 0x14008baf3
movzx eax, word [rbx]
cmp ax, 0x21
je 0x14008bae3
cmp ax, 0x2b
je 0x14008badf
cmp ax, 0x5e
jne 0x14008baf3
mov al, 2
jmp 0x14008bae5
mov al, 1
jmp 0x14008bae5
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x14008bac6
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.140023240
movzx esi, al
test al, al
je 0x14008bbb3
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.140023150
movzx edx, ax
test ax, ax
jne 0x14008bb7e
xor edx, edx
movzx ecx, sil
call fcn.140023d90
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 0x14008d9e0
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 0x14008da00
cmp ax, 9
jne 0x14008da06
add rbx, 2
jmp 0x14008d9f1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x14008dc26
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14008da37
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x14008dc28
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400c0244
mov rbp, rax
test rax, rax
je 0x14008db18
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14008da78
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14008da6f
cmp ax, 9
jne 0x14008da78
sub rdi, 2
cmp rdi, rbx
ja 0x14008da60
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400c53a8
test eax, eax
jne 0x14008da9d
or sil, 1
jmp 0x14008dad7
mov r8, rdi
lea rdx, [0x1401054c0]
mov rcx, rbx
call fcn.1400c53a8
test eax, eax
jne 0x14008dab9
or sil, 4
jmp 0x14008dad7
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call fcn.1400c53a8
test eax, eax
jne 0x14008dc26
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14008daef
cmp ax, 9
jne 0x14008daf5
add rbx, 2
jmp 0x14008dae0
test ax, ax
je 0x14008dc26
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400c0244
mov rbp, rax
test rax, rax
jne 0x14008da53
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14008dbde
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 0x14008db46
mov dl, 0xd
jmp 0x14008dbf9
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 0x14008db97
cmp dl, 0xff
jne 0x14008db97
cmp bx, 0x5a
ja 0x14008db86
cmp bx, 0x41
jb 0x14008db9c
movzx edx, bl
cmp bx, 0x5a
ja 0x14008db95
cmp bx, 0x41
jb 0x14008db95
mov cl, 1
jmp 0x14008db97
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14008db9c
movzx edx, bl
and dl, 0xdf
xor cl, cl
test cl, 0x38
je 0x14008dba0
xor dl, dl
jmp 0x14008dbf9
movzx eax, cl
and al, 6
cmp al, 6
jne 0x14008dbaf
or sil, 8
jmp 0x14008dbcd
test cl, 2
je 0x14008dbbe
test sil, 3
jne 0x14008dbbe
or sil, 1
test cl, 4
je 0x14008dbcd
test sil, 0xc
jne 0x14008dbcd
or sil, 4
test cl, 1
je 0x14008dbf9
test sil, 0x30
jne 0x14008dbf9
or sil, 0x10
jmp 0x14008dbf9
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023240
movzx edx, al
movzx eax, dl
mov word [r14 + 2], ax
test sil, 1
je 0x14008dc0b
or byte [r14], 8
test sil, 4
je 0x14008dc15
or byte [r14], 0x10
test sil, 0x10
je 0x14008dc1f
or byte [r14], 4
test dl, dl
setne al
jmp 0x14008dc28
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 0x14009c4e0
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 0x14009c5d4
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 0x14009c5d4
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x14009c550
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x14009c577
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400de970
sub rsp, rax
lea r8, str.__s_
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400a1160
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 0x14009c5c2
cmp dword [rbp + 0x40], ebx
je 0x14009c5c5
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 0x14009d130
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 0x14009d23c
nop
mov rax, qword [0x1401241d8]
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 0x14009d249
mov rcx, qword [rsp + 0x270]
call fcn.14009d130
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14009d249
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x14009d249
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 0x14009d180
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 0x14009ed30
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 0x14009ed60
Capabilities:
Write 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_WriteFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14009edf0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor ecx, ecx
test eax, eax
cmovne rcx, qword [rsp + 0x30]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x1400a29e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400de970
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 0x1400a2a49
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x1400a2a49
lea r8, [rbx*2 + 2]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400e2370
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 0x1400a66e0
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 0x1400a676e
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 0x1400a6777
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 0x1400a6777
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400a6777
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a6777
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 0x1400a67db
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400a67db
add edi, esi
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x1400a67db
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400a67b0
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a8680
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1400a875d
mov eax, dword [rbx]
test eax, eax
je 0x1400a875d
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400a86bc
mov rax, qword [rbx + 0x38]
cmp word [rax], si
je 0x1400a86da
mov r8d, 0x7fff
lea rdx, [rbx + 0xc4]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400a86da
mov word [rbx + 0xc4], si
test byte [rbx], 4
je 0x1400a86f3
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0xc0]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400a872e
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400a872e
movzx r9d, byte [rbx + 0x78]
lea rdx, [rbx + 0x102c4]
mov ecx, dword [rsp + 0x30]
call fcn.140031b74
test eax, eax
jne 0x1400a872e
mov word [rbx + 0x102c4], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400a875d
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0x100c2]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400a8c10
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 [0x14012ae58], 0
mov rax, qword [0x1401241d8]
mov byte [rax + 0x7f], 1
je 0x1400a8ce8
movzx r8d, byte [0x14012ad79]
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 [0x14012ad77]
je 0x1400a8ce3
cmp r9d, 8
jne 0x1400a8cc6
movzx r8d, word [0x140124b94]
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.14001fa80
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 0
movzx edx, bl
xor ecx, ecx
call fcn.140021db0
mov rbx, qword [rsp + 0x30]
mov ecx, 0x4bf
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test ax, ax
je 0x1400a8d0c
mov edx, 1
lea ecx, [rdx - 2]
add rsp, 0x38
jmp fcn.1400016f0
add rsp, 0x38
ret
Function at 0x1400a9100
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x104f8
call fcn.1400de970
sub rsp, rax
xor r9d, r9d
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r9
lea rax, [0x140100be0]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x99], r9b
mov dword [rsp + 0x9c], r9d
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], r9
mov dword [rsp + 0xb8], r9d
movdqa xmmword [rsp + 0xd0], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], edx
mov dword [rsp + 0xcc], r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a9900]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0xa0], 0
je 0x1400a91b5
mov rax, qword [0x1401241d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a91b5
mov edx, 1
call fcn.1400016f0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c5338
add rsp, 0x104f8
ret