joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12d, 0x19000
mov rsi, r8
mov r14, rdx
mov r15, rcx
cmp r8, r12
ja 0x140004be7
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.140004c70
mov qword [rsp + 0x40], rbx
or ebx, 0xffffffff
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
xor edi, edi
test rsi, rsi
je 0x140004c49
xor eax, eax
xor ebp, ebp
nop dword [rax]
nop dword [rax + rax]
movsxd rdx, ebp
mov r8, rsi
sub r8, rax
add rdx, r14
cmp r8, r12
mov rcx, r15
cmovae r8, r12
call fcn.140004c70
cmp eax, 0xffffffff
je 0x140004c49
xor ecx, ecx
cmp ebx, 0xffffffff
cmovne ecx, ebx
add edi, r12d
add ebp, r12d
lea ebx, [rax + rcx]
movsxd rax, edi
cmp rax, rsi
jb 0x140004c10
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140006150
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x140005fd0]
mov qword [rcx + 0xa4], rax
mov rdi, rcx
mov dword [rcx + 0xac], eax
mov r9, rcx
mov dword [rcx + 0xa4], edx
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140022a8c
test rax, rax
jne 0x14000624a
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x32
jg 0x1400061c9
je 0x1400061c2
cmp eax, 1
je 0x1400061c2
jle 0x1400061ed
cmp eax, 3
jle 0x1400061e1
cmp eax, 5
je 0x1400061da
cmp eax, 0xe
jne 0x1400061ed
lea ebx, [rax - 2]
jmp 0x1400061ed
mov ebx, 0x82
jmp 0x1400061ed
cmp eax, 0x50
je 0x1400061e8
cmp eax, 0x7b
je 0x1400061e1
cmp eax, 0x522
jne 0x1400061ed
mov ebx, 0xd
jmp 0x1400061ed
mov ebx, 2
jmp 0x1400061ed
mov ebx, 0x11
call fcn.140020434
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x40], rdi
lea rdx, str.syncio_initiate_write
mov dword [rsp + 0x38], eax
lea rcx, str.C:OpenSSHcontribwin32openssh......contribwin32win32compat_termio.c
lea rax, str.syncio_initiate_write_initiate___ERROR__beginthreadex__d__io:_p
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, 0xf3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 7
call fcn.140008ef0
mov rbx, qword [rsp + 0x60]
or eax, 0xffffffff
add rsp, 0x50
pop rdi
ret
mov qword [rdi + 0x38], rax
xor eax, eax
mov dword [rdi + 0x74], 1
add rsp, 0x50
pop rdi
ret

Function at 0x140007170
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, edx
mov ebx, ecx
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140007211
movsx ecx, word [rsp + 0x2a]
mov word [rsp + 0x20], bx
mov word [rsp + 0x22], di
lea eax, [rcx - 1]
cmp edi, eax
jle 0x1400071e0
mov edx, dword [0x14006f1ac]
cmp edi, edx
jle 0x1400071e0
cmp edx, edi
jge 0x1400071e0
mov ebx, edi
sub ebx, edx
nop dword [rax]
call fcn.140007c30
sub rbx, 1
jne 0x1400071d0
movzx ecx, word [rsp + 0x2a]
movsx eax, cx
cmp edi, eax
jl 0x1400071ef
dec cx
mov word [rsp + 0x22], cx
call fcn.1400062c0
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14000720b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14006f1ac], edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018df0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140007380
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, edx
mov ebx, ecx
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400073da
add bx, word [rsp + 0x2c]
add di, word [rsp + 0x2e]
mov word [rsp + 0x20], bx
mov word [rsp + 0x22], di
call fcn.1400062c0
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018df0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140007400
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edi, ecx
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400074ff
mov qword [rsp + 0x488], rbx
movzx ebx, word [rsp + 0x44]
mov qword [rsp + 0x490], rbp
mov qword [rsp + 0x498], rsi
mov dword [rsp + 0x30], 0x10100
lea eax, [rbx + rdi]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x46]
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3e], ax
movzx eax, word [rsp + 0x4e]
mov word [rsp + 0x3c], ax
call fcn.1400062c0
mov r9d, dword [0x14006e1c0]
lea rdx, [rsp + 0x60]
mov r8d, dword [rsp + 0x30]
mov rcx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
call fcn.140006ad0
sub word [rsp + 0x3c], di
mov word [rsp + 0x38], bx
mov dword [rsp + 0x30], 0x10100
call fcn.1400062c0
mov r9d, dword [0x14006e1c0]
lea rdx, [rsp + 0x60]
mov r8d, dword [rsp + 0x30]
mov rcx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov rsi, qword [rsp + 0x498]
mov rbp, qword [rsp + 0x490]
mov rbx, qword [rsp + 0x488]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018df0
add rsp, 0x470
pop rdi
ret
Function at 0x140007680
Capabilities:
Manipulate console buffer

Disassembly:
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [0x14006e1b8]
xor eax, eax
mov dword [rsp + 0x30], eax
call fcn.1400062c0
test rax, rax
jne 0x1400076c2
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140018df0
add rsp, 0x60
pop r14
ret
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400076ac
movsx edx, word [rsp + 0x42]
movsx eax, word [rsp + 0x44]
movsx ecx, word [rsp + 0x46]
mov qword [rsp + 0x70], rbx
sub ecx, edx
mov qword [rsp + 0x78], rsi
inc ecx
movsx esi, word [rsp + 0x48]
sub esi, eax
mov qword [rsp + 0x80], rdi
inc esi
mov word [rsp + 0x30], dx
imul esi, ecx
mov word [rsp + 0x32], ax
call fcn.1400062c0
mov r9d, dword [rsp + 0x30]
mov rcx, rax
lea rax, [rsp + 0x34]
mov r8d, esi
mov dl, 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov rdi, qword [r14]
call fcn.1400062c0
movzx edx, word [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.1400062c0
mov r9d, dword [rsp + 0x30]
mov rcx, rax
movzx edx, word [rdi + 2]
lea rax, [rsp + 0x34]
mov r8d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
call fcn.1400062c0
mov r9d, dword [0x14006e1c0]
mov rcx, rax
mov r8d, dword [r14 + 8]
lea rax, [rsp + 0x42]
mov rdx, qword [r14]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov edi, eax
call fcn.1400062c0
mov rcx, rax
lea r8, [r14 + 0x10]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
movsx edx, word [r14 + 0xe]
movsx ecx, word [r14 + 0xc]
call fcn.140007170
mov rsi, qword [rsp + 0x78]
mov eax, edi
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140018df0
add rsp, 0x60
pop r14
ret
Function at 0x1400079c0
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x140007b1e
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
cmp dword [0x14006e1a4], 0
mov r14, r9
mov edi, r8d
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x50], rsi
jne 0x140007ac4
xor r14d, r14d
cmp dword [0x14005cb1c], r14d
je 0x140007a20
lea rdx, str.e_2J
mov dword [0x14005cb1c], r14d
mov rcx, rbx
call fcn.140019b90
test rax, rax
je 0x140007a20
call fcn.140007940
cmp dword [0x14006e1c4], r14d
jne 0x140007a8f
cmp edi, 5
jb 0x140007a8f
lea rdx, str.e__1h
mov qword [rsp + 0x58], r15
mov rcx, rbx
call fcn.140004710
mov ecx, dword [0x14006e1e0]
lea rdx, str.e__1l
test rax, rax
mov r15d, 1
mov rsi, rax
cmovne ecx, r15d
mov dword [0x14006e1e0], ecx
mov rcx, rbx
call fcn.140004710
test rax, rax
je 0x140007a8a
test rsi, rsi
je 0x140007a83
mov dword [0x14006e1e0], r15d
cmp rsi, rax
ja 0x140007a8a
mov dword [0x14006e1e0], r14d
mov r15, qword [rsp + 0x58]
cmp dword [0x14006e1ac], r14d
je 0x140007a9d
call fcn.140007840
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x14006e1ac], r14d
je 0x140007b0c
call fcn.1400077f0
jmp 0x140007b0c
cmp edi, 1
jne 0x140007ad1
cmp byte [rdx], 0xd
jne 0x140007ad1
mov byte [rdx], 0xa
mov rsi, qword [rsp + 0x70]
lea rbp, [rdx + rdi]
nop word [rax + rax]
mov r9, rsi
mov r8, r14
mov rdx, rbp
mov rcx, rbx
mov rdi, rbx
call fcn.140007d40
mov rbx, rax
cmp rax, rdi
je 0x140007b0c
cmp rax, rbp
jae 0x140007b0c
test rsi, rsi
je 0x140007ae0
cmp qword [rsi], 0
je 0x140007ae0
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140007c30
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov ebx, esi
mov edi, esi
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140007c75
movsx ebx, word [rsp + 0x2c]
movsx edi, word [rsp + 0x2e]
call fcn.140007290
test eax, eax
je 0x140007cd4
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140007c99
mov eax, esi
jmp 0x140007ca0
movsx eax, word [rsp + 0x2a]
dec eax
cmp edi, eax
jl 0x140007cba
mov edx, edi
xor ecx, ecx
call fcn.140006f60
neg ebx
xor edx, edx
mov ecx, ebx
call fcn.140007380
jmp 0x140007d17
mov ecx, 1
call fcn.140006e30
neg ebx
mov edx, 1
mov ecx, ebx
call fcn.140007380
jmp 0x140007d17
call fcn.1400062c0
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140007d17
movzx eax, word [rsp + 0x2c]
sub ax, bx
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x2e]
inc ax
mov word [rsp + 0x22], ax
call fcn.1400062c0
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [0x14006e1ec], esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018df0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140014af0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
lea r11, [rdx + 8]
lea r10, [rcx + 2]
mov ebx, 0xa
nop word [rax + rax]
mov ecx, dword [r11 - 4]
lea r10, [r10 + 8]
movzx eax, byte [r11 - 8]
mov r8d, dword [r11 - 8]
lea r11, [r11 + 0xc]
and al, 7
mov byte [r10 - 0xa], al
mov eax, r8d
shr eax, 3
and al, 7
shr r8d, 6
mov byte [r10 - 9], al
movzx eax, byte [r11 - 0x10]
shl al, 2
xor r8b, al
mov eax, ecx
shr eax, 1
and r8b, 7
and al, 7
mov byte [r10 - 8], r8b
mov byte [r10 - 7], al
mov eax, ecx
shr eax, 4
and al, 7
shr ecx, 7
mov byte [r10 - 6], al
movzx eax, byte [r11 - 0xc]
add al, al
xor cl, al
and cl, 7
mov byte [r10 - 5], cl
mov ecx, dword [r11 - 0xc]
mov eax, ecx
shr eax, 2
shr ecx, 5
and al, 7
and cl, 7
mov byte [r10 - 4], al
mov byte [r10 - 3], cl
sub rbx, 1
jne 0x140014b10
movzx eax, byte [rdx + 0x78]
lea r10, [r9 + 0x54]
mov ecx, dword [rdx + 0x78]
lea r8d, [rbx + 0x54]
and al, 7
mov byte [r9 + 0x50], al
mov eax, ecx
shr eax, 3
and al, 7
shr ecx, 6
mov byte [r9 + 0x51], al
movzx eax, byte [rdx + 0x7c]
shl al, 2
xor cl, al
and cl, 7
mov byte [r9 + 0x52], cl
mov ecx, dword [rdx + 0x7c]
mov eax, ecx
shr eax, 1
shr ecx, 4
and al, 7
and cl, 7
mov byte [r9 + 0x53], al
xor al, al
mov byte [r10], cl
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
add cl, al
movzx eax, cl
sar cl, 3
add byte [r9], cl
and al, 7
mov byte [r9 - 1], al
sar al, 2
movzx ecx, al
shl cl, 3
sub byte [r9 - 1], cl
sub r8, 1
jne 0x140014bf0
add byte [r10], al
mov rbx, qword [rsp + 8]
ret
Function at 0x140014c30
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r9, rcx
movzx eax, byte [rdx + 2]
movzx r8d, byte [rdx + 3]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx]
shl r8d, 8
or r8d, eax
mov dword [rcx + 0x10], r8d
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x18], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x28], ecx
movzx ecx, byte [rdx + 0x1f]
movzx eax, byte [rdx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [r9], 0x61707865
mov dword [r9 + 0x2c], ecx
mov dword [r9 + 4], 0x3320646e
mov dword [r9 + 8], 0x79622d32
mov dword [r9 + 0xc], 0x6b206574
ret
Function at 0x140015ed0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, dword [rcx + 0x7c]
lea r10, [rcx + 0x74]
mov r9d, r11d
mov r8, rcx
xor r9d, 0x7f
mov ebx, 5
dec r9d
shr r9d, 0x1f
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r10 - 0x10]
mov eax, dword [r10 - 0xc]
xor ecx, 0xff
mov edx, dword [r10 + 4]
lea r10, [r10 - 0x18]
xor eax, 0xff
dec ecx
dec eax
shr ecx, 0x1f
shr eax, 0x1f
xor edx, 0xff
and ecx, eax
dec edx
mov eax, dword [r10 + 0x10]
xor eax, 0xff
shr edx, 0x1f
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [r10 + 0x14]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [r10 + 0x18]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
and ecx, edx
and r9d, ecx
sub rbx, 1
jne 0x140015f00
mov ecx, dword [r8]
sub ecx, 0xed
not ecx
shr ecx, 0x1f
and ecx, r9d
neg ecx
mov eax, ecx
movzx edx, cl
and eax, 0x7f
sub r11d, eax
mov eax, 0x1e
mov dword [r8 + 0x7c], r11d
nop dword [rax]
nop dword [rax + rax]
sub dword [r8 + rax*4], edx
sub dword [r8 + rax*4 - 4], edx
sub rax, 2
test rax, rax
jg 0x140015fa0
mov rbx, qword [rsp + 8]
and ecx, 0xed
sub dword [r8], ecx
ret

Function at 0x1400160f0
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movzx r10d, r8b
neg r10d
lea rdx, [rcx + 0x7c]
lea rax, [r9 + 0x7c]
movd xmm2, r10d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x140016137
cmp rdx, r9
jb 0x140016137
sub r9, rcx
mov r8d, 0x20
nop
mov edx, dword [rcx + r9]
xor edx, dword [rcx]
lea rcx, [rcx + 4]
and edx, r10d
xor dword [rcx - 4], edx
sub r8, 1
jne 0x140016120
ret
lea rax, [rcx + 0x10]
sub r9, rcx
mov ecx, 4
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r9 + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x140016150
ret
Function at 0x140017810
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
mov dword [0x14006f000], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [0x14006f004], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [0x14006f008], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [0x14006f00c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [0x14006f010], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [0x14006f014], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [0x14006f018], ecx
movzx ecx, byte [rdx + 0x1f]
movzx eax, byte [rdx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [0x14006eff0], 0x61707865
mov dword [0x14006f01c], ecx
mov dword [0x14006eff4], 0x3320646e
mov dword [0x14006eff8], 0x79622d32
mov dword [0x14006effc], 0x6b206574
ret
Function at 0x140018090
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140017960
xor r11d, r11d
lea r10, [0x14006ebe0]
test rbx, rbx
je 0x140018164
mov r9d, 0x28
mov eax, r11d
cmp rdi, r9
cmovb r9, rdi
test r9, r9
je 0x140018164
cmp r9, 0x20
jb 0x140018140
lea rdx, [r10 - 1]
lea rcx, [rbx - 1]
add rdx, r9
add rcx, r9
cmp r10, rcx
ja 0x1400180ef
cmp rdx, rbx
jae 0x140018140
mov r8, r9
mov rdx, rbx
and r8, 0xffffffffffffffe0
sub rdx, r10
nop dword [rax]
movdqu xmm0, xmmword [rax + r10]
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rcx + r10]
lea rcx, [rdx + rax]
pxor xmm1, xmm0
movdqu xmmword [rax + r10], xmm1
movdqu xmm0, xmmword [rax + r10 + 0x10]
movdqu xmm1, xmmword [rcx + r10 + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + r10 + 0x10], xmm1
add rax, 0x20
cmp rax, r8
jb 0x140018100
cmp rax, r9
jae 0x140018164
sub rbx, r10
nop dword [rax + rax]
lea r8, [rax + r10]
inc rax
movzx ecx, byte [rbx + r8]
xor byte [r8], cl
cmp rax, r9
jb 0x140018150
mov rdx, r10
call fcn.140017810
movzx eax, byte [0x14006ec02]
movzx ecx, byte [0x14006ec03]
mov rbx, qword [rsp + 0x30]
shl ecx, 8
or ecx, eax
mov qword [0x14006f020], r11
movzx eax, byte [0x14006ec01]
shl ecx, 8
or ecx, eax
mov qword [0x14006efe0], 0x3d8
movzx eax, byte [0x14006ec00]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006ec06]
mov dword [0x14006f028], ecx
movzx ecx, byte [0x14006ec07]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006ec05]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006ec04]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [0x14006f02c], ecx
mov qword [0x14006ebe0], rax
mov qword [0x14006ebe8], rax
mov qword [0x14006ebf0], rax
mov qword [0x14006ebf8], rax
mov qword [0x14006ec00], rax
add rsp, 0x20
pop rdi
ret
Function at 0x1400183a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
xor r11d, r11d
lea r15, [0x140055e20]
mov r14, r9
mov rbx, rdx
mov r10, rcx
mov eax, r11d
cmp rdx, 2
jbe 0x140018478
lea edx, [r11 + 4]
nop dword [rax + rax]
movzx r9d, byte [r10]
sub rbx, 3
movzx edi, byte [r10 + 1]
movzx ebp, r9b
movzx esi, byte [r10 + 2]
movzx ecx, dil
shr cl, 4
and r9b, 3
and dil, 0xf
shl r9b, 4
add r9b, cl
shl dil, 2
movzx ecx, sil
shr bpl, 2
shr cl, 6
add r10, 3
add dil, cl
and sil, 0x3f
cmp rdx, r14
ja 0x14001851e
movzx ecx, bpl
add rdx, 4
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
movzx ecx, dil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
movzx ecx, sil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 3], cl
add rax, 4
cmp rbx, 2
ja 0x1400183e0
test rbx, rbx
je 0x14001853c
xor r9b, r9b
mov word [rsp + 0x29], r11w
xor dil, dil
mov byte [rsp + 0x28], r9b
xor dl, dl
test rbx, rbx
je 0x1400184c6
mov rdx, r11
nop dword [rax]
movzx ecx, byte [r10]
inc r11d
mov byte [rsp + rdx + 0x28], cl
inc r10
mov edx, r11d
cmp rdx, rbx
jb 0x1400184a0
movzx edi, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x29]
movzx r9d, byte [rsp + 0x28]
movzx ecx, dl
shr dil, 6
movzx r10d, r9b
shr cl, 4
and r9b, 3
shr r10b, 2
and dl, 0xf
shl r9b, 4
shl dl, 2
add r9b, cl
lea rcx, [rax + 4]
add dl, dil
cmp rcx, r14
ja 0x14001851e
movzx ecx, r10b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
cmp rbx, 1
jne 0x140018523
mov byte [rax + r8 + 2], 0x3d
jmp 0x140018530
or eax, 0xffffffff
jmp 0x140018546
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
add rax, 3
mov byte [rax + r8], 0x3d
inc rax
cmp rax, r14
jae 0x14001851e
mov byte [rax + r8], 0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret

Function at 0x1400224dc
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 0x14002236f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002236f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002236f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002236f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002236f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002236f
cmp dword [rcx + 0xf8], 0
je 0x14002236f
mov ecx, ebx
call fcn.140022410
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.140022200
cmp dword [rbp + 0x20], 0
je 0x1400223bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400223c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140022308
Function at 0x14000fbe0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret