joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140187df0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [rsp + 0xa0]
mov ebp, dword [rsp + 0xa8]
mov r14, rcx
mov r12, rdx
mov r15, r8
mov rsi, r9
cmp r9, 8
jbe 0x140187f58
test rdx, rdx
je 0x140187f78
mov rcx, rdx
call fcn.1400d27b0
mov rbx, rax
cmp rax, r15
jb 0x140187ea8
mov rdx, rax
shr rdx, 1
sub rax, rdx
cmp r15, rax
jb 0x140187e78
lea rax, [r12 + rdi]
xor edx, edx
mov r13, r12
div rsi
test rdx, rdx
jne 0x140187e78
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9, rdi
mov r8, rsi
mov rdx, r15
mov rcx, r14
mov dword [rsp + 0x20], 0
call fcn.140187d70
mov r13, rax
test rax, rax
jne 0x140187f28
xor r13d, r13d
jmp 0x140187e5d
mov r9, rdi
mov r8, rsi
mov rdx, r15
mov rcx, r14
mov dword [rsp + 0x20], 0
call fcn.140187d70
mov r13, rax
test rax, rax
je 0x140187e9d
test bpl, bpl
je 0x140187f28
lea rdx, [rax - 1]
and rdx, 0xfffffffffe000000
sub rax, rdx
shr rax, 0x10
lea rax, [rax + rax*4]
shl rax, 4
mov ecx, dword [rdx + rax + 0x10c]
add rax, 0x108
sub rax, rcx
test byte [rdx + rax + 0xf], 1
jne 0x140187f28
mov eax, 8
mov r8, r15
cmp rbx, rax
cmovae rax, rbx
xor edx, edx
sub rax, 8
lea rcx, [r13 + rax]
sub r8, rax
call sub.msvcrt.dll_memset
nop dword [rax]
mov rax, qword [0x140207500]
cmp rbx, r15
mov rcx, r15
cmovbe rcx, rbx
cmp byte [rax], 0
je 0x140187fa8
mov rdi, r13
mov rsi, r12
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
call fcn.1400d2670
jmp 0x140187e5d
movzx r9d, bpl
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400d2bd0
movzx ebp, bpl
mov r9, rdi
mov r8, rsi
mov rdx, r15
mov dword [rsp + 0xa0], ebp
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140187d70
mov r8, rcx
mov rdx, r12
mov rcx, r13
call sub.msvcrt.dll_memcpy
jmp 0x140187f46

Function at 0x140188140
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
lea rax, [rdx + 7]
shr rax, 3
mov rax, qword [rcx + rax*8 + 8]
mov r8, qword [rax + 0x10]
test r8, r8
je 0x1400d2088
add dword [rax + 0x18], 1
mov rdx, qword [r8]
mov qword [rax + 0x10], rdx
mov rax, r8
ret
xor r9d, r9d
jmp fcn.1400d81f0
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x1402073a0]
mov rsi, rdx
call fcn.1401be440
mov rcx, qword [rax]
lea rax, [rsi - 1]
test rax, rsi
jne 0x140188190
lea rax, [rbx - 1]
test rax, rbx
jne 0x1401881a0
cmp rbx, rsi
jb 0x1401881a0
cmp rbx, 0x400
ja 0x1401881a0
mov rdx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x1400d2060
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
call fcn.140187d70
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x14019cb80
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x140207460]
mov ecx, 0xfffffff6
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x33]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14019cbf8
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14019cbec
movzx eax, byte [rsp + 0x33]
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbx]
jne 0x14019cbff
add rsp, 0x40
pop rbx
ret
lea rcx, str.Unexpected_0_read
call fcn.1400a0b40
mov eax, 0xffffffff
jmp 0x14019cbdc
call fcn.1401be670
nop
nop word cs:[rax + rax]
add r8, 0x10
mov rcx, rdx
test r9, r9
mov rdx, r9
cmove rdx, r8
add rcx, 0x10
jmp sub.msvcrt.dll_strcmp

Function at 0x14019cc30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov r8d, 0xac
lea rdx, str.._strbuf.h
lea rcx, [0x1402019ad]
call qword [sym.imp.msvcrt.dll__assert]
nop
nop

