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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, qword [rdi + 0xc8]
cmp rax, rcx
je 0x1800f03fd
cmp rbx, qword [rdi + 0x168]
je 0x1800f03fd
call qword [sym.imp.USER32.dll_SetFocus]
mov rax, qword [rdi + 0x168]
cmp rbx, rax
je 0x1800f051c
test rax, rax
je 0x1800f047a
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call fcn.18014be70
mov dword [rsp + 0x30], 0x17
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x270]
mov rdx, qword [rdi + 0x168]
lea r8, str.killfocus
xor r9d, r9d
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
call fcn.1800efe5c
and qword [rdi + 0x168], 0
test rbx, rbx
je 0x1800f051c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp rax, rdi
jne 0x1800f051c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1f0]
test al, al
je 0x1800f051c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x1800f051c
xor edx, edx
mov qword [rdi + 0x168], rbx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call fcn.18014be70
mov dword [rsp + 0x30], 0x18
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x270]
mov rdx, qword [rdi + 0x168]
lea r8, str.setfocus
mov byte [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
mov rcx, rdi
call fcn.1800efe5c
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1800f3bb0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x278]
sub rsp, 0x360
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rsi, rcx
call fcn.18007c950
mov rcx, rax
mov edi, 0xfffffff0
mov edx, edi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
and ebx, 0xff3fffff
or ebx, 0x6000000
mov rcx, rsi
call fcn.18007c950
mov rcx, rax
mov r8d, ebx
mov edx, edi
call qword [sym.imp.USER32.dll_SetWindowLongW]
lea r14, [rsi + 0x58]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x60]
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, r14
call fcn.1800eb4ac
mov rax, rsi
lea rcx, [rsi + 0x40]
neg rax
sbb rdx, rdx
and rdx, rcx
mov rcx, r14
call fcn.1800ea574
lea rcx, [rbp + 0xf0]
call fcn.180119744
nop
mov rax, qword [rsi]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [rax + 0x50]
nop
lea rcx, [rbp - 0x30]
call fcn.1800f28cc
lea rdx, [rsp + 0x40]
mov rcx, rsi
test al, al
mov rax, qword [rsi]
jne 0x1800f3ce8
call qword [rax + 0x58]
nop
mov rcx, rax
call fcn.18007c880
mov rcx, rax
call fcn.1801532f8
movzx ebx, ax
lea rcx, [rsp + 0x40]
call fcn.1800f1f54
mov rax, rsi
lea rcx, [rsi + 0x48]
neg rax
sbb rdi, rdi
and rdi, rcx
lea rcx, [rbp - 0x30]
call fcn.18007c880
mov r8, rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
mov r9, rdi
mov edx, ebx
lea rcx, [rbp + 0xf0]
call fcn.18011a7a8
mov rbx, rax
jmp 0x1800f3d2e
call qword [rax + 0x58]
nop
mov rcx, rax
call fcn.18007c880
mov rcx, rsi
lea rdx, [rsi + 0x48]
neg rcx
sbb r9, r9
and r9, rdx
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.18011a7a8
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1800f1f54
test rbx, rbx
jne 0x1800f3d98
or r8d, 0xffffffff
lea rdx, [0x18018b7a0]
lea rcx, [rsp + 0x40]
call fcn.1800f1e2c
nop
mov rax, qword [rsi]
lea rdx, [rbp + 0x60]
mov rcx, rsi
call qword [rax + 0x58]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800f20fc
nop
lea rcx, [rbp + 0x60]
call fcn.1800f1f54
lea rcx, [rsp + 0x40]
call fcn.18007c880
mov rdx, rax
lea r9d, [rbx + 0x10]
lea r8, str.Duilib
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rdx, rbx
mov rcx, r14
call fcn.1800ea654
mov rax, rsi
lea r8, [rsi + 0x38]
neg rax
sbb rdx, rdx
and rdx, r8
mov rcx, r14
call fcn.1800ea490
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + gethostname]
nop
lea rcx, [rbp - 0x30]
call fcn.1800f1f54
nop
lea rcx, [rbp + 0xf0]
call fcn.1801184ac
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.180147bf0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800f786c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1800f78b0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800f78b0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x1800f7961
mov rcx, rdi
mov rdx, rdi
cmp ax, 0x2f
je 0x1800f78ce
cmp ax, 0x5c
jne 0x1800f78d1
mov rcx, rdx
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x1800f78c2
cmp rcx, rdi
je 0x1800f7920
sub rcx, rdi
mov rdx, rdi
sar rcx, 1
lea rsi, [rcx + rcx]
mov r8, rsi
lea rcx, [rsp + 0x230]
call fcn.18014ba10
cmp rsi, 0x208
jae 0x1800f7984
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.1800f786c
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x1800f7937
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.18015ca3c
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.18015ca10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800f7961
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180147bf0
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
call fcn.1801485b8
int3

