joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c448
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c497
cmp eax, 0xea
jne 0x40c4f9
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40c4cf
mov rcx, qword [rbx]
test rcx, rcx
je 0x40c4b3
call sub.msvcrt.dll_free
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40c4cf
mov rcx, rdi
call fcn.0040377c
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40c504
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor esi, esi
mov r12, r8
mov r15, rdx
cmp dword [r8 + 8], esi
mov rbp, rsi
jbe 0x40c545
mov r9, qword [r8]
mov r8d, dword [r8 + 8]
mov rax, qword [r9]
add r9, 8
mov eax, dword [rax + 8]
inc eax
add rbp, rax
dec r8
jne 0x40c531
cmp rbp, rsi
mov rbx, rsi
je 0x40c55a
lea rcx, [rbp + rbp]
call fcn.0040377c
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40c598
mov r13, rsi
mov rax, qword [r12]
lea rcx, [rbx + rsi*2]
mov rdx, qword [r13 + rax]
mov eax, dword [rdx + 8]
mov rdx, qword [rdx]
inc eax
mov edi, eax
lea r8, [rax + rax]
call sub.msvcrt.dll_memcpy
inc r14d
add rsi, rdi
add r13, 8
cmp r14d, dword [r12 + 8]
jb 0x40c567
mov rcx, qword [rsp + 0x80]
lea eax, [rbp + rbp]
mov r9d, 3
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40d814
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40d856
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x40d944
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rdx]
xor ebx, ebx
mov rbp, rcx
mov dword [rdx + 8], ebx
mov word [rax], bx
mov rcx, qword [rcx]
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
mov esi, eax
je 0x40d9af
cmp eax, dword [rdi + 0xc]
jbe 0x40d97c
mov edx, eax
mov rcx, rdi
call fcn.004024f4
mov rdx, qword [rdi]
mov rcx, qword [rbp]
lea r8d, [rsi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
cmp esi, eax
cmova esi, eax
mov eax, ebx
mov word [rcx + rsi*2], bx
jmp 0x40d9a3
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40d99d
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40d9bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40d9be
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4244fc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rbp, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x30], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x20], rax
xor edi, edi
cmp rax, rdi
je 0x4246cd
mov dword [rsp + 0xb0], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x42459f
lea rcx, [rsp + 0xb0]
call rax
cmp eax, edi
jne 0x424748
mov esi, edi
cmp dword [rsp + 0xb0], edi
jbe 0x4246cd
mov eax, dword [r12 + 0x20]
dec eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, 3
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.00423578
cmp eax, edi
jne 0x424748
lea rax, [rsp + 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, 2
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.00423578
cmp eax, edi
jne 0x424748
mov rax, qword [rbp + 0x20]
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], di
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x5a], dil
mov byte [rsp + 0x5b], dil
lea r8, [rsp + 0x38]
mov edx, 0xa
mov ecx, esi
call rax
mov ebx, eax
cmp eax, edi
je 0x42464a
lea rcx, [rsp + 0x38]
call fcn.0040b660
jmp 0x424676
cmp word [rsp + 0x38], 0xb
jne 0x424663
mov byte [rsp + 0x5b], 1
cmp word [rsp + 0x40], di
setne byte [rsp + 0x5a]
jmp 0x42466a
cmp word [rsp + 0x38], di
jne 0x4246ba
lea rcx, [rsp + 0x38]
call fcn.0040b660
mov ebx, edi
cmp ebx, edi
jne 0x4246c9
lea rcx, [r12 + 0x60]
call fcn.00423b74
mov ecx, dword [r12 + 0x68]
lea eax, [rcx + 1]
mov dword [r12 + 0x68], eax
imul rcx, rcx, 0x2c
add rcx, qword [r12 + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
inc esi
cmp esi, dword [rsp + 0xb0]
jae 0x4246cd
jmp 0x4245ae
lea rcx, [rsp + 0x38]
call fcn.0040b660
mov ebx, 0x80004005
mov eax, ebx
jmp 0x424748
lea rdx, str.GetHashers
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x424746
lea rcx, [rbp + 0x40]
call rax
cmp eax, edi
jne 0x424748
mov rcx, qword [rbp + 0x40]
cmp rcx, rdi
je 0x424746
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
cmp eax, edi
jbe 0x424746
mov ecx, dword [r12 + 0x20]
dec ecx
mov dword [rsp + 0xb0], ecx
mov dword [rsp + 0xb4], edi
lea rcx, [r12 + 0x70]
call fcn.00431004
mov r11d, dword [r12 + 0x78]
lea eax, [r11 + 1]
mov dword [r12 + 0x78], eax
mov rcx, qword [r12 + 0x70]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + r11*8], rax
inc edi
cmp edi, esi
jb 0x424702
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x434bc8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov rax, rsp
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r9
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov dword [rax + 0x40], 0
mov edi, dword [rdx]
cmp byte [rdx + 4], 0
je 0x434c44
mov edi, 1
lea r8d, [rdi + 2]
lea rdx, [rax - 0x30]
mov rcx, rbp
call fcn.00434ba8
nop
mov rcx, qword [rsp + 0x28]
call fcn.00409d5c
test al, al
je 0x434c3a
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_GetDriveTypeW
cmp eax, 5
je 0x434c38
cmp eax, 2
jne 0x434c3a
mov edi, dword [rsi]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rcx, rbp
call fcn.00402e28
lea r12d, [rax + 1]
mov rax, qword [rbp]
lea rdx, [rax + r12*2]
mov rcx, r13
call fcn.00402a7c
mov rcx, rbx
call fcn.00402868
mov dword [rsp + 0x98], 1
dec edi
je 0x434cb5
dec edi
je 0x434ca7
mov rcx, rbx
call fcn.00406548
test al, al
jne 0x434cdc
mov dword [rsp + 0xa0], 0x22995
lea rdx, [0x004cba30]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, [rsi + 8]
mov rcx, rbx
call fcn.00402ae4
jmp 0x434cdc
mov r8d, r12d
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.0041192c
nop
mov rdx, rax
mov rcx, rbx
call fcn.00402ae4
nop
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rcx, rbx
call fcn.00409ce4
mov rax, rbx
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x45067c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov rdi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, word [rbx + 0x18]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp ecx, 8
je 0x4506d0
mov rcx, rdi
call fcn.0044f664
Function at 0x45a5d4
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rax, r8
lea rdx, [rsp + 0x58]
mov r9, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
lea r8, [0x0045a568]
xor ebx, ebx
mov rdx, rax
mov rcx, r10
mov dword [rsp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp eax, ebx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x45a774
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov rcx, rdx
call fcn.0040a484
mov esi, eax
mov rcx, rbp
call fcn.0040a484
mov edi, eax
xor ebx, ebx
cmp esi, 1
je 0x45a7eb
cmp eax, 1
je 0x45a7eb
mov dword [rsp + 0x20], 2
mov r9, r13
lea r8, [0x0045a568]
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
cmp eax, ebx
je 0x45a7dc
mov al, 1
jmp 0x45a8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x45a8aa
cmp esi, ebx
jne 0x45a7f7
cmp edi, ebx
je 0x45a8aa
cmp dword [r13 + 0x20], ebx
je 0x45a804
xor al, al
jmp 0x45a8c4
lea rcx, [rsp + 0x48]
call fcn.00402868
nop
lea rcx, [rsp + 0x38]
call fcn.00402868
nop
cmp esi, 1
je 0x45a828
cmp edi, 1
je 0x45a828
mov al, 1
jmp 0x45a82a
mov al, bl
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, r12
call fcn.0040ab98
cmp al, bl
jne 0x45a854
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
jmp 0x45a887
mov dword [rsp + 0x20], 2
mov r9, r13
lea r8, [0x0045a568]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
cmp eax, ebx
je 0x45a895
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov bl, 1
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x45a8c4
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x45a8b9
xor al, al
jmp 0x45a8c4
mov rdx, rbp
mov rcx, r12
call fcn.00405f74
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x45c450
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
movsxd rbx, dword [rcx + 8]
mov r12, rdx
mov rsi, rcx
test ebx, ebx
mov rdi, rbx
je 0x45c498
shl rdi, 3
mov rax, qword [rsi]
sub rdi, 8
add ebx, 0xffffffff
mov rbp, qword [rdi + rax]
test rbp, rbp
je 0x45c494
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x45c470
mov dword [rsi + 8], 0
mov dword [r12], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp bx, ax
jne 0x45c4d5
movzx ecx, ax
mov rdx, rsi
mov eax, ecx
and ecx, 0x3ff
shr eax, 0xa
mov dword [r12], eax
call fcn.0045c2f4
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4609b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x38
mov eax, edx
mov r12, r9
mov rdi, r8
sub eax, 0x100
mov r13d, edx
mov rsi, rcx
je 0x460a9f
sub eax, 2
je 0x460a6e
cmp eax, 2
jne 0x460a82
cmp r8, 0x70
jb 0x460a82
cmp r8, 0x71
ja 0x460a82
bt r9, 0x1d
jae 0x460a82
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r14w, ax
shr r14d, 0xf
and r14b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
je 0x460a82
cmp r14b, dl
jne 0x460a82
cmp r11b, dl
jne 0x460a82
mov rax, qword [rsi + 0x10]
cmp rdi, 0x70
mov rcx, qword [rax + 0x58]
setne dl
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x460b61
cmp r8, 9
je 0x460b61
cmp r8, 0x1b
je 0x460b61
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
mov r9, rdi
mov r8d, r13d
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x460b63
cmp r8, 9
je 0x460b50
cmp r8, 0x57
je 0x460b18
cmp r8, 0x78
jne 0x460a82
lea ecx, [r8 - 0x66]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r14w, ax
shr r14d, 0xf
and r14b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
jne 0x460a82
cmp r14b, dl
jne 0x460a82
cmp r11b, dl
jne 0x460a82
lea rcx, [0x004ce7b0]
call fcn.0044add0
jmp 0x460b61
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
je 0x460a82
mov rcx, qword [0x004ce768]
xor r9d, r9d
mov edx, 0x111
lea r8d, [r9 + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x460b61
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0xa8]
call qword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
add rsp, 0x38
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x46cdc4
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12, rcx
lea rcx, [rsp + 0x20]
call fcn.004029f4
nop
mov dx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.00402df4
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.00402e28
xor ebx, ebx
cmp edi, ebx
jl 0x46ce13
cmp edi, eax
jge 0x46ce1d
lea rcx, [rsp + 0x20]
call fcn.00403290
mov dword [rsp + 0x60], 0x70
mov dword [rsp + 0x64], 0x140
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.004029f4
nop
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.004029f4
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], rbx
mov eax, dword [rsp + 0x48]
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x40]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x90], 1
mov qword [rsp + 0xc8], rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [rsp + 0x98]
mov rax, qword [rsp + 0xc8]
mov qword [rbp], rax
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
cmp edi, 0x20
ja 0x46cf07
cmp edi, 0x1f
jne 0x46cf00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.00405b24
lea r9d, [rdi - 0xf]
lea r8, [0x004995f8]
mov rdx, qword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov ebx, 0x80004005
jmp 0x46cf07
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4775d4
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
jne 0x477636
xor edx, edx
cmp dil, dl
je 0x477641
cmp bl, dl
jne 0x477641
mov rcx, rsi
call fcn.0047a228
jmp 0x47764b
xor dl, dl
cmp dil, dl
jne 0x477641
cmp bl, dl
je 0x477643
mov dl, 1
mov rcx, rsi
call fcn.00474998
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x47952c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [r8]
xor r14d, r14d
cmp rcx, r14
je 0x479567
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov qword [rsi], r14
mov rcx, qword [rdi]
cmp rcx, r14
je 0x479578
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov qword [rdi], r14
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov r12w, ax
shr r12d, 0xf
and r12b, 1
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.00474698
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.004610f8
mov r13d, eax
mov rcx, rbx
call fcn.00460ebc
cmp al, r14b
jne 0x479606
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x38]
mov r8b, r12b
mov rdx, rbp
mov rcx, rbx
call fcn.004791f0
cmp byte [0x004ce7b8], r14b
je 0x479606
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
mov r8b, r12b
mov rdx, rbp
mov rcx, rbx
call fcn.00479018
mov byte [rsp + 0x58], r14b
mov byte [rsp + 0x59], r14b
mov byte [rsp + 0x5a], r14b
mov byte [rsp + 0x5b], r14b
mov byte [rsp + 0x5c], r14b
mov byte [rsp + 0x5d], 1
mov dword [rsp + 0x60], r14d
lea rcx, [rsp + 0x68]
call fcn.00402868
nop
mov rcx, rbx
call fcn.0047933c
mov byte [rsp + 0x59], al
mov rcx, rbx
call fcn.00460ef0
mov byte [rsp + 0x5a], al
mov rcx, rbx
call fcn.00460e98
cmp al, r14b
jne 0x47967a
mov rcx, rbx
call fcn.00460ea4
cmp al, r14b
jne 0x47967a
mov rcx, rbx
call fcn.00460eb0
cmp al, r14b
jne 0x47967a
mov byte [rsp + 0x5b], r14b
jmp 0x47967f
mov byte [rsp + 0x5b], 1
mov al, byte [rsp + 0xe0]
mov byte [rsp + 0x58], al
cmp r13d, 0xffffffff
sete byte [rsp + 0x5c]
mov eax, dword [rsp + 0x40]
mov ecx, eax
mov dword [rsp + 0x60], eax
mov byte [rsp + 0x5d], r14b
cmp eax, 1
jne 0x4796dd
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.00473ea8
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.00402ae4
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x60]
mov r9, qword [rbx + 0x180]
cmp r9, r14
je 0x47972c
cmp eax, 1
ja 0x47974b
mov edx, 0xffffffff
cmp eax, 1
jne 0x4796ff
mov rax, qword [rsp + 0x38]
mov edx, dword [rax]
mov dword [rsp + 0xe0], r14d
mov rax, qword [r9]
lea r8, [rsp + 0xe0]
mov rcx, r9
call qword [rax + 0x28]
cmp eax, r14d
jne 0x47974b
cmp dword [rsp + 0xe0], r14d
setne byte [rsp + 0x5d]
jmp 0x47974b
cmp ecx, r14d
jne 0x47973f
mov rcx, rbx
call fcn.00460e98
mov byte [rsp + 0x5d], al
jmp 0x47974b
mov rcx, rbx
call fcn.004782e4
mov byte [rsp + 0x5d], al
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov r8d, eax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.0045dc14
nop
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x482608
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbx
mov rax, rsp
sub rsp, 0x240
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rax + 0x18], 0
call fcn.00402868
mov dword [rsp + 0x258], 1
xor r9d, r9d
lea r8d, [r9 + 5]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x482660
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.00402a7c
mov rcx, rbx
call fcn.00409ce4
mov rax, rbx
add rsp, 0x240
pop rbx
ret

Function at 0x483618
Capabilities:
Get common file path
Get file system object information
Get startup folder

Disassembly:
push rbx
mov rax, rsp
sub rsp, 0x2f0
mov edx, ecx
lea r8, [rax + 0x18]
xor ecx, ecx
mov qword [rax + 0x18], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x483689
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rsp + 0x308]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x483689
mov eax, dword [rsp + 0x38]
jmp 0x48368b
xor eax, eax
add rsp, 0x2f0
pop rbx
ret

Function at 0x483694
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x4836cc
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x2f8
neg cl
lea r8, [rsp + 0x30]
lea rcx, [0x00498470]
sbb eax, eax
mov r9d, 0x2b8
mov edx, 0x90
and eax, 0xffffff01
add eax, 0x100
or eax, 0x4010
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x2f8
ret

Function at 0x487d84
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x487db7
cmp dword [rbx + 0x54], 1
ja 0x487db7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x487dbf
mov rcx, rbx
call fcn.004879e0
add rsp, 0x20
pop rbx
ret
Function at 0x4882f8
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x378
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rdi, r9
mov ebp, r8d
mov r12d, edx
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.00402868
nop
cmp byte [rdi], 0
je 0x48837b
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.004579c8
nop
mov r8, rax
mov edx, 0xdb0
lea rcx, [rsp + 0x70]
call fcn.00457ab8
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.00402ae4
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
lea rcx, [rdi + 0x18]
call fcn.00402e28
lea ebx, [rax + 1]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call fcn.0041192c
nop
mov rax, qword [rdi + 0x18]
lea rdx, [rax + rbx*2]
lea rcx, [rsp + 0x60]
call fcn.00402904
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.00488224
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.00488224
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.004029f4
nop
lea rcx, [rsp + 0x30]
call fcn.00403338
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.00402ce0
lea rcx, [rsp + 0x30]
call fcn.00403338
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00402ce0
lea rcx, [rsp + 0x30]
call fcn.00403338
cmp byte [rdi + 1], 0
je 0x48845e
mov edx, 0x3f4
lea rcx, [rsp + 0x30]
call fcn.0045c1b4
lea rdx, [0x0049d230]
lea rcx, [rsp + 0x30]
call fcn.00402d24
lea rcx, [rdi + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0x80]
call fcn.0040bee4
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.00402d24
mov edx, r12d
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rsp + 0x20], 0x110
mov r9d, 0x2b8
lea r8, [rsp + 0xb0]
mov edx, 0x80
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x4884c9
mov edx, ebp
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov edx, 0x170
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
add rsp, 0x378
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret