joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001150
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push rsi
sub rsp, 0x80
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rcx
mov rax, qword [str.ntdll.dll.text]
mov qword [rsp + 0x6f], rax
mov al, byte [0x140008180]
mov byte [rsp + 0x77], al
lea rcx, [rsp + 0x6f]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400011d3
lea rcx, str._____Not_a_PE_file_n
call fcn.140001310
mov dword [rsp + 0x24], 0
jmp 0x1400012f3
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov rcx, qword [rsp + 0x38]
movzx ecx, word [rcx + 0x14]
add rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x64], 0
mov word [rsp + 0x36], 0
movzx eax, word [rsp + 0x36]
mov rcx, qword [rsp + 0x38]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400012f3
mov eax, dword [0x140008181]
mov dword [rsp + 0x69], eax
mov ax, word [0x140008185]
mov word [rsp + 0x6d], ax
lea rdx, [rsp + 0x69]
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
cmp eax, 0
jne 0x1400012eb
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
add rcx, rax
lea r9, [rsp + 0x64]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14000127e
mov dword [rsp + 0x24], 0
jmp 0x1400012f3
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
add rcx, rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
add rdx, rax
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + 8]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x64]
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
add rcx, rax
lea r9, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400012e9
mov dword [rsp + 0x24], 0
jmp 0x1400012f3
jmp 0x1400012eb
mov dword [rsp + 0x24], 1
mov esi, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006710
mov eax, esi
add rsp, 0x80
pop rsi
ret
Function at 0x140001ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0x1c]
jae 0x140001d98
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call section..text
cmp eax, dword [rsp + 0x3c]
jne 0x140001d89
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x24]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140001da1
jmp 0x140001d8b
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x140001d2c
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
add rsp, 0x78
ret
Function at 0x1400020a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], rcx
mov rsi, qword [rsp + 0x38]
cmp qword [rsi + 0x68], 0
je 0x1400020cc
test byte [rsi + 0x71], 1
jne 0x1400020d6
mov byte [rsp + 0x2f], 1
jmp 0x1400021c4
call fcn.1400022f0
mov rcx, qword [rsi]
mov r8, qword [rcx + 0x18]
mov r9, qword [0x14000e008]
mov rcx, rsi
mov edx, eax
mov rax, r8
call r9
mov edi, eax
call fcn.1400022f0
mov ecx, eax
mov edx, edi
call fcn.140002300
test al, 1
jne 0x14000210a
jmp 0x140002114
mov byte [rsp + 0x2f], 0
jmp 0x1400021c4
mov qword [rsp + 0x40], 0x20
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
add rdx, 0x74
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
lea r8, [rsp + 0x50]
call rax
test eax, eax
je 0x14000215b
jmp 0x14000214b
mov ecx, eax
sub ecx, 1
je 0x14000215f
jmp 0x140002154
sub eax, 3
je 0x1400021b4
jmp 0x1400021bf
mov byte [rsi + 0x71], 0
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
sub rax, rcx
mov qword [rsp + 0x30], rax
xor eax, eax
cmp rax, qword [rsp + 0x30]
jae 0x1400021a7
mov rdi, qword [rsp + 0x30]
mov r9, qword [rsi + 0x80]
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
je 0x1400021a7
mov byte [rsp + 0x2f], 0
jmp 0x1400021c4
mov al, byte [rsi + 0x71]
xor al, 0xff
and al, 1
mov byte [rsp + 0x2f], al
jmp 0x1400021c4
mov byte [rsi + 0x71], 0
mov byte [rsp + 0x2f], 1
jmp 0x1400021c4
mov byte [rsp + 0x2f], 0
mov al, byte [rsp + 0x2f]
and al, 1
movzx esi, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140006710
mov eax, esi
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140002b80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x50], rcx
mov rsi, qword [rsp + 0x50]
cmp qword [rsp + 0x30], 0
jg 0x140002bbf
mov qword [rsp + 0x38], 0
jmp 0x140002d41
cmp qword [rsi + 0x68], 0
je 0x140002be3
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x38], rax
jmp 0x140002d41
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x60], rax
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x140002c72
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call fcn.140003a90
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov rcx, qword [rsp + 0x20]
mov rdx, rax
mov r8, rdi
call fcn.140003a50
mov rax, qword [rsp + 0x28]
add rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
je 0x140002d32
mov rcx, rsi
call fcn.140001fd0
mov qword [rsp + 0x58], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x68]
jae 0x140002cfe
mov r9, qword [rsi + 0x80]
mov rcx, qword [rsp + 0x20]
mov edx, 1
mov r8d, 0xfff
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
cmp qword [rsp + 0x40], 0xfff
je 0x140002cfc
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
jmp 0x140002d41
jmp 0x140002c91
xor eax, eax
cmp rax, qword [rsp + 0x68]
jae 0x140002d30
mov r9, qword [rsi + 0x80]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
jmp 0x140002d32
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140006710
mov rax, rsi
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140002d60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x48], rcx
mov rsi, qword [rsp + 0x48]
cmp qword [rsi + 0x68], 0
je 0x140002d9f
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x38], rax
jmp 0x140002e7a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp rax, qword [rsp + 0x20]
jge 0x140002e2f
xor eax, eax
cmp rax, qword [rsp + 0x28]
jge 0x140002e2f
mov rax, qword [rsp + 0x20]
cmp rax, qword [rsp + 0x28]
jge 0x140002ddf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.140003a50
mov rax, qword [rsp + 0x28]
add rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov qword [rsp + 0x20], rcx
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
xor eax, eax
cmp rax, qword [rsp + 0x20]
jge 0x140002e6b
cmp qword [rsi + 0x80], 0
je 0x140002e6b
mov r9, qword [rsi + 0x80]
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140005fd0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000601a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000601a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000601a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000601a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000601a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000601c
xor al, al
add rsp, 0x28
ret
Function at 0x140001bc0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c0a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c0c
xor al, al
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140008008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140008008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x18000a280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test rcx, rcx
je 0x18000a2e0
mov r8, qword [rcx]
test r8, r8
je 0x18000a2e0
mov r8, qword [r8 + 0x10]
mov eax, 0xffffffff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18000a2a0
test ecx, ecx
je 0x18000a2dd
mov r9d, ecx
lea r10, [0x180179400]
nop dword [rax + rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x18000a2c0
not eax
ret
xor eax, eax
ret

Function at 0x18000abc0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
test rcx, rcx
jne 0x18000abcd
xor eax, eax
jmp 0x18000ac46
mov r9, qword [rcx]
test r9, r9
jne 0x18000abd9
xor eax, eax
jmp 0x18000ac46
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x18000abe6
xor eax, eax
jmp 0x18000ac46
mov r10, r9
mov qword [rsp + 8], r9
xor edx, edx
mov r8d, 0xffffffff
lea r11, [0x180179400]
mov dword [rsp], edx
mov ecx, r8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x18000ac10
cmp edx, eax
jae 0x18000ac3c
movsx eax, byte [r10]
xor rax, rcx
movzx ecx, al
shr r8d, 8
xor r8d, dword [r11 + rcx*4]
inc r10
mov qword [rsp + 8], r10
inc edx
jmp 0x18000abfd
not r8d
mov eax, r8d
jmp 0x18000ac46
add rsp, 0x18
ret

Function at 0x18000b150
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1801b0892], 0
mov rbx, rcx
je 0x18000b1c1
mov ecx, dword [0x1801b097c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18000b1c1
cmp dword [0x1801b08ac], 1
jne 0x18000b1c1
lea rcx, [rbx + 0xb0]
cmp rcx, 0x40000
jbe 0x18000b1c1
lea rax, [rcx + 8]
movabs rdx, 0x7fffffff0000
cmp rax, rdx
jae 0x18000b1c1
mov rcx, qword [rcx]
add rcx, 0x1fc
cmp rcx, 0x40000
jbe 0x18000b1c1
lea rax, [rcx + 4]
cmp rax, rdx
jae 0x18000b1c1
mov dword [rcx], 0x3c23d70a
add rsp, 0x20
pop rbx
ret
Function at 0x18000bed0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18000c063
mov edx, dword [0x1801b0700]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rdi, qword [rax + rdx*8]
mov edx, dword [0x1801e71a0]
add rdi, rcx
cmp edx, dword [rdi]
jle 0x18000bf45
lea rcx, [0x1801e71a0]
call fcn.1800f67c8
mov edx, dword [0x1801e71a0]
cmp edx, 0xffffffff
jne 0x18000bf45
mov ecx, 0xac5e6f4b
call fcn.180008ba0
lea rcx, [0x1801e71a0]
mov qword [0x1801e6df0], rax
call fcn.1800f675c
mov edx, dword [0x1801e71a0]
mov rax, qword [0x1801e6df0]
cmp qword [rax + rbx], 0
je 0x18000c063
cmp edx, dword [rdi]
jle 0x18000bf8d
lea rcx, [0x1801e71a0]
call fcn.1800f67c8
cmp dword [0x1801e71a0], 0xffffffff
jne 0x18000bf8d
mov ecx, 0xac5e6f4b
call fcn.180008ba0
lea rcx, [0x1801e71a0]
mov qword [0x1801e6df0], rax
call fcn.1800f675c
mov rax, qword [0x1801e6df0]
mov rbx, qword [rax + rbx]
test rbx, rbx
je 0x18000c063
mov eax, dword [rdi]
cmp dword [0x1801e6b48], eax
jle 0x18000bfe0
lea rcx, [0x1801e6b48]
call fcn.1800f67c8
cmp dword [0x1801e6b48], 0xffffffff
jne 0x18000bfe0
mov ecx, 0xd8de806e
call fcn.180007500
lea rcx, [0x1801e6b48]
mov rdx, qword [rax]
mov qword [0x1801e6b18], rdx
call fcn.1800f675c
mov rax, qword [0x1801e6b18]
mov rcx, rbx
call rax
test rax, rax
je 0x18000c063
mov r8, qword [rax]
test r8, r8
je 0x18000c063
mov r8, qword [r8 + 0x10]
mov edx, 0xffffffff
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x18000c010
test eax, eax
je 0x18000c063
mov r9d, eax
lea r10, [0x180179400]
nop dword [rax + rax]
movsx ecx, byte [r8]
lea r8, [r8 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
xor edx, dword [r10 + rax*4]
sub r9, 1
jne 0x18000c030
not edx
cmp edx, 0xafa91f9a
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x180016840
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp byte [0x1801b07ac], 0
jne 0x1800168a0
lea rcx, [rsp + 0x30]
mov byte [0x1801b07ac], 1
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x38]
cvtsi2ss xmm1, qword [rsp + 0x30]
movss dword [0x1801b09d0], xmm0
movss dword [0x1801b0800], xmm1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x30]
subss xmm0, dword [0x1801b0800]
divss xmm0, dword [0x1801b09d0]
add rsp, 0x28
ret
Function at 0x180018090
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x70
call fcn.18000c220
mov rcx, rax
call fcn.18000c130
mov rbx, rax
test rax, rax
je 0x1800182a8
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.18000afa0
cmp dword [rsp + 0x20], 0
je 0x1800182a8
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1800182a8
cmp eax, 0xfffffffe
jne 0x18001816c
mov rcx, rbx
call fcn.18000b1d0
cmp byte [0x1801b0845], 0
je 0x1800182a8
add rbx, 0xb0
cmp rbx, 0x40000
jbe 0x1800182a8
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800182a8
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x3a0]
cmp r9, 0x40000
jbe 0x18001813f
lea rax, [r9 + 1]
cmp rax, rcx
jae 0x18001813f
mov byte [r9], 1
lea rdx, [r8 + 0x3a4]
cmp rdx, 0x40000
jbe 0x1800182a8
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x1800182a8
mov dword [rdx], 0x3f800000
add rsp, 0x70
pop rbx
ret
cmp eax, 3
jne 0x1800181d4
mov rcx, rbx
call fcn.18000b1d0
cmp byte [0x1801b0882], 0
je 0x1800181c7
lea rdx, [rbx + 0xb0]
cmp rdx, 0x40000
jbe 0x1800181c7
lea rax, [rdx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800181c7
mov rdx, qword [rdx]
add rdx, 0x1fc
cmp rdx, 0x40000
jbe 0x1800181c7
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x1800181c7
mov dword [rdx], 0x3c23d70a
mov rcx, rbx
add rsp, 0x70
pop rbx
jmp fcn.18000b150
cmp eax, 2
jne 0x18001822d
mov rcx, rbx
call fcn.18000b1d0
mov rcx, rbx
call fcn.18000b150
cmp byte [0x1801b0844], 0
je 0x1800182a8
add rbx, 0xb0
cmp rbx, 0x40000
jbe 0x1800182a8
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800182a8
mov rdx, qword [rbx]
add rdx, 0x290
jmp 0x180018293
cmp eax, 0xffffffff
jne 0x1800182a8
mov rcx, rbx
call fcn.18000b1d0
cmp byte [0x1801b088a], 0
je 0x1800182a8
add rbx, 0xb0
cmp rbx, 0x40000
jbe 0x1800182a8
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800182a8
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x3a0]
cmp r9, 0x40000
jbe 0x18001828c
lea rax, [r9 + 4]
cmp rax, rcx
jae 0x18001828c
mov dword [r9], 0x3f800000
lea rdx, [r8 + 0x3b0]
cmp rdx, 0x40000
jbe 0x1800182a8
lea rax, [rdx + 1]
cmp rax, rcx
jae 0x1800182a8
mov byte [rdx], 1
add rsp, 0x70
pop rbx
ret
Function at 0x18001c470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001c4e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18001c4e8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18001c4d5
nop
cmp rbx, rcx
jae 0x18001c4e8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18001c4c0
cmp rbx, rcx
jae 0x18001c4e8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18001c4ea
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002eb50
Capabilities:
Delete file

Disassembly:
sub rsp, 0xa8
movdqa xmm1, xmmword [0x180199080]
xorps xmm0, xmm0
mov r8, qword [0x1801ad8e0]
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x40], 0
movdqu xmmword [rsp + 0x50], xmm1
inc rcx
cmp byte [rdx + rcx], 0
jne 0x18002eb80
movabs rax, 0x7fffffffffffffff
sub rax, r8
cmp rax, rcx
jb 0x18002ed4b
cmp qword [0x1801ad8e8], 0xf
lea r9, [0x1801ad8d0]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x60]
cmova r9, qword [0x1801ad8d0]
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0x28], rdx
movaps xmmword [rsp + 0x80], xmm7
mov qword [rsp + 0x20], r8
call fcn.180040b00
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x18002ec20
lea rax, [rcx + 4]
cmp rdx, 0xf
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
cmova rax, qword [rsp + 0x60]
mov dword [rax + rcx], 0x6766632e
mov byte [rax + rcx + 4], 0
lea rax, [rsp + 0x60]
jmp 0x18002ec3f
lea r9, str..cfg
mov qword [rsp + 0x20], 4
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.18003fc70
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18002ec92
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ec8d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002ecd0
call fcn.1800f6bec
mov rdx, qword [rsp + 0x78]
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
cmp rdx, 0xf
jbe 0x18002ecdc
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ecd7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002ecd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800f6bec
cmp qword [rsp + 0x58], 0xf
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18002ed33
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ed2e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002ed2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800f6bec
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0x80]
add rsp, 0xa8
ret
call fcn.180003e50
int3