joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162350
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x88
movups xmm0, xmmword [rcx]
lea r10, reloc.WS2_32.dll_send
mov r8, rcx
movups xmm1, xmmword [rcx + 0x10]
mov rdx, rcx
movups xmmword [rsp], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax - 0x78], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax - 0x68], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax - 0x58], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax - 0x48], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax - 0x38], xmm1
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm1
xor eax, eax
sub r10, rcx
lea r9d, [rax + 0x1f]
nop
mov ecx, dword [r10 + rdx]
add ecx, dword [rdx]
lea rdx, [rdx + 4]
add eax, ecx
movzx ecx, al
shr eax, 8
mov dword [rdx - 4], ecx
sub r9, 1
jne 0x1401623b0
sub eax, 0xffffff80
lea rcx, [rsp]
add dword [r8 + 0x7c], eax
lea edx, [r9 + 4]
mov eax, dword [r8 + 0x7c]
shr eax, 7
and eax, 1
neg eax
sub rcx, r8
movd xmm2, eax
lea rax, [r8 + 0x10]
pshufd xmm2, xmm2, 0
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rcx + 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 [rcx + rax - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rdx, 1
jne 0x140162400
add rsp, 0x88
ret

Function at 0x140162d20
Capabilities:
Encrypt data using curve25519

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movups xmm2, xmmword [rdx]
mov ebx, reloc.WS2_32.dll_recv
mov rdi, rcx
movups xmm0, xmmword [rdx + 0x10]
lea rcx, [rsp + 0x24]
mov edx, ebx
movd eax, xmm2
movups xmmword [r11 - 0x28], xmm0
and al, 0xf8
psrldq xmm0, 0xf
movups xmmword [r11 - 0x38], xmm2
mov byte [r11 - 0x38], al
movd eax, xmm0
and al, 0x3f
or al, 0x40
mov byte [r11 - 0x19], al
inc r8
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 + 2]
mov dword [rcx - 4], eax
lea rcx, [rcx + 8]
movzx eax, byte [r8 - 2]
mov dword [rcx - 8], eax
sub rdx, 1
jne 0x140162d80
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x20]
call fcn.140162e50
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140162970
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call fcn.140162450
lea rcx, [rsp + 0x120]
call fcn.140162350
lea rax, [rsp + 0x124]
lea r11, [rdi + 1]
nop dword [rax + rax]
movzx ecx, byte [rax - 4]
lea rax, [rax + 8]
mov byte [r11 - 1], cl
lea r11, [r11 + 2]
movzx ecx, byte [rax - 8]
mov byte [r11 - 2], cl
sub rbx, 1
jne 0x140162e00
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret
Function at 0x1401638d0
Capabilities:
Compute adler32 checksum

Disassembly:
mov r10d, edx
movzx ecx, dx
shr r10d, 0x10
mov r11d, r9d
test r8, r8
jne 0x1401638e7
lea eax, [r8 + 1]
ret
test r9d, r9d
je 0x140163a10
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jb 0x1401639c0
mov r9d, edx
shr r9, 4
nop
movzx eax, byte [r8]
add edx, 0xfffffff0
add ecx, eax
movzx eax, byte [r8 + 1]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 2]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 3]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 4]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 5]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 6]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 7]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 8]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 9]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 0xa]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 0xb]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 0xc]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 0xd]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 0xe]
add r10d, ecx
add ecx, eax
movzx eax, byte [r8 + 0xf]
add r10d, ecx
add r8, 0x10
add ecx, eax
add r10d, ecx
sub r9, 1
jne 0x140163910
test edx, edx
je 0x1401639e1
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8]
inc r8
add ecx, eax
add r10d, ecx
add edx, 0xffffffff
jne 0x1401639d0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r10d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r10d, eax
test r11d, r11d
jne 0x1401638f0
shl r10d, 0x10
or r10d, ecx
mov eax, r10d
ret

Function at 0x140163c39
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x140163d15
push rdi
sub rsp, 0x100
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0xf0], rax
movzx eax, byte [rcx]
mov rdi, rdx
cmp al, 0x3a
je 0x140163c6f
nop dword [rax]
test al, al
je 0x140163c6f
movzx eax, byte [rcx + 1]
inc rcx
cmp al, 0x3a
jne 0x140163c60
cmp byte [rcx], 0
mov rax, rcx
je 0x140163cfd
inc rcx
mov qword [rsp + 0x110], rbx
cmp byte [rcx], 0x20
cmovne rcx, rax
xor r8d, r8d
cmp byte [rcx + 1], r8b
lea rbx, [rcx + 1]
je 0x140163cf5
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx]
inc r8d
mov byte [rsp + rcx + 0x20], al
inc rcx
cmp al, 0xa
jne 0x140163cbd
movzx eax, byte [rbx + 1]
cmp al, 0x20
je 0x140163cbd
cmp al, 9
jne 0x140163ce3
cmp rcx, 0xc8
jne 0x140163cdb
mov r8d, ecx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002c950
xor r8d, r8d
xor ecx, ecx
inc rbx
cmp byte [rbx], 0
jne 0x140163ca0
test r8d, r8d
je 0x140163cf5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002c950
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x100
pop rdi
ret
Function at 0x140166a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x2c]
mov rbx, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov esi, dword [rbx + 0x40]
mov edx, dword [rbx + 0x88]
sub esi, edx
mov eax, dword [rbx + 0x90]
sub esi, eax
jne 0x140166ac4
test edx, edx
jne 0x140166ad3
test eax, eax
jne 0x140166ad3
mov esi, edi
jmp 0x140166b63
cmp esi, 0xffffffff
jne 0x140166ad3
mov esi, 0xfffffffe
jmp 0x140166b63
mov ecx, dword [rbx + 0x2c]
add ecx, 0xfffffefa
add ecx, edi
cmp edx, ecx
jb 0x140166b63
mov rcx, qword [rbx + 0x38]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.14016a920
mov r8d, dword [rbx + 0x68]
mov rax, qword [rbx + 0x58]
sub dword [rbx + 0x8c], edi
sub dword [rbx + 0x88], edi
sub dword [rbx + 0x78], edi
lea rdx, [rax + r8*2]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
sub cx, di
movzx eax, cx
not ax
sar ax, 0xf
and ax, cx
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x140166b11
mov rax, qword [rbx + 0x48]
mov r8d, edi
lea rdx, [rax + rdi*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
sub cx, di
movzx eax, cx
not ax
sar ax, 0xf
and ax, cx
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x140166b40
add esi, edi
mov rcx, qword [rbx + 8]
call fcn.140166e10
test eax, eax
je 0x140166be6
mov edx, dword [rbx + 0x90]
mov r8d, esi
mov eax, dword [rbx + 0x88]
mov rcx, qword [rbx + 8]
add rdx, rax
add rdx, qword [rbx + 0x38]
call fcn.140163a90
add dword [rbx + 0x90], eax
mov r9d, dword [rbx + 0x90]
cmp r9d, 3
jb 0x140166bcc
mov eax, dword [rbx + 0x88]
mov rdx, qword [rbx + 0x38]
mov ecx, dword [rbx + 0x74]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x64], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x70]
mov dword [rbx + 0x64], r8d
cmp r9d, 0x106
jae 0x140166be6
mov rcx, qword [rbx + 8]
call fcn.140166e10
test eax, eax
jne 0x140166aa0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14016cc88
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x140210f70]
lea rdx, str.FlsAlloc
call fcn.14016cab0
mov rbx, rax
test rax, rax
je 0x14016ccc8
mov rcx, rax
call fcn.14016a028
mov rcx, rdi
call rbx
jmp 0x14016ccce
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14016cd30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x140210f98]
lea rdx, str.FlsGetValue
call fcn.14016cab0
mov rdi, rax
test rax, rax
je 0x14016cd71
mov rcx, rax
call fcn.14016a028
mov ecx, ebx
call rdi
jmp 0x14016cd79
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14016cd84
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140210fb0]
call fcn.14016cab0
mov rsi, rax
test rax, rax
je 0x14016cdd0
mov rcx, rax
call fcn.14016a028
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14016cddb
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401700c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140169bf0
sub rsp, rax
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.1401781ac
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x14017011c
mov rax, r14
jmp 0x140170236
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x2734d0]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.14017d368
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x2734d0]
cmp r13, qword [rbx + rcx + 0x30]
je 0x140170183
or rax, 0xffffffffffffffff
jmp 0x140170236
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x2734d0]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14017017a
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.14017d368
test rax, rax
js 0x14017017a
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x14017017a
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x14017022a
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14017022a
cmp byte [rcx], 0xd
jne 0x140170210
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14017021f
cmp byte [rcx + 1], 0xa
jne 0x14017021f
inc rcx
jmp 0x14017021f
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x26c1e0]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x1401701f2
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140168e10
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14017a0e4
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 0x140179f6f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140179f6f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140179f6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140179f6f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140179f6f
cmp dword [rcx + 0x84], 0xe
jbe 0x140179f6f
cmp dword [rcx + 0xf8], 0
je 0x140179f6f
mov ecx, ebx
call fcn.14017a010
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.140179dec
cmp dword [rbp + 0x20], 0
je 0x140179fbc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140179fc4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140179f08
Function at 0x14017d378
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1402734d0]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x14017d3dd
cmp byte [r14], 0xa
jne 0x14017d3dd
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14017d3fe
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14017d558
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x14017d518
cmp al, 0xd
je 0x14017d432
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x14017d50d
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x14017d458
cmp byte [rax], 0xa
jne 0x14017d44a
mov byte [rbx], 0xa
mov eax, 2
jmp 0x14017d450
mov byte [rbx], ntohs
mov rax, r13
add rsi, rax
jmp 0x14017d50a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14017d500
cmp dword [rsp + 0x78], 0
je 0x14017d500
mov rcx, rdi
lea r10, [0x1402734d0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14017d4d0
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x14017d4dc
mov rcx, rdi
mov byte [rbx], ntohs
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14017d50a
cmp byte [rsp + 0x70], 0xa
jne 0x14017d4e1
cmp rbx, r14
jne 0x14017d4e1
mov byte [rbx], 0xa
jmp 0x14017d50a
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.14017d370
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1402734d0]
je 0x14017d50d
jmp 0x14017d507
lea r10, [0x1402734d0]
mov byte [rbx], ntohs
add rbx, r13
cmp rsi, rbp
jb 0x14017d417
jmp 0x14017d558
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14017d551
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14017d558
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14017d578
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1402734d0]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x14017d5e4
cmp word [r14], r10w
jne 0x14017d5e4
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14017d605
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14017d7de
mov ecx, recv
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14017d79c
cmp ax, cx
je 0x14017d641
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x14017d735
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x14017d669
cmp word [rax], r10w
jne 0x14017d65b
mov word [rbx], r10w
mov eax, 4
jmp 0x14017d661
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x14017d77f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14017d784
cmp dword [rsp + 0x80], 0
je 0x14017d784
mov rcx, rdi
lea r11, [0x1402734d0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14017d743
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14017d6db
mov word [rbx], r10w
jmp 0x14017d72d
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, recv
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x14017d6fc
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, recv
cmp rsi, rbp
jb 0x14017d621
jmp 0x14017d7de
cmp word [rsp + 0x70], r10w
jne 0x14017d750
cmp rbx, r14
je 0x14017d6d5
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14017d370
mov r10d, 0xa
lea r11, [0x1402734d0]
cmp word [rsp + 0x70], r10w
je 0x14017d730
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x14017d735
mov ecx, recv
lea r11, [0x1402734d0]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x14017d735
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14017d7d5
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14017d7de
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140294570
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14029459d
xor al, al
jmp 0x1402946ff
mov rax, qword [0x1402b36c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1402b36c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1402b36d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1402b36d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1402b36e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1402b36e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1402b36f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1402b36f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1402b3700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1402946f1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140294649
mov r11d, 2
jmp 0x14029466d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140294663
mov r11d, 1
jmp 0x14029466d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140294715
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1402946b2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1402946ca
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1402946da
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1402946e8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140294630
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1402946fa

Function at 0x1402fab6f
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0x14063ca1d
syscall
ret

Function at 0x14030bba2
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0x140679b47
syscall
ret
Function at 0x140403206
Capabilities:
Encrypt data using speck

Disassembly:
jmp 0x14056e76d
jne 0x14056d1fd
mov rdx, rax
jmp 0x14056e76d
cmp ebx, 4
jmp 0x14046f507
jne 0x1404ef3ab
mov rax, qword [rbp + riz]
test cx, 0x21e2
jmp 0x1402d380f
sub rsp, 0x20
call fcn.140552913
mov rsp, qword [rbp + riz - 0x10]
btc bx, sp
cmc
rcr bl, 0x49
mov rbp, qword [rbp + riz - 8]
bt bx, 0x8e
or ebx, ebx
mov qword [rbp + riz], rax
sub al, r13b
or ebx, r10d
pop rbx
movsx rax, si
sub rsi, 4
rol ah, 4
shl ax, cl
xadd eax, eax
mov eax, dword [rsi]
stc
jmp 0x140571df9
dec eax
stc
rol eax, 1
xor eax, 0x70717e3a
not eax
cmp r14w, 0x353
stc
test cl, 0xb5
push rbx
sub bl, 5
xor dword [rsp], eax
cmc
pop rbx
movsxd rax, eax
test r11b, 0x6e
clc
stc
add rdi, rax
push rdi
ret
push 0x7989ae9b
call fcn.140669df1
jne 0x1405bf012
mov rcx, rax
jmp 0x1402d37dc
jne 0x14056e769
mov r9, rax
jmp 0x140502218
mov rax, qword [rbp + rbx*8]
cmp r15w, 0x1d68
test r15b, 0x9c
test si, r11w
cmp ebx, 1
jmp 0x140403210
jmp 0x14056e76d
cmp ebx, 3
jmp 0x1405836aa
push qword [rbp + rbx*8 + 0x20]
sub ebx, 1
jmp 0x1402d37fa
xor eax, ebx
cmp r13b, 0x1a
test bl, cl
xor eax, 0x6ee05b52
test r12w, r8w
stc
add eax, 0x3e0e5755
cmc
clc
test r10b, 0x8e
bswap eax
neg eax
jmp 0x1403e7fd4
jne 0x1402d37ef
mov r8, rax
jmp 0x14056e76d
cmp ebx, 2
jmp 0x1402d37e1

Function at 0x14053e058
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0x14055fa0e
syscall
ret

Function at 0x140552913
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
syscall
ret

Function at 0x1405d1d30
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0x1403694a3

Function at 0x140685b40
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0x140569dab
Function at 0x4045d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x004350a0], 0
je 0x404688
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040a430
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x0042f0a8]
call fcn.0040a430
mov rcx, rsi
mov rdx, qword [0x0042f0a8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040a430
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40469b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret