joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c8e0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x190
mov r9d, dword [rcx]
mov rsi, rdx
movsxd rdi, r8d
mov r14, rcx
test r9d, r9d
je 0x14002cafd
sub r9d, 2
je 0x14002caf4
sub r9d, 1
je 0x14002caeb
sub r9d, 1
je 0x14002c940
cmp r9d, 1
je 0x14002c934
lea rax, [0x1400f9b70]
jmp 0x14002cb04
lea rax, [0x140100348]
jmp 0x14002cb04
test rsi, rsi
je 0x14002cae2
movzx eax, word [rcx + 0x68]
mov qword [rsp + 0x1a8], rbp
test ax, ax
je 0x14002c977
xor ebp, ebp
mov word [rdx], ax
mov word [rdx + 2], bp
lea rax, [0x1400ff830]
mov rbp, qword [rsp + 0x1a8]
jmp 0x14002cb04
cmp byte [rcx + 0x6b], 0
mov qword [rsp + 0x1a0], rbx
je 0x14002ca47
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x100
call fcn.1400bae40
mov byte [rsp + 0xa0], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
mov ebx, ebp
test rax, rax
je 0x14002c9ef
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14002c9ef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002c9ef
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x65]
mov ebx, ebp
cmp dword [0x140122aac], ebx
mov rdi, rax
setne bl
xor edx, edx
call fcn.140023e30
movzx ecx, byte [r14 + 0x65]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14002cad2
xor ebp, ebp
mov word [rdx], bp
cmp byte [rcx + 0x6a], bpl
je 0x14002ca9f
movzx edx, word [rcx + 0x66]
lea rax, [0x14011c2d8]
mov ecx, ebp
lea r8, [0x14011c3a8]
cmp word [rax], dx
je 0x14002ca78
inc ecx
add rax, 0x10
cmp rax, r8
jl 0x14002ca66
jmp 0x14002ca9f
movsxd rdx, ecx
lea rax, [0x14011c2d0]
add rdx, rdx
lea r8, [rdi - 1]
mov rcx, rsi
mov rdx, qword [rax + rdx*8]
call fcn.1400cd4c4
mov word [rsi + rdi*2 - 2], bp
cmp word [rsi], bp
jne 0x14002cad2
cmp byte [r14 + 0x6a], bpl
mov r8d, edi
movzx ecx, byte [r14 + 0x65]
mov rdx, rsi
sete r9b
call fcn.140022ee0
cmp word [rsi], bp
jne 0x14002cad2
movzx r9d, word [r14 + 0x66]
lea r8, [0x1400ffc28]
mov edx, edi
mov rcx, rsi
call fcn.14009abe0
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
lea rax, [0x1400ff830]
jmp 0x14002cb04
lea rax, [0x1400ff880]
jmp 0x14002cb04
lea rax, [0x1400ff8f8]
jmp 0x14002cb04
lea rax, [0x140100350]
lea r11, [rsp + 0x190]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140045cc0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x2e8], 0
mov rbx, rcx
je 0x140045e67
mov r8, qword [0x14011c188]
movzx ecx, byte [0x140122d9d]
test dl, dl
jne 0x140045d0e
cmp byte [rbx + 0x810], dl
jne 0x140045e67
movzx eax, byte [0x140125e49]
cmp byte [r8 + 0x7c], al
jne 0x140045d0e
cmp cl, byte [0x140125e48]
je 0x140045e67
movzx edx, byte [r8 + 0x7c]
mov qword [rsp + 0x48], rdi
test dl, dl
je 0x140045d2d
xor edi, edi
test cl, cl
setne dil
add rdi, 0xcf
jmp 0x140045d3c
test cl, cl
mov edi, 0x9f
mov eax, 0xce
cmovne edi, eax
mov rax, qword [rbx + 0x800]
test rax, rax
je 0x140045d61
cmp byte [rbx + 0x810], 0
jne 0x140045e14
test dl, dl
jne 0x140045d61
test cl, cl
je 0x140045e14
mov eax, dword [0x140126048]
mov qword [rsp + 0x40], rsi
mov qword [rbx + 0x300], 0
test al, 1
jne 0x140045da8
or eax, 1
lea rcx, [0x1401003b0]
mov dword [0x140126048], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140108788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140126050], rax
mov ecx, gethostbyaddr
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp qword [0x140126050], 0
mov esi, eax
je 0x140045dea
xor edx, edx
lea rcx, [0x140101080]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [0x140126050]
mov r8d, dword [0x14012458c]
mov ecx, esi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov rcx, qword [0x140122b10]
mov r9d, esi
mov dword [rsp + 0x28], 0x8000
mov r8d, 1
mov rdx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_LoadImageW]
mov rsi, qword [rsp + 0x40]
lea rdx, [rbx + 0x2e0]
mov qword [rbx + 0x300], rax
mov ecx, 1
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x140045e49
lea rdx, [rbx + 0x2e0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x140045e67
mov rax, qword [0x14011c188]
movzx ecx, byte [rax + 0x7c]
movzx eax, byte [0x140122d9d]
mov byte [0x140125e48], al
mov byte [0x140125e49], cl
add rsp, 0x30
pop rbx
ret
Function at 0x140052d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.1400d8050
sub rsp, rax
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x30]
mov r9, r8
mov rbx, rdx
lea r8, [0x140103ef8]
mov edx, 0x8001
call fcn.14009abe0
lea rcx, [rsp + 0x30]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140052df4
test al, 0x10
je 0x140052df4
lea ecx, [rdi + 0xfd]
movsxd rcx, ecx
lea rcx, [rcx*2 + 0xa]
call fcn.140097680
mov rcx, rax
test rax, rax
je 0x140052e0f
mov qword [rbx], rax
lea rdx, [rsp + 0x30]
lea eax, [rdi + 1]
movsxd r8, eax
add r8, r8
call fcn.1400ba140
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea rax, [0x1400f9b70]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
call fcn.140011050
int3
Function at 0x140052e20
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r13
push r14
sub rsp, 0x230
mov rax, qword [rsp + 0x280]
xor ebx, ebx
cmp qword [0x140125e18], rbx
mov r13, r9
mov rsi, r8
mov byte [r9], 0
mov r14, rdx
mov rdi, rcx
mov byte [rax], 0
lea rax, [0x140125e18]
jne 0x140052ee4
mov r8, qword [rcx + 0x758]
lea r9, [0x140103ec0]
mov rdx, rax
call fcn.140052d60
lea r9, [rsp + 0x270]
xor r8d, r8d
mov edx, 0x4000
lea rcx, [0x1400de0f0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
lea r9, [0x140103ed0]
lea rdx, [0x140125e28]
cmovns rbx, qword [rsp + 0x270]
mov r8, rbx
call fcn.140052d60
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8, qword [rdi + 0x778]
lea r9, [0x140103ec0]
lea rdx, [0x140125e38]
call fcn.140052d60
xor ebx, ebx
lea rax, [0x140125e18]
test rsi, rsi
jne 0x140052efb
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x140052ef0
cmp rsi, 0xfd
ja 0x14005305d
mov qword [rsp + 0x268], rbp
mov qword [rsp + 0x228], r12
mov r12d, ebx
mov qword [rsp + 0x220], r15
mov r15, r14
nop word [rax + rax]
mov ebp, ebx
mov rbx, rax
mov rcx, qword [rbx]
cmp word [rcx], 0
je 0x140052f83
mov rax, qword [rbx + 8]
lea rdi, [rsi + rsi]
mov r8, rdi
mov rdx, r15
lea rcx, [rcx + rax*2]
call fcn.1400ba140
movsd xmm0, qword [0x140102600]
movsd qword [rdi + rax], xmm0
lea rcx, [rdi + rax]
movzx eax, word [0x140102608]
mov word [rcx + 8], ax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140052f83
test al, 0x10
je 0x140052ff1
inc ebp
add rbx, 0x10
cmp ebp, 3
jl 0x140052f35
mov edx, 0x5f
mov rcx, r14
call fcn.1400ba088
mov rsi, rax
test rax, rax
je 0x140053045
sub rsi, r14
sar rsi, 1
cmp rsi, 0xfe
jae 0x140053045
lea rbx, [rsi + rsi]
mov rdx, r14
mov r8, rbx
lea rcx, [rsp + 0x20]
lea r15, [rsp + 0x20]
call fcn.1400ba140
xor ecx, ecx
inc r12d
mov word [rsp + rbx + 0x20], cx
cmp r12d, 2
jge 0x140053045
xor ebx, ebx
lea rax, [0x140125e18]
jmp 0x140052f30
mov rax, qword [rsp + 0x280]
xor ecx, ecx
movsxd rdx, ebp
xor r9d, r9d
add rdx, rdx
xor r8d, r8d
mov byte [rax], 1
mov rax, qword [0x14011c188]
mov rbx, qword [rax + 0x28]
mov qword [rax + 0x28], rcx
lea rax, [0x140125e18]
mov rdx, qword [rax + rdx*8]
mov rcx, qword [rsp + 0x260]
call fcn.140047990
test eax, eax
jne 0x14005303a
mov byte [r13], 1
mov rax, qword [0x14011c188]
mov qword [rax + 0x28], rbx
mov r12, qword [rsp + 0x228]
mov rbp, qword [rsp + 0x268]
mov r15, qword [rsp + 0x220]
add rsp, 0x230
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005dbe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
lea r8, [0x140104620]
mov edx, 0xfffe
call fcn.14009abe0
mov r9, qword [rsp + 0x90]
lea r10, [0x140000000]
mov r8d, dword [0x140122f84]
mov ebp, 0x190
movsxd rdx, eax
mov r11d, 2
mov dword [rsp + 0x98], 0xffffffff
mov eax, r8d
lea rcx, [r9 + rdx*2]
mov qword [rsp + 0xa8], rcx
nop dword [rax + rax]
xor r12b, r12b
mov r13, rcx
test ebp, ebp
jle 0x14005de25
mov edx, ebp
mov esi, r11d
mov qword [rsp + 0xa0], rdx
movsxd rcx, eax
nop
cmp eax, 0x190
lea rdi, [rcx - 0x190]
lea r14d, [rax - 0x190]
cmovl rdi, rcx
cmovl r14d, eax
cmp qword [r10 + rdi*8 + 0x1235d0], 0
je 0x14005ddfa
movzx r15d, r12b
lea eax, [rsi - 1]
xor r12b, r12b
cmp eax, ebp
jge 0x14005dd24
test r15b, r15b
jne 0x14005ddfa
mov r8d, dword [r10 + rdi*4 + 0x122f90]
lea eax, [r14 + 1]
xor edx, edx
lea rcx, [rdi + 1]
cmp eax, 0x190
cmovl rdx, rcx
mov ebx, dword [r10 + rdx*4 + 0x122f90]
sub ebx, r8d
cmp ebx, 0x7fffffff
jbe 0x14005dd43
mov r12b, 1
cmp esi, ebp
jne 0x14005dcff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea r10, [0x140000000]
sub ebx, dword [r10 + rdi*4 + 0x122f90]
jmp 0x14005dd3b
lea rax, [rdi + 2]
mov rcx, 0xfffffffffffffe72
cmp rax, 0x190
cmovl rcx, r11
add rcx, rdi
mov ebx, dword [r10 + rcx*4 + 0x122f90]
sub ebx, r8d
jmp 0x14005dd43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea r10, [0x140000000]
sub ebx, dword [r10 + rdi*4 + 0x122f90]
mov r9, qword [rsp + 0x90]
mov rax, qword [r10 + rdi*8 + 0x1235d0]
movzx ecx, word [rax + 2]
cmp dword [rsp + 0x98], ecx
je 0x14005dd98
mov edx, 0xfffe
mov dword [rsp + 0x98], ecx
mov rax, r13
lea r8, [0x140104828]
sub rax, r9
mov r9, qword [0x140122f78]
sar rax, 1
sub edx, eax
mov r9, qword [r9 + rcx*8]
mov rcx, r13
call fcn.14009abe0
movsxd rcx, eax
lea r10, [0x140000000]
lea r13, [r13 + rcx*2]
mov rcx, qword [r10 + rdi*8 + 0x1235d0]
mov r8d, 0xc8
mov r9d, 0xfffe
mov byte [rsp + 0x30], 1
mov rax, r13
mov byte [rsp + 0x28], r15b
sub rax, qword [rsp + 0x90]
mov rdx, r13
sar rax, 1
sub r9d, eax
mov dword [rsp + 0x20], ebx
cmp r9d, r8d
cmovl r8d, r9d
call fcn.14005de80
mov rdx, qword [rsp + 0xa0]
lea r10, [0x140000000]
mov r9, qword [rsp + 0x90]
mov r13, rax
mov r11d, 2
inc esi
lea eax, [r14 + 1]
sub rdx, 1
lea rcx, [rdi + 1]
mov qword [rsp + 0xa0], rdx
jne 0x14005dc70
mov r8d, dword [0x140122f84]
mov rcx, qword [rsp + 0xa8]
mov rax, r13
mov edx, 0xfffe
sub rax, r9
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x14005de51
cmp ebp, 0x78
jl 0x14005de51
sub ebp, 0x64
mov eax, r8d
sub eax, ebp
add eax, 0x190
jmp 0x14005dc50
lea r8, [0x140104840]
mov rcx, r13
call fcn.14009abe0
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005eb90
Capabilities:
Get graphical window text

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, 0x450
mov r14, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
test rax, rax
je 0x14005ebd4
lea r8d, [rbp + 0x64]
mov rcx, rax
lea rdx, [rsp + 0x180]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14005ebdc
mov word [rsp + 0x180], bp
mov rbx, qword [0x140124cc8]
mov rsi, 0xffffffffffffffff
mov word [rsp + 0x80], bp
test rbx, rbx
je 0x14005ecb8
nop dword [rax + rax]
cmp byte [rbx + 0x16], bpl
je 0x14005ec52
mov rcx, qword [rbx]
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
mov dword [rsp + 0x20], ebp
xor edx, edx
call fcn.1400d8ab4
test rax, rax
je 0x14005ec2d
mov rax, qword [rax + 0x20]
jmp 0x14005ec36
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r9, rax
lea r8, [0x140104a88]
mov edx, 0x7d
lea rcx, [rsp + 0x80]
call fcn.14009ac80
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14005ec00
cmp word [rsp + 0x80], bp
je 0x14005ecb8
lea rcx, [rsp + 0x80]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bp
jne 0x14005ec70
cmp rax, 0x7b
jbe 0x14005ecab
lea rdi, [rsp + 0x80]
mov ebx, 0x7f
lea rdi, [rdi + rax*2]
sub rbx, rax
mov r8, rbx
lea rdx, [0x1401010f0]
mov rcx, rdi
call fcn.1400cd4c4
mov word [rdi + rbx*2], bp
jmp 0x14005ecb8
cmp word [rsp + rax*2 + 0x7e], 0x20
jne 0x14005ecb8
mov word [rsp + rax*2 + 0x7e], bp
mov rax, qword [0x140122ab0]
cmp byte [rax + 0x7c], bpl
je 0x14005ecd3
cmp byte [0x140124d3d], bpl
mov ebx, 1
je 0x14005ecd5
mov ebx, ebp
mov eax, dword [0x140122abc]
cmp eax, 1
jle 0x14005ece3
lea ebp, [rax - 1]
mov cl, 1
call fcn.1400226c0
movzx ecx, al
lea rdx, [rsp + 0x250]
call fcn.140022af0
mov edx, dword [0x140122abc]
lea r11, [0x1400fe9a0]
mov r10d, dword [0x140122ab8]
lea r8, [0x140104a90]
mov qword [rsp + 0x70], rax
lea r9, [0x1400fe998]
mov eax, dword [0x140122aec]
lea rcx, [0x1400f9b70]
mov dword [rsp + 0x68], eax
sub r10d, ebx
mov dword [rsp + 0x60], edx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x58], r10d
cmp edx, 1
mov edi, 0xfffe
cmovg rcx, r8
mov edx, edi
cmp qword [0x140122dc8], 0
mov r8, r9
mov qword [rsp + 0x50], rcx
mov rcx, r14
mov dword [rsp + 0x48], ebp
cmove r8, r11
cmp qword [0x140122dd0], 0
mov qword [rsp + 0x40], rax
mov eax, dword [0x140124cd8]
cmove r9, r11
mov dword [rsp + 0x38], eax
mov eax, dword [0x140124cdc]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x140104b10]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x180]
call fcn.14009abe0
movsxd rcx, eax
mov edx, edi
sub edx, ecx
lea rbx, [r14 + rcx*2]
mov rcx, rbx
call fcn.1400177b0
nop word [rax + rax]
cmp word [rbx + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x14005edd0
cmp qword [0x140122b00], 0
lea rax, [0x140104840]
lea rbx, [rbx + rsi*2]
lea r8, [0x140104c80]
mov rcx, rbx
cmovne r8, rax
mov rax, rbx
sub rax, r14
sar rax, 1
sub edi, eax
mov edx, edi
call fcn.14009abe0
lea r11, [rsp + 0x450]
movsxd rcx, eax
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret
Function at 0x140060dd0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set current directory

Disassembly:
push rbx
push rbp
sub rsp, 0x458
mov rbp, rcx
mov rbx, rdx
mov rcx, qword [0x140124d28]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne r8b
mov byte [rbx], r8b
jne 0x140060f8d
mov qword [rsp + 0x470], rsi
mov qword [rsp + 0x450], rdi
xor edi, edi
mov esi, edi
nop word [rax + rax]
mov r9d, esi
lea rax, [rsp + 0x480]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140105448]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140060f6c
mov rcx, qword [rsp + 0x480]
lea rax, [rsp + 0x478]
mov qword [rsp + 0x28], rax
lea rdx, [0x140105430]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x478], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x480]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140060f6c
mov edx, dword [rsp + 0x478]
test edx, edx
je 0x140060f6c
shr edx, 1
mov ecx, edx
dec edx
mov dword [rsp + 0x478], edx
cmp word [rsp + rdx*2 + 0x30], di
jne 0x140060f01
test edx, edx
je 0x140060f73
mov ecx, edx
mov r8d, edx
nop dword [rax + rax]
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rsp + rax*2 + 0x30], di
jne 0x140060f17
mov dword [rsp + 0x478], eax
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140060ee0
jmp 0x140060f17
mov dword [rsp + 0x478], ecx
cmp ecx, 0x104
jae 0x140060f6c
mov word [rsp + rcx*2 + 0x30], di
mov edx, ecx
test edx, edx
je 0x140060f73
mov rsi, qword [rsp + 0x470]
movzx eax, word [rsp + rdi + 0x30]
mov word [rsp + rdi + 0x240], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x140060f23
mov rdi, qword [rsp + 0x450]
test edx, edx
je 0x140060f81
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x458
pop rbp
pop rbx
ret
mov word [rsp + 0x30], di
mov edx, edi
test esi, esi
jne 0x140060f1b
mov esi, 0x200
jmp 0x140060e20
xor al, al
add rsp, 0x458
pop rbp
pop rbx
ret
mov al, 1
add rsp, 0x458
pop rbp
pop rbx
ret
Function at 0x140060fa0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x150
movzx edi, dl
lea rbp, [0x1400f9b70]
lea rdx, [rax + 8]
mov rbx, rcx
mov rsi, rcx
call fcn.140060dd0
test al, al
je 0x140061098
test dil, dil
je 0x14006100c
cmp byte [rsp + 0x160], 0
je 0x14006100c
mov r9, rbx
lea r8, [0x1401052b0]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14009abe0
mov rsi, qword [0x140124d20]
lea rbp, [rsp + 0x50]
mov byte [rsp + 0x40], 0
lea rcx, [0x1401245b0]
xor edi, edi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8, rbp
mov rdx, rsi
mov byte [rsp + 0x20], dil
call fcn.14005ee40
test eax, eax
jne 0x140061075
mov r9, rbx
lea r8, [0x1401052c8]
lea edx, [rdi + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.14009abe0
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0xd0]
call fcn.1400a1a40
mov rax, qword [0x14011eb00]
lea rcx, [0x1400f9b70]
test rax, rax
je 0x140061092
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400628a0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400628d8
cmp word [rcx + 2], 0x3a
jne 0x1400628d8
cmp word [rcx + 4], 0
jne 0x1400628d8
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x32], 0x5c003a
mov word [rsp + 0x36], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1400628f0
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x140124d3c], 0
je 0x140062901
mov rcx, rbx
call fcn.140062910
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140062910
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d8050
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14006293d
lea rbx, [rsp + 0x20]
jmp 0x140062942
test rbx, rbx
je 0x140062951
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.14005f930
add rsp, 0x10020
pop rbx
ret

Function at 0x140062960
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400d8050
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140062993
lea rcx, [rsp + 0x20]
call fcn.1400ca890
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x140088340
Capabilities:
Get keyboard layout
Log keystrokes via polling

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

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