joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100025870
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x10002587d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x10002588d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100025875
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1000258a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100025892
sub eax, 3
jb 0x1000258bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1000258f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1000258e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1000258e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1000258d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.100025832
jmp 0x10002587d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x13000
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x100025942
cmp rsi, rcx
jae 0x10002594a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x100025929
cmp al, 0x8f
ja 0x100025929
cmp byte [rsi - 2], 0xf
je 0x10002592f
sub al, 0xe8
cmp al, 1
ja 0x100025913
cmp rsi, rcx
jae 0x10002594a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x100025919
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x10002594a
lodsb al, byte [rsi]
jmp 0x100025929
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x22000]
mov eax, dword [rdi]
or eax, eax
je 0x1000259a7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x259d8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100025957
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1000259a1
mov qword [rbx], rax
add rbx, 8
jmp 0x100025977
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1000259e1
cmp al, 0xef
ja 0x1000259d3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1000259b3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1000259c2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100025a35
sub rsp, 0xffffffffffffff80
jmp 0x1000049d4
Function at 0x68d81d70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x68d81dc3
cmp byte [r12 + rbx - 1], 0xa
je 0x68d81d9e
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x68d88124], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x68d82400
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x110
mov ebx, ecx
mov rcx, rdx
mov rsi, rdx
mov rdi, r8
call sym.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, ebx
jae 0x68d82670
mov ecx, dword [0x68d88124]
xor eax, eax
mov rdx, qword gs:[0x30]
cmp dword [rdx + 0x48], ecx
je 0x68d824f1
test byte [0x68d83050], 8
jne 0x68d825d8
test byte [0x68d83060], 8
jne 0x68d82540
lea r12, [rsp + 0x40]
mov rbp, r12
test byte [0x68d83070], 8
jne 0x68d82598
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x48]
lea rdx, str._04x:
mov rcx, rbp
call sym.sprintf
test rdi, rdi
je 0x68d82498
cmp ebx, 3
jbe 0x68d82500
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, r12
mov r9, rax
mov ecx, dword [r8]
add r8, 4
lea edx, [rcx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x68d824a9
mov eax, edx
mov rcx, r12
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea rax, [r8 + 2]
cmove r8, rax
mov eax, edx
add al, dl
mov edx, 1
sbb r8, 3
sub r8, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cdqe
add rsi, 1
mov qword [rsp + 0x28], rdi
lea r8, str._s:_s:_s
lea rcx, [rbp + rax]
mov rax, r12
mov qword [rsp + 0x20], rsi
sub rax, rcx
lea rdx, [rax + 0xc8]
lea rax, str.fixme
mov r9, qword [rax + rbx*8]
call sym.snprintf.constprop.0
jmp 0x68d82498
lea rcx, [0x68d83060]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x68d8245d
call qword [sym.imp.kernel32.dll_GetTickCount]
lea r12, [rsp + 0x40]
lea rdx, str._3u._03u:
mov r8d, eax
mov rcx, r12
mov r9, r8
imul r8, r8, 0x10624dd3
shr r8, 0x26
imul eax, r8d, 0x3e8
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x68d82465
lea rcx, [0x68d83070]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x68d82472
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x40]
mov rcx, rbp
lea rdx, str._04x:
call sym.sprintf
cdqe
add rbp, rax
jmp 0x68d82472
lea rcx, [0x68d83050]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x68d82450
cmp qword [section..bss], 0
je 0x68d82660
lea rcx, [rsp + 0x38]
lea r12, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov rcx, r12
imul rax, qword [rsp + 0x38], 0xf4240
cqo
idiv qword [section..bss]
movabs rdx, 0x431bde82d7b634db
mov r9, rax
imul rdx
mov rax, r9
sar rax, 0x3f
sar rdx, 0x12
mov r8, rdx
lea rdx, str._3u._06u:
sub r8, rax
imul rax, r8, 0xf4240
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x68d82465
lea rcx, [section..bss]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
jmp 0x68d825f6
mov eax, 0xffffffff
jmp 0x68d824f1
Function at 0x140055f2c
Capabilities:
Parse pe header

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

Function at 0x14006b754
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006b550
Function at 0x140001180
Capabilities:
Execute command

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x20
mov qword [rsp + 0x28], 0
call fcn.140001290
movups xmm0, xmmword [str._.Itog_1_test1.exe_]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x14
mov qword [rsp + 0x38], 0x1f
movups xmmword [rax], xmm0
mov ecx, dword [0x140003338]
mov dword [rax + 0x10], ecx
lea rcx, str.chcp_1251
mov byte [rax + 0x14], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140001245
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001240
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001240
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400012cc
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001270
add rsp, 0x58
ret

Function at 0x140001c24
Capabilities:
Parse pe header

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

Disassembly:
call 0x141fd21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141fd2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141fd206f
add dl, dl
jne 0x141fd2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141fd20f6
xor eax, eax
add dl, dl
jne 0x141fd20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141fd21ad
add dl, dl
jne 0x141fd20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fd20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fd20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fd20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141fd20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141fd207e
mov eax, 1
add dl, dl
jne 0x141fd2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fd2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141fd20fb
sub eax, ebx
mov ebx, 1
jne 0x141fd214c
mov ecx, 1
add dl, dl
jne 0x141fd212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141fd213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141fd2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141fd207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141fd2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141fd2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141fd215d
cmp eax, 0x7d00
jae 0x141fd219b
cmp eax, 0x500
jb 0x141fd2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141fd207e
cmp eax, 0x7f
ja 0x141fd219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141fd207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141fd21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141fd207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003460
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp r8, qword [rsp + 0x70]
jne 0x1400034e0
test r8, r8
je 0x1400034d7
movzx r10d, byte [rcx + 0x100]
movzx eax, byte [rcx + 0x101]
xor r11d, r11d
nop word cs:[rax + rax]
inc r10b
movzx esi, r10b
movzx ebx, byte [rcx + rsi]
add al, bl
movzx edi, al
movzx ebp, byte [rcx + rdi]
mov byte [rcx + rsi], bpl
mov byte [rcx + rdi], bl
add bl, byte [rcx + rsi]
movzx esi, byte [rdx + r11]
movzx edi, bl
xor sil, byte [rcx + rdi]
mov byte [r9 + r11], sil
lea rsi, [r11 + 1]
mov r11, rsi
cmp r8, rsi
jne 0x140003490
mov byte [rcx + 0x100], r10b
mov byte [rcx + 0x101], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_input.len____output.len__assertion_failed:_key.len_____1__key.len_____256C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_src_rc4.rs
lea r8, [0x14001f258]
mov edx, 0x2d
call fcn.14001d3c0
ud2
Function at 0x140005b10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140005ba0
jmp 0x140005b8f
jae 0x140005c60
cmp r8, 0x201
jae 0x140005ba0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140005bf8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140005bcf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001caf0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140005c21
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005cc8
mov r8d, r14d
cmp r15, r8
jne 0x140005b80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005ceb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140005b8f
jmp 0x140005ba0
cmp rsi, r8
jb 0x140005d05
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140007f00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140005cb1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400031d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140005c99
jmp 0x140005cb1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9fad6859925b34f9a0b1af592a7839ccb1e71f60library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001d3c0
jmp 0x140005d1a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d810
ud2
Function at 0x140005d70
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000e550
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140005ef6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140005e30
jmp 0x140005e1f
jae 0x140005f08
cmp r8, 0x201
jae 0x140005e30
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140005e88
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140005e5f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14001caf0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140005eb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005fdb
mov r8d, esi
cmp r12, r8
jne 0x140005e10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006005
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140005e1f
jmp 0x140005e30
lea rcx, [rbp - 0x58]
call fcn.140003c70
mov byte [rsi + 0x18], 2
jmp 0x140005f9a
cmp r15, r8
jb 0x14000601f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140007f00
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140005f59
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400031d0
cmp byte [rbp + 0x3d8], 2
jne 0x140005fb1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140003c70
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140005f9a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400031d0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140005f85
jmp 0x140005f9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140005f41
jmp 0x140005f59
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9fad6859925b34f9a0b1af592a7839ccb1e71f60library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001d3c0
jmp 0x140006034
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001d810
ud2
Function at 0x14000c710
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140020dd8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c754
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000c7b3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14000c7c2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14000c7fa
cmp eax, 0x103
je 0x14000c804
test eax, eax
js 0x14000c7df
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14000c7fa
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140007c60
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003e10
mov ecx, 7
int 0x29
ud2
Function at 0x14000c870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140020dd8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c8b4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c91a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c951
test eax, eax
js 0x14000c92b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c944
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140007c60
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003e10
mov ecx, 7
int 0x29
ud2
Function at 0x14001ae40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001aeba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001aeb0
cmp r11, r10
ja 0x14001af53
cmp r10, rdx
ja 0x14001af67
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001aeb2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001ae90
jmp 0x14001af27
ja 0x14001aeba
mov r11, r10
cmp rax, r8
jne 0x14001ae62
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001af2b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001af00
mov r8, r10
sub ecx, r9d
jns 0x14001af1e
jmp 0x14001af2d
cmp r10, rdx
je 0x14001af39
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001af2d
xor al, 1
cmp r8, rdx
jne 0x14001aee0
jmp 0x14001af2d
xor eax, eax
jmp 0x14001af2d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400232bb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001d3c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d890
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d810
ud2

Function at 0x14001c4b0
Capabilities:
Parse pe header

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