Function at 0x1800f7fa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r14d, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x1800f806e
cmp dword [rcx + 8], 0xffffffff
jne 0x1800f806e
lea rdi, [rcx + 0x250]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rdi
call fcn.18015ca58
movzx ecx, word [rbx + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x1800f8012
cmp cx, 0x2f
je 0x1800f8012
lea rdx, [0x1801b330c]
mov rcx, rdi
call fcn.18015ca10
mov r9d, 1
cmp esi, r9d
jne 0x1800f8037
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800f8037
mov eax, 0x2000000
jmp 0x1800f8073
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r14d
mov rcx, rbp
call fcn.1800fa920
test rax, rax
jne 0x1800f8055
mov eax, dword [rsp + 0x40]
jmp 0x1800f8073
mov rcx, rax
call fcn.1800fb140
mov qword [rbx], rax
neg rax
sbb eax, eax
not eax
and eax, 0x200
jmp 0x1800f8073
mov eax, 0x1000000
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800f85d4
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movsx rax, dl
mov r8d, r9d
xor r8, rax
shr r9d, 8
movzx eax, r8b
lea r8, [0x18018d4e0]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
add eax, dword [rcx + 4]
mov edx, dword [r10 + 8]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r10 + 4], ecx
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [r10 + 8], eax
ret

Function at 0x1800faa58
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
imul r8d, edx
mov rdi, r9
cmp byte [r9], 0
mov rsi, rdx
mov r10, rcx
je 0x1800faa9f
and qword [rax - 0x18], 0
lea r9, [rax + 0x10]
mov rdx, rcx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800faa99
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1800faacb
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
lea eax, [rdx + r8]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r8d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r10
call fcn.18014ba10
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x1800fac39
xor eax, eax
jmp 0x1800facaa
lea rdi, [0x18018d4e0]
not r9d
cmp r8d, 8
jb 0x1800fac7f
mov r11d, r8d
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
inc r10
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x1800fac55
add r8d, 0xfffffff8
sub r11, 1
jne 0x1800fac50
test r8d, r8d
je 0x1800faca4
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
inc r10
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x1800fac84
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1801106e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, eax
mov ecx, eax
and r11d, 7
je 0x180110719
cmp eax, r11d
jge 0x18011070b
mov rcx, rbx
call fcn.18010b5c8
mov eax, dword [rbx + 0x10]
mov ecx, r11d
shr dword [rbx + 0x14], cl
sub eax, r11d
mov dword [rbx + 0x10], eax
mov ecx, eax
xor edx, edx
test eax, eax
jle 0x180110747
mov r8d, dword [rbx + 0x14]
lea r9, [rsp + 0x30]
mov al, byte [rbx + 0x14]
inc edx
mov byte [r9], al
inc r9
lea eax, [rcx - 8]
shr r8d, 8
mov dword [rbx + 0x14], r8d
mov ecx, eax
test eax, eax
jg 0x180110728
mov dword [rbx + 0x10], eax
jns 0x18011075a
lea rcx, str.zlib_corrupt
call fcn.18010b4c4
jmp 0x1801107ff
movsxd rax, edx
cmp rax, 4
jge 0x180110785
mov rcx, qword [rbx]
cmp rcx, qword [rbx + 8]
jb 0x180110770
xor dl, dl
jmp 0x180110778
mov dl, byte [rcx]
inc rcx
mov qword [rbx], rcx
mov byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 4
jl 0x180110766
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180110749
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1801107ca
lea rcx, str.read_past_buffer
jmp 0x180110750
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1801107e4
mov rcx, rbx
call fcn.1801142e0
test eax, eax
je 0x1801107ff
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.18014ba10
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180117ee8
Capabilities:
Log keystrokes via polling

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
xor r14d, r14d
mov rbp, r9
mov rdi, r8
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x708], r14
je 0x180117f96
cmp edx, 0x100
jne 0x180117f70
cmp di, 0xd
jne 0x180117f70
cmp byte [rcx + 0x712], r14b
je 0x180117f47
lea ecx, [r14 + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180117f70
cmp byte [rbx + 0x713], r14b
jne 0x180117f70
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x180117f6c
mov byte [rsp + 0x28], r14b
lea r8, str.return
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rdx, rbx
call fcn.1800efe5c
xor eax, eax
jmp 0x180117f9b
mov rax, qword [rbx + 0x708]
mov r9, rbp
mov r8, rdi
mov edx, esi
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
call qword [r10 + 0x18]
jmp 0x180117f9b
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18011a7a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, rdx
mov r12, r9
shr rax, 0x10
mov r14, r8
mov rbx, rdx
mov rdi, rcx
test ax, ax
je 0x18011a7f9
cmp word [rdx], 0x3c
je 0x18011a7f9
call fcn.1800eb2e0
mov rcx, rax
mov rdx, rbx
call fcn.1800ff780
test rax, rax
cmovne rbx, rax
mov rax, rbx
shr rax, 0x10
test ax, ax
je 0x18011a847
cmp word [rbx], 0x3c
mov rdx, rbx
mov rcx, rdi
jne 0x18011a818
call fcn.180118790
jmp 0x18011a820
xor r8d, r8d
call fcn.1801187fc
test al, al
jne 0x18011a8d8
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rbp, qword [rdi + 0x158]
test rbp, rbp
jne 0x18011a85b
call fcn.1800eb408
mov rbp, rax
mov r8, r14
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x18011a828
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
jne 0x18011a891
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x18011a828
mov rdx, rsi
mov qword [rdi + 0x148], r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.180118b48
test al, al
je 0x18011a828
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rdi + 0x150], r14
mov r9, qword [rsp + 0x78]
mov rdx, r12
mov r8, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180119774
jmp 0x18011a82a
Function at 0x1801219f8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rdi, rdx
mov rbx, rcx
call qword [rax + 0x218]
test al, al
jne 0x180121a44
mov eax, dword [rdi]
sub eax, 9
cmp eax, 0xc
ja 0x180121a44
mov rcx, qword [rbx + 0x740]
mov rdx, rdi
test rcx, rcx
jne 0x180121c3a
mov rcx, rbx
call fcn.18011b16c
jmp 0x180121c4a
cmp dword [rdi], 0x13
jne 0x180121a73
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x180121c4a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, rbx
call fcn.180123eb4
jmp 0x180121c4a
cmp dword [rdi], 3
mov ebp, InitCommonControls
jne 0x180121a93
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x180121a93
cmp word [rdi + 0x1c], bp
je 0x180121a5d
cmp dword [rdi], ebp
jne 0x180121aea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x180121c4a
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
lea rbx, [rbx + 0x728]
mov rdi, qword [rbx]
and ax, cx
mov rcx, rbx
je 0x180121ae0
call qword [rdi + 0x20]
test al, al
mov rcx, rbx
sete dl
call qword [rdi + 0x30]
jmp 0x180121c4a
mov dl, 1
call qword [rdi + 0x28]
jmp 0x180121c4a
mov rcx, qword [rbx + 0x740]
test rcx, rcx
je 0x180121b0a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rax + 0x470], 0
je 0x180121b0a
cmp dword [rdi], 0xf
je 0x180121a97
cmp dword [rdi], 0xe
jne 0x180121b49
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x180121c4a
mov byte [rsp + 0x28], 0
lea r8, str.itemclick
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbx + 0x58]
mov rdx, rbx
call fcn.1800efe5c
jmp 0x180121c4a
cmp dword [rdi], 9
je 0x180121c4a
cmp dword [rdi], 0xb
jne 0x180121bb4
mov rcx, rbx
call fcn.18012375c
test al, al
je 0x180121b94
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x180121b94
mov rcx, qword [rbx + 0x58]
lea r8, str.itemmouseenter
mov byte [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
mov rdx, rbx
call fcn.1800efe5c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x180121c4a
or dword [rbx + 0x738], 8
jmp 0x180121a66
cmp dword [rdi], 0xa
jne 0x180121bd5
mov eax, dword [rbx + 0x738]
test al, 8
je 0x180121c4a
and eax, 0xfffffff7
mov dword [rbx + 0x738], eax
jmp 0x180121a66
cmp dword [rdi], 0x1b
jne 0x180121bf8
mov rax, qword [rdi + 0x28]
lea r8, str.timer
mov r9, qword [rdi + 0x20]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
jmp 0x180121b38
cmp dword [rdi], 0x14
jne 0x180121c2b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1c0]
test al, al
je 0x180121c2b
mov rax, qword [rdi + 0x28]
lea r8, str.menu
mov r9, qword [rdi + 0x20]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
jmp 0x180121b38
mov rcx, qword [rbx + 0x740]
mov rdx, rdi
test rcx, rcx
je 0x180121c42
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x180121c4a
mov rcx, rbx
call fcn.1800f4d9c
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180121fac
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rdi, rdx
mov rbx, rcx
call qword [rax + 0x218]
test al, al
jne 0x180121ff1
mov eax, dword [rdi]
sub eax, 9
cmp eax, 0xc
ja 0x180121ff1
mov rcx, qword [rbx + 0x5b8]
mov rdx, rdi
test rcx, rcx
je 0x1801220e9
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x1801220f1
mov rcx, qword [rbx + 0x5b8]
test rcx, rcx
je 0x180122064
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rax + 0x470], 0
je 0x180122064
cmp dword [rdi], 0xf
jne 0x180122064
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x1801220f1
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
lea rbx, [rbx + 0x5a0]
mov rdi, qword [rbx]
and ax, cx
mov rcx, rbx
je 0x18012205a
call qword [rdi + 0x20]
test al, al
mov rcx, rbx
sete dl
call qword [rdi + 0x30]
jmp 0x1801220f1
mov dl, 1
call qword [rdi + 0x28]
jmp 0x1801220f1
cmp dword [rdi], 0xd
je 0x180122011
cmp dword [rdi], 0xe
jne 0x1801220a1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x1801220f1
mov rcx, qword [rbx + 0x58]
lea r8, str.itemclick
mov byte [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
mov rdx, rbx
call fcn.1800efe5c
jmp 0x1801220f1
cmp dword [rdi], 9
je 0x1801220f1
cmp dword [rdi], 0xb
jne 0x1801220cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x1801220f1
or dword [rbx + 0x5b0], 8
mov rcx, rbx
call fcn.180123eb4
jmp 0x1801220f1
cmp dword [rdi], 0xa
jne 0x1801220e6
mov eax, dword [rbx + 0x5b0]
test al, 8
je 0x1801220f1
and eax, 0xfffffff7
mov dword [rbx + 0x5b0], eax
jmp 0x1801220c2
mov rdx, rdi
mov rcx, rbx
call fcn.180121c5c
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1801225ec
Capabilities:
Log keystrokes via polling

Disassembly:
sub rcx, 0x728
jmp method.DuiLib::CListUI.virtual_632
Function at 0x1801304b8
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rdi
mov rax, qword [0x18020d140]
xor rax, rbp
mov qword [rbp], rax
cmp byte [rcx + 0x30], 0
mov rdi, rcx
je 0x18013059d
cmp qword [rcx + 0x20], 0
je 0x18013059d
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 1]
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180130518
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180148c40
sub rsp, rcx
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x18013059d
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x20]
mov rdx, rbx
add rcx, 0x1f0
call fcn.1800f203c
mov rbx, qword [rdi + 0x20]
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + gethostname]
mov byte [rsp + 0x28], 0
lea r8, str.textchanged
and qword [rsp + 0x20], 0
mov rcx, rax
xor r9d, r9d
mov rdx, rbx
call fcn.1800efe5c
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
call qword [rax + gethostname]
mov rcx, rax
call fcn.1800eb768
test al, al
je 0x18013059d
mov rcx, qword [rdi + 0x20]
call fcn.1800f57d0
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.180147bf0
mov rbx, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x28]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x180136b2c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x180136bcd
xor edx, edx
lea rcx, [rsp + 0x1d0]
mov r8d, 0xff
call fcn.18014be70
mov edx, 0xff
lea rcx, [rsp + 0x1d0]
call sub.WS2_32.dll_gethostname
lea rcx, [rsp + 0x1d0]
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x180136bcd
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x20]
mov r8d, 4
mov rdx, qword [rdx]
call fcn.18014ba10
movzx ecx, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x20]
shl eax, 8
add eax, ecx
movzx ecx, byte [rsp + 0x22]
shl eax, 8
add eax, ecx
movzx ecx, byte [rsp + 0x23]
shl eax, 8
add eax, ecx
jmp 0x180136bcf
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x2e8
ret

Function at 0x18013c5c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rcx, 0x728
jmp method.DuiLib::CMenuUI.virtual_632

Function at 0x180141478
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx]
mov rdi, rdx
sub eax, 0xd
mov rbx, rcx
test eax, 0xfffffff7
jne 0x180141499
call fcn.1801423f4
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.DuiLib::CListUI.virtual_632

Function at 0x1801414b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rcx, 0x728
jmp method.DuiLib::CListExUI.virtual_632
Function at 0x180144470
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ecx, ecx
mov qword [rsp + 0x20], rdx
mov edi, r8d
mov rsi, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov ecx, edi
mov r8, rax
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ebx, eax
cmp edi, 0x21
jb 0x1801444cc
cmp edi, 0x28
jbe 0x1801444c8
lea eax, [rdi - 0x2d]
cmp eax, 1
ja 0x1801444cc
bts ebx, 8
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.18014be70
shl ebx, 0x10
lea rdx, [rsp + 0x30]
mov ecx, ebx
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
or r8d, 0xffffffff
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1800f1e2c
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180147bf0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret