joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800869a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.180180df0
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180086a45
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180086a45
call fcn.180085d60
mov ebx, eax
jmp 0x180086b67
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180086a66
call fcn.180085d60
jmp 0x180086b56
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180086a89
call fcn.180085d60
jmp 0x180086b56
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180086aab
mov ebx, 0x8007000e
jmp 0x180086b58
mov ecx, eax
test eax, eax
je 0x180086ae0
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180086b9f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180086ae0
lea rcx, [rsp + 0x70]
call fcn.18008a280
jmp 0x180086aea
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180086afd
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x180086b0e
mov ebx, 0x8007000e
jmp 0x180086b58
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180086b33
call fcn.180085d60
jmp 0x180086b56
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.1800879b0
mov ebx, eax
test rdi, rdi
je 0x180086b67
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180086b7e
lea rcx, [rsp + 0x70]
call fcn.18008a270
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18017e6e0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800845a0
int3
Function at 0x18008b000
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx], rax
mov rdi, r8
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, VarUI4FromDisp
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
lea rcx, [rsp + 0x24]
call fcn.180180df0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18008b07f
cmp dword [rsp + 0x24], 6
mov eax, 0x48
jae 0x18008b084
mov eax, 0x40
mov rcx, rdi
mov dword [rbx], eax
mov dword [rbx + 4], 0
call qword [sym.imp.USER32.dll_GetParent]
or dword [rbx + 4], 1
mov qword [rbx + 8], rax
mov rax, rbx
mov qword [rbx + 0x10], rdi
mov rcx, qword [0x18026f060]
mov qword [rbx + 0x28], rcx
mov rcx, qword [rsp + 0x188]
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x38], 0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017e6e0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret

Function at 0x18008fac0
Capabilities:
Log keystrokes via polling

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 r14, qword [rsp + 0x60]
mov rsi, rcx
mov ecx, 0x12
mov rbp, r9
mov r15, r8
mov dword [r14], 0
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x10
shr ebx, 5
and ebx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x11
or edi, 1
and al, 0x80
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [rsi + 8]
mov ebx, edi
or ebx, 2
and al, 0x80
mov rax, qword [rcx]
cmove ebx, edi
call qword [rax + 0x10]
test rax, rax
je 0x18008fb5b
mov r10, qword [rax]
mov r9d, ebx
mov r8d, ebp
mov edx, r15d
mov rcx, rax
call qword [r10 + VarUI4FromDisp]
test al, al
je 0x18008fb5b
mov dword [r14], 1
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18008fb80
Capabilities:
Log keystrokes via polling

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 r14, qword [rsp + 0x60]
mov r15, rcx
mov ecx, 0x12
mov rsi, r9
mov rbp, r8
mov dword [r14], 0
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x10
shr ebx, 5
and ebx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x11
or edi, 1
and al, 0x80
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [r15 + 8]
mov ebx, edi
or ebx, 2
and al, 0x80
mov rax, qword [rcx]
cmove ebx, edi
call qword [rax + 0x10]
test rax, rax
je 0x18008fc13
mov r10, qword [rax]
mov r9d, ebx
mov r8d, esi
mov edx, ebp
mov rcx, rax
call qword [r10 + 0x108]
test al, al
jne 0x18008fc2f
cmp dword [r14], 0
jne 0x18008fc36
mov rcx, qword [r15 + 8]
mov r9d, ebx
mov r8d, esi
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
je 0x18008fc36
mov dword [r14], 1
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18009de90
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, dword [rsp + 0x90]
mov rdi, rdx
mov rsi, rcx
lea rdx, [rsp + 0x34]
mov rcx, rdi
mov r14, r9
mov rbp, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov qword [rsp + 0x28], 0
mov r8d, ebx
mov dword [rsp + 0x30], eax
mov rcx, rdi
mov rax, qword [rsp + 0x30]
cmp rax, rbp
cmovb rax, rbp
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
shr rax, 0x20
mov dword [rsp + 0x20], edx
mov r9d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x18009df16
call fcn.180085d60
jmp 0x18009df80
mov rax, qword [rsp + 0x30]
mov r8, r14
mov edx, dword [rsp + 0x98]
sub rax, r14
test rbp, rbp
mov qword [rsp + 0x28], 0
mov r9d, r14d
cmove rbp, rax
shr r8, 0x20
mov qword [rsi + 8], rbp
mov rcx, qword [rsi + 0x10]
mov dword [rsi + 0x20], edx
mov qword [rsi + 0x18], r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rsi], rax
test rax, rax
jne 0x18009df7e
call fcn.180085d60
mov rcx, qword [rsi + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [rsi + 0x10], 0
jmp 0x18009df80
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017e6e0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18009f190
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x18009f1ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x48]
mov qword [rbx + 0x38], 0
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbx + 0x250]
cmp qword [rcx], 0
je 0x18009f1d1
add rsp, 0x20
pop rbx
jmp fcn.1800a0630
add rsp, 0x20
pop rbx
ret
Function at 0x18009f790
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rcx
mov rdi, qword [rcx + 0x258]
test rdi, rdi
je 0x18009f7ea
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18009f7ea
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
nop
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x18009f7ea
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdi, [rbx + 0x38]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rdi]
xor esi, esi
test rcx, rcx
je 0x18009f812
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi], rsi
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov qword [rsp + 0x48], rdi
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009f829
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi], rsi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18009f878
mov rax, qword [rbx + 0x28]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
cmp rdx, 0x1000
jb 0x18009f866
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18009f8da
mov rcx, r8
call fcn.18017ebfc
nop
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009f8ca
mov rdx, qword [rbx + 8]
call fcn.18009c5c0
nop
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x18009f8b9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18009f8e0
mov rcx, r8
call fcn.18017ebfc
nop
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.18018341c
nop
call fcn.18018341c
nop
int3
Function at 0x18009fac0
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x40
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov qword [r11 - 0x20], rcx
lea rax, vtable.RC::RCMiniUIGifSkin.0
mov qword [rcx], rax
xor ebp, ebp
mov qword [r11 - 0x18], rbp
mov rdi, qword [rcx + 8]
mov qword [r11 - 0x18], rdi
test rdi, rdi
je 0x18009fb1e
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009fb1e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x18009fb7d
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.18009c5c0
nop
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rsi, qword [rbx + 0x20]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18009fb6a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rsi + 0x38], rbp
lea rcx, [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsi + 0x250]
cmp qword [rcx], 0
je 0x18009fb7d
call fcn.1800a0630
nop
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x14], 0x64
mov dword [rbx + 0x1c], ebp
test rdi, rdi
je 0x18009fba4
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009fb9f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov qword [rsp + 0x30], rbp
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x18009fbc8
mov rcx, rdi
call fcn.18009f790
nop
mov edx, 0x260
mov rcx, rdi
call fcn.18017ebfc
nop
mov qword [rbx + 0x20], rbp
mov rcx, rbx
call fcn.1800be230
nop
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017e6e0
nop
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18009fed0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x18009ff24
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009ff24
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x18009ff7f
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.18009c5c0
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rsi, qword [rbx + 0x20]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18009ff6d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbp
lea rcx, [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsi + 0x250]
cmp qword [rcx], 0
je 0x18009ff7f
call fcn.1800a0630
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x14], 0x64
mov dword [rbx + 0x1c], ebp
test rdi, rdi
je 0x18009ffa5
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009ffa0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], rbp
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017e6e0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1800a1b10
Capabilities:
Get file version info

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1802717f0]
test eax, eax
jne 0x1800a1bf2
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x40], rdi
lea rcx, str.mshtml.dll
mov dword [rsp + 0x28], eax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x1800a1bd7
mov edx, edi
mov qword [rsp + 0x50], rbx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1800a1bd2
mov edx, dword [rsp + 0x28]
lea rcx, str.mshtml.dll
mov r9, rax
mov r8d, edi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1800a1bc9
lea r9, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
lea rdx, [0x1801e1e40]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1800a1bc9
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 0xa]
mov dword [0x1802717f0], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
mov eax, dword [0x1802717f0]
mov ecx, 6
mov rdi, qword [rsp + 0x40]
test eax, eax
cmove eax, ecx
mov dword [0x1802717f0], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017e6e0
add rsp, 0x48
ret
Function at 0x1800a7880
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov r8d, edx
lea rdx, [rsp + 0x50]
call fcn.1800a7f20
nop
xor ebp, ebp
cmp qword [rsp + 0x60], rbp
jne 0x1800a78cd
xor dil, dil
jmp 0x1800a79ee
mov qword [rsp + 0x30], rbp
mov ecx, 8
call fcn.18017e70c
mov qword [rsp + 0x48], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.18001b5c0
mov rbx, qword [rsp + 0x30]
test al, al
je 0x1800a79be
test rbx, rbx
je 0x1800a79be
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a79a4
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800a7953
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a79a4
mov ecx, dword [rsp + 0x48]
shl rcx, 0x20
mov eax, edi
add rcx, rax
mov edi, ecx
mov edx, ecx
mov rcx, rsi
call fcn.18009efa0
mov dword [rsp + 0x40], ebp
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x1800a79a4
cmp qword [rbx], 0xffffffffffffffff
je 0x1800a79be
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a79a4
cmp dword [rsp + 0x40], edi
jne 0x1800a79a4
mov dil, 1
jmp 0x1800a79c1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a79be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800a79be
mov qword [rbx], 0xffffffffffffffff
xor dil, dil
test rbx, rbx
je 0x1800a79ee
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800a79dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rbp
mov edx, 8
mov rcx, rbx
call fcn.18017ebfc
mov qword [rsp + 0x30], rbp
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1800a7a2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a7a27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a7a63
call fcn.18017ebfc
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bp
movzx eax, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18017e6e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
call fcn.18018341c
int3
Function at 0x1800b3570
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, r8d
mov r15, rdx
mov rsi, rcx
cmp qword [rcx + 8], 0
je 0x1800b3725
call fcn.1800b37e0
mov rcx, r15
call qword [sym.imp.IMM32.dll_ImmGetContext]
mov rbx, rax
test rax, rax
je 0x1800b3725
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
bt edi, 0xb
jae 0x1800b36bd
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, rax
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
movsxd r14, eax
test eax, eax
jle 0x1800b36bd
mov rdi, r14
shr rdi, 1
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x28]
call fcn.1800145f0
mov r8, qword [rbp - 0x18]
cmp rdi, r8
ja 0x1800b3648
mov qword [rbp - 0x18], rdi
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov word [rax + rdi*2], r12w
jmp 0x1800b369e
mov rdx, rdi
sub rdx, r8
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, r8
cmp rdx, rax
ja 0x1800b368c
mov qword [rbp - 0x18], rdi
lea r9, [rbp - 0x28]
cmp rcx, 8
cmovae r9, qword [rbp - 0x28]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1800b3681
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r12w
jmp 0x1800b369e
mov word [rsp + 0x20], r12w
mov r9, rdx
lea rcx, [rbp - 0x28]
call fcn.1800b3910
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
mov r9d, r14d
mov edx, 0x800
mov rcx, rbx
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800b3714
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b370f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b374a
call fcn.18017ebfc
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18017e6e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.18018341c
int3

Function at 0x1800bb610
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
cmp qword [rdx + 0x10], 0
je 0x1800bb629
cmp qword [rdx + 0x18], 8
jb 0x1800bb621
mov rdx, qword [rdx]
mov rcx, rdx
jmp fcn.180017ea0
ret
Function at 0x1800d3170
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x128], 0
mov esi, r9d
mov r14d, r8d
mov edi, edx
mov rbx, rcx
je 0x1800d33f5
lea eax, [rdx - 8]
cmp eax, 0x52
ja case.0x1800d31ca.9
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0xd3438]
mov ecx, dword [rdx + rax*4 + 0xd3418]
add rcx, rdx
jmp rcx
mov eax, esi
and al, 2
neg al
sbb edx, edx
and edx, 0x7ed
jmp 0x1800d321a
mov eax, esi
and al, 2
neg al
sbb edx, edx
and edx, 0x7ea
jmp 0x1800d321a
mov eax, esi
and al, 2
neg al
sbb edx, edx
and edx, 0x7eb
jmp 0x1800d321a
mov eax, esi
and al, 2
neg al
sbb edx, edx
and edx, 0x7e9
jmp 0x1800d321a
mov eax, esi
and al, 2
neg al
sbb edx, edx
and edx, 0x7e8
test edx, edx
jne 0x1800d3312
mov bpl, 1
cmp edi, 9
je 0x1800d33f5
cmp edi, 0xd
je 0x1800d33cc
lea eax, [rdi - 0x23]
cmp eax, 2
jbe 0x1800d3360
cmp edi, 0x27
je 0x1800d3360
cmp byte [rbx + 0x11c], 0
jne 0x1800d3354
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
test al, al
je 0x1800d3354
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1c0]
test al, al
jne 0x1800d3354
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.180180df0
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, 1
jne 0x1800d33ef
xor eax, eax
movzx edx, r14w
lea r9, [rsp + 0x30]
mov word [rsp + 0x30], ax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov ecx, edi
call qword [sym.imp.USER32.dll_ToAscii]
cmp byte [rbx + 0x11e], 0
movzx ecx, word [rsp + 0x30]
je 0x1800d3321
call fcn.180189040
test eax, eax
je 0x1800d33ef
movzx edx, word [rsp + 0x30]
mov rcx, rbx
call fcn.1800d36e0
movzx eax, bpl
jmp 0x1800d33f7
mov edx, 0x7ec
mov rcx, rbx
call fcn.1800d4a80
mov al, 1
jmp 0x1800d33f7
mov edx, 0x7ee
mov rcx, rbx
call fcn.1800d4a80
mov al, 1
jmp 0x1800d33f7
call fcn.180189040
test eax, eax
jne 0x1800d32e3
movzx ecx, word [rsp + 0x30]
call fcn.180188fc4
test eax, eax
jne 0x1800d32e3
movzx ecx, word [rsp + 0x30]
call fcn.18018919c
test eax, eax
jne 0x1800d32e3
movzx ecx, word [rsp + 0x30]
call fcn.180189128
test eax, eax
jne 0x1800d32e3
xor bpl, bpl
movzx eax, bpl
jmp 0x1800d33f7
cmp byte [rbx + 0x11c], 0
jne 0x1800d33ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
test al, al
je 0x1800d33ef
and sil, 1
cmp edi, 0x23
jb 0x1800d33ef
cmp edi, 0x24
jbe 0x1800d339c
lea eax, [rdi - 0x25]
test eax, 0xfffffffd
jne 0x1800d33ef
xor dl, dl
cmp edi, 0x25
jmp 0x1800d339e
mov dl, 1
mov rcx, qword [rbx + 0x128]
sete r8b
movzx r9d, sil
call fcn.1800ee3f0
mov rcx, rbx
call fcn.1800d4f90
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x140]
movzx eax, bpl
jmp 0x1800d33f7
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x1800d33ef
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbx + 0xf0]
mov rdx, rbx
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bpl
jmp 0x1800d33f7
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18017e6e0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret