joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104770
Capabilities:
Send data
Send data on socket

Disassembly:
test rcx, rcx
je 0x140104780
test rdx, rdx
je 0x140104780
jmp fcn.1400d2040
ret

Function at 0x1401071a0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
je 0x14010726b
test r9d, r9d
je 0x14010726b
movsxd r9, r9d
mov rbx, r8
shl r9, 4
lea rdi, [r8 + r9]
cmp r8, rdi
jae 0x140107267
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, rcx
xor esi, esi
lea r13, [rsp + 0x3c]
jmp 0x1401071fd
add rbx, 0x10
add esi, dword [rsp + 0x3c]
cmp rdi, rbx
jbe 0x140107258
mov qword [rsp + 0x20], 0
mov r9, r13
mov r8d, dword [rbx + 8]
mov rcx, rbp
mov dword [rsp + 0x3c], 0
mov rdx, qword [rbx]
call r12
test eax, eax
jne 0x1401071f0
cmp qword [rsp + 0xa0], 0
je 0x14010723d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xa0]
mov dword [rdx], eax
mov rax, 0xffffffffffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add rsp, 0x48
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
jmp 0x140107244
lea rax, str.Bad_input_data
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, [0x1403dfc30]
call fcn.14005a150
mov rax, 0xffffffffffffffff
jmp 0x140107244

Function at 0x1401082f0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x140108310
test r8, r8
je 0x140108310
test rcx, rcx
je 0x140108310
test r9, r9
je 0x140108310
cmp qword [rcx + 0x20], 0
je 0x140108310
jmp fcn.140071e50
mov eax, 0xffffffff
ret
Function at 0x140113d50
Capabilities:
Generate random numbers via winapi

Disassembly:
push r12
mov r12d, 1
push rsi
push rbx
sub rsp, 0x40
test rdx, rdx
jne 0x140113d70
add rsp, 0x40
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
mov rsi, rcx
mov rbx, rdx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140113db0
add rsp, 0x40
xor r12d, r12d
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
mov edx, ebx
mov rcx, qword [rsp + 0x38]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x140113d98
jmp 0x140113d63
Function at 0x14011c860
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 1
mov ecx, edx
push rbp
shl rax, cl
mov rdx, rax
shr rdx, 1
mov rbp, rsp
and rsp, 0xfffffffffffffff0
cmp rax, rdx
jbe 0x14011c8e0
mov rcx, rax
sub rcx, rdx
cmp rcx, 1
je 0x14011c8cc
mov r9, rcx
lea rax, [r8 + rdx*8]
movapd xmm1, xmmword [0x1403caad0]
shr r9, 1
shl r9, 4
add r9, rax
nop dword [rax]
movupd xmm0, xmmword [rax]
add rax, 0x10
xorpd xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp r9, rax
jne 0x14011c8a8
mov rax, rcx
and rax, 0xfffffffffffffffe
add rdx, rax
cmp rcx, rax
je 0x14011c8e0
lea rax, [r8 + rdx*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403caac0]
movsd qword [rax], xmm0
leave
ret

