joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008e48
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
mov qword [rbx], rax
call fcn.140008db4
add rsp, 0x30
pop rbx
ret

Function at 0x140008f60
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140027b88]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
xor edi, edi
cmp dword [rbx + 0x10], edi
je 0x140008fbd
mov eax, dword [0x140027b90]
cmp dword [rbx + 0x10], eax
jne 0x140008fb4
mov rax, qword [rbx + 8]
mov rdx, qword [0x140027b88]
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140008fb0
add rax, 2
test r8d, r8d
jne 0x140008f9a
test ecx, ecx
je 0x140008fbd
mov rcx, qword [rbx + 8]
call fcn.140003d94
mov rax, qword [rbx + 8]
mov dword [rbx + 0x10], edi
mov rbx, qword [rsp + 0x30]
mov word [rax], di
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14000b560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000b5d6
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b5d6
mov rbx, qword [rsi + 8]
mov rdx, qword [0x140027af0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005e28
mov ecx, 0x2d
call fcn.140004a00
mov rcx, qword [rsi + 8]
mov edx, 0x4b2
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005e28
jmp 0x14000b5f5
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000a75c]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000bcd0
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000445c
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.140009a4c
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009a4c
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x2b0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x300]
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x300]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000a404]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000b858
mov rcx, rdi
mov ebx, eax
call fcn.14000ab54
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000fb40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
mov r10d, dword [r9]
xor esi, esi
mov r13, r9
and r10d, 7
mov r12d, r8d
mov rdi, rcx
mov r11d, esi
cmp rdx, 5
jae 0x14000fb7a
xor eax, eax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r13
pop r12
ret
mov qword [rsp + 0x20], rbp
mov ebp, dword [rsp + 0x38]
lea r9, [rcx + rdx - 4]
mov qword [rsp + 0x18], rbx
nop dword [rax]
lea rdx, [r11 + rdi]
cmp rdx, r9
jae 0x14000fbb1
nop dword [rax]
movzx eax, byte [rdx]
and al, 0xfe
cmp al, 0xe8
je 0x14000fbb1
inc rdx
cmp rdx, r9
jb 0x14000fba0
mov rax, rdx
sub rax, r11
mov r11, rdx
sub r11, rdi
sub rax, rdi
cmp rdx, r9
jae 0x14000fcac
cmp rax, 2
jbe 0x14000fc12
mov r10d, esi
movzx r8d, byte [rdx + 4]
lea eax, [r8 + 1]
test al, 0xfe
jne 0x14000fc3a
movzx eax, byte [rdx + 3]
shl r8d, 8
lea ebx, [r11 + r12 + 5]
or r8d, eax
movzx eax, byte [rdx + 2]
add r11, 5
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
test ebp, ebp
je 0x14000fc49
add r8d, ebx
jmp 0x14000fc4c
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x14000fbd2
cmp r10d, 4
ja 0x14000fc3a
cmp r10d, 3
je 0x14000fc3a
mov eax, r10d
shr eax, 1
inc eax
movzx ecx, byte [rax + rdx]
inc ecx
test cl, 0xfe
jne 0x14000fbd2
or r10d, 8
shr r10d, 1
inc r11
jmp 0x14000fb90
sub r8d, ebx
test r10d, r10d
je 0x14000fc82
and r10d, 6
mov eax, r8d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x14000fc7f
mov eax, 0x100
shl eax, cl
dec eax
xor r8d, eax
test ebp, ebp
je 0x14000fc7c
add r8d, ebx
jmp 0x14000fc7f
sub r8d, ebx
mov r10d, esi
mov eax, r8d
mov byte [rdx + 1], r8b
shr eax, 8
mov byte [rdx + 2], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
and r8b, 1
neg r8b
mov byte [rdx + 3], al
mov byte [rdx + 4], r8b
jmp 0x14000fb90
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
cmp rax, 2
ja 0x14000fcc4
mov ecx, eax
shr r10d, cl
mov esi, r10d
mov rdi, qword [rsp + 0x30]
mov dword [r13], esi
mov rsi, qword [rsp + 0x28]
mov rax, r11
pop r13
pop r12
ret

Function at 0x140014148
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140014178
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x140014178
xor al, al
jmp 0x14001418b
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140014200
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x1400279c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x140014200
Function at 0x140014234
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x1400279c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x140014200

