joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e30cc
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movzx r14d, dx
mov ebp, ecx
xor ebx, ebx
lea rcx, str.LogEvent
lea edi, [rbx + 1]
call fcn.140007418
xor edx, edx
mov qword [rsp + 0x50], rbx
lea r8d, [rbx + 0x48]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
lea rdx, [0x140129280]
xor ecx, ecx
call qword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
jne 0x1400e3197
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rdx, qword [0x14015a290]
lea rcx, [0x14015a290]
cmp rdx, rcx
je 0x1400e32bc
test byte [rdx + 0x1c], 8
je 0x1400e32bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x14015a290]
lea edx, [rsi + 0xd]
mov r9d, eax
lea r8, [0x1400f6210]
lea rax, str.GetLastError__
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400d5cb0
jmp 0x1400e32bc
mov r9d, dword [rsp + 0xf0]
cmp r9d, 0xa
jle 0x1400e31fe
mov r8d, 0x7a
mov edi, ebx
mov ebx, r8d
mov rax, qword [0x14015a290]
lea rcx, [0x14015a290]
cmp rax, rcx
je 0x1400e32b3
test byte [rax + 0x1c], 8
je 0x1400e32b3
mov dword [rsp + 0x28], r9d
lea rcx, str.ERROR_INSUFFICIENT_BUFFER
mov qword [rsp + 0x20], rcx
lea edx, [r8 - 0x6c]
mov rcx, qword [rax + 0x10]
mov r9d, r8d
lea r8, [0x1400f6210]
call fcn.1400d8d88
jmp 0x1400e32b3
lea rcx, [rsp + 0xf8]
test r9d, r9d
jle 0x1400e322a
add rcx, 0xfffffffffffffff8
lea r8, [rsp + 0x50]
mov r10, r9
lea rcx, [rcx + 8]
mov rax, qword [rcx]
mov qword [r8], rax
lea r8, [r8 + 8]
sub r10, rdi
jne 0x1400e3217
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebx
movzx edx, r14w
mov word [rsp + 0x28], r9w
mov rcx, rsi
mov r9d, ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_ReportEventW]
test eax, eax
jne 0x1400e32b3
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x14015a290]
lea rcx, [0x14015a290]
cmp rax, rcx
je 0x1400e32b3
test byte [rax + 0x1c], 8
je 0x1400e32b3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x14015a290]
lea r8, [0x1400f6210]
mov r9d, eax
mov edx, 0xf
lea rax, str.GetLastError__
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400d5cb0
mov rcx, rsi
call qword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_DeregisterEventSource]
lea rcx, str.LogEvent
call fcn.1400073f0
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400305f0
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e4900
Capabilities:
Check if file exists
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rcx, str.AsrRegClearExitCode
call fcn.140007418
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
lea rcx, str.SOFTWAREMICROSOFTWINDOWS_NTCurrentVersionASRBackupSession
call fcn.1400e6848
test eax, eax
jne 0x1400e4985
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 2
je 0x1400e49df
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e49e4
test byte [rcx + 0x1c], 8
je 0x1400e49e4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x14015a290]
lea edx, [rbx + 0x20]
mov r9d, eax
lea rax, str.GetLastError___
jmp 0x1400e49c8
mov rcx, qword [rsp + 0x48]
lea rdx, str.BackupExitCode
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov edi, eax
test eax, 0xfffffffd
je 0x1400e49df
xor ebx, ebx
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e49e4
test byte [rcx + 0x1c], 8
je 0x1400e49e4
lea edx, [rbx + 0x21]
mov r9d, edi
lea rax, str.lDeleteValueResult
mov rcx, qword [rcx + 0x10]
lea r8, [0x140132220]
mov qword [rsp + 0x20], rax
call fcn.1400d5cb0
jmp 0x1400e49e4
xor edi, edi
lea ebx, [rdi + 1]
cmp qword [rsp + 0x48], 0
je 0x1400e49f7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rcx, str.AsrRegClearExitCode
call fcn.1400073f0
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e6984
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15, r8
mov rbp, rdx
mov r12, rcx
xor ebx, ebx
mov dword [rax + 0x10], 0x100
mov dword [rax - 0x38], ebx
mov edi, ebx
lea esi, [rbx + 1]
test rdx, rdx
je 0x1400e6aac
cmp word [rdx], bx
je 0x1400e6aac
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov ecx, dword [rsp + 0x78]
call fcn.140005bd0
mov rdi, rax
test rax, rax
je 0x1400e6a7b
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov r9d, eax
test eax, eax
je 0x1400e6a4f
cmp eax, 0xea
je 0x1400e69ca
mov esi, ebx
mov ebx, eax
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e6af0
test byte [rcx + 0x1c], 8
je 0x1400e6af0
mov edx, 0x16
lea rax, str.lResult
jmp 0x1400e6adb
test r15, r15
je 0x1400e6a5a
mov qword [r15], rdi
mov rdi, rbx
test r14, r14
je 0x1400e6a66
mov eax, dword [rsp + 0x78]
mov dword [r14], eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400e6af0
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x1400e6af0
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e6af0
test byte [rcx + 0x1c], 8
je 0x1400e6af0
lea edx, [r9 + 7]
lea rax, [0x1401327d8]
jmp 0x1400e6adb
mov r9d, 0x57
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e6af0
test byte [rcx + 0x1c], 8
je 0x1400e6af0
lea edx, [r9 - 0x43]
lea rax, [0x140132080]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401327f8]
mov qword [rsp + 0x20], rax
call fcn.1400d5cb0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400e6dc4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea edi, [rbx + 1]
test rdx, rdx
je 0x1400e6e26
test r8, r8
je 0x1400e6e26
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov r9d, eax
test eax, eax
je 0x1400e6e6a
mov edi, ebx
mov ebx, eax
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e6e6a
test byte [rcx + 0x1c], 8
je 0x1400e6e6a
mov edx, 0x24
lea rax, str.lResult
jmp 0x1400e6e55
mov r9d, 0x57
mov edi, ebx
mov ebx, r9d
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x1400e6e6a
test byte [rcx + 0x1c], 8
je 0x1400e6e6a
lea edx, [r9 - 0x34]
lea rax, str.ERROR_INVALID_PARAMETER
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401327f8]
mov qword [rsp + 0x20], rax
call fcn.1400d5cb0
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140001250
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x2040
call fcn.140013af0
sub rsp, rax
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, r8
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400012a0
dec rax
xor ecx, ecx
cmp rax, 1
jb 0x1400012c6
cmp word [rsp + rax*2 + 0x30], 0x5c
je 0x140001313
dec rax
cmp rax, 1
jae 0x1400012b5
mov qword [rbx + 0x10], rcx
lea rax, [rsp + 0x30]
mov qword [rbx + 0x18], 7
mov word [rbx], cx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], cx
jne 0x1400012e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140002830
mov rax, rbx
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1400034e0
add rsp, 0x2040
pop rbx
ret
add rax, rax
cmp rax, 0x2000
jae 0x140001325
mov word [rsp + rax + 0x30], cx
jmp 0x1400012c6
call fcn.14000360c
int3

Function at 0x1400025e0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x20]
mov rdx, rax
mov rdi, rax
call fcn.140001fe0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400097e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000954c
Function at 0x1401aba09
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [rsp + 4], si
push qword [rsp + 2]
push word [rsp + 2]
jmp 0x1401aba4d
mov r9w, 0xdc9e
xchg word [rsp + 0xf], r11w
xchg si, ax
pop r12
jmp 0x1401abaae
mov r9, qword [rsp + 5]
push qword [rsp + 0xe]
setns r12b
lea rdx, [r10 + riz - 0xa3e9]
mov r13d, dword [rsp + 0xe]
pop word [rsp + 0xf]
jmp 0x1401aba37
setp dl
xchg byte [rsp + 1], sil
mov r11, 0xffffffffb4a612e9
jmp 0x1401abade
pop word [rsp + 3]
bswap r13d
mov r13d, ebp
mov r14b, byte [rsp]
mov r14w, 0x78ca
mov qword [rsp], rdi
jmp 0x1401aba98
lea r9, [0xfffffffff296e92c]
mov edi, r15d
mov edx, dword [rsp + 9]
jmp 0x1401abaf8
not ecx
mov byte [rsp + 0xd], bpl
lea r12, [rcx + r8]
mov qword [rsp], r15
xchg si, r13w
mov dword [rsp + 8], r13d
jmp 0x1401abac8
mov rdx, rax
bswap rcx
mov r13d, dword [rsp]
pop cx
mov word [rsp + 6], bp
rdtsc
jmp 0x1401abb95
mov r12, 0xffffffffaedc9c62
mov r11w, dx
jmp 0x1401abb79
mov di, word [rsp + 7]
push word [rsp + 4]
lea rsp, [rsp + 2]
mov rcx, qword [rsp + 0x10]
xchg r9b, r11b
mov rax, 0x207cb11e
jmp 0x1401abb2c
mov rsi, qword [rsp + 0x18]
setp r11b
lea rax, [r11 + riz]
jmp 0x1401abbc2
mov rsi, 0xffffffff870cb9a5
rdtsc
mov r14, 0x6a83cd22
mov edi, r15d
jmp 0x1401abb63
lea rsp, [rsp + 5]
pushfq
pop r11w
xchg byte [rsp], sil
lea rdx, [rbx + rbx]
push dx
jmp 0x1401abb43
mov r14, qword [rsp + 0x20]
mov r9b, spl
mov ax, cx
xchg r9b, al
jmp 0x1401abdde
mov r12b, byte [rsp]
xchg rdx, r12
mov dx, word [rsp]
lea r9, [rbp + rbp]
mov r14, qword [rsp]
jmp 0x1401abbac
bswap r9d
mov r9b, 0x34
mov r12w, si
call fcn.1401abd40
stc
invalid
Function at 0x140003d30
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140003dc0
jmp 0x140003daf
jae 0x140003e80
cmp r8, 0x201
jae 0x140003dc0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003e18
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140003def
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001b110
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003ee8
mov r8d, r14d
cmp r15, r8
jne 0x140003da0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003f0b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003daf
jmp 0x140003dc0
cmp rsi, r8
jb 0x140003f25
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400066e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140003ed1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001110
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140003eb9
jmp 0x140003ed1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001bd80
jmp 0x140003f3a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001c170
ud2
Function at 0x14000b590
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001ef58]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000b5d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000b63a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000b671
test eax, eax
js 0x14000b64b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000b664
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1400015b0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400063f0
mov rcx, rax
call fcn.140001b30
mov ecx, 7
int 0x29
ud2
Function at 0x140019070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400190ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400190e0
cmp r11, r10
ja 0x140019183
cmp r10, rdx
ja 0x140019197
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400190e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400190c0
jmp 0x140019157
ja 0x1400190ea
mov r11, r10
cmp rax, r8
jne 0x140019092
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001915b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019130
mov r8, r10
sub ecx, r9d
jns 0x14001914e
jmp 0x14001915d
cmp r10, rdx
je 0x140019169
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001915d
xor al, 1
cmp r8, rdx
jne 0x140019110
jmp 0x14001915d
xor eax, eax
jmp 0x14001915d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001bd80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c1e0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c170
ud2

Function at 0x14001ab94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001abde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001abde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001abde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001abde
cmp dword [rcx + 0x84], 0xe
jbe 0x14001abde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001abe0
xor al, al
add rsp, 0x28
ret
Function at 0x140022500
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140022534
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140022520
ret
Function at 0x140028890
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 0x14002895c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002895c
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 0x140028975
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 0x14002894c
cmp byte [rax], 0x5c
jne 0x140028946
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140028946
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140028932
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140028943
test r8b, 0x10
jne 0x140028946
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140028946
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400244f0
test edi, edi
jne 0x1400288b0
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.1400244e0
int3
Function at 0x14002ad60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14002ad91
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14002ae0b
mov rdi, r14
mov rcx, rbx
call fcn.14001ffc0
test rax, rax
jle 0x14002ade3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140078690
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002adfb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002ae03
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14002ada5
sub r14, rdi
jmp 0x14002aeef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14002ae22
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002ae24
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002ae56
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140078690
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002aeec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002ae91
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
cmp rbp, 0xfff
jbe 0x14002aecd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400881f0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14002aeec
cmp rbp, rax
ja 0x14002aea0
test rbp, rbp
je 0x14002aeec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400881f0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002f670
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400dbe00], 0
jne 0x14002f762
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400c4ef0]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400c4ee0]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400dbe00]
test eax, eax
js 0x14002f725
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400c4ed0]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x14002f716
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400c4ec0]
mov r9, rdi
lea rdx, [0x1400c4eb0]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14002f70b
mov rcx, qword [0x1400dbe00]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x14002f762
cmp qword [0x1400dbe00], 0
jne 0x14002f762
lea r9, [0x1400c4ec0]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400c4eb0]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14002f76f
mov rcx, qword [0x1400dbe00]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400c4808]
lea rdx, [0x1400c4820]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret