joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140f3c108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f3c28f
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 0x140f3c139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f3c11f
add dl, dl
jne 0x140f3c146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f3c1a6
xor eax, eax
add dl, dl
jne 0x140f3c155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f3c25d
add dl, dl
jne 0x140f3c166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3c173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3c180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3c18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f3c19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f3c12e
mov eax, 1
add dl, dl
jne 0x140f3c1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3c1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f3c1ab
sub eax, ebx
mov ebx, 1
jne 0x140f3c1fc
mov ecx, 1
add dl, dl
jne 0x140f3c1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f3c1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f3c1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f3c12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f3c218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f3c225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f3c20d
cmp eax, 0x7d00
jae 0x140f3c24b
cmp eax, 0x500
jb 0x140f3c246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f3c12e
cmp eax, 0x7f
ja 0x140f3c24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f3c12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f3c282
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 0x140f3c12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000b008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000b008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000b008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x140001a74
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14001f860
sub rsp, rax
mov rax, qword [0x14005ca20]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001ba22
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001b9cd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001b9c0
cmp rcx, 1
jb 0x14001ba7a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001b9f0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002ea4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001b9b0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001ba53
lea rcx, [rsp + 0x80]
call fcn.140031880
jmp 0x14001ba55
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14001f590
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002e7f8
int3
Function at 0x14001f080
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005ca20]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14001f125
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f0dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f0d0
cmp rcx, 1
jb 0x14001f156
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f0f3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002ea4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f0c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f590
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e7f8
int3
Function at 0x14001f260
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x14005ca20]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14005e660]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x14001f2b0
lea rcx, [0x14003fca4]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x14005e660], rax
test rax, rax
je 0x14001f4ea
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x14001f3e6
test dl, dl
je 0x14001f382
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f32d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f320
cmp rcx, 1
jb 0x14001f4f0
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f350
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002ea4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f310
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x14001f3cd
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14001f487
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14001f487
test dl, dl
je 0x14001f462
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f40d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f400
cmp rcx, 1
jb 0x14001f4e4
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f430
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002ea4c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f3f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14001f487
mov rcx, r14
call fcn.14000d080
sub qword [r13], 1
jne 0x14001f498
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x14001f4a8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f590
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.14002e7f8
int3
call fcn.14002e7f8
int3
call fcn.14002e7f8
int3
Function at 0x14001ffd8
Capabilities:
Parse pe header

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

Function at 0x140024f44
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140024da3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024da3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024da3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024da3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024da3
cmp dword [rcx + 0x84], 0xe
jbe 0x140024da3
cmp dword [rcx + 0xf8], 0
je 0x140024da3
mov ecx, ebx
call fcn.140024e60
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140024c30
nop
cmp dword [rbp + 0x20], 0
je 0x140024df1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024dfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024d34
Function at 0x140036a64
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140036aeb
mov rsi, rbx
cmp word [rax], bp
je 0x140036aaa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140036a94
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140036a90
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003196c
mov rdi, rax
test rax, rax
je 0x140036ad8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020380
mov rbp, rdi
xor ecx, ecx
call fcn.14003287c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003810
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
je 0x1400038eb
mov rsi, rdx
mov rdi, qword [rcx]
mov rax, r8
shl rax, 7
lea rbx, [rax + r8*8]
add rbx, rdx
nop word cs:[rax + rax]
mov rax, qword [rsi]
xor qword [rdi], rax
mov rax, qword [rsi + 8]
xor qword [rdi + 8], rax
mov rax, qword [rsi + 0x10]
xor qword [rdi + 0x10], rax
mov rax, qword [rsi + 0x18]
xor qword [rdi + 0x18], rax
mov rax, qword [rsi + 0x20]
xor qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
xor qword [rdi + 0x28], rax
mov rax, qword [rsi + 0x30]
xor qword [rdi + 0x30], rax
mov rax, qword [rsi + 0x38]
xor qword [rdi + 0x38], rax
mov rax, qword [rsi + 0x40]
xor qword [rdi + 0x40], rax
mov rax, qword [rsi + 0x48]
xor qword [rdi + 0x48], rax
mov rax, qword [rsi + 0x50]
xor qword [rdi + 0x50], rax
mov rax, qword [rsi + 0x58]
xor qword [rdi + 0x58], rax
mov rax, qword [rsi + 0x60]
xor qword [rdi + 0x60], rax
mov rax, qword [rsi + 0x68]
xor qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x70]
xor qword [rdi + 0x70], rax
mov rax, qword [rsi + 0x78]
xor qword [rdi + 0x78], rax
mov rax, qword [rsi + 0x80]
xor qword [rdi + 0x80], rax
mov rdx, qword [rdi + 0xc8]
mov rcx, rdi
call fcn.140005620
add rsi, 0x88
cmp rsi, rbx
jne 0x140003840
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400056e0
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, 0x301
call fcn.1400257b0
mov rsi, rax
movabs rax, 0x7ffffffffffffff1
xor edi, edi
cmp rsi, rax
setb al
jae 0x140005738
mov dil, al
shl rdi, 4
movzx eax, byte [0x14014d131]
mov rcx, rsi
mov rdx, rdi
call fcn.1400037a0
test rax, rax
je 0x140005763
mov rcx, rax
mov edx, 0x301
add rsp, 0x38
pop rdi
pop rsi
jmp 0x1400255b0
lea rax, str.C:UsersPC.cargo_registry_srcindex.crates.io_6f17d22bba15001f_secp256k1_0.25.0_srccontext.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140030d38]
lea r9, [0x140030d68]
lea r8, [rsp + 0x30]
mov edx, 0x2b
call fcn.14002f310
ud2
mov rcx, rdi
mov rdx, rsi
call fcn.14002eec0
ud2
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14014d0c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x30], 0x6a09e667
mov rdi, rcx
mov rcx, qword [str.For_this_sample__this_63_byte_string_will_be_used_as_input_data]
mov ebx, edx
mov dword [rsp + 0x34], 0xbb67ae85
lea rdx, [r11 - 0x38]
mov dword [rsp + 0x38], 0x3c6ef372
mov dword [rsp + 0x3c], 0xa54ff53a
movups xmm0, xmmword [rcx]
mov eax, dword [rcx + 0x38]
movups xmm1, xmmword [rcx + 0x10]
mov dword [rsp + 0x40], 0x510e527f
mov dword [rsp + 0x44], 0x9b05688c
mov dword [rsp + 0x48], 0x1f83d9ab
mov dword [rsp + 0x4c], 0x5be0cd19
mov qword [r11 - 0x48], 0x3f
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rcx + 0x20]
movaps xmmword [rsp + 0x60], xmm1
movsd xmm1, qword [rcx + 0x30]
movaps xmmword [rsp + 0x70], xmm0
mov dword [r11 - 0x50], eax
movzx eax, word [rcx + 0x3c]
mov word [r11 - 0x4c], ax
movzx eax, byte [rcx + 0x3e]
lea rcx, [rsp + 0x30]
mov byte [r11 - 0x4a], al
movsd qword [r11 - 0x58], xmm1
call fcn.14002a5c0
xor eax, eax
lea r8, [0x140031290]
nop dword [rax]
movzx ecx, byte [rax + r8]
movzx edx, byte [rsp + rax + 0xa0]
cmp edx, ecx
jne 0x14002569c
inc rax
cmp rax, 0x20
jb 0x140025680
jmp 0x1400256aa
xor edx, edx
lea rcx, str.self_test_failed
call fcn.140005cc0
xor edx, edx
cmp bl, 1
je 0x1400256c1
lea rcx, str.Invalid_flags
call fcn.140005c40
xor eax, eax
jmp 0x1400256fa
movups xmm0, xmmword [fcn.140005c40]
mov rcx, rdi
movups xmmword [rdi + 0xa0], xmm0
movups xmm1, xmmword [fcn.140005cc0]
movups xmmword [rdi + 0xb0], xmm1
call fcn.140025e50
shr ebx, 0xa
mov rax, rdi
and ebx, 1
mov dword [rdi], 1
mov dword [rdi + 0xc0], ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14002d080
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
Function at 0x1400095c0
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 0x140009650
jmp 0x14000963f
jae 0x140009710
cmp r8, 0x201
jae 0x140009650
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400096a8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000967f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002e450
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 0x1400096d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009778
mov r8d, r14d
cmp r15, r8
jne 0x140009630
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000979b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000963f
jmp 0x140009650
cmp rsi, r8
jb 0x1400097b5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000dc30
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 0x140009761
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400037b0
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 0x140009749
jmp 0x140009761
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002efe0
jmp 0x1400097ca
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002f430
ud2
Function at 0x14000e630
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 0x14000e660
test ecx, ecx
jne 0x14000e6b0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14000e66c
test ecx, ecx
jne 0x14000e6b0
mov rcx, rdi
call fcn.14000e510
movzx eax, al
test bpl, bpl
jne 0x14000e6b7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14000e6a3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14000e828]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14000e6a3.2
xor eax, eax
test bpl, bpl
je 0x14000e67c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14000e809
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000e6ea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14000e769
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 0x14000e730
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14000e74b
inc rax
dec rdi
cmp rax, 1
jne 0x14000e710
jmp 0x14000e769
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000e74b
cmp ebx, 0x5c
je 0x14000e74b
inc rax
dec rdi
cmp rax, 1
jne 0x14000e730
jmp 0x14000e769
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14000e817
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14000e793
mov al, 9
cmp rdx, 2
je 0x14000e797
cmp rdx, 1
jne 0x14000e7a7
cmp byte [r8], 0x2e
jne 0x14000e7a7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14000e7a7
mov al, 0xa
jmp 0x14000e7a7
cmp byte [r8], 0x2e
jne 0x14000e7a7
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.0x14000e6a3.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.0x14000e6a3.2
mov ecx, 2
jmp case.0x14000e6a3.2
lea r8, str.library_std_srcpath.rs
call fcn.14002f3b0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14002f3b0
ud2
Function at 0x140013860
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 [0x140143b48]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400138a4
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 0x140013903
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140013912
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001394a
cmp eax, 0x103
je 0x140013954
test eax, eax
js 0x14001392f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001394a
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.14000d790
mov rcx, rax
call fcn.140007070
mov ecx, 7
int 0x29
ud2