joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001af0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007990
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007990
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140001c90
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b90
mov rcx, rbx
call fcn.1400025b0
mov rdi, rax
test rax, rax
je 0x140001cb2
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400026f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c40
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001af0
nop dword [rax]
xor esi, esi
jmp 0x140001bb8
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001af0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001af0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002220
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000227c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002273
test rsi, rsi
je 0x140002273
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002258
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400025b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a870]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000262d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002624
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025d0
add rax, 0x28
cmp rax, r9
jne 0x140002610
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a870]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000264f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002658
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000264f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a870]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000270f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002718
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400028d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002900
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400080d0
Capabilities:
Accept command line arguments
Delete file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.1400018e0
call fcn.1400077c0
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000811b
jmp 0x140008191
test cl, cl
je 0x140008148
and esi, 1
je 0x140008130
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140008117
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x1400080f8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140008106
test cl, cl
je 0x140008148
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140008148
cmp al, 0x20
jle 0x140008138
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140008176
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000a870]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp 0x140001660
lea rbx, [0x14000a0b0]
jmp 0x140008148
Function at 0x1400072d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400072f8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000731e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007320
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007379
test ecx, ecx
jle 0x140007359
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007379
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007379
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400073a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400073c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400073d8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400073f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400073f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007432
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400074ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000746d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400074ae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400074ce
cmp rbx, rax
ja 0x140007480
test rbx, rbx
je 0x1400074ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140007930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000795d
xor eax, eax
jmp 0x140007ac9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007997
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007997
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140007ac9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140007abc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400079da
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140007a05
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007ac1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007a74
sub eax, 1
je 0x140007a74
cmp eax, 2
jne 0x140007abc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007ac1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007aa2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140007abc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007ac1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140010bf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140007ba0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140007bd4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140007bc0
ret
Function at 0x140008280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008353
cmp byte [rcx + 0x71], 0
je 0x140008353
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000834f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call 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]
test eax, eax
je 0x140008314
sub eax, 1
je 0x140008318
cmp eax, 2
jne 0x14000834f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010bf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008346
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000834f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400082fc
xor al, al
jmp 0x1400082fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010bf0
add rsp, 0x60
pop rbx
ret
Function at 0x14000db50
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000dc15
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000dc15
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000dc2e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14000dc05
cmp byte [rcx], 0x5c
jne 0x14000dbfe
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14000dbfe
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000dbec
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14000dbfb
test r8b, 0x10
jne 0x14000dbfe
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14000dbfe
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000a2d0
test edi, edi
jne 0x14000db70
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000a2c0
int3

Function at 0x1400105a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400105da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400105df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140010628
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400136e0]
cmp byte [rcx + rax], 0
je 0x140010628
dec r8
sub rdx, 1
jne 0x14001060e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400118c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001190a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001190a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001190a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001190a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001190a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001190c
xor al, al
add rsp, 0x28
ret
Function at 0xcaa3e7
Capabilities:
Encode data using base64
Execute anti-debugging instructions

Disassembly:
lea rsp, [rsp + 0x28]
jmp fcn.00cd9a9c

Function at 0xcb9b2c
Capabilities:
Encode data using base64
Execute anti-debugging instructions

Disassembly:
push r11
pushfq
add qword [rsp + 0x10], 0xffffffffff2aae06
movabs r11, 0x4514be0a8e3641a5
xor r11d, 0x183eb026
mov qword [rsp + 0x10], 0x30a1a66a
mov r11, qword [rsp + 8]
push qword [rsp]
popfq
lea rsp, [rsp + 0x10]
call fcn.00cc5f9f

Function at 0xcc6799
Capabilities:
Encode data using base64
Execute anti-debugging instructions

Disassembly:
jmp 0xce38d6
mov word [r11], bp
mov qword [rsp + 8], 0xffffffffdb99711b
lea rsp, [rsp + 0x18]
jmp fcn.00cd9a9c

Function at 0x199d9cc
Capabilities:
Encode data using base64
Execute anti-debugging instructions

Disassembly:
call fcn.00cb4a15
imul ecx, dword [rax - 0x73], 0xe9202464
fst qword [rsi - 0x7697fffe]
push 0x1d234089
mov qword [rsp + 8], 0x532ad8bc
push qword [rsp + 0x10]
popfq
jmp 0xcb83a7
push 0x4f8d0d3b
call fcn.00caa3e7
xor bx, r10w
xor bx, 0x518a
mov qword [rsp + 8], 0xffffffff9399dcb0
neg bx
inc dword [rsp + 0xc]
jnp 0xcb03af
call fcn.00c9e769
and esi, dword [rbx + 0x48]
lea rsp, [rsp + 0x10]
jmp fcn.00cd9a9c
Function at 0x1400020c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareAlpsApointUSBMouseExceptions
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400021de
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x298], rsi
xor esi, esi
mov qword [rsp + 0x2a0], rdi
mov qword [rsp + 0x280], r14
mov edi, esi
mov ebx, esi
lea r14, [0x140029ef0]
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov edx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 0x208
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400021ad
cmp dword [rsp + 0x40], 4
jne 0x1400021a1
mov eax, dword [rsp + 0x44]
mov ecx, ebx
inc ebx
mov dword [r14 + rcx*4], eax
inc edi
cmp ebx, 0x100
jb 0x140002140
jmp 0x1400021b3
mov eax, ebx
mov dword [r14 + rax*4], esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140006d80
add rsp, 0x288
ret

Function at 0x140002b90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r14, qword [rdx]
xor r15d, r15d
mov rbx, rcx
mov dword [rsp + 0x44], r15d
mov ebp, r15d
mov qword [rsp + 0x2b0], rdi
nop word [rax + rax]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov edx, ebp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x4c], 0x208
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebp
cmp dword [rsp + 0x44], 4
mov esi, eax
jne 0x140002c8d
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x40]
cmp rax, rcx
jae 0x140002c6b
mov rdx, qword [rbx]
lea rax, [rsp + 0x40]
cmp rdx, rax
ja 0x140002c6b
lea rdi, [rsp + 0x40]
sub rdi, rdx
sar rdi, 2
cmp rcx, qword [rbx + 0x10]
jne 0x140002c58
mov rcx, rbx
call fcn.140003c70
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140002c88
mov rax, qword [rbx]
mov ecx, dword [rax + rdi*4]
mov dword [rdx], ecx
jmp 0x140002c88
cmp rcx, qword [rbx + 0x10]
jne 0x140002c79
mov rcx, rbx
call fcn.140003c70
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140002c88
mov eax, dword [rsp + 0x40]
mov dword [rdx], eax
add qword [rbx + 8], 4
test esi, esi
je 0x140002bd0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140006d80
add rsp, 0x270
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400032d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareAlpsApointUSBMouse
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400033ea
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x298], rsi
xor esi, esi
mov qword [rsp + 0x280], rdi
lea rdi, str.BluetoothMouseEnable
mov dword [0x14002a2f0], esi
mov ebx, esi
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 0x208
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea rdx, [rsp + 0x60]
or rax, 0xffffffffffffffff
movzx ecx, word [rdi + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x1400033b4
add rax, 2
cmp rax, 0x15
je 0x1400033bd
movzx ecx, word [rdi + rax*2]
cmp cx, word [rdx + rax*2]
je 0x140003394
inc ebx
cmp ebx, 7
jb 0x140003341
jmp 0x1400033c7
mov eax, dword [rsp + 0x40]
mov dword [0x14002a2f0], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140006d80
add rsp, 0x288
ret