joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d690
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002d69d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002d6ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002d695
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002d6c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002d6b2
sub eax, 3
jb 0x14002d6df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002d716
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002d706
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002d704
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002d6f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002d652
jmp 0x14002d69d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5800
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002d762
cmp rsi, rcx
jae 0x14002d76a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002d749
cmp al, 0x8f
ja 0x14002d749
cmp byte [rsi - 2], 0xf
je 0x14002d74f
sub al, 0xe8
cmp al, 1
ja 0x14002d733
cmp rsi, rcx
jae 0x14002d76a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002d739
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002d76a
lodsb al, byte [rsi]
jmp 0x14002d749
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2b000]
mov eax, dword [rdi]
or eax, eax
je 0x14002d7c7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2d4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002d777
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002d7c1
mov qword [rbx], rax
add rbx, 8
jmp 0x14002d797
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002d801
cmp al, 0xef
ja 0x14002d7f3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002d7d3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002d7e2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14002d880], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14002d880
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002d870
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140002470
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x280
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea r14, [0x140049948]
mov qword [rsp + 0x28], r14
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [0x140049948], rbp
mov qword [0x140049950], rbp
lea ecx, [rbp + 0x60]
call fcn.140030ba8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x140049948], rax
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
lea r8d, [rbp + 2]
lea rdx, [0x140034e64]
lea rcx, [rsp + 0x40]
call fcn.1400040c0
nop
mov esi, 0x41
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rax, qword [rsp + 0x40]
mov word [rax], si
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400025d7
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.140003d10
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140002590
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x1400025cd
mov rdi, rcx
cmp rax, 7
jbe 0x1400025af
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], bp
jmp 0x1400025d7
lea r9, [rsp + 0x60]
call fcn.1400041f0
inc si
cmp si, 0x5a
jbe 0x140002530
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140002629
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002624
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002624
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030a80
mov rax, r14
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140030a60
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140002690
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov ecx, dword [rcx + rax]
cmp dword [0x140049940], ecx
jg 0x1400028b1
mov rbx, qword [0x140049948]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140002799
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
nop
lea rdi, [rbx + 0x20]
lea r9, [rdi + 0x20]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 7
jbe 0x140002716
mov r9, qword [r9]
mov rcx, rsi
cmp r15, 7
jbe 0x140002722
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
call fcn.140003fd0
test rax, rax
je 0x1400027cd
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140002768
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140002763
nop
cmp rbx, qword [rax + 0x10]
jne 0x140002763
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140002750
mov rbx, rax
jmp 0x14000278f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14000278f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140002780
cmp byte [rbx + 0x19], 0
je 0x140002700
mov rdx, rsi
mov rcx, rbp
call fcn.140003490
mov rax, rbp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rdi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp r14, rax
jb 0x1400028ab
sub r14, rax
mov r8, 0xffffffffffffffff
cmp r14, r8
cmovb r8, r14
cmp r15, 7
jbe 0x140002805
mov rsi, qword [rsi]
lea rdx, [rsi + rax*2]
lea rcx, [rsp + 0x40]
call fcn.1400040c0
nop
mov r9, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x140002822
mov rdi, qword [rdi]
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.140004610
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400027a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400028a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030a80
jmp 0x1400027a4
call fcn.1400036f0
int3
lea rcx, [0x140049940]
call fcn.140030b30
cmp dword [0x140049940], 0xffffffff
jne 0x1400026e3
call fcn.140002470
lea rcx, [0x140033600]
call fcn.140030e0c
nop
lea rcx, [0x140049940]
call fcn.140030ac4
jmp 0x1400026e3
Function at 0x140002d20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002e64
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x140002e59
mov ebp, r14d
cmp dword [rsp + 0xa8], r14d
jbe 0x140002e59
mov eax, pe_nt_image_headers64
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0x68], r14
mov rsi, r14
mov edi, eax
mov ecx, eax
call fcn.140030e2c
mov rbx, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x68], rbx
test rsi, rsi
je 0x140002df1
mov rcx, rsi
call fcn.140030a80
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa0]
mov r8, rbx
mov edx, ebp
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rsi, rbx
cmp eax, 0xea
jne 0x140002e30
mov eax, dword [rsp + 0xa0]
jmp 0x140002dc6
test eax, eax
jne 0x140002e42
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call fcn.140002e80
nop
mov rcx, rbx
call fcn.140030a80
inc ebp
cmp ebp, dword [rsp + 0xa8]
jb 0x140002db2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a130
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._System_Scanner__Running_checks_to_detect_event_log_bypasses..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003aa0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a301
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.File
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a2f6
mov ecx, dword [rsp + 0x30]
call fcn.140030e2c
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.File
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a2ee
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x14000a250
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400098a0
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
lea rdx, str._SystemRoot_System32WinevtLogsSystem.evtx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000a2ae
lea rdx, str.____Event_log_bypass_detected._Ban_the_user.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a320
lea rdx, [0x14000a4f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000a2ee
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a2e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a2e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030a80
mov rcx, rbx
call fcn.140030a80
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030a60
add rsp, 0x70
pop rbx
ret
Function at 0x14000b9b0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x710
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x700], rax
mov rdi, rcx
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, [0x140036558]
mov edx, 0x104
lea rcx, [rsp + 0x4f0]
call fcn.14000b6b0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000bb44
nop word [rax + rax]
lea rax, [rsp + 0xbc]
mov r9, rdi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.14000b6b0
lea r8, [rsp + 0x60]
xor edx, edx
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14000bb22
mov rax, qword [rsp + 0x74]
lea rdx, str.Glorious_Core
lea rcx, [rsp + 0x2e0]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14000ba96
lea rcx, str.____Glorious_software_detected._Open_the_Glorious_Core_program_and_check_if_any_button_click_contains_a_macro._If_so__ban_the_player._n
call fcn.140006b60
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x14000bb0f
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x14000bb06
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, str.____Macro_file_detected._Modification_time_of__s:__d__d__d__d:_d:_d._Ban_the_player_if_this_modification_time_is_just_after_the_tike_you_freezed_the_player._n
mov dword [rsp + 0x28], edx
lea rdx, [rsp + 0x2e0]
mov dword [rsp + 0x20], r10d
call fcn.140006b60
jmp 0x14000bb22
lea rdx, str.Failed_to_convert_file_time_to_system_time._n
jmp 0x14000bb16
lea rdx, str.Failed_to_convert_file_time_to_local_time._n
lea rcx, str.Error_ocurred_while_checking_macro_files:__s_n
call fcn.140006b60
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000ba20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.140030a60
mov rbx, qword [rsp + 0x730]
add rsp, 0x710
pop rdi
ret
Function at 0x14000f7b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000f7e4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000f7d0
ret
Function at 0x140014410
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 0x1400144dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400144dc
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 0x1400144f5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400144cc
cmp byte [rax], 0x5c
jne 0x1400144c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400144c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400144b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400144c3
test r8b, 0x10
jne 0x1400144c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400144c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140010a40
test edi, edi
jne 0x140014430
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.140010a30
int3
Function at 0x140019450
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140019481
xor eax, eax
jmp 0x1400195cb
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400194be
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400194be
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x1400195cb
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400195c0
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140019505
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140019513
movzx ecx, di
jmp 0x140019567
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140019580
sub eax, 1
je 0x140019580
cmp eax, 2
jne 0x1400195c0
movzx ecx, word [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x1400195c3
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400195ae
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x1400195c0
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140030a60
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140019874
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140019860
ret
Function at 0x140019c70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140019d45
cmp byte [rcx + 0x72], 0
je 0x140019d45
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140019d41
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140019d06
sub eax, 1
je 0x140019d0a
cmp eax, 2
jne 0x140019d41
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030a60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140019d38
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 0x140019d41
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140019cee
xor al, al
jmp 0x140019cee
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030a60
add rsp, 0x60
pop rbx
ret
Function at 0x14001df70
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001e053
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001e053
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 0x14001e071
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001e043
cmp word [rax], 0x5c
jne 0x14001e03c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14001e03c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001e027
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14001e039
test r8b, 0x10
jne 0x14001e03c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14001e03c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001b060
test edi, edi
jne 0x14001dfa0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140010a30
int3