Function at 0x140014268
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400279c0]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140014318
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140014198
test al, al
jne 0x140014342
xor al, al
jmp 0x140014357
cmp qword [rsp + 0x40], rdi
jne 0x14001433e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001eb60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
lea r10, [0x14002a160]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
inc edx
shr eax, 1
and ecx, 1
add r8, 4
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x14001eb72
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x14001ec60
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
dec r9
mov dword [r8 - 4], eax
jne 0x14001ec40
lea rax, [0x14001efc0]
lea rbx, [0x14001eed0]
mov qword [0x14002a140], rax
mov qword [0x14002c160], rax
mov qword [0x14002a138], rbx
call fcn.14001ed90
mov rcx, qword [0x14002c160]
test eax, eax
cmove rcx, rbx
mov qword [0x14002c160], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x14001f550
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
nop
cmp word [0x140000000], 0x5a4d
je 0x14001f58d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x14001f61b
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x14001f5b1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14001f61b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x14001f5f8
cmp ecx, 0x20b
je 0x14001f5d0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14001f61b
cmp dword [rax + 0x84], 0xe
ja 0x14001f5e4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14001f61b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x14001f61b
cmp dword [rax + 0x74], 0xe
ja 0x14001f609
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14001f61b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x14002c168], 0xffffffffffffffff
mov qword [0x14002c170], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x14002a134]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x14002a130]
mov dword [rcx], eax
call fcn.14001f970
cmp dword [0x140027a80], 0
jne 0x14001f675
lea rcx, [fcn.14001f970]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x140020830]
lea rcx, [0x140020828]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x14002a12c]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14002a128]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x140020820]
lea rcx, [0x140020748]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x14001f716
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x14001f706
cmp al, 0x22
je 0x14001f706
jmp 0x14001f6f0
cmp byte [r8], 0x22
jne 0x14001f726
inc r8
mov qword [rsp + 0x30], r8
jmp 0x14001f726
cmp byte [r8], 0x20
jbe 0x14001f726
inc r8
mov qword [rsp + 0x30], r8
jmp 0x14001f716
movzx eax, byte [r8]
test al, al
je 0x14001f73c
cmp al, 0x20
ja 0x14001f73c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x14001f726
test byte [rsp + 0x8c], 1
je 0x14001f751
movzx r9d, word [rsp + 0x90]
jmp 0x14001f757
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.140008d94
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x14001f773
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x14001f797
mov eax, edi
jmp 0x14001f7a0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x140005a29
Capabilities:
Create process on windows

Disassembly:
test rdx, rdx
je 0x140005b69
sub rsp, 0xd8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9, rdx
mov rax, qword [rcx + 0x50]
test rax, rax
je 0x140005b52
xor r10d, r10d
mov edx, r10d
mov r8, qword [rax + 0x10]
sub r8, qword [rax + 8]
sar r8, 3
test r8, r8
je 0x140005b52
mov rax, qword [rax + 8]
nop word [rax + rax]
mov rcx, qword [rax]
test rcx, rcx
je 0x140005a94
cmp dword [rcx + 0xa0], 0xfb4
je 0x140005aa6
inc rdx
add rax, 8
cmp rdx, r8
je 0x140005b52
jmp 0x140005a80
test rcx, rcx
je 0x140005b52
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r10
mov word [rsp + 0xa0], r10w
movsxd r8, dword [r9 + 0x30]
movsxd rdx, dword [r9 + 0x2c]
lea r9, [rsp + 0xa0]
call fcn.140101c70
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.14018f1e0
mov dword [rsp + 0x30], 0x70
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
mov r8, qword [rsp + 0xb8]
cmp r8, 8
jb 0x140005b52
inc r8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140003900
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140185a60
add rsp, 0xd8
ret
Function at 0x1400117b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0xf8], 0
mov rdi, rcx
jne 0x1400117ce
mov eax, 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov rbx, qword [rcx + 0xf8]
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rbx + 8], rax
jne 0x140011864
mov ecx, 0xa0
mov qword [rsp + 0x38], rsi
mov dword [rbx + 0x134], 0x1b0001
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
je 0x140011812
or word [rbx + 0x134], 4
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x14001182a
or word [rbx + 0x134], 8
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
mov rsi, qword [rsp + 0x38]
je 0x140011847
or word [rbx + 0x134], 0x10
mov rcx, rbx
call fcn.1401099f0
mov rcx, rdi
call fcn.1400110a0
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov edx, 6
mov rcx, rdi
call fcn.14002f1f0
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140014cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rdi, rcx
mov ecx, 0x100
call fcn.140185a94
mov rbx, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.14018f1e0
mov rcx, rbx
call fcn.1401003a0
mov dword [rbx + 0xf8], 3
lea rax, vtable.CSplitRangeMenu.0
mov qword [rbx], rax
mov qword [rdi + 0x100], rbx
mov ecx, 0x1c0
call fcn.140185a94
mov rbx, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x1c0
mov rcx, rax
call fcn.14018f1e0
mov rcx, rbx
call fcn.140115460
lea rax, vtable.CSplitUnitMenu.0
mov qword [rbx], rax
mov dword [rbx + 0x124], 5
mov dword [rbx + 0x128], 5
mov dword [rbx + 0x134], 5
mov dword [rbx + 0x130], InitCommonControls
mov qword [rdi + 0xf8], rbx
mov r9d, 1
mov r8d, 0xfe0
mov rdx, qword [rdi + 0x100]
mov rcx, qword [rdi + 0xf0]
call fcn.14010d4a0
mov dword [rsp + 0x20], 1
mov r8d, 0xfdd
mov rdx, qword [rdi + 0xf8]
mov rcx, qword [rdi + 0xf0]
call fcn.14010d360
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov r8, qword [0x140279680]
mov rdx, qword [0x140279678]
mov rcx, qword [rdi + 0x100]
call fcn.140024df0
mov rdx, qword [0x140279680]
mov rcx, qword [rdi + 0x100]
call fcn.140025180
mov rax, qword [rdi + 0xf0]
mov dword [rax + 0x128], 5
mov dword [rax + 0x12c], 5
mov rcx, qword [rdi + 0xf0]
mov rax, qword [rcx]
mov edx, 5
call qword [rax + 0x310]
mov rcx, qword [rdi + 0xf0]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.14010cc20
Function at 0x140016de0
Capabilities:
Log keystrokes via polling

Disassembly:
push r14
sub rsp, 0x20
mov rdx, qword [0x140278e80]
mov r14, r8
mov rax, qword [rdx + 0x2b8]
cmp rax, qword [rdx + 0x2c0]
je 0x140016e22
mov r8d, 0x7d6
mov rcx, qword [rax]
test rcx, rcx
je 0x140016e15
cmp word [rcx + 0x28], r8w
je 0x140016e2b
add rax, 8
cmp rax, qword [rdx + 0x2c0]
jne 0x140016e06
xor al, al
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbx
movzx ebx, word [rcx + 0x2c]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
movzx edi, word [rcx + 0x2a]
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
mov ecx, reloc.COMCTL32.dll_InitCommonControls
shr ebp, 0xf
and bpl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
mov ecx, InitCommonControls
shr esi, 0xf
and sil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edx, ax
shr edx, 0xf
and dl, 1
cmp r14, rbx
mov rbx, qword [rsp + 0x30]
jne 0x140016ed1
movzx ecx, dil
shr cl, 4
and cl, 1
cmp cl, bpl
jne 0x140016ed1
movzx eax, dil
shr al, 3
and al, 1
cmp al, sil
jne 0x140016ed1
shr dil, 2
and dil, 1
cmp dil, dl
jne 0x140016ed1
mov al, 1
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x140016ebb
Function at 0x140017d80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea eax, [rdx - 1]
mov dword [rcx + 0x4c], edx
test eax, 0xfffffffb
mov edi, edx
mov edx, 0x3e9
mov r8d, 2
setne sil
mov rbx, rcx
movzx r9d, sil
call fcn.140019c00
movzx r9d, sil
mov edx, 0x3ea
mov r8d, 3
mov rcx, rbx
call fcn.140019c00
cmp byte [0x140279fe0], 0
je 0x140017dee
movzx r9d, sil
mov edx, 0x3eb
mov r8d, 4
mov rcx, rbx
call fcn.140019c00
mov rcx, rbx
call fcn.140019cb0
mov rcx, rbx
call fcn.140019d50
test dword [0x14026fbe0], 0xfffffffd
jne 0x140017e35
cmp edi, 5
jne 0x140017e35
call fcn.140034c40
mov ecx, dword [0x14026fbe0]
sub ecx, 1
je 0x140017e24
cmp ecx, 2
jne 0x140017e35
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019200
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [r11 - 0x40], 7
xor eax, eax
mov qword [r11 - 0x48], rax
mov word [r11 - 0x58], ax
mov qword [r11 - 0x20], 7
mov qword [r11 - 0x28], rax
mov word [r11 - 0x38], ax
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x58]
xor ecx, ecx
call fcn.14007abe0
nop
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x14001927f
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140003900
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.14018f1e0
mov dword [rsp + 0x30], 0x70
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
mov r8, qword [rsp + 0xb8]
cmp r8, 8
jb 0x1400192f0
inc r8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140003900
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140185a60
add rsp, 0xf8
ret

Function at 0x140019310
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [r11 - 0x40], 7
xor eax, eax
mov qword [r11 - 0x48], rax
mov word [r11 - 0x58], ax
mov qword [r11 - 0x20], 7
mov qword [r11 - 0x28], rax
mov word [r11 - 0x38], ax
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x58]
lea ecx, [rax + 1]
call fcn.14007abe0
nop
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x140019390
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140003900
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.14018f1e0
mov dword [rsp + 0x30], 0x70
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
mov r8, qword [rsp + 0xb8]
cmp r8, 8
jb 0x140019401
inc r8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140003900
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140185a60
add rsp, 0xf8
ret
Function at 0x14001b270
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rbx, rcx
mov rsi, r9
xor ecx, ecx
mov rbp, r8
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x67
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 8]
mov edx, 0x80
mov r9, rax
mov rdi, rax
lea r8d, [rdx - 0x7f]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14001b2d3
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
test rdi, rdi
je 0x14001b2e1
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyIcon]
lea rcx, [rbx + 0xb8]
call fcn.14005ce30
mov rax, qword [rsp + 0xc8]
mov r9, rsi
mov qword [rsp + 0x58], rax
mov r8, rbp
mov eax, dword [rsp + 0xc0]
mov edx, r14d
mov dword [rsp + 0x50], eax
mov rcx, rbx
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
call fcn.1400fd520
test eax, eax
je 0x14001b404
mov rcx, rbx
call fcn.14001b430
lea rcx, [rbx + 0xb8]
call fcn.14005cf00
call fcn.14006d790
test al, al
jne 0x14001b3a4
lea rdx, [0x140279568]
lea rcx, [0x140279548]
call fcn.140067c50
test al, al
jne 0x14001b3a4
mov dl, 1
lea rcx, [rbx + 0xb8]
call fcn.140063940
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001b3b3
call qword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x14026fbe4], 0xffffffff
je 0x14001b3c1
call fcn.140037170
cmp dword [0x14026fbe0], 0xffffffff
je 0x14001b3ff
call fcn.1400336e0
call fcn.140034730
call fcn.140034000
call fcn.140033800
mov ecx, dword [0x14026fbe0]
sub ecx, 1
je 0x14001b3ee
cmp ecx, 2
jne 0x14001b3ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14001dae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rdx
mov rbx, rcx
xor edx, edx
cmp r8, 7
ja case.0x14001db06.5
lea rcx, [0x140000000]
mov eax, dword [rcx + r8*4 + 0x1dba0]
add rax, rcx
jmp rax
mov qword [0x140279638], rdx
jmp case.0x14001db06.5
mov qword [0x140279638], 1
jmp case.0x14001db06.5
mov qword [0x140279638], 3
jmp case.0x14001db06.5
mov qword [0x140279638], 2
jmp case.0x14001db06.5
mov qword [0x140279638], 4
jmp case.0x14001db06.5
mov qword [0x140279640], rdx
jmp case.0x14001db06.5
mov qword [0x140279640], 1
mov rcx, qword [0x1402791e8]
lea rax, [r8 - 6]
cmp rax, 1
setbe dl
add rcx, 0xb8
add edx, 0xb91
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x14001db97
add rsp, 0x20
pop rbx
jmp fcn.14010cc20
add rsp, 0x20
pop rbx
ret