Function at 0x14011d080
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
mov eax, 1
mov ecx, r8d
shl rax, cl
mov r11, rax
shr r11, 1
je 0x14011d230
push rbp
lea r8, [r11*8]
mov r10, rdx
lea rdx, [r11*8 + 0x10]
lea rcx, [r9 + r8]
mov rbp, rsp
push rbx
lea rbx, [r9 + 0x10]
sub rsp, 0x10
and rsp, 0xfffffffffffffff0
cmp rcx, rbx
setae bl
test rdx, rdx
movaps xmmword [rsp], xmm6
setle dl
or bl, dl
je 0x14011d1c0
cmp r11, 1
je 0x14011d1c0
shr rax, 2
movapd xmm5, xmmword [0x1403caad0]
add r8, r10
mov rbx, rax
mov rdx, rax
xor eax, eax
shl rbx, 4
nop
movupd xmm0, xmmword [rcx + rax]
movupd xmm2, xmmword [r8 + rax]
movupd xmm1, xmmword [r9 + rax]
movupd xmm3, xmmword [r10 + rax]
movupd xmm6, xmmword [r10 + rax]
xorpd xmm2, xmm5
movapd xmm4, xmm0
mulpd xmm3, xmm1
mulpd xmm4, xmm2
mulpd xmm0, xmm6
mulpd xmm1, xmm2
subpd xmm3, xmm4
addpd xmm0, xmm1
movups xmmword [r9 + rax], xmm3
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, rbx
jne 0x14011d100
lea rcx, [rdx + rdx]
cmp r11, rcx
je 0x14011d1b1
mov rax, rdx
lea rdx, [r11 + rcx]
shl rax, 4
lea rcx, [r9 + rdx*8]
movsd xmm2, qword [r10 + rdx*8]
xorpd xmm2, xmmword [0x1403caac0]
lea r8, [r9 + rax]
movsd xmm0, qword [rcx]
movsd xmm4, qword [r10 + rax]
movsd xmm1, qword [r8]
movapd xmm5, xmm0
mulsd xmm5, xmm2
movapd xmm3, xmm1
mulsd xmm3, xmm4
mulsd xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm3, xmm5
addsd xmm0, xmm1
movsd qword [r8], xmm3
movsd qword [rcx], xmm0
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
movq xmm6, qword [0x1403caac0]
add r8, r10
xor eax, eax
nop dword [rax]
movsd xmm1, qword [r8 + rax*8]
movsd xmm2, qword [r10 + rax*8]
movsd xmm4, qword [r9 + rax*8]
movsd xmm3, qword [rcx + rax*8]
xorpd xmm1, xmm6
movapd xmm0, xmm1
movapd xmm1, xmm2
mulsd xmm1, xmm4
movapd xmm5, xmm0
mulsd xmm5, xmm3
mulsd xmm0, xmm4
mulsd xmm2, xmm3
subsd xmm1, xmm5
addsd xmm0, xmm2
movsd qword [r9 + rax*8], xmm1
movsd qword [rcx + rax*8], xmm0
add rax, 1
cmp rax, r11
jne 0x14011d1d0
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
ret
Function at 0x14011d3c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov r8, rcx
mov r9d, 1
mov ecx, edx
shl r9, cl
mov rbp, rsp
and rsp, 0xfffffffffffffff0
test edx, edx
je 0x14011d430
mov rdx, r9
movapd xmm1, xmmword [0x1403caad0]
mov rax, r8
shr rdx, 1
shl rdx, 4
add rdx, r8
nop word [rax + rax]
movupd xmm0, xmmword [rax]
add rax, 0x10
xorpd xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x14011d3f8
mov rax, r9
and rax, 0xfffffffffffffffe
and r9d, 1
je 0x14011d42e
lea rax, [r8 + rax*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403caac0]
movsd qword [rax], xmm0
leave
ret
xor eax, eax
jmp 0x14011d41a
Function at 0x14011d7d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r12
mov r12, rcx
mov r8d, 0x38
mov rcx, rdx
lea rdx, [r12 + 0x208]
sub rsp, 0x20
call fcn.140114730
add rsp, 0x20
mov rcx, r12
pop r12
jmp fcn.14011d800
Function at 0x140123570
Capabilities:
Read file on windows