Function at 0x14019cc50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rsi, qword [0x140207460]
mov edx, dword [0x1401c8928]
mov rax, qword [rsi]
mov qword [rsp + 0xa8], rax
xor eax, eax
test edx, edx
je 0x14019cd30
lea rdi, [rsp + 0x28]
mov ecx, 0xf
cmp qword [0x1401c8908], 0
rep stosq qword [rdi], rax
mov rax, qword [0x1402077f0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rax
jne 0x14019ccc8
mov rax, qword [rsp + 0xa8]
sub rax, qword [rsi]
jne 0x14019cda2
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x20]
lea rdx, str.stty
mov rcx, rdi
lea rbp, [0x1401c8900]
call fcn.140082f00
cmp qword [0x1401c8908], 0
je 0x14019cd13
xor ebx, ebx
nop
mov rax, rbx
mov rcx, rdi
add rbx, 1
shl rax, 4
add rax, qword [rbp]
mov rdx, qword [rax]
call fcn.140082f00
cmp rbx, qword [0x1401c8908]
jb 0x14019ccf0
mov rcx, rdi
call fcn.140071e60
xor edx, edx
mov rcx, rbp
call fcn.1400827a0
jmp 0x14019cca5
call fcn.14007b1d0
mov rcx, qword [0x1401c88e0]
cmp rcx, 0xffffffffffffffff
je 0x14019cca5
mov edx, dword [0x140288bfc]
mov rdi, qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call rdi
mov rcx, qword [0x1401c88e0]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov edx, dword [0x140288bf8]
test edx, edx
je 0x14019cd87
mov rcx, qword [0x1401c88d8]
cmp rcx, 0xffffffffffffffff
je 0x14019cda7
call rdi
mov rcx, qword [0x1401c88d8]
call rbx
mov qword [0x1401c88d8], 0xffffffffffffffff
mov qword [0x1401c88e0], 0xffffffffffffffff
jmp 0x14019cca5
call fcn.1401be670
mov r8d, 0x11c
lea rdx, str.compat_terminal.c
lea rcx, str.hconout___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14019cc50
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400bade0
Function at 0x14019cdd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rsi, qword [0x140207460]
mov edx, dword [0x1401c8928]
mov rax, qword [rsi]
mov qword [rsp + 0xa8], rax
xor eax, eax
test edx, edx
je 0x14019cd30
lea rdi, [rsp + 0x28]
mov ecx, 0xf
cmp qword [0x1401c8908], 0
rep stosq qword [rdi], rax
mov rax, qword [0x1402077f0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rax
jne 0x14019ccc8
mov rax, qword [rsp + 0xa8]
sub rax, qword [rsi]
jne 0x14019cda2
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x20]
lea rdx, str.stty
mov rcx, rdi
lea rbp, [0x1401c8900]
call fcn.140082f00
cmp qword [0x1401c8908], 0
je 0x14019cd13
xor ebx, ebx
nop
mov rax, rbx
mov rcx, rdi
add rbx, 1
shl rax, 4
add rax, qword [rbp]
mov rdx, qword [rax]
call fcn.140082f00
cmp rbx, qword [0x1401c8908]
jb 0x14019ccf0
mov rcx, rdi
call fcn.140071e60
xor edx, edx
mov rcx, rbp
call fcn.1400827a0
jmp 0x14019cca5
call fcn.14007b1d0
mov rcx, qword [0x1401c88e0]
cmp rcx, 0xffffffffffffffff
je 0x14019cca5
mov edx, dword [0x140288bfc]
mov rdi, qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call rdi
mov rcx, qword [0x1401c88e0]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov edx, dword [0x140288bf8]
test edx, edx
je 0x14019cd87
mov rcx, qword [0x1401c88d8]
cmp rcx, 0xffffffffffffffff
je 0x14019cda7
call rdi
mov rcx, qword [0x1401c88d8]
call rbx
mov qword [0x1401c88d8], 0xffffffffffffffff
mov qword [0x1401c88e0], 0xffffffffffffffff
jmp 0x14019cca5
call fcn.1401be670
mov r8d, 0x11c
lea rdx, str.compat_terminal.c
lea rcx, str.hconout___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14019cc50
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400bade0
Function at 0x1401a0170
Capabilities:
Check if file exists
Generate random numbers via rtlgenrandom
Get file attributes
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x34]
mov edx, eax
and edx, 0xf000
mov rbx, rcx
test r8d, r8d
je 0x1401a01c0
cmp edx, 0x8000
lea rax, str..merge_link_XXXXXX
lea r9, str..merge_file_XXXXXX
mov edx, 0x19
cmovne r9, rax
lea r8, [0x1402028a6]
call fcn.1400a7010
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ba1b0
mov r8d, 0x1b6
cmp edx, 0x8000
je 0x1401a01e0
mov edx, 0x501
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c0420
and eax, 0x40
cmp eax, 1
sbb r8d, r8d
and r8d, 0xffffffb7
add r8d, 0x1ff
jmp 0x1401a01ce

Function at 0x1401aca40
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r14, qword [0x140207460]
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rbx, rcx
call sub.msvcrt.dll_strlen
mov ecx, 1
lea rdx, [rax + 0x11]
mov rsi, rax
call fcn.1400a6220
mov r8, rsi
mov rdx, rbx
lea rbp, [rax + 0x10]
mov rdi, rax
mov rcx, rbp
call sub.msvcrt.dll_memcpy
mov qword [rdi + 8], 0
mov r8, rdi
mov rdx, rbx
mov qword [rdi], 0
lea rcx, [0x1401c8b00]
call fcn.14017b090
mov rax, qword [0x140207ac0]
mov rdx, rbp
lea rcx, str.rr_cache__s
mov rbx, qword [rax]
call fcn.140037910
mov rcx, rax
call rbx
mov rsi, rax
test rax, rax
je 0x1401acb36
lea rbp, [rsp + 0x24]
lea r12, str.postimage
lea r13, str.preimage
nop word [rax + rax]
mov rcx, rsi
call qword [rsi]
test rax, rax
je 0x1401acb30
lea rbx, [rax + 1]
mov r8, rbp
mov rdx, r12
mov rcx, rbx
call fcn.1401ac800
test eax, eax
je 0x1401acb58
movsxd rbx, dword [rsp + 0x24]
mov rcx, rdi
mov edx, ebx
call fcn.1401ac8c0
add rbx, qword [rdi + 8]
mov rcx, rsi
or byte [rbx], 1
call qword [rsi]
test rax, rax
jne 0x1401acafa
mov rcx, rsi
call qword [rsi + 8]
mov rax, qword [rsp + 0x28]
sub rax, qword [r14]
jne 0x1401acb85
mov rax, rdi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r8, rbp
mov rdx, r13
mov rcx, rbx
call fcn.1401ac800
test eax, eax
je 0x1401acaf0
movsxd rbx, dword [rsp + 0x24]
mov rcx, rdi
mov edx, ebx
call fcn.1401ac8c0
add rbx, qword [rdi + 8]
or byte [rbx], 2
jmp 0x1401acaf0
call fcn.1401be670
nop
nop dword [rax + rax]
Function at 0x1401bc970
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov rax, qword [rcx]
mov edi, r8d
mov r11, rcx
mov r9, rdx
mov ecx, 0x1505
and edi, 0x1e
jne 0x1401bc9d0
cmp rax, rdx
jb 0x1401bc9b0
jmp 0x1401bc9bf
mov r8d, ecx
add rax, 1
shl r8d, 5
add r8d, ecx
mov ecx, edx
xor ecx, r8d
cmp r9, rax
je 0x1401bc9c2
movsx edx, byte [rax]
cmp dl, 0xa
jne 0x1401bc998
cmp rax, r9
adc rax, 0
mov r9, rax
mov eax, ecx
mov qword [r11], r9
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rsi, qword [str._________AA__A__________________]
cmp rax, rdx
jae 0x1401bc9bf
nop dword [rax]
movzx r10d, byte [rax]
cmp r10b, 0xa
je 0x1401bc9b8
lea rdx, [rax + 1]
cmp edi, 0x10
je 0x1401bca28
movzx ebx, r10b
test byte [rsi + rbx], 1
jne 0x1401bca50
mov eax, ecx
movsx r10d, r10b
shl eax, 5
add eax, ecx
mov ecx, r10d
xor ecx, eax
mov rax, rdx
cmp rax, r9
jb 0x1401bc9e0
mov rdx, rax
nop dword [rax + rax]
mov r9, rdx
jmp 0x1401bc9c2
cmp r10b, 0xd
jne 0x1401bc9fd
cmp rdx, r9
jae 0x1401bca78
cmp byte [rax + 1], 0xa
je 0x1401bcb07
mov eax, ecx
shl eax, 5
add eax, ecx
xor eax, 0xd
mov ecx, eax
mov rax, rdx
jmp 0x1401bc9e0
mov rdx, rax
jmp 0x1401bca66
movzx ebx, byte [rdx]
test byte [rsi + rbx], 1
je 0x1401bca90
cmp bl, 0xa
je 0x1401bca90
mov rbp, rdx
add rdx, 1
cmp rdx, r9
jb 0x1401bca58
jmp 0x1401bca20
mov eax, ecx
shl eax, 5
add eax, ecx
xor eax, 0xd
mov ecx, eax
jmp 0x1401bca20
cmp byte [rbp + 1], 0xa
je 0x1401bcad0
test r8b, 2
jne 0x1401bcad0
test r8b, 4
jne 0x1401bcae9
test r8b, 8
je 0x1401bcad0
cmp rdx, rax
je 0x1401bca10
mov r10d, ecx
add rax, 1
shl r10d, 5
add r10d, ecx
movsx ecx, byte [rax - 1]
xor ecx, r10d
cmp rdx, rax
jne 0x1401bcab1
jmp 0x1401bca10
movzx r10d, byte [rdx]
cmp r10b, 0xa
je 0x1401bcaff
add rbp, 2
mov rax, rdx
mov rdx, rbp
jmp 0x1401bc9f3
mov eax, ecx
movzx r10d, byte [rdx]
shl eax, 5
add eax, ecx
xor eax, 0x20
mov ecx, eax
cmp r10b, 0xa
jne 0x1401bcada
mov rax, rdx
jmp 0x1401bc9b8
mov rax, rdx
jmp 0x1401bc9e0
Function at 0x1401bdd00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140289a20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140289a00]
test rbx, rbx
je 0x1401bdd5c
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 rsi, rsi
je 0x1401bdd53
test eax, eax
jne 0x1401bdd53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401bdd38
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 0x1401be090
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1401be110
Capabilities:
Parse pe header

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

Function at 0x1401be1d0
Capabilities:
Parse pe header

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

Function at 0x1401be670
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1401be6a0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1401be6c0
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x1401be8f0
test rdx, rdx
js 0x1401be8f0
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401be920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1401be920
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x1401be8f0
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401be920
cmp qword [rsp + 0x68], rsi
jb 0x1401be7b0
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1401be769
cmp dword [rsp + 0x70], 0xffffffff
jne 0x1401be904
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1401be8f0
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call fcn.1401bef10
cmp rax, 0xffffffffffffffff
je 0x1401be8f0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1401be8f0
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x1401be920
test rax, rax
je 0x1401be920
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x1401be847
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x1401be8d8
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x1401be830
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call fcn.1401bf080
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call fcn.1401bf080
test r12d, r12d
je 0x1401be911
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x1401be741
jmp 0x1401be911
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call fcn.1401bf080
jmp 0x1401be894
mov ecx, 0x16
call fcn.1401be9b0
mov eax, 0xffffffff
jmp 0x1401be795
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x1401be8f0
mov ecx, 0x1b
call fcn.1401be9b0
jmp 0x1401be8fa
mov ecx, 9
call fcn.1401be9b0
jmp 0x1401be8fa
Function at 0x1401bf960
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x140207460]
mov dword [0x14023dfe0], 0
mov qword [rsp + 0x68], r9
mov rbx, r8
mov rsi, qword [rax]
mov qword [rsp + 0x28], rsi
xor esi, esi
lea rsi, [rsp + 0x68]
mov r9, rsi
mov qword [rsp + 0x20], rsi
call fcn.1400a0500
mov eax, dword [0x14023dfe8]
test eax, eax
jne 0x1401bf8e0
mov r8, rbx
mov r9, rsi
lea rbx, str.usage.c
mov edx, 0x13d
mov dword [0x14023dfe8], 1
mov rcx, rbx
call fcn.14008ecd0
mov r8d, dword [0x14023dfe4]
test r8d, r8d
je 0x1401bf8e0
mov rcx, rbx
mov edx, 0x140
call fcn.140003470
mov ecx, eax
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [rcx + 0x84], 0
jne 0x1400d8d00
ret
xor edx, edx
jmp fcn.1400d8460
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
lea rdx, str.out_of_memory_in_new
mov ecx, 0xc
call fcn.1400d4fa0
call sub.msvcrt.dll_abort
nop
lea rdx, str.out_of_memory_in_new
mov ecx, 0xc
call fcn.1400d4fa0
call sub.msvcrt.dll_abort
nop
lea rdx, str.out_of_memory_in_new
mov ecx, 0xc
call fcn.1400d4fa0
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
push rbx
sub rsp, 0x20
cmp qword [0x1401c5190], 0
je 0x1401bf9e0
lea rcx, [0x1400d3860]
mov byte [0x1401c4640], 0
call fcn.140001410
call fcn.1400d4e50
cmp byte [0x140243282], 0
jne 0x1401bf9ca
lea rcx, [0x1400d3a80]
mov byte [0x140243282], 1
call qword [sym.imp.KERNEL32.dll_FlsAlloc]
lea rcx, [0x1401c4620]
mov ebx, eax
mov dword [0x1401c4650], eax
call fcn.1401be440
lea rdx, [0x1401c4660]
mov ecx, ebx
mov qword [rax], rdx
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
call fcn.1400d3e70
lea rcx, [0x1401c51a8]
add rsp, 0x20
pop rbx
jmp 0x1400d8cf0
call fcn.1400d37f0
jmp 0x1401bf96f
Function at 0x140001490
Capabilities:
Parse pe header

Disassembly:
movzx eax, word [rcx]
cmp eax, 0x5a4d
je 0x14000149d
xor eax, eax
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400014bd
mov eax, dword [rax + rcx + 0x88]
add rcx, rax
mov qword [rdx], rcx
mov eax, 1
ret
xor eax, eax
ret

Function at 0x1400014c0
Capabilities:
Encode data using xor

Disassembly:
push r15
sub rsp, 0x170
mov r15, rcx
movups xmm0, xmmword [0x1400164a0]
lea rcx, [0x140000000]
movzx edx, word [0x1400164b0]
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov eax, 0x100
movups xmmword [rsp + 0x150], xmm0
mov word [rsp + 0x160], dx
movups xmm0, xmmword [rcx + rax + 0x16390]
movups xmm1, xmmword [rcx + rax + 0x16380]
movups xmm2, xmmword [rcx + rax + 0x16370]
movups xmm3, xmmword [rcx + rax + 0x16360]
movups xmmword [rsp + rax + 0x40], xmm0
movups xmmword [rsp + rax + 0x30], xmm1
movups xmmword [rsp + rax + 0x20], xmm2
movups xmmword [rsp + rax + 0x10], xmm3
sub rax, 0x40
jne 0x140001508
movdqu xmm1, xmmword [0x1400164c0]
xor edx, edx
movdqu xmm0, xmmword [str.E]
xor eax, eax
movdqu xmm2, xmmword [rsp + rax + 0x50]
add edx, 0x10
paddb xmm2, xmm1
pxor xmm2, xmm0
movdqu xmmword [rsp + rax + 0x50], xmm2
add rax, 0x10
cmp edx, 0x110
jb 0x140001556
mov al, byte [rsp + 0x160]
mov dl, byte [rsp + 0x161]
add al, 0xfe
add dl, 0xfe
xor al, 0x7b
movzx ecx, word [r15 + 0x14]
xor dl, 0x7b
mov byte [rsp + 0x160], al
mov byte [rsp + 0x161], dl
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0x112
call fcn.140003880
mov rax, rsp
mov rcx, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x40]
mov dword [rax + 0x20], 0x1000
mov dword [rax + 0x28], 4
call fcn.140003893
mov r8d, 0x112
lea rdx, [rsp + 0x50]
mov rcx, qword [rdx - 0x18]
call 0x140001650
movzx ecx, word [r15 + 0x5c]
mov qword [rsp + 0x30], 0xffffffffff676980
call fcn.140003880
mov rcx, 0xffffffffffffffff
xor edx, edx
lea r8, [rsp + 0x30]
call fcn.140003893
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x168], 0
xor rcx, rsp
cmp rcx, qword [0x140022008]
jne 0x140001649
add rsp, 0x170
pop r15
ret
call fcn.1400038c0
nop
nop
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x40], rcx
mov rax, rsp
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], 0x112
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov qword [rbp + 0x10], rax
mov dword [rbp], 0
mov dword [rbp + 4], 0xa
mov qword [rbp + 0x18], rdx
cmp rax, rdx
jb 0x1400016ef
xor eax, eax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
lea rcx, [0x1400164ec]
call fcn.140005770
nop
xor ecx, ecx
mov rdx, qword [rbp + 8]
call fcn.140001702
jmp 0x1400016cc
mov rax, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
dec qword [rbp + 0x28]
mov dl, byte [rax]
mov byte [rcx], dl
dec qword [rbp + 0x20]
mov rax, qword [rbp + 0x50]
dec qword [rbp + 0x50]
test rax, rax
jne 0x1400016b8
jmp 0x1400016fc
mov rax, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
inc qword [rbp + 0x10]
mov dl, byte [rax]
mov byte [rcx], dl
inc qword [rbp + 0x18]
mov rax, qword [rbp + 0x50]
dec qword [rbp + 0x50]
test rax, rax
jne 0x1400016db
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x140004218
Capabilities:
Parse pe header

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

Function at 0x140006790
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140006623
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006623
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006623
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006623
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006623
cmp dword [rcx + 0x84], 0xe
jbe 0x140006623
cmp dword [rcx + 0xf8], 0
je 0x140006623
mov ecx, ebx
call fcn.1400066c4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400064b4
cmp dword [rbp + 0x20], 0
je 0x140006670
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006678
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400065bc
Function at 0x1400157f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret