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

Disassembly:
neg r9d
test r8, r8
je 0x14015a9b0
lea r11, [rdx + 1]
mov r10, rcx
lea rax, [r8 - 1]
sub r10, r11
cmp r10, 0xe
jbe 0x14015a980
cmp rax, 6
jbe 0x14015a980
push rbp
mov rbp, rsp
push rsi
push rbx
and rsp, 0xfffffffffffffff0
cmp rax, 0xe
jbe 0x14015a9b1
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 0x14015a800
mov rax, r8
and rax, 0xfffffffffffffff0
test r8b, 0xf
je 0x14015a978
mov rbx, r8
sub rbx, rax
lea r10, [rbx - 1]
cmp r10, 6
jbe 0x14015a88c
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 0x14015a978
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 0x14015a978
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 0x14015a978
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 0x14015a978
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 0x14015a978
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 0x14015a978
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 0x14015a978
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 0x14015a988
ret
ret
mov rbx, r8
xor eax, eax
jmp 0x14015a844
Function at 0x14015f600
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14015f800
lea rax, [r8 - 1]
mov r10, rcx
mov r11, rdx
cmp rax, 0xe
jbe 0x14015f803
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 0x14015f630
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 0x14015f80d
xor eax, eax
ret
xor eax, eax
xor r9d, r9d
jmp fcn.14015f696
movzx eax, al
neg rax
shr rax, 0x3f
ret
Function at 0x140160e70
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 0x140160eb0
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 0x140160e99
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 0x140160ef0
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 0x140160f30
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 0x140160f1f
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 0x140160f80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
lea rbx, [0x1403f1820]
mov rcx, rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
call sub.msvcrt.dll_strlen
mov r8, rax
mov rax, rbx
cmp r8, 3
jbe 0x140160fb8
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 0x140160fab
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, [0x1403e2b1a]
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
Function at 0x1401ac8d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x48
mov qword [rsp + 0x70], r8
test r8, r8
je 0x1401ac980
mov r12, rdx
test rdx, rdx
je 0x1401ac980
mov rbx, rcx
mov r8d, 1
lea rcx, [rsp + 0x70]
mov edx, 8
mov r9, qword [rbx + 0x118]
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401ac940
mov r9, qword [rbx + 0x118]
mov rdx, qword [rsp + 0x70]
mov r8d, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401ac9b1
xor eax, eax
add rsp, 0x48
pop rbx
pop r12
ret
lea rax, [rbx + 0x10]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov rax, qword [rbx]
lea r8, str.dap_chain_cell
mov qword [rsp + 0x28], rax
lea rax, str.Cant_write_atom_data_size_from_cell_0x_016llX_in___s_
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xfffffffe
jmp 0x1401ac938
lea rax, [0x1402abae2]
mov r9d, 8
lea r8, str.dap_chain_cell
mov edx, 0x127
mov qword [rsp + 0x20], rax
lea rcx, str.s_file_atom_add
call fcn.14005a150
mov eax, 0xffffffff
jmp 0x1401ac938
lea rax, [rbx + 0x10]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov rax, qword [rbx]
lea r8, str.dap_chain_cell
mov qword [rsp + 0x28], rax
lea rax, str.Cant_write_data_from_cell_0x_016llX_to_the_file___s_
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xfffffffd
jmp 0x1401ac938
Function at 0x1401ac9f0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
mov rbx, rcx
lea rsi, [rbx + 0x10]
and rsp, 0xfffffffffffffff0
sub rsp, 0x70
mov rcx, qword [rcx + 0x118]
test rcx, rcx
je 0x1401acb5e
xor edx, edx
mov r8d, 2
call sub.msvcrt.dll_fseek
mov rcx, qword [rbx + 0x118]
call sub.msvcrt.dll_ftell
cmp eax, 0x25
jg 0x1401acb28
movabs rax, 0xfa340bef153eba48
mov byte [rsp + 0x64], 0
mov r9, qword [rbx + 0x118]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx]
mov r8d, 1
mov edx, 0x25
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x4d], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov rax, qword [rax + 0x10]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x55], rax
call sub.msvcrt.dll_fwrite
mov qword [rsp + 0x30], rsi
cmp rax, 1
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
jne 0x1401acaf8
lea rax, str.Initialized_file_storage_for_cell_0x_016llX____s__
mov r9d, 2
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_chain_cell
call fcn.14005a150
mov rcx, qword [rbx + 0x118]
call sub.msvcrt.dll_fflush
xor eax, eax
lea rsp, [rbp - 0x10]
pop rbx
pop rsi
pop rbp
ret
lea rax, str.Cant_init_file_storage_for_cell_0x_016llX____s__
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_chain_cell
call fcn.14005a150
mov eax, 0xffffffff
jmp 0x1401acaea
mov rax, qword [rbx]
mov qword [rsp + 0x28], rsi
mov r9d, 7
xor edx, edx
lea r8, str.dap_chain_cell
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, str.Chain_cell___s__0x_016llX_is_already_not_empty_
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xfffffffd
jmp 0x1401acaea
mov rax, qword [rbx]
mov qword [rsp + 0x28], rsi
mov r9d, 7
xor edx, edx
lea r8, str.dap_chain_cell
mov qword [rsp + 0x30], rax
lea rax, str.Chain_cell___s__0x_016llX_not_opened
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xfffffffe
jmp 0x1401acaea
Function at 0x1401f03a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push r13
mov r13d, r8d
push r12
push rdi
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
sub rsp, 0x48
call fcn.1400f74d0
mov rcx, rax
mov r12, rax
call fcn.140103eb0
mov rcx, rbx
mov r14, rax
call fcn.140103eb0
mov rdi, rax
test rbx, rbx
je 0x1401f03ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401f03ef
test al, 0x10
jne 0x1401f04e8
test rsi, rsi
je 0x1401f040a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401f040a
test al, 0x80
jne 0x1401f0548
mov rcx, r12
sub rdi, r14
call sub.msvcrt.dll_free
mov rcx, rsi
call fcn.140035ff0
mov r12, rax
test rax, rax
je 0x1401f0608
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1401f04b4
cmp byte [rax + 8], 0x2e
lea rdx, [rax + 8]
jne 0x1401f0450
cmp byte [rdx + 1], 0
je 0x1401f0429
nop word cs:[rax + rax]
cmp byte [rax + 8], 0x2e
je 0x1401f04d0
xor r8d, r8d
mov rcx, rsi
call fcn.140075250
mov r14, rax
test rax, rax
je 0x1401f047f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401f047f
test al, 0x10
jne 0x1401f0530
test r13d, r13d
je 0x1401f0570
lea rdx, [r14 + rdi]
mov r8, r14
mov ecx, r13d
call fcn.1401f0140
test al, al
je 0x1401f0570
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036200
test rax, rax
jne 0x1401f0436
mov rcx, r12
call fcn.140036450
add rsp, 0x48
mov eax, 1
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
cmp byte [rdx + 1], 0x2e
jne 0x1401f0456
cmp byte [rdx + 2], 0
je 0x1401f0429
jmp 0x1401f0456
test r13d, r13d
jne 0x1401f05b8
lea rax, str.Failed_to_add_directory_to_tar
mov qword [rsp + 0x20], rax
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.file_utils
call fcn.14005a150
mov rcx, r12
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
test r13d, r13d
jne 0x1401f05d8
lea rax, str.Failed_to_add_directory_to_tar
jmp 0x1401f0577
test r13d, r13d
je 0x1401f0563
mov r8, rsi
mov rdx, r12
mov ecx, r13d
call fcn.1401f0140
test al, al
jne 0x1401f0638
lea rax, str.Failed_to_add_file_to_tar
jmp 0x1401f04f8
lea rax, str.Failed_to_add_file_to_tar
mov qword [rsp + 0x20], rax
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.file_utils
call fcn.14005a150
mov rcx, r12
call fcn.140036450
mov rcx, r14
call sub.msvcrt.dll_free
add rsp, 0x48
xor eax, eax
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov r8, rbx
mov rdx, r12
mov ecx, r13d
call fcn.1401effa0
test al, al
jne 0x1401f040a
jmp 0x1401f04f1
lea rdx, [r14 + rdi]
mov r8, r14
mov ecx, r13d
call fcn.1401effa0
test al, al
je 0x1401f0539
mov r8d, r13d
mov rdx, r14
mov rcx, rbx
call fcn.1401f03a0
jmp 0x1401f049f
lea rax, str.Failed_to_open_input_directory
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.file_utils
call fcn.14005a150
xor eax, eax
jmp 0x1401f051d
mov rcx, r12
mov byte [rsp + 0x3f], al
call sub.msvcrt.dll_free
movzx eax, byte [rsp + 0x3f]
jmp 0x1401f051d
Function at 0x1401fd020
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x1f
mov r8d, r8d
jmp fcn.14012d700

