joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140160fd0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
movups xmm0, xmmword [rdx + 0x40]
movaps xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmm3, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x30], xmm3
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x60], xmm0
lea rsi, [rbp - 0x30]
mov qword [rbp - 8], 2
lea r14, [rbp + 9]
lea rbx, [rcx + 0x18]
xor r12d, r12d
jmp 0x14016106a
mov rax, qword [rdi + 0x20]
mov rcx, r12
shl rcx, 5
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc r12
mov qword [rdi + 0x28], r12
add rsi, 0x28
mov r12, r15
cmp r12, 2
je 0x14016111b
lea r15, [r12 + 1]
mov qword [rbp - 0x10], r15
lea rcx, [r12 + r12*4]
movzx eax, byte [rbp + rcx*8 - 0x58]
cmp al, 7
je 0x1401610ee
lea rdx, [rcx*8 - 0x60]
add rdx, rbp
movzx r12d, byte [rbp + rcx*8 - 0x60]
mov byte [rbp + 8], al
movups xmm0, xmmword [rdx + 9]
movups xmm1, xmmword [rdx + 0x18]
movups xmmword [r14 + 0xf], xmm1
movups xmmword [r14], xmm0
mov r13, qword [rdi + 0x10]
cmp r13, qword [rdi]
jne 0x1401610c4
mov byte [rbp + 0x2f], 1
mov rcx, rdi
call fcn.14005e860
mov rax, qword [rdi + 8]
mov byte [rax + r13], r12b
inc r13
mov qword [rdi + 0x10], r13
mov r12, qword [rdi + 0x28]
cmp r12, qword [rdi + 0x18]
jne 0x140161040
mov rcx, rbx
call fcn.14005e2a0
jmp 0x140161040
cmp r15, 2
je 0x14016111b
mov edi, 1
nop dword [rax]
mov rcx, rsi
call fcn.1401601c0
mov rax, r12
xor rax, rdi
add rsi, 0x28
inc rdi
cmp rax, 1
jne 0x140161100
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14017bd90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
cmp byte [rsp + 0x118], 0x6d
jne 0x14017c9f1
cmp byte [rsp + 0x110], 0
jne 0x14017c9f1
mov r15d, dword [rcx + 0x18]
mov r12d, dword [rcx + 0x1c]
mov dword [rsp + 0x64], r12d
mov r8d, r15d
shr r8d, 8
mov dword [rsp + 0x74], r8d
mov r8d, r15d
shr r8d, 0x10
mov dword [rsp + 0x70], r8d
mov esi, r15d
shr esi, 0x18
mov r8d, r12d
shr r8d, 8
mov dword [rsp + 0x60], r8d
mov r13d, r12d
shr r13d, 0x10
shr r12d, 0x18
mov r14d, dword [rcx + 0x20]
mov ebp, r14d
shr ebp, 8
mov ebx, r14d
shr ebx, 0x10
mov edi, r14d
shr edi, 0x18
mov qword [rsp + 0x90], rcx
movzx eax, word [rcx + 0x24]
mov word [rsp + 0x5a], ax
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x98]
call fcn.14017d920
mov dword [rsp + 0x88], esi
mov dword [rsp + 0x3c], esi
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0x74]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x8c], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x84], r13d
mov dword [rsp + 0x34], r13d
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x7c], ebx
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x4c], r14d
movzx ecx, word [rsp + 0x5a]
mov ebx, ecx
test rax, rax
je 0x14017c78d
lea rbp, [0x14021d370]
lea r12, [0x14021d39c]
lea r15, [0x14021d384]
xor r14d, r14d
xor edi, edi
mov dword [rsp + 0x5c], ecx
xor r13d, r13d
mov dword [rsp + 0x44], ecx
xor esi, esi
movzx ecx, word [rsp + 0x5a]
mov ebx, ecx
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x4c], ecx
mov ecx, dword [rsp + 0x6c]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x7c]
mov dword [rsp + 0x54], ecx
and al, 0x54
Function at 0x140182870
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1401828e2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x1401828a8
add rdi, rbx
sub rsi, rbx
je 0x1401828e2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1401828a0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1401828a0
and ebp, 0x7fffffff
jmp 0x1401828e4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14018a000
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x14018a040
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 0x14018a0e0
jmp 0x14018a0cf
jae 0x14018a19f
cmp r8, 0x201
jae 0x14018a0e0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14018a137
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14018a10f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1401be960
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 0x14018a160
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14018a20b
mov r8d, r13d
cmp r12, r8
jne 0x14018a0c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14018a23f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14018a0cf
jmp 0x14018a0e0
cmp r14, r8
jb 0x14018a259
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14018ec00
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 0x14018a1f4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400b4820
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 0x14018a1df
jmp 0x14018a1f4
lea rcx, str.internal_error:_entered_unreachable_code_b
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401c00e0
jmp 0x14018a26e
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.1401c0570
ud2
Function at 0x14018b340
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14018b355
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14018b370
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140196c40

Function at 0x140192c90
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1401b83b0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x140199510]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.140199060
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x140192e80
test r15, r15
je 0x140192e4c
cmp r15, 0x1000
ja 0x140192ea2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x140192e20
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140192db0
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x140192e40
add r12, rax
cmp r12, r15
je 0x140192e10
jbe 0x140192d60
jmp 0x140192e8e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x140192d0e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140183dc0
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140183dc0
jmp 0x140192e4c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1401c05e0
jmp 0x140192eb6
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.1401c0570
ud2
Function at 0x140196c40
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
in al, dx
push 0x246c8d48
invalid
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
lea ecx, [rbp - 0x10]
call fcn.1401a0370
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
jne 0x140196c5c
movabs rbx, 0x8000000000000000
cmp rax, rbx
cmp eax, ebx
je 0x140196ca0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
invalid
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.1401a1f30
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x140196cac
invalid
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
invalid
cmpsb byte [rsi], byte [rdi]
add al, byte [rax]
test eax, eax
je 0x140196cd8
test rdi, rdi
je 0x140196d04
invalid
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1400b4820
xor eax, eax
jmp case.0x14018b3db.461
retf
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je case.0x14018b3db.461
add rdi, rdi
mov r8d, 2
mov eax, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
mov esi, eax
call fcn.1400b4820
jmp 0x140196ca0
pushfq
xor eax, eax
jmp case.0x14018b3db.461
wait

Function at 0x140197420
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140221188]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140197458
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 0x1401974af
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1401974bc
xor edx, edx
xor eax, eax
jmp 0x1401974e6
cmp eax, 0x103
je 0x1401974f0
test eax, eax
js 0x1401974cf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401974e6
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.14018e7e0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401844e0
mov ecx, 7
int 0x29
ud2
Function at 0x140197540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140221188]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140197578
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 0x1401975d6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140197603
test eax, eax
js 0x1401975e2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401975f9
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.14018e7e0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401844e0
mov ecx, 7
int 0x29
ud2

Function at 0x140198690
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
Function at 0x140199a00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140199b70
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140199a3d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140199b35
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140199b53
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140199a9c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x140199adf
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140199ae3
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140199ae7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140199b11
lea rax, [rbp - 8]
jmp 0x140199af3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140199b17
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140183dc0
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x140199b22
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140199a85
mov ecx, 1
jmp 0x140199a8f
mov r8d, 0x10
mov rcx, rbx
call fcn.1401beab0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140199a4a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1401beab0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140199a4a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1401be910
int3
Function at 0x14019df70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401a0370
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x14019dfae
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x14019dfd4
mov rdx, qword [rbp - 0x18]
Function at 0x14019fa70
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140260201]
mov ecx, 0x10
mov edx, 8
call fcn.1400b4810
test rax, rax
je 0x14019fb5b
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
add byte [rbp + rcx*4 + 5], cl
invalid
add dword [rax], eax
add byte [rcx], dh
push qword [rcx]
leave
mov rdx, rsi
mov r9, rax
mov ecx, eax
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1401bfe20
ud2
Function at 0x1401b56e0
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 0x1401b576a
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 0x1401b5760
cmp r11, r10
ja 0x1401b57e6
cmp r10, rdx
ja 0x1401b57f8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1401b5762
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401b5740
jmp 0x1401b57c7
ja 0x1401b576a
mov r11, r10
cmp rax, r8
jne 0x1401b5707
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1401b57cb
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 0x1401b57a0
mov r8, r10
sub ecx, r9d
jns 0x1401b57be
jmp 0x1401b57cd
cmp r10, rdx
je 0x1401b57da
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401b57cd
xor al, 1
cmp r8, rdx
jne 0x1401b5780
jmp 0x1401b57cd
xor eax, eax
jmp 0x1401b57cd
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.1401bffa0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1401c05e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401c0570
int3

Function at 0x1401b8b60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1401b8baa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401b8baa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401b8baa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401b8baa
cmp dword [rcx + 0x84], 0xe
jbe 0x1401b8baa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401b8bac
xor al, al
add rsp, 0x28
ret
Function at 0x1401bed60
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0xc0]
test eax, eax
je 0x1401bed9b
cmp eax, 1
je 0x1401bedc8
jmp 0x1401beeda
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0xb8]
lea rdx, [0x1401a27b0]
call case.0x14018f402.383
mov byte [rsi + 0xc0], 1
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0xb8]
test rsi, rsi
je 0x1401beea8
lock inc qword [rsi]
jle 0x1401beed8
test rsi, rsi
je 0x1401beeda
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x7a], 0
jne 0x1401bee36
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov word [rax + 0x7a], 1
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x7b]
mov qword [rbp - 0x10], rax
movzx eax, byte [0x140260201]
mov ecx, 0x30
mov edx, 8
call fcn.1400b4810
test rax, rax
je 0x1401beef2
movups xmm0, xmmword [rbp - 0x38]
movups xmm1, xmmword [rbp - 0x28]
movups xmm2, xmmword [rbp - 0x18]
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
add rsp, 0x68
pop rsi
pop rbp
ret
mov eax, dword [0x1402603c8]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0xb8]
call fcn.1401be820
mov rsi, qword [rsi + 0xb8]
lock inc qword [rsi]
jg 0x1401bedf5
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x14021f798]
mov edx, 0x5e
call fcn.1401bffc0
mov qword [rbp - 8], rsi
mov ecx, 8
mov edx, 0x30
call fcn.1401bfe20
jmp 0x1401beed8
Function at 0x1400030e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rdx], 1
je 0x140003152
mov rdi, rdx
mov rbx, qword [rdx + 8]
mov dword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov edx, 7
mov rcx, rbx
mov r8d, 0x40
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x140003168
mov eax, dword [rbx]
mov ecx, dword [rbx + 3]
mov dword [rbp - 0x2d], ecx
mov dword [rbp - 0x30], eax
mov eax, dword [rdi + 0x11]
mov ecx, dword [rdi + 0x14]
mov dword [rbx + 3], ecx
mov dword [rbx], eax
mov byte [rdi], 1
mov eax, dword [rbp - 0x30]
mov ecx, dword [rbp - 0x2d]
mov dword [rdi + 1], eax
mov dword [rdi + 4], ecx
mov qword [rsi], 3
mov rax, rsi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.140005da0
mov rdi, rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], edx
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 1
mov qword [rbp + 0x20], 0
mov qword [rbp], 0x20
mov byte [rbp + 8], 3
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x20], 0
lea rax, [rbp + 0x10]
mov qword [rbp - 0x10], rax
lea rax, [0x14002c780]
mov qword [rbp - 8], rax
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x30]
call fcn.140006170
test al, al
jne 0x140003209
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x40], rax
test rdi, rdi
je 0x1400031ed
lea rcx, [rbp + 0x28]
call fcn.140006450
mov qword [rsi], 2
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rbp - 0x40]
mov qword [rsi + 0x18], rax
jmp 0x140003159
lea rax, [0x14002c838]
mov qword [rsp + 0x20], rax
lea rcx, str.a_Display_implementation_returned_an_error_unexpectedly_rustc_4392847410ddd67f6734dd9845f9742ff9e85c83library_alloc_src_string.rs
lea r9, [0x14002c850]
lea r8, [rbp + 0x3f]
mov edx, 0x37
call fcn.14002b100
ud2