Disassembly:
push rbp
mov eax, 0x1030
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
call fcn.140035990
xor r13d, r13d
xor r15d, r15d
mov esi, 0x80000000
sub rsp, rax
mov qword [rbp + 0x18], rdx
mov r12, rcx
mov qword [rbp + 0x20], r8
mov qword [rsp + 0x28], 0
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x1401236a1
lea r14, [rsp + 0x30]
mov r9, r12
mov r8d, 0x1000
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fread
mov rdi, rax
mov eax, 0xffffffff
sub rax, rdi
cmp rax, qword [rsp + 0x28]
jb 0x14012364f
mov rax, qword [rsp + 0x28]
lea rbx, [rdi + rax]
jmp 0x140123620
cmp r13, rsi
jae 0x14012364f
add r13, r13
test r13, r13
je 0x14012363f
mov rdx, r13
mov rcx, r15
call sub.msvcrt.dll_realloc
test rax, rax
je 0x14012364f
mov r15, rax
cmp r13, rbx
ja 0x140123678
test r15, r15
jne 0x140123600
lea r13, [rdi + 1]
mov eax, 0x1000
cmp r13, rax
cmova r13, rax
test r13, r13
jne 0x14012360d
test r15, r15
je 0x14012364f
mov rcx, r15
xor r15d, r15d
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x14012364f
mov rcx, qword [rsp + 0x28]
mov r8, rdi
mov rdx, r14
add rcx, r15
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x28], rbx
jmp 0x1401235af
mov rcx, r12
call sub.msvcrt.dll_fclose
test r13, r13
je 0x1401236da
mov rax, qword [rsp + 0x28]
add rax, r15
cmp qword [rbp + 0x20], 0
mov byte [rax], 0
je 0x1401236cc
mov rax, qword [rbp + 0x20]
mov rdi, qword [rsp + 0x28]
mov qword [rax], rdi
mov rax, qword [rbp + 0x18]
mov qword [rax], r15
mov eax, 1
jmp 0x140123661
mov ecx, 1
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], 0
mov r15, rax
jmp 0x1401236b6
Function at 0x140123c40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
mov rdi, rdx
push rsi
push rbx
sub rsp, 0x68
mov rbx, qword [rsp + 0xd0]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x38], r8
mov r14d, dword [rbx + 0x30]
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], rbx
mov eax, r14d
mov dword [rsp + 0x28], r14d
imul eax, esi
mov dword [rsp + 0x2c], esi
mov qword [rsp + 0x30], rax
add rax, r9
mov rcx, rax
mov qword [rsp + 0x50], rax
call sub.msvcrt.dll_malloc
mov r12, rax
test r14d, r14d
je 0x140123d77
mov r10d, esi
test esi, esi
je 0x140123d77
mov ebp, dword [rbx + 0x3c]
mov r11d, 1
mov esi, dword [rbx + 0x14]
mov dword [rsp + 0x24], 0
mov ebx, r11d
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov r14d, esi
shl ebx, cl
lea ecx, [rbp - 1]
shr r14d, 1
shl r11d, cl
lea r13d, [rbx - 1]
movsxd rbx, ebx
mov ecx, ebp
movsxd r11, r11d
mov rbp, rdi
movsxd r13, r13d
mov rdi, rbx
mov rbx, r11
mov r11d, r10d
nop dword [rax + rax]
mov r9d, dword [rsp + 0x24]
nop dword [rax]
mov r8d, r9d
mov r10, r14
mov r15, rbx
add r9d, 1
mov rdx, qword [rbp + r8*8]
mov rax, rdx
sub r10, rdx
sub rax, rsi
sar r10, 0x3f
xor rax, rdx
and rax, r10
xor rax, rdx
mov rdx, r13
and rdx, rax
mov r10, rdx
sub r15, rdx
sub r10, rdi
sar r15, 0x3f
xor r10, rdx
and r10, r15
xor rdx, r10
sub rax, rdx
sar rax, cl
mov byte [r12 + r8], al
cmp r9d, r11d
jne 0x140123d08
mov r8d, dword [rsp + 0x2c]
add dword [rsp + 0x20], 1
add dword [rsp + 0x24], r8d
mov eax, dword [rsp + 0x20]
add r11d, r8d
cmp dword [rsp + 0x28], eax
jne 0x140123d00
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
add rcx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r8, r12
mov rcx, qword [rsp + 0x58]
mov edx, 0x20
mov eax, dword [rax]
test eax, eax
je 0x140123dcd
cmp eax, 3
je 0x140123dcd
call fcn.140054820
add rsp, 0x68
mov rcx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
call fcn.1400547f0
jmp 0x140123db5
Function at 0x140132730
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x250
mov r14d, dword [r9 + 8]
mov qword [rbp + 0x20], r8
lea r13, [rsp + 0x150]
mov r8d, dword [r9 + 0x10]
test r14d, r14d
je 0x1401328d7
lea rax, [r8 - 1]
lea rdi, [r8 - 2]
mov r11, rdx
mov r10, rcx
mov rsi, rax
mov qword [rsp + 0x38], rax
and rax, 0xfffffffffffffffc
mov r12, r8
mov qword [rsp + 0x40], rax
add rax, 1
shr rsi, 2
xor edx, edx
mov qword [rsp + 0x28], rax
shl rsi, 4
lea r13, [rsp + 0x150]
mov qword [rsp + 0x48], rdi
lea rdi, [rsp + 0x54]
mov qword [rsp + 0x30], rdi
add rsi, rdi
xor edi, edi
nop dword [rax + rax]
xor eax, eax
lea r9, [rsp + 0x50]
test r12d, r12d
je 0x140132900
lea ecx, [rdx + rax]
mov ecx, dword [r11 + rcx*4]
and ecx, dword [r10 + rax*4]
mov dword [r9 + rax*4], ecx
add rax, 1
cmp r8, rax
jne 0x1401327d0
mov eax, dword [rsp + 0x50]
cmp r8, 1
je 0x14013287a
cmp qword [rsp + 0x48], 2
jbe 0x140132909
mov rcx, qword [rsp + 0x30]
pxor xmm0, xmm0
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx]
add rcx, 0x10
pxor xmm0, xmm2
cmp rsi, rcx
jne 0x140132810
movdqa xmm1, xmm0
psrldq xmm1, 8
pxor xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 4
pxor xmm0, xmm1
movd ecx, xmm0
xor eax, ecx
mov rcx, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rcx
je 0x14013287a
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 1]
lea r9, [rcx*4]
xor eax, dword [rsp + rcx*4 + 0x50]
cmp rbx, r8
jae 0x14013287a
add rcx, 2
xor eax, dword [rsp + r9 + 0x54]
cmp rcx, r8
jae 0x14013287a
xor eax, dword [rsp + r9 + 0x58]
mov ecx, eax
mov ebx, edi
mov r9d, 1
add edx, r12d
shr ecx, 1
shr ebx, 3
xor eax, ecx
add rbx, r13
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov eax, ecx
shr eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 8
xor eax, ecx
mov ecx, edi
add edi, 1
mov r15d, eax
not ecx
shr r15d, 0x10
and ecx, 7
xor eax, r15d
shl r9d, cl
and eax, 1
not r9d
and r9b, byte [rbx]
shl eax, cl
or r9d, eax
mov byte [rbx], r9b
cmp edi, r14d
jne 0x1401327c0
mov rcx, qword [rbp + 0x20]
mov rdx, r13
shl r8, 2
call sub.msvcrt.dll_memcpy
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rsp + 0x50]
jmp 0x14013287a
mov ecx, 1
jmp 0x140132852
Function at 0x14013dee0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
add rsp, 0xffffffffffffff80
test r8d, r8d
jle 0x14013dfc3
lea eax, [r8 - 1]
mov r12, rcx
mov r13, r9
xor edi, edi
shl rax, 4
lea rbx, [rdx + 8]
lea rax, [rdx + rax + 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
jmp 0x14013df52
mov eax, dword [rsp + 0x5c]
cmp rsi, rax
jne 0x14013dfb8
add rdi, qword [rbx]
add r13, qword [rbx]
add rbx, 0x10
cmp qword [rsp + 0x38], rbx
je 0x14013dfc8
mov rsi, qword [rbx]
mov r15, qword [rbx - 8]
mov r14, r13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], r14
mov rdx, r15
mov rcx, r12
mov r8d, 0x1000000
mov r9, qword [rsp + 0x48]
mov qword [rsp + 0x78], 0
cmp rsi, r8
mov qword [rsp + 0x20], rax
cmovbe r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013df38
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14013df41
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
sub rsi, rax
add r14, rax
add r15, rax
jmp 0x14013df5c
xor edi, edi
nop dword [rax]
xor eax, eax
mov edx, 0x1d
cmp qword [rbp + 0x30], rdi
cmovne eax, edx
jmp 0x14013dfa0
Function at 0x140146370
Capabilities:
Print debug messages

Disassembly:
push r12
lea r12, [rcx + 0x190]
push rbx
sub rsp, 0x38
test byte [rcx + 6], 0x40
je 0x140146398
add rsp, 0x38
mov rcx, r12
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0x7fffffff
mov r9d, 0xfffd0000
mov edx, 0x30000
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1401463cf
add rsp, 0x38
pop rbx
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
lea rdx, str.mdbx_txn_unlock
lea rcx, str._s_failed:_err__u
pop rbx
mov r8d, eax
pop r12
jmp fcn.140222ee0
Function at 0x14014c330
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
mov r14, r9
push r13
push r12
push rbp
push rdi
push rsi
mov esi, edx
shr edx, 1
push rbx
lea r9d, [rsi - 1]
mov rbx, rcx
mov ecx, 1
sub rsp, 0x18
cmp r9d, 1
jbe 0x14014c391
nop dword [rax]
cmp edx, ecx
jbe 0x14014c378
mov eax, edx
mov r10d, dword [rbx + rcx*4]
lea rax, [rbx + rax*4]
mov r11d, dword [rax]
mov dword [rbx + rcx*4], r11d
mov dword [rax], r10d
mov eax, esi
nop word [rax + rax]
shr eax, 1
xor edx, eax
test eax, edx
je 0x14014c380
add rcx, 1
cmp rcx, r9
jne 0x14014c360
mov r13d, esi
mov r11d, 1
cmp esi, 1
jbe 0x14014c482
nop dword [rax + rax]
xor edx, edx
nop word [rax + rax]
lea eax, [r11 + rdx]
lea r9, [rbx + rdx*4]
lea r10, [rbx + rax*4]
mov edi, dword [r9]
mov rcx, rax
mov eax, dword [r10]
sub edi, eax
sub eax, r8d
mov edx, edi
sar edx, 0x1f
and edx, r8d
add edx, edi
mov dword [r10], edx
add eax, dword [r9]
cdq
and edx, r8d
add eax, edx
lea edx, [rcx + r11]
mov dword [r9], eax
cmp esi, edx
ja 0x14014c3b0
cmp esi, r11d
mov eax, r11d
mov r12d, r13d
mov ebp, 1
cmovbe eax, esi
mov dword [rsp + 0xc], eax
cmp r11d, 1
jbe 0x14014c473
nop word cs:[rax + rax]
mov eax, r12d
mov ecx, ebp
mov edi, dword [r14 + rax*4]
nop dword [rax]
lea eax, [r11 + rcx]
lea r10, [rbx + rax*4]
mov r9, rax
mov eax, dword [r10]
imul eax, edi
cdq
idiv r8d
lea rax, [rbx + rcx*4]
mov r15d, dword [rax]
sub r15d, edx
sub edx, r8d
mov ecx, r15d
sar ecx, 0x1f
and ecx, r8d
add ecx, r15d
mov dword [r10], ecx
add edx, dword [rax]
mov ecx, edx
sar ecx, 0x1f
and ecx, r8d
add edx, ecx
lea ecx, [r11 + r9]
mov dword [rax], edx
cmp esi, ecx
ja 0x14014c420
add ebp, 1
add r12d, r13d
cmp ebp, dword [rsp + 0xc]
jb 0x14014c410
add r11d, r11d
shr r13d, 1
cmp esi, r11d
ja 0x14014c3a8
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14014eab0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
test rcx, rcx
je 0x14014ed0b
push rbp
mov eax, 7
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov r8, qword [rcx]
cmp r8, 0xf
jbe 0x14014ec9a
mov rdx, r8
lea r9, [rcx + 0x30]
lea rdi, [rcx + 0x38]
mov qword [rcx + 0x30], 0
shr rdx, 2
and rdi, 0xfffffffffffffff8
mov qword [rcx + 0x118], 0
lea r14, [0x1402cb480]
lea rax, [rdx + 7]
movq xmm1, rdx
lea rdx, [rbx + 8]
movq xmm0, rax
shl rax, 4
punpcklqdq xmm0, xmm1
mov qword [rcx + 0x28], rax
xor eax, eax
movups xmmword [rcx + 0x120], xmm0
mov rcx, r9
sub rcx, rdi
add ecx, 0xf0
shr ecx, 3
rep stosq qword [rdi], rax
mov rcx, r9
call sub.msvcrt.dll_memcpy
mov r12, qword [rbx + 0x128]
mov r9, rax
mov rax, qword [rbx + 0x120]
mov r8, r9
mov rcx, r12
lea r13, [rax*4]
cmp r13, r12
ja 0x14014ebdf
jmp 0x14014ec98
mov eax, r9d
mov r15d, r9d
movzx eax, ah
shr r15d, 0x10
mov r11d, eax
mov eax, r9d
mov edi, r15d
shr eax, 0x18
mov esi, eax
cmp rdx, 4
jne 0x14014ebab
cmp r12, 6
ja 0x14014ecb0
xor r10b, byte [r8]
add r8, 4
mov byte [rbx + rcx*4 + 0x30], r10b
xor r11b, byte [r8 - 3]
mov byte [rbx + rcx*4 + 0x31], r11b
xor dil, byte [r8 - 2]
mov byte [rbx + rcx*4 + 0x32], dil
xor sil, byte [r8 - 1]
mov byte [rbx + rcx*4 + 0x33], sil
add rcx, 1
cmp r13, rcx
je 0x14014ec98
mov rax, rcx
xor edx, edx
mov r9d, dword [rbx + rcx*4 + 0x2c]
div r12
mov dword [rsp + 0x28], r9d
mov r10d, r9d
test rdx, rdx
jne 0x14014eb80
movzx edx, word [rsp + 0x29]
mov byte [rsp + 0x2f], r9b
mov word [rsp + 0x2c], dx
movzx edx, byte [rsp + 0x2b]
mov byte [rsp + 0x2e], dl
mov edx, dword [rsp + 0x2c]
movzx esi, dh
mov r9d, esi
mov r10, r9
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx r11d, byte [r9 + r10]
mov r9d, edx
shr r9d, 0x10
mov r10d, r9d
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx edi, byte [r9 + r10]
mov r9d, edx
shr r9d, 0x18
mov r10d, r9d
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx esi, byte [r9 + r10]
mov r9d, edx
and edx, 0xf0
add rdx, r14
and r9d, 0xf
movzx r10d, byte [rdx + r9]
lea rdx, [0x1402cb580]
xor r10b, byte [rdx + rax - 1]
jmp 0x14014ebab
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r10d, r9d
and r9d, 0xf0
lea rdx, [r14 + r9]
and r10d, 0xf
mov r9, r11
and r11d, 0xf0
and r9d, 0xf
movzx r10d, byte [rdx + r10]
lea rdx, [r14 + r11]
movzx r11d, byte [rdx + r9]
mov r9d, r15d
and r15d, 0xf0
lea rdx, [r14 + r15]
and r9d, 0xf
movzx edi, byte [rdx + r9]
mov edx, eax
and eax, 0xf0
and edx, 0xf
add rax, r14
movzx esi, byte [rax + rdx]
jmp 0x14014ebab
mov eax, 2
ret
Function at 0x14014efd0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x3c], r9d
test r8, r8
je 0x14014f0ed
mov rbp, rcx
mov rcx, r8
mov r14, r8
call sub.msvcrt.dll_strlen
mov rdi, rax
test rax, rax
je 0x14014f0ed
mov edx, 0x100
mov ecx, 1
xor esi, esi
xor ebx, ebx
call sub.msvcrt.dll_calloc
mov r12d, 0x100
lea r13, [rsp + 0x4c]
mov r15, rax
nop
mov r8d, r12d
lea rdx, [r15 + rbx]
mov r9, r13
mov rcx, rbp
mov dword [rsp + 0x4c], 0
sub r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x4c]
test edx, edx
jle 0x14014f100
test eax, eax
je 0x14014f104
add esi, edx
lea ebx, [rsi + 1]
cmp ebx, r12d
jl 0x14014f096
mov rcx, r15
nop dword [rax + rax]
add r12, r12
mov rdx, r12
call sub.msvcrt.dll_realloc
mov rcx, rax
cmp ebx, r12d
jge 0x14014f080
mov r15, rax
movsxd rbx, esi
cmp esi, edi
jl 0x14014f030
mov rcx, rbx
mov r8, rdi
mov rdx, r14
sub rcx, rdi
add rcx, r15
call qword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
jne 0x14014f030
cmp byte [rsp + 0x3c], 0
je 0x14014f11e
sub esi, edi
cmp qword [rsp + 0x30], 0
movsxd rdx, esi
mov byte [r15 + rdx], 0
je 0x14014f14e
mov rax, qword [rsp + 0x30]
mov dword [rax], esi
add rdx, 1
jne 0x14014f136
test r15, r15
je 0x14014f0ed
mov rcx, r15
call sub.msvcrt.dll_free
add rsp, 0x58
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
jne 0x14014f0ba
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14014f0e5
mov dword [rax], 0
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x14014f0ed
cmp qword [rsp + 0x30], 0
mov byte [r15 + rbx], 0
je 0x14014f14e
mov rax, qword [rsp + 0x30]
lea rdx, [rbx + 1]
mov dword [rax], esi
add rsp, 0x58
mov rcx, r15
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_realloc
movsxd rdx, dword [pe_dos_header]
jmp 0x14014f0da
Function at 0x1401522a0
Capabilities:
Encode data using xor

Disassembly:
push r12
mov r10, rcx
mov r11, rdx
xor r9d, r9d
push rbp
push rdi
push rsi
push rbx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0
nop
movzx ecx, word [r11 + r9*2 + 0x200]
movzx edx, word [r11 + r9*2]
movzx ebx, word [r11 + r9*2 + 0x400]
movzx r12d, word [r11 + r9*2 + 0x600]
mov r8d, edx
imul edx, edx, 0x554f
mov eax, r8d
shr edx, 0x10
sub eax, edx
shr ax, 1
add eax, edx
shr ax, 0xd
lea edx, [rax + rax*2]
shl edx, 0xc
add eax, edx
sub r8d, eax
mov eax, ecx
imul ecx, ecx, 0x554f
mov edx, eax
sub r8w, 0x1800
mov edi, r8d
sar di, 0xf
shr ecx, 0x10
sub edx, ecx
shr dx, 1
add edx, ecx
shr dx, 0xd
lea ecx, [rdx + rdx*2]
shl ecx, 0xc
add edx, ecx
mov ecx, ebx
imul ebx, ebx, 0x554f
sub eax, edx
mov edx, ecx
sub ax, 0x1800
mov ebp, eax
shr ebx, 0x10
sar bp, 0xf
sub edx, ebx
shr dx, 1
add edx, ebx
shr dx, 0xd
lea ebx, [rdx + rdx*2]
shl ebx, 0xc
add edx, ebx
sub ecx, edx
mov edx, r12d
sub cx, 0x1800
mov ebx, edx
mov esi, ecx
sar si, 0xf
imul r12d, r12d, 0x554f
add eax, ebp
add r8d, edi
xor eax, ebp
xor r8d, edi
add ecx, esi
xor ecx, esi
lea eax, [rax + r8 - 0x3001]
shr r12d, 0x10
add eax, ecx
mov ecx, r9d
sub ebx, r12d
and ecx, 7
shr bx, 1
add ebx, r12d
shr bx, 0xd
lea r12d, [rbx + rbx*2]
shl r12d, 0xc
add ebx, r12d
sub edx, ebx
sub dx, 0x1800
mov ebx, edx
sar bx, 0xf
add edx, ebx
xor edx, ebx
add eax, edx
mov edx, r9d
add r9, 1
shr edx, 3
shr ax, 0xf
shl eax, cl
or byte [r10 + rdx], al
cmp r9, 0x100
jne 0x1401522d0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140152750
Capabilities:
Encode data using xor

Disassembly:
push r15
mov eax, 1
lea r15, [0x1402cef40]
push r14
push r13
push r12
push rbp
push rdi
push rsi
mov rsi, rcx
mov ecx, r8d
push rbx
shl rax, cl
mov ecx, 0xa
lea rdi, [rax - 1]
sub ecx, r8d
sub rsp, 0x68
mov qword [rsp + 0xb8], rdx
mov edx, 1
lea rbp, [rsp + 0x58]
add rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
shl edx, cl
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x30], rdi
movabs rdi, 0x7fffffffffffffff
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
xor r14d, r14d
xor r12d, r12d
nop word [rax + rax]
mov r8d, 8
mov rdx, rbp
mov rcx, rsi
call fcn.140114730
mov r13, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbp
movabs rax, 0xee2ec827d20d54a8
mov r8d, 8
mov rbx, r13
and r13, rdi
add r13, rax
shr rbx, 0x3f
call fcn.140114730
mov r10, qword [rsp + 0x58]
shr r13, 0x3f
xor r8d, r8d
mov ecx, 1
and r10, rdi
nop word [rax + rax]
mov rdx, r10
sub rdx, qword [r15 + rcx*8]
mov eax, r13d
shr rdx, 0x3f
xor eax, 1
xor edx, 1
and eax, edx
or r13d, edx
neg eax
and eax, ecx
add rcx, 1
or r8d, eax
cmp rcx, 0x1b
jne 0x140152840
mov eax, ebx
add r14d, 1
neg eax
xor eax, r8d
add eax, ebx
add r12d, eax
cmp dword [rsp + 0x28], r14d
ja 0x1401527e8
lea eax, [r12 + 0x7f]
cmp eax, 0xfe
ja 0x1401527dc
mov eax, r12d
mov rcx, qword [rsp + 0x38]
and eax, 1
cmp qword [rsp + 0x30], rcx
jne 0x1401528e0
cmp dword [rsp + 0x2c], eax
je 0x1401527dc
mov ebx, r12d
mov rax, qword [rsp + 0x40]
mov byte [rax], bl
add rax, 1
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x48], rax
jne 0x1401527ca
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor dword [rsp + 0x2c], eax
mov ebx, r12d
jmp 0x1401528b4