joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127320
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 0x140127457
mov r10d, esi
test esi, esi
je 0x140127457
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 0x1401273e8
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 0x1401273e0
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 0x1401274ad
cmp eax, 3
je 0x1401274ad
call fcn.140054790
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.140054760
jmp 0x140127495
Function at 0x140135e10
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 0x140135fb7
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 0x140135fe0
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 0x140135eb0
mov eax, dword [rsp + 0x50]
cmp r8, 1
je 0x140135f5a
cmp qword [rsp + 0x48], 2
jbe 0x140135fe9
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 0x140135ef0
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 0x140135f5a
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 1]
lea r9, [rcx*4]
xor eax, dword [rsp + rcx*4 + 0x50]
cmp rbx, r8
jae 0x140135f5a
add rcx, 2
xor eax, dword [rsp + r9 + 0x54]
cmp rcx, r8
jae 0x140135f5a
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 0x140135ea0
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 0x140135f5a
mov ecx, 1
jmp 0x140135f32
Function at 0x1401415c0
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 0x1401416a3
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 0x140141632
mov eax, dword [rsp + 0x5c]
cmp rsi, rax
jne 0x140141698
add rdi, qword [rbx]
add r13, qword [rbx]
add rbx, 0x10
cmp qword [rsp + 0x38], rbx
je 0x1401416a8
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 0x140141618
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140141621
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 0x14014163c
xor edi, edi
nop dword [rax]
xor eax, eax
mov edx, 0x1d
cmp qword [rbp + 0x30], rdi
cmovne eax, edx
jmp 0x140141680
Function at 0x140149a50
Capabilities:
Print debug messages

Disassembly:
push r12
lea r12, [rcx + 0x190]
push rbx
sub rsp, 0x38
test byte [rcx + 6], 0x40
je 0x140149a78
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 0x140149aaf
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.140227aa0
Function at 0x14014fc90
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 0x14014fcf1
nop dword [rax]
cmp edx, ecx
jbe 0x14014fcd8
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 0x14014fce0
add rcx, 1
cmp rcx, r9
jne 0x14014fcc0
mov r13d, esi
mov r11d, 1
cmp esi, 1
jbe 0x14014fde2
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 0x14014fd10
cmp esi, r11d
mov eax, r11d
mov r12d, r13d
mov ebp, 1
cmovbe eax, esi
mov dword [rsp + 0xc], eax
cmp r11d, 1
jbe 0x14014fdd3
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 0x14014fd80
add ebp, 1
add r12d, r13d
cmp ebp, dword [rsp + 0xc]
jb 0x14014fd70
add r11d, r11d
shr r13d, 1
cmp esi, r11d
ja 0x14014fd08
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140152410
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
test rcx, rcx
je 0x14015266b
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 0x1401525fa
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, [0x1402d10e0]
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 0x14015253f
jmp 0x1401525f8
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 0x14015250b
cmp r12, 6
ja 0x140152610
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 0x1401525f8
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 0x1401524e0
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, [0x1402d11e0]
xor r10b, byte [rdx + rax - 1]
jmp 0x14015250b
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 0x14015250b
mov eax, 2
ret
Function at 0x140152930
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 0x140152a4d
mov rbp, rcx
mov rcx, r8
mov r14, r8
call sub.msvcrt.dll_strlen
mov rdi, rax
test rax, rax
je 0x140152a4d
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 0x140152a60
test eax, eax
je 0x140152a64
add esi, edx
lea ebx, [rsi + 1]
cmp ebx, r12d
jl 0x1401529f6
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 0x1401529e0
mov r15, rax
movsxd rbx, esi
cmp esi, edi
jl 0x140152990
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 0x140152990
cmp byte [rsp + 0x3c], 0
je 0x140152a7e
sub esi, edi
cmp qword [rsp + 0x30], 0
movsxd rdx, esi
mov byte [r15 + rdx], 0
je 0x140152aae
mov rax, qword [rsp + 0x30]
mov dword [rax], esi
add rdx, 1
jne 0x140152a96
test r15, r15
je 0x140152a4d
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 0x140152a1a
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140152a45
mov dword [rax], 0
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x140152a4d
cmp qword [rsp + 0x30], 0
mov byte [r15 + rbx], 0
je 0x140152aae
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 0x140152a3a
Function at 0x140155c00
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 0x140155c30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401560b0
Capabilities:
Encode data using xor

Disassembly:
push r15
mov eax, 1
lea r15, [0x1402d4ba0]
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.140117e10
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.140117e10
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 0x1401561a0
mov eax, ebx
add r14d, 1
neg eax
xor eax, r8d
add eax, ebx
add r12d, eax
cmp dword [rsp + 0x28], r14d
ja 0x140156148
lea eax, [r12 + 0x7f]
cmp eax, 0xfe
ja 0x14015613c
mov eax, r12d
mov rcx, qword [rsp + 0x38]
and eax, 1
cmp qword [rsp + 0x30], rcx
jne 0x140156240
cmp dword [rsp + 0x2c], eax
je 0x14015613c
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 0x14015612a
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 0x140156214
Function at 0x14015e100
Capabilities:
Encode data using xor

Disassembly:
neg r9d
test r8, r8
je 0x14015e310
lea r11, [rdx + 1]
mov r10, rcx
lea rax, [r8 - 1]
sub r10, r11
cmp r10, 0xe
jbe 0x14015e2e0
cmp rax, 6
jbe 0x14015e2e0
push rbp
mov rbp, rsp
push rsi
push rbx
and rsp, 0xfffffffffffffff0
cmp rax, 0xe
jbe 0x14015e311
movd xmm1, r9d
mov r10, r8
xor eax, eax
punpcklbw xmm1, xmm1
and r10, 0xfffffffffffffff0
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
nop dword [rax]
movdqu xmm3, xmmword [rcx + rax]
movdqu xmm0, xmmword [rdx + rax]
pxor xmm0, xmm3
pand xmm0, xmm1
pxor xmm0, xmm3
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp r10, rax
jne 0x14015e160
mov rax, r8
and rax, 0xfffffffffffffff0
test r8b, 0xf
je 0x14015e2d8
mov rbx, r8
sub rbx, rax
lea r10, [rbx - 1]
cmp r10, 6
jbe 0x14015e1ec
mov r10d, r9d
lea rsi, [rcx + rax]
movzx r11d, r9b
movq xmm0, qword [rdx + rax]
shl r10d, 8
movq xmm1, qword [rsi]
or r10d, r11d
movd xmm5, r10d
pxor xmm0, xmm1
mov r10, rbx
pshuflw xmm2, xmm5, 0
and r10, 0xfffffffffffffff8
pand xmm0, xmm2
add rax, r10
pxor xmm0, xmm1
movq qword [rsi], xmm0
cmp rbx, r10
je 0x14015e2d8
lea r11, [rcx + rax]
movzx r10d, byte [rdx + rax]
movzx ebx, byte [r11]
xor r10d, ebx
and r10d, r9d
xor r10d, ebx
mov byte [r11], r10b
lea r10, [rax + 1]
cmp r8, r10
jbe 0x14015e2d8
add r10, rcx
movzx r11d, byte [rdx + rax + 1]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 2]
cmp r8, r10
jbe 0x14015e2d8
add r10, rcx
movzx r11d, byte [rdx + rax + 2]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 3]
cmp r8, r10
jbe 0x14015e2d8
add r10, rcx
movzx r11d, byte [rdx + rax + 3]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 4]
cmp r8, r10
jbe 0x14015e2d8
add r10, rcx
movzx r11d, byte [rdx + rax + 4]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 5]
cmp r8, r10
jbe 0x14015e2d8
add r10, rcx
movzx r11d, byte [rdx + rax + 5]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 6]
cmp r8, r10
jbe 0x14015e2d8
add r10, rcx
movzx esi, byte [rdx + rax + 6]
movzx ecx, byte [r10]
xor esi, ecx
mov eax, esi
and eax, r9d
xor eax, ecx
mov byte [r10], al
lea rsp, [rbp - 0x10]
pop rbx
pop rsi
pop rbp
ret
xor eax, eax
nop word [rax + rax]
movzx r11d, byte [rcx + rax]
movzx r10d, byte [rdx + rax]
xor r10d, r11d
and r10d, r9d
xor r10d, r11d
mov byte [rcx + rax], r10b
add rax, 1
cmp r8, rax
jne 0x14015e2e8
ret
ret
mov rbx, r8
xor eax, eax
jmp 0x14015e1a4
Function at 0x140162f60
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140163160
lea rax, [r8 - 1]
mov r10, rcx
mov r11, rdx
cmp rax, 0xe
jbe 0x140163163
mov rdx, r8
xor eax, eax
pxor xmm0, xmm0
and rdx, 0xfffffffffffffff0
nop word [rax + rax]
movdqu xmm1, xmmword [r10 + rax]
movdqu xmm2, xmmword [r11 + rax]
add rax, 0x10
pxor xmm1, xmm2
por xmm0, xmm1
cmp rax, rdx
jne 0x140162f90
movdqa xmm1, xmm0
mov r9, r8
psrldq xmm1, 8
and r9, 0xfffffffffffffff0
por xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 4
por xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 2
por xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 1
por xmm0, xmm1
movd eax, xmm0
test r8b, 0xf
je 0x14016316d
xor eax, eax
ret
xor eax, eax
xor r9d, r9d
jmp fcn.140162ff6
movzx eax, al
neg rax
shr rax, 0x3f
ret
Function at 0x1401648c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
xor r8d, r8d
mov ebx, ecx
xor edx, edx
mov r9d, 1
sub rsp, 0x40
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140164900
mov eax, dword [rsp + 0x34]
xor edx, edx
add rsp, 0x40
div ebx
pop rbx
mov eax, edx
ret
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1401648e9
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x34]
xor edx, edx
add rsp, 0x40
div ebx
pop rbx
mov eax, edx
ret

Function at 0x140164940
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push r12
xor r8d, r8d
mov r12d, edx
mov r9d, 1
push rbx
xor edx, edx
mov rbx, rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140164980
add rsp, 0x48
mov eax, 1
pop rbx
pop r12
ret
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14016496f
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x48
xor eax, eax
pop rbx
pop r12
ret

Function at 0x1401649d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
lea rbx, [0x1403f7820]
mov rcx, rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
call sub.msvcrt.dll_strlen
mov r8, rax
mov rax, rbx
cmp r8, 3
jbe 0x140164a08
mov rbx, qword [rbp - 8]
leave
ret
xor r8d, r8d
mov byte [rsp + 0x90], 0
movabs rax, 0x4552415754464f53
movabs rdx, 0x6f736f7263694d5c
mov qword [rsp + 0x50], rax
mov r9d, 0x20019
movabs rax, 0x6f646e69575c7466
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x58], rdx
movabs rdx, 0x65727275435c7377
mov qword [rsp + 0x60], rax
movabs rax, 0x6f6973726556746e
mov qword [rsp + 0x68], rdx
movabs rdx, 0x726f6c7078455c6e
mov qword [rsp + 0x70], rax
movabs rax, 0x6c6c6568535c7265
mov qword [rsp + 0x78], rdx
movabs rdx, 0x737265646c6f4620
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1401649fb
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], 0x104
mov r9d, 2
lea r8, [0x1403e877a]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rbp - 8]
leave
ret