joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002ac0
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.140004900
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.140004900
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 0x140002b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002c60
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002b7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002b60
mov rcx, rbx
call fcn.140003580
mov rdi, rax
test rax, rax
je 0x140002c82
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400036c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002bfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c10
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ac0
nop dword [rax]
xor esi, esi
jmp 0x140002b88
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ac0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ac0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400031f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000324c
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 0x140003243
test rsi, rsi
je 0x140003243
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003228
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 0x140003580
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400035a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400035a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400035fd
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 0x1400035f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400035a0
add rax, 0x28
cmp rax, r9
jne 0x1400035e0
xor eax, eax
ret

Function at 0x140003600
Capabilities:
Parse pe header

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

Function at 0x1400036c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400036df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400036e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001d50
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14002c748], rbx
je 0x140001db7
cmp rax, rbx
jne 0x140001daa
mov edi, 1
mov esi, edi
jmp 0x140001dbc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001d8f
mov edi, 1
mov eax, dword [0x14002c750]
cmp eax, edi
jne 0x140001dd4
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x140001e4a
mov eax, dword [0x14002c750]
test eax, eax
jne 0x140001e3f
mov dword [0x14002c750], edi
lea r15, [0x14001e728]
lea rbx, [0x14001e710]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140001e31
test eax, eax
jne 0x140001e35
cmp qword [rbx], r14
je 0x140001e26
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x14001e660]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140001dfe
test eax, eax
je 0x140001e45
mov eax, 0xff
jmp 0x140001fab
mov dword [0x14002bf50], edi
mov ebx, 0x1f
mov eax, dword [0x14002c750]
cmp eax, edi
jne 0x140001e71
lea rdx, [0x14001e708]
lea rcx, [0x14001e678]
call sub.msvcrt.dll__initterm
mov dword [0x14002c750], 2
test esi, esi
jne 0x140001e7f
mov rax, r14
xchg qword [0x14002c748], rax
cmp qword [0x14002c768], r14
je 0x140001ebc
lea rcx, [0x14002c768]
call fcn.140002460
test eax, eax
je 0x140001ebc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14002c768]
mov r9, qword [0x14001e660]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140001ed5
mov eax, 0xff
jmp 0x140001fab
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140001f5c
test ax, ax
je 0x140001ef0
test edx, edx
jne 0x140001f5c
sub ax, di
cmp ax, bx
ja 0x140001f06
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001ef0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000602c
mov dword [0x14002bf4c], eax
cmp dword [0x14002bf70], r14d
jne 0x140001f45
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002bf50], r14d
jne 0x140001f5a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002bf4c]
jmp 0x140001fab
cmp ax, 0x22
jne 0x140001f70
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140001ede
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400bf000
add rsp, 0x28
jmp 0x140001d50
Function at 0x140074ca0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140074cf4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor edx, edx
mov r8, rax
mov rcx, rbx
call sub.mfc140u.dll_afxShellManager
test eax, eax
jne 0x140074ce7
lea rcx, str.Fatal_Error:_MFC_initialization_failed_n
call fcn.140074d10
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.1400743b0
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, str.Fatal_Error:_GetModuleHandle_failed_n
call fcn.140074d10
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140078740
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rdi, r9
mov r10, r8
mov r14, rdx
mov rsi, rcx
movzx r9d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r9, rax
movabs rcx, 0x100000001b3
imul r9, rcx
movzx eax, byte [r8 + 1]
xor r9, rax
imul r9, rcx
movzx eax, byte [r8 + 2]
xor r9, rax
imul r9, rcx
movzx eax, byte [r8 + 3]
xor r9, rax
imul r9, rcx
mov r8, qword [rsi + 0x30]
and r8, r9
add r8, r8
mov rcx, qword [rsi + 0x18]
mov rbx, qword [rsi + 8]
mov rax, qword [rcx + r8*8]
cmp rbx, rax
je 0x14007882a
mov rbx, qword [rcx + r8*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14007882a
mov rbx, qword [rbx + 8]
mov ecx, dword [rbx + 0x10]
cmp dword [r10], ecx
jne 0x1400787d8
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [rsi + 0x10]
lea rcx, [rdi + 0x18]
call fcn.1400742f0
nop
mov edx, gethostname
mov rcx, rdi
call fcn.14009f0ec
nop
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x14007895b
mov qword [rsp + 0x20], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x140078864
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [rsi + 8]
jne 0x140078881
mov qword [rdx + r8*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r8*8 + 8], rdi
jmp 0x1400788b0
cmp rax, rbx
jne 0x14007888c
mov qword [rdx + r8*8], rdi
jmp 0x1400788b0
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rdi
je 0x1400788b0
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x14023a924]
test rax, rax
jns 0x1400788d1
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x1400788e2
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x140078950
cmp rdx, 0x200
jae 0x1400788fe
lea rdx, [rdx*8]
jmp 0x140078910
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x140078910
add rdx, rdx
mov rcx, rsi
call fcn.140079bc0
mov rax, qword [rsi + 8]
cmp qword [rax], rax
je 0x140078950
mov r15, qword [rax + 8]
nop word [rax + rax]
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
lea r8, [rbx + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140078740
cmp rbx, r15
jne 0x140078930
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140078970
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rdi, r8
mov rsi, rdx
mov r9, rcx
movzx r8d, byte [r8 + 0x10]
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs rcx, 0x100000001b3
imul r8, rcx
movzx eax, byte [rdi + 0x11]
xor r8, rax
imul r8, rcx
movzx eax, byte [rdi + 0x12]
xor r8, rax
imul r8, rcx
movzx eax, byte [rdi + 0x13]
xor r8, rax
imul r8, rcx
mov rdx, qword [r9 + 0x30]
and rdx, r8
shl rdx, 4
mov rcx, qword [r9 + 0x18]
add rcx, rdx
cmp qword [rcx + 8], rdi
jne 0x140078a10
cmp qword [rcx], rdi
jne 0x140078a06
mov rax, qword [r9 + 8]
mov qword [rcx], rax
mov rax, qword [r9 + 8]
mov rcx, qword [r9 + 0x18]
mov qword [rcx + rdx + 8], rax
jmp 0x140078a1b
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x140078a1b
cmp qword [rcx], rdi
jne 0x140078a1b
mov rax, qword [rdi]
mov qword [rcx], rax
mov rbx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rax], rbx
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
lea rcx, [rdi + 0x18]
call fcn.1400742f0
nop
mov edx, gethostname
mov rcx, rdi
call fcn.14009f0ec
nop
mov qword [rsi], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400798d0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140302028]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r9d, edx
mov rbx, rcx
mov eax, edx
shr eax, 8
movzx r8d, al
movzx eax, dl
movabs rcx, 0xcbf29ce484222325
xor rax, rcx
movabs rdx, 0x100000001b3
imul rax, rdx
xor r8, rax
imul r8, rdx
mov eax, r9d
shr eax, 0x10
movzx ecx, al
xor r8, rcx
imul r8, rdx
mov eax, r9d
shr rax, 0x18
xor r8, rax
imul r8, rdx
and r8, qword [0x140309f80]
add r8, r8
mov r11, qword [0x140309f68]
mov r10, qword [r11 + r8*8]
mov rdx, r10
mov rcx, qword [0x140309f58]
cmp r10, rcx
jne 0x14007996f
mov rax, rcx
jmp 0x140079977
mov rax, qword [r11 + r8*8 + 8]
mov rax, qword [rax]
cmp rdx, rax
je 0x1400799a6
cmp dword [rdx + 0x10], r9d
je 0x140079987
mov rdx, qword [rdx]
jmp 0x140079965
cmp rdx, rcx
je 0x1400799a6
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140079a00
add rdx, 0x18
call fcn.14009b1e0
test al, al
je 0x140079a00
mov al, 1
jmp 0x140079a02
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x30]
call fcn.140222360
nop
lea rcx, [rsp + 0x30]
call fcn.140222fc0
test al, al
je 0x1400799f6
lea rdx, str.nitro::licensing::license_nalpeiron_v10::IsModuleActive
lea rcx, [rsp + 0x30]
call fcn.140219e60
lea rdx, [0x14023a740]
mov rcx, rax
call fcn.140219e60
lea rdx, str.Feature_Id_for_module_is_missing
mov rcx, rax
call fcn.140219e60
nop
lea rcx, [rsp + 0x30]
call fcn.140219710
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14009f440
add rsp, 0x270
pop rbx
ret
Function at 0x140081450
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140302028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400814fc
cmp byte [rcx + 0x71], 0
je 0x1400814fc
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400814bd
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 0x1400814c1
sub eax, 1
je 0x1400814c5
sub eax, 2
je 0x1400814fc
xor al, al
jmp 0x1400814fe
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400814f3
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 0x1400814bd
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400814fe
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009f440
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400824c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140302028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400824ed
xor eax, eax
jmp 0x140082642
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140082518
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140082518
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140082642
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140082635
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14008255b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140082586
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 0x14008263a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
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_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
js 0x140082635
cmp eax, 1
jle 0x1400825f5
cmp eax, 3
jne 0x140082635
movsx ecx, byte [rsp + 0x40]
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 0x14008263a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140082623
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 0x140082635
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14008263a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14009f440
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140085360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rdi, r8
mov r14, rdx
mov rbx, rcx
je 0x140085397
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov rbp, rdi
mov qword [rsp + 0x38], rsi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400853b8
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400853ba
xor ecx, ecx
movsxd rsi, ecx
test rdi, rdi
jle 0x14008544b
test ecx, ecx
jle 0x1400853f2
cmp rdi, rsi
mov rcx, r14
cmovl rsi, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
add r14, rsi
sub rdi, rsi
sub dword [rax], esi
mov rcx, qword [rbx + 0x38]
movsxd rax, esi
add qword [rcx], rax
test rdi, rdi
jle 0x14008544b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14008544b
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140085437
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 r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
mov rsi, qword [rsp + 0x38]
sub rbp, rdi
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140085470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400854a7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400854c8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400854ca
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140085523
test ecx, ecx
jle 0x1400854fe
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140085523
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140085523
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400863a0
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r10, r8
mov r14, rdx
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x70], xmm0
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x140086407
mov eax, dword [r8 + 8]
test eax, eax
je 0x140086407
nop word [rax + rax]
lea ecx, [rax + 1]
lock cmpxchg dword [r8 + 8], ecx
je 0x1400864f3
mov eax, dword [r8 + 8]
test eax, eax
jne 0x1400863f0
mov rbx, qword [rsp + 0x30]
xor r15d, r15d
mov qword [rsp + 0x38], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rcx, r10
mov rdx, qword [r10 + 0x18]
cmp rdx, 0x10
jb 0x14008642d
mov rcx, qword [r10]
mov r8, qword [r10 + 0x10]
add r8, rcx
cmp rdx, 0x10
jb 0x14008643d
mov r10, qword [r10]
movzx r9d, byte [rsp + 0xa0]
mov rdx, r10
lea rcx, [rsp + 0x38]
call fcn.140086080
mov r8, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
sub r8, rdi
mov rbp, qword [rsp + 0x28]
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call sub.ncrypt.dll_BCryptHashData
test eax, eax
js 0x14008658e
xor r9d, r9d
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x10]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
js 0x14008656b
mov rdx, qword [rsi]
mov r8d, dword [rsi + 8]
add r8, rdx
mov qword [r14], r15
mov qword [r14 + 8], r15
mov qword [r14 + 0x10], r15
movzx r9d, byte [rsp + 0xa0]
mov rcx, r14
call fcn.140085550
nop
test rdi, rdi
je 0x140086513
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14008650a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008650a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsi + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x14008640c
mov rcx, rdi
call fcn.14009f0ec
nop
test rbx, rbx
je 0x14008654b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008654b
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008654b
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, str.Failed_to_extract_the_hash_data.
lea rcx, [rsp + 0x68]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_hash_data.
lea rcx, [rsp + 0x50]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3