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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x1400c8d1f]
lea r8, str.BracedRangeExpr
mov rcx, rax
call fcn.140083a00
mov r14, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x20]
mov rdi, qword [rdi + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x140099afb
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140099ae0
mov byte [rsi + 4], 0
test r14, r14
je 0x140099b11
mov rcx, r14
mov rdx, rsi
call fcn.140093530
jmp 0x140099b36
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rbx
call fcn.140094cb0
mov rcx, rsi
mov rdx, rdi
call fcn.140094cb0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400b3ae0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov al, byte [0x1400ebf78]
test al, al
je 0x1400b3bdf
cmp qword [0x142254860], 0
je 0x1400b3b50
mov rax, qword [str.8__B]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
mov r8, qword [0x1422549b8]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.140023010
mov rax, qword [0x1400d3320]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
mov r8, qword [0x142254968]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.140023010
call fcn.1400b3cf0
movzx eax, byte [rsi]
test al, 1
je 0x1400b3b5d
mov rax, qword [rsi + 8]
jmp 0x1400b3b5f
shr eax, 1
test rax, rax
je 0x1400b3bd7
lea rcx, [0x1422547e0]
mov rdx, rsi
mov r8d, 0x10
call fcn.1400b3d30
cmp qword [0x142254860], 0
je 0x1400b3c15
mov rax, qword [0x1400d3320]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
lea r8, [0x142254928]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.140023010
mov rax, qword [str.8__B]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
lea r8, [0x142254978]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140023010
nop
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ebf78]
call fcn.1400339f0
test eax, eax
je 0x1400b3af7
call fcn.1400b3c50
lea rcx, [0x1400b3ce0]
call fcn.140030680
lea rcx, [0x1400ebf78]
call fcn.140033acb
jmp 0x1400b3af7
mov rdi, qword [0x1400d3328]
lea rdx, str.Unable_to_open_debug_log_file
mov rcx, rdi
call fcn.140018870
mov rcx, rdi
mov rdx, rsi
call fcn.140018050
mov rcx, rdi
call fcn.1400184a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400b8ff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9d, 0xffffffff
lea r8, [0x1400d2480]
cmp rdx, 4
jb 0x1400b9056
mov eax, r9d
xor r9b, byte [rcx]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
mov r9d, eax
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [r8 + rax*4]
mov eax, r9d
xor r9b, byte [rcx + 2]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
mov r9d, eax
xor al, byte [rcx + 3]
shr r9d, 8
movzx eax, al
xor r9d, dword [r8 + rax*4]
add rcx, 4
add rdx, 0xfffffffffffffffc
cmp rdx, 3
ja 0x1400b9003
test rdx, rdx
je 0x1400b907d
xor r10d, r10d
mov eax, r9d
xor r9b, byte [rcx + r10]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
inc r10
mov r9d, eax
cmp rdx, r10
jne 0x1400b9061
jmp 0x1400b9080
mov eax, r9d
not eax
ret
Function at 0x140002690
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140021a88]
mov edx, 0x66
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbx, rax
call fcn.1400043b0
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140021a90]
lea rcx, str.C:windows_temp_
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, str.___MSI_file:__ls_n
call fcn.1400013d0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0x40040000
mov dword [rsp + 0x20], 2
mov rdi, rax
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rdx, str.ACTIONINSTALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rdx, str.REMOVEALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002890
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003348
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006b43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006b43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006b43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006b43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006b43
cmp dword [rcx + 0x84], 0xe
jbe 0x140006b43
cmp dword [rcx + 0xf8], 0
je 0x140006b43
mov ecx, ebx
call fcn.140006bf4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400069d0
nop
cmp dword [rbp + 0x20], 0
je 0x140006b91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006b9c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006ad4
Function at 0x140010aec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140010b73
mov rsi, rbx
cmp word [rax], bp
je 0x140010b32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010b1c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010b18
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000d8ac
mov rdi, rax
test rax, rax
je 0x140010b60
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140006360
mov rbp, rdi
xor ecx, ecx
call fcn.14000cc78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014d3c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014d52
mov al, 1
jmp 0x140014db2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014d63
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014db0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011290
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014db0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014db0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014db0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014db2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140017960
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017988
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017988
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003630
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
cmp dword [rcx + 0x48], 0
jne 0x1400036a0
mov ecx, 8
call fcn.140010604
test rax, rax
je 0x140003651
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001940]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400036a8
cmp dword [rbx + 0x48], 0
jne 0x140003699
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x40], xmm0
mov al, 1
jmp 0x1400036a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
xor al, al
add rsp, 0x50
pop rbx
ret
mov dword [rsp + 0x48], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140006f70
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140007121
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140002940
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1400070e6
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140007060
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1400070d5
mov rax, qword [r11 + 8]
mov r8d, dword [rcx + 0x10]
cmp r8d, dword [rax + 0x10]
jne 0x14000709d
mov r8, qword [rax]
cmp r8, rcx
je 0x140007097
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1400070d5
cmp r9, rax
je 0x1400070b1
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
je 0x1400070fb
cmp r9, rax
jne 0x1400070a2
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140007010
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400070d5
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140007130
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x14000722e
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x28
call fcn.140010640
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x14000723a
cmp rbx, rbp
jne 0x1400071e0
cmp qword [rsp + 0x68], r14
jne 0x14000720d
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x140007249
mov qword [r15], r12
mov rax, r12
jmp 0x14000724c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14000720d
nop word [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x28
call fcn.140010640
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x1400072e6
cmp rbx, rbp
jne 0x1400072c0
jmp 0x14000720a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140007260
jmp 0x14000720d
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400074cc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14000745a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x140007130
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000749a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x28
call fcn.140010640
mov rcx, rbx
test rbx, rbx
jne 0x140007480
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.140001d10
add rsp, 0x20
pop rdi
ret
Function at 0x140007420
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x14000722e
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x28
call fcn.140010640
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x14000723a
cmp rbx, rbp
jne 0x1400071e0
cmp qword [rsp + 0x68], r14
jne 0x14000720d
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x140007249
mov qword [r15], r12
mov rax, r12
jmp 0x14000724c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14000720d
nop word [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x28
call fcn.140010640
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x1400072e6
cmp rbx, rbp
jne 0x1400072c0
jmp 0x14000720a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140007260
jmp 0x14000720d
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400074cc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14000745a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x140007130
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000749a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x28
call fcn.140010640
mov rcx, rbx
test rbx, rbx
jne 0x140007480
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.140001d10
add rsp, 0x20
pop rdi
ret
Function at 0x140007520
Capabilities:
Hash data using fnv

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x60
mov ebx, edx
mov r8, rcx
cmp edx, 0xffffffff
jne 0x140007578
lea rdx, [rsp + 0x20]
call fcn.1400030b0
cmp qword [rsp + 0x30], 0
jne 0x140007559
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140002720
mov eax, ebx
add rsp, 0x60
pop rbx
ret
mov rax, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
mov rax, qword [rax]
mov rbx, qword [rax + 0x10]
call fcn.140002720
mov rax, rbx
add rsp, 0x60
pop rbx
ret
movabs rcx, 0x100000001b3
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [rsp + 0x79]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x7a]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x7b]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r8 + 0xe8]
and rcx, rdx
mov rdx, qword [r8 + 0xc0]
shl rcx, 4
add rcx, qword [r8 + 0xd0]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x14000761a
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x1400075f5
cmp rax, rcx
je 0x14000761a
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x1400075e7
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x14000761a
cmp dword [rax + 0x20], 0
jle 0x140007611
mov rax, qword [rax + 0x18]
add rsp, 0x60
pop rbx
ret
lea rdx, str.Invalid_report_size_for_report_type:
jmp 0x140007621
lea rdx, str.No_device_found_for_report:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001260
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140001c90]
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]
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x140007910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test r8, r8
jne 0x140007950
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.GetReport_buffer_is_empty_
call fcn.140001260
lea rdx, [0x140001c90]
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]
mov rcx, rdi
call fcn.140008010
mov rcx, rdi
cmp eax, 3
jge 0x14000798d
mov edx, 2
call fcn.140007520
mov rcx, rax
mov r8d, ebx
mov rdx, rsi
call sub.HID.DLL_HidD_GetFeature
test al, al
setne al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor edx, edx
call fcn.140007520
xorps xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov rdi, rax
movups xmmword [rsp + 0x30], xmm0
lea edx, [r9 + 1]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400079c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140007a36
lea rax, [rsp + 0x30]
mov r8d, ebx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
jne 0x140007a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140007a21
mov rcx, qword [rsp + 0x48]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140007a4f
cmp eax, 0x3e5
je 0x140007a4f
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
mov al, 1
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret