joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401578bc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140145c3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140145c3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140157a0c
cmp rax, 0xffffffffffffffff
je 0x140157a0c
xor edi, edi
test rbp, rbp
jle 0x1401579b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401466d8
mov rbx, rax
test rax, rax
jne 0x140157944
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401579ad
mov edx, 0x8000
mov ecx, r14d
call fcn.140141fec
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14014aaf0
cmp eax, 0xffffffff
je 0x14015798d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140157954
mov edx, r15d
mov ecx, r14d
call fcn.140141fec
jmp 0x1401579ad
cmp byte [rsi + 0x38], dil
je 0x1401579a4
cmp dword [rsi + 0x34], 5
jne 0x1401579a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401579ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401441e4
jmp 0x140157a20
jns 0x140157a20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140145c3c
cmp rax, 0xffffffffffffffff
jne 0x1401579d8
cmp byte [rsi + 0x30], dil
je 0x140157a20
mov edi, dword [rsi + 0x2c]
jmp 0x140157a20
mov ecx, r14d
call fcn.140148ce8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140157a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140157a20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140157a19
mov eax, dword [rsi + 0x2c]
jmp 0x140157a1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140145c3c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140158a60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140158a88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140158a88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180010770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180010798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180010798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180588da4
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
test rcx, rcx
jmp 0x180598e2c
pop rsi
call fcn.18058e99a
mov r11d, 0x4e00b90a
mov rbx, qword [r11 + rdi - 0x4e00b90a]
mov ecx, r11d
and ecx, 0xe9b49107
mov r11, qword [rdi + rcx - 0x480090fa]
xor ecx, ecx
xadd cl, ch
xor cl, byte [rdi + rcx*4 + 0x10]
push 0xc966c2b
jmp 0x1805a08bc
lea rsp, [rsp + 8]
je 0x18058a72a
mov r8d, 0x3f853f12
shl r8d, 0x58
push rsi
mov esi, 0xf0347516
lea rsi, [0x180588430]
mov r8d, 0x56306b9d
movzx r8d, byte [r10 + r8 - 0x56306b9d]
push 0x2eb08917
xor r8d, r11d
and r8d, 0xff
mov r8d, dword [rsi + r8*4]
not dword [rsp]
shr r11d, 8
xor r11d, r8d
inc r10
inc word [rsp + 3]
xor r11d, 0x7f18eb3b
mov word [rsp + 4], 0x9c3b
dec rcx
lea rsp, [rsp + 8]
jne 0x180598e4e
jmp 0x18058a729
Function at 0x140001858
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
lea rdx, [rsp + 0x48]
xor ebx, ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14000195c
cmp qword [rax], rbx
jne 0x14000188d
mov rax, rbx
jmp 0x14000189d
mov rcx, qword [rax]
lea rdx, [0x14003fc58]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov r14d, 1
mov rbp, rbx
mov esi, r14d
test rax, rax
je 0x1400018c0
sub dword [rsp + 0x48], r14d
lea esi, [r14 + 1]
mov ebp, r14d
je 0x140001951
mov rcx, qword [rdi + rbp*8]
lea rdx, str.SETTINGS
add rcx, 2
mov r8d, r14d
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1357]
test eax, eax
jne 0x14000192f
cmp dword [rsp + 0x48], r14d
jle 0x140001951
mov rcx, qword [rdi + rbp*8]
lea rdx, str.VIEW
add rcx, 2
mov r8d, r14d
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1357]
test eax, eax
je 0x140001951
mov rcx, qword [rdi + rsi*8]
lea rdx, str.PENDING
mov r8d, r14d
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1357]
test eax, eax
jne 0x14000192f
mov rcx, qword [rdi + rsi*8]
lea rdx, str.RECENT
mov r8d, r14d
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1357]
test eax, eax
je 0x140001934
mov bl, r14b
jmp 0x140001951
mov rcx, qword [rdi + rsi*8]
lea rdx, [0x14003fcb8]
mov r8d, r14d
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1357]
test eax, eax
movzx ebx, bl
cmovne ebx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140004a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, [0x1400430c8]
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004acd
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004abe
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004abe
cmp dword [rbp + 0x18], 4
jne 0x140004abe
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x140004abe
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140004acf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004acf
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140004acd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004ade
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140004e94
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14005c2c4], 0
je 0x140004eba
mov eax, dword [0x14005c2c8]
jmp 0x140004fbe
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14005c2c8]
test eax, eax
jne 0x140004f26
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004f26
cmp dword [rbp + 0x10], ebx
je 0x140004f95
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x140004f3a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004f9d
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004f9d
cmp dword [rbp + 0x10], ebx
jne 0x140004f9d
mov ebx, dword [0x14005c2c8]
jmp 0x140004fa6
and dword [0x14005c2c8], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x14005c2c4], 1
test rcx, rcx
je 0x140004fbc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140005a5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov r8, rcx
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea edx, [rdi + 0x5d]
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rsp + 0x228]
mov r9, rdi
add rax, 2
mov r8, rbx
sub rdx, rax
mov rcx, rax
sar rdx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x20]
call fcn.1400053c8
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140005adf
mov eax, ebx
jmp 0x140005ae5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14005c2d8], eax
test rdi, rdi
je 0x140005af8
mov dword [0x14005c2d4], ebx
jmp 0x140005b16
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x14005c2d4], eax
cmp eax, 0xffffffff
jne 0x140005b16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x14005c2d0], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140039650
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x140005b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x30], rax
lea r8, str.CommonFilesDir
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea esi, [rbx + 2]
mov r9d, esi
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140005bf3
cmp dword [rsp + 0x40], 4
jb 0x140005bf3
mov eax, dword [rsp + 0x40]
lea r8, str.Microsoft_SharedOffice16_
shr rax, 1
lea rcx, [rsp + 0x50]
mov edx, 0x104
cmp word [rsp + rax*2 + 0x4c], 0x5c
cmove ebx, esi
or r9, 0xffffffffffffffff
add r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140005a5c
jmp 0x140005bf5
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140039650
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005c1c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftOffice16.0CommonFilesPaths
lea rax, [rsp + 0x50]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140005c93
cmp dword [rsp + 0x40], 4
jb 0x140005c93
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140005a5c
jmp 0x140005c95
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140039650
add rsp, 0x270
pop rbx
ret
Function at 0x140008cf4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
mov rbx, rcx
cmp byte [rcx + 0x148], sil
jne 0x140008ec5
mov rcx, qword [rcx + 0x140]
test rcx, rcx
je 0x140008ec5
xor r8d, r8d
lea rdx, [rbp - 0x21]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1108_1]
test eax, eax
jne 0x140008ec5
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x19], 0x2c
call qword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x140008ec5
mov eax, dword [rbp + 0xb]
lea r14d, [rsi + 4]
sub eax, dword [rbp + 3]
cmp eax, 0x32
jl 0x140008e73
mov eax, dword [rbp + 0xf]
sub eax, dword [rbp + 7]
cmp eax, 0x32
jl 0x140008e73
lea edx, [rsi + 2]
lea rcx, [rbp + 3]
call qword [sym.imp.USER32.dll_MonitorFromRect]
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x17], 0x28
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ecx, dword [rbp + 3]
lea rax, [rbp - 0x29]
mov ebx, dword [rbp + 0x2b]
lea rdx, str.WindowPosLeft
sub ebx, dword [rbp + 0x1b]
mov r9d, r14d
mov edi, dword [rbp + 0x2f]
add ecx, ebx
sub edi, dword [rbp + 0x1f]
xor r8d, r8d
mov dword [rbp - 0x29], ecx
mov rcx, qword [rbp - 0x21]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp + 7]
lea rax, [rbp - 0x29]
add ecx, edi
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x29], ecx
lea rdx, str.WindowPosTop
mov rcx, qword [rbp - 0x21]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp + 0xb]
lea rax, [rbp - 0x29]
add ecx, ebx
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x29], ecx
lea rdx, str.WindowPosRight
mov rcx, qword [rbp - 0x21]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp + 0xf]
lea rax, [rbp - 0x29]
add ecx, edi
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x29], ecx
lea rdx, str.WindowPosBottom
mov rcx, qword [rbp - 0x21]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rbp - 0x11]
and eax, 3
cmp al, 3
jne 0x140008e86
mov dword [rbp - 0x29], 1
jmp 0x140008e96
mov al, byte [rbp - 0x11]
or ecx, 0xffffffff
and al, 6
cmp al, 6
cmove esi, ecx
mov dword [rbp - 0x29], esi
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], r14d
lea rdx, str.WindowMode
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140039650
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140010920
Capabilities:
Check mutex on windows
Read file via mapping

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 r12
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rsp + 0x70]
xor ebx, ebx
mov rbp, r9
mov r15b, r8b
mov r12b, dl
mov r14, rcx
test rdi, rdi
je 0x140010958
mov qword [rdi], rbx
cmp qword [rcx], rbx
jne 0x140010964
xor al, al
jmp 0x1400109e4
mov r8, qword [rcx + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x1400109e2
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400109d0
mov rcx, qword [r14]
lea edx, [rax + 6]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
test rax, rax
je 0x1400109d0
test rdi, rdi
je 0x1400109b6
mov rax, qword [rax]
mov qword [rdi], rax
test r12b, r12b
jne 0x1400109c5
test r15b, r15b
je 0x1400109c8
cmp qword [rcx], rbx
jne 0x1400109c8
mov qword [rcx], rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400140b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, edx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret

Function at 0x140014460
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, word [rdi + 2]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
and dword [rsp + 0x28], 0
xor edx, edx
mov word [rsp + 0x40], cx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
setne al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140039650
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140016d30
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x14005c2f8]
xor ebx, ebx
mov rsi, rcx
test eax, eax
jne 0x140016dda
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jbe 0x140016dc0
mov dword [0x14005c2f8], 1
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140039650
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
jne 0x140016dcf
cmp dword [rsp + 0x28], 1
sbb eax, eax
neg eax
inc eax
jmp 0x140016dd4
mov eax, 2
mov dword [0x14005c2f8], eax
cmp eax, 2
jne 0x140016d99
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test rdi, rdi
je 0x140016e0b
mov rcx, rsi
mov rax, rdi
call qword [case.0x14001c390.0]
mov ebx, eax
cmp eax, 1
ja 0x140016e16
mov dword [0], 1
mov eax, ebx
jmp 0x140016d9b
Function at 0x14002b360
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
mov qword [rbp - 9], 0xfffffffffffffffe
mov rbx, qword [0x14005c0f0]
mov rdx, qword [rbx + 0x78]
mov r15d, 1
lea r8d, [r15 + 0x1f]
cmp dword [rdx + 0x10], r8d
jge 0x14002b3ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r9b, r15b
mov rax, qword [rax]
call qword [case.0x14001c390.0]
lea rdi, [0x140059088]
mov r13d, 0xffffffff
mov rax, qword [rdi - 8]
call qword [case.0x14001c390.0]
mov rsi, rax
test rax, rax
je 0x14002b4a5
mov rcx, qword [rax]
mov rax, qword [rcx]
movsxd r8, dword [rdi]
mov rcx, rbx
lea r9, [rbx + 8]
neg rcx
sbb rdx, rdx
and rdx, r9
mov rcx, rsi
call qword [case.0x14001c390.0]
test eax, eax
js 0x14002b4a5
mov rdx, qword [rbx + 0x78]
mov ecx, dword [rbx + 0x80]
lea eax, [rcx + 1]
test eax, eax
js 0x14002b596
shl rax, 3
cmp rax, r13
ja 0x14002b590
cmp eax, 0x7fffffff
ja 0x14002b5ae
cmp dword [rdx + 0x10], eax
jge 0x14002b48f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp eax, r15d
cmovl eax, r15d
mov r8d, eax
mov edx, ecx
lea rcx, [rbp + 0x7f]
call fcn.14001cf84
mov rdx, qword [rbx + 0x78]
cmp dword [rax], 0
jl 0x14002b5a8
mov r8d, dword [rax]
shl r8, 3
cmp r8, r13
ja 0x14002b5a2
cmp r8d, 0x7fffffff
ja 0x14002b59c
cmp r8d, dword [rdx + 0x10]
jle 0x14002b48f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r9b, r15b
mov rax, qword [rax]
call qword [case.0x14001c390.0]
mov rdx, qword [rbx + 0x78]
mov rcx, qword [rdx + 8]
movsxd rax, dword [rbx + 0x80]
mov qword [rcx + rax*8], rsi
add dword [rbx + 0x80], r15d
add rdi, 0x10
lea rax, [0x1400590b8]
cmp rdi, rax
jle 0x14002b3bb
mov dword [rbp + 7], r15d
lea rdi, [0x140042a40]
mov qword [rbp - 1], rdi
and qword [rbp + 0xf], 0
mov byte [rbp + 0x17], r15b
mov dword [rbp + 0x67], 4
lea rcx, [rbp - 1]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2426]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20019
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400462b8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002b570
lea rcx, [rbp - 1]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2425]
mov rcx, rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x6f]
xor r8d, r8d
lea rdx, str.Providers
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b570
cmp dword [rbp + 0x6f], 4
jne 0x14002b570
cmp dword [rbp + 0x77], eax
je 0x14002b570
lea edx, [rax + 3]
mov rcx, rbx
call fcn.14002c29c
nop
nop dword [rax]
mov qword [rbp - 1], rdi
lea rcx, [rbp - 1]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2428]
xor eax, eax
add rsp, 0x88
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
Function at 0x14002c018
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov r8d, edx
mov r15, rcx
movsxd rbp, dword [rcx + 0xd8]
test rbp, rbp
je 0x14002c25e
mov r9d, 0xffffffff
dec rbp
mov rax, qword [r15 + 0xd0]
mov rdx, qword [rax + 8]
mov r12, qword [rdx + rbp*8]
cmp dword [r12], r8d
jne 0x14002c255
movsxd rax, dword [r15 + 0xd8]
mov rcx, qword [rdx + rax*8 - 8]
mov qword [rdx + rbp*8], rcx
mov ecx, dword [r15 + 0xd8]
lea edx, [rcx - 1]
test edx, edx
js 0x14002c27c
mov eax, edx
shl rax, 3
cmp rax, r9
ja 0x14002c276
cmp eax, 0x7fffffff
ja 0x14002c294
test ecx, ecx
js 0x14002c28e
mov eax, ecx
shl rax, 3
cmp rax, r9
ja 0x14002c288
cmp eax, 0x7fffffff
ja 0x14002c282
mov dword [r15 + 0xd8], edx
movsxd r14, dword [r12 + 4]
test r14, r14
je 0x14002c224
lea r11, [r14 + r14*2]
shl r11, 5
add r11, 0x10
add r11, r12
dec r14
sub r11, 0x60
mov qword [rsp + 0x70], r11
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movzx eax, byte [r11 + rcx]
xor rdx, rax
movabs r8, 0x100000001b3
imul rdx, r8
inc rcx
cmp rcx, 8
jb 0x14002c10b
mov r8, qword [r15 + 0x40]
and r8, rdx
add r8, r8
mov r10, qword [r15 + 0x28]
mov rbx, qword [r10 + r8*8]
mov rdx, qword [r15 + 0x18]
mov r9, rbx
cmp qword [r10 + r8*8], rdx
jne 0x14002c14e
mov rax, rdx
jmp 0x14002c156
mov rax, qword [r10 + r8*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14002c194
mov rcx, qword [r11]
cmp qword [rbx + 0x10], rcx
je 0x14002c169
mov rbx, qword [rbx]
jmp 0x14002c140
mov rdi, rbx
cmp qword [r10 + r8*8], rdx
jne 0x14002c177
mov rax, rdx
jmp 0x14002c17f
mov rax, qword [r10 + r8*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14002c18f
cmp rcx, qword [rbx + 0x10]
jne 0x14002c18f
mov rbx, qword [rbx]
jmp 0x14002c16c
cmp r9, rbx
jne 0x14002c19a
mov rdi, rdx
mov rbx, rdx
mov rax, rdi
cmp rdi, rbx
je 0x14002c1ad
mov rcx, qword [rax]
mov rax, rcx
cmp rcx, rbx
jne 0x14002c1a2
mov rcx, qword [rdx]
cmp rdi, rcx
jne 0x14002c1f2
cmp rbx, rdx
jne 0x14002c1f2
mov qword [rdx], rdx
mov rax, qword [r15 + 0x18]
mov qword [rax + 8], rax
and qword [r15 + 0x20], 0
cmp rcx, qword [r15 + 0x18]
je 0x14002c1e2
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
cmp rbx, qword [r15 + 0x18]
jne 0x14002c1d0
mov edx, 8
lea rcx, [r15 + 0x10]
call fcn.14002c78c
jmp 0x14002c216
cmp rdi, rbx
je 0x14002c21b
mov r8, rdi
mov rsi, qword [rdi]
mov rdi, rsi
lea rdx, [rsp + 0x80]
lea rcx, [r15 + 0x10]
call fcn.14002c81c
cmp rsi, rbx
jne 0x14002c1f7
mov r11, qword [rsp + 0x70]
test r14, r14
jne 0x14002c0f3
lea rcx, [r12 + 0x10]
lea r9, [0x14002b6e0]
mov edx, 0x60
mov r8d, 0x2a9
call fcn.140039f94
nop
mov rcx, r12
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov r8d, dword [rsp + 0x78]
mov r9d, 0xffffffff
test rbp, rbp
jne 0x14002c055
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3
call fcn.140001340
int3