Function at 0x1401fe4f0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x1f
mov r8d, r8d
jmp fcn.14012b060
Function at 0x140208600
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
test edx, edx
je 0x14020874a
lea eax, [rdx - 1]
cmp eax, 2
jbe 0x14020874c
mov r8d, edx
movdqa xmm4, xmmword [0x1402d2580]
movdqa xmm3, xmmword [0x1402d2590]
mov rax, rcx
shr r8d, 2
sub r8d, 1
shl r8, 4
lea r8, [rcx + r8 + 0x10]
nop dword [rax + rax]
movdqu xmm1, xmmword [rax]
add rax, 0x10
movdqa xmm0, xmm1
movdqa xmm2, xmm1
psrld xmm0, 8
psrld xmm2, 0x10
pslld xmm0, 0x10
pslld xmm2, 8
pand xmm2, xmm3
pand xmm0, xmm4
pxor xmm0, xmm2
movdqa xmm2, xmm1
pslld xmm2, 0x18
psrld xmm1, 0x18
pxor xmm1, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, r8
jne 0x140208648
mov eax, edx
and eax, 0xfffffffc
test dl, 3
je 0x14020874a
sub edx, eax
cmp edx, 1
je 0x14020871a
movq xmm2, qword [0x1402d2580]
mov r8d, eax
movq xmm3, qword [0x1402d2590]
lea r8, [rcx + r8*4]
movq xmm1, qword [r8]
movdqa xmm0, xmm1
psrld xmm0, 8
pslld xmm0, 0x10
pand xmm0, xmm2
movdqa xmm2, xmm1
psrld xmm2, 0x10
pslld xmm2, 8
pand xmm2, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm1
pslld xmm2, 0x18
psrld xmm1, 0x18
pxor xmm1, xmm2
pxor xmm0, xmm1
movq qword [r8], xmm0
mov r8d, edx
and r8d, 0xfffffffe
add eax, r8d
cmp edx, r8d
je 0x14020874a
lea r8, [rcx + rax*4]
mov eax, dword [r8]
mov edx, eax
mov ecx, eax
mov r9d, eax
shr eax, 8
shl edx, 8
shl ecx, 0x18
and eax, 0xff00
shr r9d, 0x18
and edx, 0xff0000
xor ecx, r9d
xor edx, ecx
xor eax, edx
mov dword [r8], eax
leave
ret
xor eax, eax
jmp 0x1402086a5
Function at 0x14020d560
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
mov r12d, r8d
push rbp
mov ebp, r9d
push rdi
push rsi
mov rsi, rcx
push rbx
mov ebx, edx
sub rsp, 0x28
mov rdi, qword [rsp + 0x80]
test edx, edx
je 0x14020d591
mov r8d, edx
xor edx, edx
shl r8, 2
call sub.msvcrt.dll_memset
test r12d, r12d
je 0x14020d5de
xor r13d, r13d
nop dword [rax]
mov rcx, rdi
call fcn.14010ff90
xor edx, edx
mov ecx, eax
shr ax, 1
movzx eax, ax
div ebx
mov edx, edx
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx]
and eax, 1
lea r8d, [rax - 1]
xor eax, 1
add r13d, eax
lea eax, [rcx + rcx]
and eax, 2
sub eax, 1
and eax, r8d
add eax, dword [rdx]
mov dword [rdx], eax
cmp r12d, r13d
ja 0x14020d5a0
test ebp, ebp
je 0x14020d634
xor r12d, r12d
nop dword [rax]
mov rcx, rdi
call fcn.14010ff90
xor edx, edx
mov ecx, eax
shr ax, 1
movzx eax, ax
div ebx
mov edx, edx
lea rdx, [rsi + rdx*4]
mov r8d, dword [rdx]
mov eax, r8d
sar eax, 1
or eax, r8d
and eax, 1
lea r9d, [rax - 1]
xor eax, 1
add r12d, eax
lea eax, [rcx*4]
and eax, 4
sub eax, 2
and eax, r9d
add eax, r8d
mov dword [rdx], eax
cmp ebp, r12d
ja 0x14020d5e8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14020e8f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
mov rdi, rdx
push rsi
mov rsi, rcx
push rbx
sub rsp, 0x18
mov eax, dword [rcx]
mov ecx, dword [rdi]
mov r15, qword [rsp + 0xa0]
mov r13d, dword [rsp + 0x88]
mov r10d, dword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
imul r13d, eax
imul r10d, ecx
imul eax, dword [rsp + 0x98]
imul ecx, r15d
add r13d, r10d
imul r13d, edx
lea r12d, [rax + rcx]
lea rax, [r9*4 - 4]
imul r12d, edx
lea rbx, [rsi + rax]
add rax, rdi
mov qword [rsp], rbx
and r13d, 0x7fffffff
mov qword [rsp + 8], rax
and r12d, 0x7fffffff
test r9, r9
je 0x14020eb58
xor edx, edx
xor r11d, r11d
xor r10d, r10d
nop dword [rax + rax]
mov eax, dword [rsi + r10*4]
mov ebp, dword [rdi + r10*4]
mov rcx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov ebx, dword [r8 + r10*4]
imul rcx, rax
imul r14, rbp
imul rax, qword [rsp + 0x98]
imul rbp, r15
add rcx, r14
add rcx, r11
mov r11, rbx
imul r11, r13
add rax, rbp
imul rbx, r12
add rdx, rax
add r11, rcx
add rdx, rbx
test r10, r10
je 0x14020eb38
mov eax, r11d
sar r11, 0x1f
and eax, 0x7fffffff
mov dword [rsi + r10*4 - 4], eax
mov eax, edx
sar rdx, 0x1f
and eax, 0x7fffffff
mov dword [rdi + r10*4 - 4], eax
add r10, 1
cmp r9, r10
jne 0x14020e988
mov rax, qword [rsp]
xor ebp, ebp
mov dword [rax], r11d
mov rax, qword [rsp + 8]
shr r11, 0x3f
mov r12, r11
mov r10d, r11d
mov dword [rax], edx
xor eax, eax
mov ecx, eax
nop dword [rax + rax]
mov eax, dword [rsi + rbp*4]
mov rbx, rbp
sub eax, ecx
sub eax, dword [r8 + rbp*4]
lea rbp, [rbp + 1]
shr eax, 0x1f
mov ecx, eax
cmp r9, rbp
jne 0x14020ea30
mov r11d, 1
mov ebp, r12d
xor ecx, ecx
sub r11d, eax
neg ebp
mov eax, r10d
or r11d, r12d
shr ebp, 1
neg r11d
nop dword [rax]
mov r10d, dword [rsi + rcx*4]
mov r9, rcx
sub r10d, eax
mov eax, dword [r8 + rcx*4]
xor eax, ebp
and eax, r11d
sub r10d, eax
mov eax, r10d
and eax, 0x7fffffff
mov dword [rsi + rcx*4], eax
mov eax, r10d
add rcx, 1
shr eax, 0x1f
cmp rbx, r9
jne 0x14020ea68
mov rax, rdx
xor ecx, ecx
xor r11d, r11d
shr rax, 0x3f
mov edx, ecx
mov r10d, eax
nop dword [rax]
mov ecx, dword [rdi + r11*4]
sub ecx, edx
sub ecx, dword [r8 + r11*4]
mov edx, ecx
mov rcx, r11
add r11, 1
shr edx, 0x1f
cmp rcx, rbx
jne 0x14020eab0
mov ecx, edx
mov edx, 1
mov r11d, eax
sub edx, ecx
neg r11d
xor ecx, ecx
or edx, eax
shr r11d, 1
mov eax, r10d
neg edx
nop word cs:[rax + rax]
mov r10d, dword [rdi + rcx*4]
mov r9, rcx
sub r10d, eax
mov eax, dword [r8 + rcx*4]
xor eax, r11d
and eax, edx
sub r10d, eax
mov eax, r10d
and eax, 0x7fffffff
mov dword [rdi + rcx*4], eax
mov eax, r10d
add rcx, 1
shr eax, 0x1f
cmp r9, rbx
jne 0x14020eaf0
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
sar r11, 0x1f
sar rdx, 0x1f
cmp r9, 1
je 0x14020ea0d
mov r10d, 1
jmp 0x14020e988
mov rax, qword [rsp + 8]
mov dword [rbx], 0
mov dword [rax], 0
jmp 0x14020eb20
Function at 0x14021c3a0
Capabilities:
Write file on windows

Disassembly:
push r14
mov r14, rcx
push r13
mov r13, rdx
push r12
push rbp
push rdi
push rsi
mov rsi, r9
push rbx
mov rbx, r8
sub rsp, 0x60
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
lea r12, [rsp + 0x3c]
lea rbp, [rsp + 0x40]
mov r8d, 0x1000000
mov r9, r12
mov rdx, r13
mov rcx, r14
cmp rbx, r8
mov qword [rsp + 0x50], rsi
cmovbe r8, rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x58], 0
call rdi
test eax, eax
jne 0x14021c402
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14021c418
mov eax, dword [rsp + 0x3c]
cmp rax, rbx
je 0x14021c416
sub rbx, rax
add rsi, rax
add r13, rax
jmp 0x14021c3cb
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14021c4d0
Capabilities:
Suspend thread

Disassembly:
push r13
push r12
mov r12, rcx
push rbp
push rdi
push rsi
push rbx
mov ebx, edx
sub rsp, 0x38
mov rcx, qword [rcx]
mov r13d, dword [rcx]
cmp dword [rcx + 4], r13d
jne 0x14021c52f
lea eax, [r13 + r13]
mov rbp, rax
lea rdx, [rax*8 + 8]
xor eax, eax
cmp r13d, 0x1f
cmovbe rcx, rax
call sub.msvcrt.dll_realloc
test rax, rax
je 0x14021c5b5
cmp r13d, 0x1f
jne 0x14021c529
mov rsi, qword [r12]
mov ecx, 0x40
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov qword [r12], rax
mov dword [rax], ebp
mov r8d, ebx
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r13, rax
test rax, rax
jne 0x14021c559
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc eax
jne 0x14021c59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp eax, 5
je 0x14021c590
lea rdx, [rsp + 0x2c]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x14021c590
cmp dword [rsp + 0x2c], 0x103
je 0x14021c593
xor r12d, r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14021c5bb
mov rdx, qword [r12]
xor r12d, r12d
mov eax, dword [rdx + 4]
lea ecx, [rax + 1]
mov dword [rdx + 4], ecx
mov qword [rdx + rax*8 + 8], r13
jmp 0x14021c5bb
mov r12d, 0xe
add rsp, 0x38
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14021c5d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbp
xor r11d, r11d
xor eax, eax
mov rbp, rsp
push r15
push r14
mov r14d, edx
push r13
add r14, 1
push r12
shl r14, 4
mov r12, rcx
push rdi
lea r13, [rcx + r14]
sub r14, 0x10
push rsi
lea r8, [rcx + r14]
push rbx
lea rbx, [r13 + r14]
and rsp, 0xfffffffffffffff0
sub rsp, 0x820
lea rsi, [rsp + 0x20]
lea r10, [rsp + 0x420]
mov edx, dword [r12 + 8]
mov ecx, 0x100
mov rdi, rsi
mov r9, r12
rep stosq qword [rdi], rax
mov ecx, r11d
xor edi, edi
shr edx, cl
nop dword [rax]
mov r15d, edx
mov edx, dword [r9 + 8]
mov ecx, r11d
add r9, 0x10
shr edx, cl
movzx ecx, dl
xor r15d, edx
add dword [rsp + rcx*4 + 0x20], 1
movzx ecx, dh
or edi, r15d
mov ecx, ecx
add dword [rsp + rcx*4 + 0x420], 1
cmp r8, r9
jne 0x14021c638
mov rdx, rsi
xor r9d, r9d
xor ecx, ecx
mov r15d, dword [rdx]
mov dword [rdx], ecx
add rdx, 4
add ecx, r15d
mov r15d, dword [rdx + 0x3fc]
mov dword [rdx + 0x3fc], r9d
add r9d, r15d
cmp r10, rdx
jne 0x14021c670
mov r9, r12
nop dword [rax]
mov edx, dword [r9 + 8]
mov ecx, r11d
movdqu xmm0, xmmword [r9]
add r9, 0x10
shr edx, cl
movzx ecx, dl
mov edx, dword [rsp + rcx*4 + 0x20]
lea r15d, [rdx + 1]
shl rdx, 4
mov dword [rsp + rcx*4 + 0x20], r15d
movups xmmword [r13 + rdx], xmm0
cmp r8, r9
jne 0x14021c698
cmp edi, 0xff
jbe 0x14021c734
mov r9, r13
nop dword [rax]
mov edx, dword [r9 + 8]
mov ecx, r11d
movdqu xmm1, xmmword [r9]
add r9, 0x10
shr edx, cl
movzx edx, dh
mov edx, edx
add rdx, 0x100
mov ecx, dword [rsp + rdx*4 + 0x20]
lea r15d, [rcx + 1]
shl rcx, 4
mov dword [rsp + rdx*4 + 0x20], r15d
movups xmmword [r12 + rcx], xmm1
cmp rbx, r9
jne 0x14021c6d8
add r11d, 0x10
shr edi, 0x10
jne 0x14021c61b
lea rsp, [rbp - 0x38]
mov eax, 1
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8, r14
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_memcpy
jmp 0x14021c71e