joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000148a4
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov esi, edx
mov rdi, rcx
mov ebp, dword [0x10001e15c]
lea rdx, [rax - 0x18]
call fcn.1000141bc
nop
xor ebx, ebx
mov edx, esi
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10001494b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x100014928
cmp eax, 2
je 0x100014928
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
inc ebx
mov r9d, ebx
mov r8d, ebp
mov edx, 0x239c
mov rcx, rdi
call fcn.100009c64
test eax, eax
jne 0x1000148d8
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x10001495a
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x239c
mov rcx, rdi
call fcn.100009c64
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x10001495a
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1000161b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 8]
lea rax, [r11 + 0x20]
mov edi, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 8]
xor ebx, ebx
xor r8d, r8d
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000161f1
cmp dword [rsp + 0x40], edi
jne 0x1000161f1
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100016204
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov r8d, 4
mov rbx, rdx
mov rdi, rcx
call fcn.1000161b4
xor esi, esi
cmp eax, esi
jne 0x10001623c
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
cmp eax, esi
sete sil
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100016284
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, r8
mov r8d, 4
mov esi, r9d
mov rbx, rdx
mov rdi, rcx
call fcn.1000161b4
xor ebp, ebp
cmp eax, ebp
jne 0x1000162ce
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.100016204
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x68]
cmp eax, ebp
cmove esi, dword [rsp + 0x30]
cmp eax, ebp
sete bpl
mov dword [r12], esi
mov eax, ebp
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x10001632c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x850
mov rax, qword [0x10001e110]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbx, r8
lea r14, [0x100001cb8]
mov esi, 1
mov rdx, r14
mov r8d, esi
mov rbp, rcx
call fcn.1000161b4
xor r13d, r13d
lea r12, [0x100001c48]
cmp eax, r13d
jne 0x1000163d9
mov rcx, qword [rbp + 8]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov r8d, esi
mov rdx, r14
mov rcx, rbp
call fcn.1000161b4
cmp eax, r13d
jne 0x1000163b0
mov rcx, qword [rbp + 8]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 8]
mov r9d, esi
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], r13w
call sub.msvcrt.dll_memset
mov rcx, qword [rbp + 8]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov edi, 0x104
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, r13d
jne 0x10001646a
cmp dword [rsp + 0x30], esi
jne 0x10001646a
lea rcx, [rsp + 0x40]
sub rcx, rbx
lea rax, [rdi + 0x7ffffefa]
cmp rax, r13
je 0x10001645b
movzx eax, word [rcx + rbx]
cmp ax, r13w
je 0x10001645b
mov word [rbx], ax
add rbx, 2
sub rdi, rsi
jne 0x100016439
cmp rdi, r13
jne 0x100016464
sub rbx, 2
mov word [rbx], r13w
jmp 0x1000164ab
sub r12, rbx
lea rax, [rdi + 0x7ffffefa]
cmp rax, r13
je 0x100016490
movzx eax, word [r12 + rbx]
cmp ax, r13w
je 0x100016490
mov word [rbx], ax
add rbx, 2
sub rdi, rsi
jne 0x10001646d
cmp rdi, r13
jne 0x100016499
sub rbx, 2
mov word [rbx], r13w
cmp r11d, r13d
jne 0x1000164a8
cmp dword [rsp + 0x30], esi
je 0x1000164ab
mov esi, r13d
mov eax, esi
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.100018470
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100016ac4
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, r8
lea r8, [rcx + 0xd0]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
mov edi, eax
test eax, eax
jne 0x100016b74
lea r8, [rbx + 0x88]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
mov edi, eax
test eax, eax
jne 0x100016b5c
and qword [rsp + 0x28], 0
lea r8, [0x100016bbc]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
test rax, rax
je 0x100016b52
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x100016ba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100016b92
cmp dword [0x100080328], 0
je 0x100016b92
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003310]
jmp 0x100016b8a
cmp dword [0x100080328], 0
je 0x100016b92
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003370]
mov edx, eax
call qword [sym.imp.msvcrt.dll_wprintf]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call fcn.10001691c
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x100018470
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001e110]
jne 0x10001848b
rol rcx, 0x10
test cx, 0xffff
jne 0x100018487
ret 0
ror rcx, 0x10
jmp 0x1000189ac
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001e4c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x10001e5b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100018a31
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10001e4c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100018a53
mov rax, qword [rsp + 0x88]
mov qword [0x10001e5b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001e558], rax
mov rax, qword [0x10001e5b8]
mov qword [0x10001e430], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001e540], rax
mov dword [0x10001e420], 0xc0000409
mov dword [0x10001e424], 1
mov rax, qword [0x10001e110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001e118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001798]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x100018848
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100018895
cmp rcx, 0xffffffffffffffff
je 0x100018895
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001888d
cmp dword [rcx + 0x3c], edx
jl 0x10001888d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001888d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100018895
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004090
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140004130
jmp 0x14000411f
jae 0x1400041ef
cmp r8, 0x201
jae 0x140004130
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140004187
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000415f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call case.0x140007714.442
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400041b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000425b
mov r8d, r13d
cmp r12, r8
jne 0x140004110
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000428f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000411f
jmp 0x140004130
cmp r14, r8
jb 0x1400042a9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140006ee0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140004244
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001e60
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000422f
jmp 0x140004244
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001bf90
jmp 0x1400042be
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001c340
ud2
Function at 0x14000b420
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001f430]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000b458
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000b4af
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14000b4bc
xor edx, edx
xor eax, eax
jmp 0x14000b4e6
cmp eax, 0x103
je 0x14000b4f0
test eax, eax
js 0x14000b4cf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000b4e6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400068a0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002780
mov ecx, 7
int 0x29
ud2

Function at 0x14000b540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001f430]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000b578
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000b5d6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000b603
test eax, eax
js 0x14000b5e2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000b5f9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400068a0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002780
mov ecx, 7
int 0x29
ud2
Function at 0x140018a70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140018afa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x140018af0
cmp r10, r11
jb 0x140018b76
cmp r10, rdx
ja 0x140018b88
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140018af2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018ad0
jmp 0x140018b57
ja 0x140018afa
mov r11, r10
cmp rax, r8
jne 0x140018a97
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140018b5b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140018b30
mov r8, r10
sub ecx, r9d
jns 0x140018b4e
jmp 0x140018b5d
cmp r10, rdx
je 0x140018b6a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140018b5d
xor al, 1
cmp r8, rdx
jne 0x140018b10
jmp 0x140018b5d
xor eax, eax
jmp 0x140018b5d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001be70
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c3b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c340
int3

Function at 0x14001a374
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a3be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a3be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a3be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a3be
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a3be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001a3c0
xor al, al
add rsp, 0x28
ret
Function at 0x140008250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140094a00]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008323
cmp byte [rcx + 0x71], 0
je 0x140008323
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000831f
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 0x1400082e4
sub eax, 1
je 0x1400082e8
cmp eax, 2
jne 0x14000831f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052100
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008316
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 0x14000831f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400082cc
xor al, al
jmp 0x1400082cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052100
add rsp, 0x60
pop rbx
ret
Function at 0x1400085a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140094a00]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400085cd
xor eax, eax
jmp 0x140008736
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000860d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000860d
mov rcx, rdi
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], sil
mov eax, esi
jmp 0x14000872e
cmp qword [rdi + 0x80], 0
je 0x140008729
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140008647
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140008672
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000872e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400086e1
sub eax, 1
je 0x1400086e1
cmp eax, 2
jne 0x140008729
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000872e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000870f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140008729
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000872e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140052100
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008ee0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140008f02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008f18
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140008f62
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140008fd1
mov rcx, rbp
call fcn.140008360
cmp rbx, 0xfff
jbe 0x140008fb1
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140008fea
cmp rbx, rax
ja 0x140008f80
test rdi, rdi
je 0x140008fd1
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140008fd4