joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014c750
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
test rcx, rcx
je 0x14014c9ab
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 0x14014c93a
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, [0x1402cb7e0]
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 0x14014c87f
jmp 0x14014c938
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 0x14014c84b
cmp r12, 6
ja 0x14014c950
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 0x14014c938
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 0x14014c820
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, [0x1402cb8e0]
xor r10b, byte [rdx + rax - 1]
jmp 0x14014c84b
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 0x14014c84b
mov eax, 2
ret
Function at 0x14014cc70
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 0x14014cd8d
mov rbp, rcx
mov rcx, r8
mov r14, r8
call sub.msvcrt.dll_strlen
mov rdi, rax
test rax, rax
je 0x14014cd8d
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 0x14014cda0
test eax, eax
je 0x14014cda4
add esi, edx
lea ebx, [rsi + 1]
cmp ebx, r12d
jl 0x14014cd36
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 0x14014cd20
mov r15, rax
movsxd rbx, esi
cmp esi, edi
jl 0x14014ccd0
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 0x14014ccd0
cmp byte [rsp + 0x3c], 0
je 0x14014cdbe
sub esi, edi
cmp qword [rsp + 0x30], 0
movsxd rdx, esi
mov byte [r15 + rdx], 0
je 0x14014cdee
mov rax, qword [rsp + 0x30]
mov dword [rax], esi
add rdx, 1
jne 0x14014cdd6
test r15, r15
je 0x14014cd8d
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 0x14014cd5a
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14014cd85
mov dword [rax], 0
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x14014cd8d
cmp qword [rsp + 0x30], 0
mov byte [r15 + rbx], 0
je 0x14014cdee
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 0x14014cd7a
Function at 0x14014ff40
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 0x14014ff70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401503f0
Capabilities:
Encode data using xor

Disassembly:
push r15
mov eax, 1
lea r15, [0x1402cf2a0]
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.1401123e0
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.1401123e0
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 0x1401504e0
mov eax, ebx
add r14d, 1
neg eax
xor eax, r8d
add eax, ebx
add r12d, eax
cmp dword [rsp + 0x28], r14d
ja 0x140150488
lea eax, [r12 + 0x7f]
cmp eax, 0xfe
ja 0x14015047c
mov eax, r12d
mov rcx, qword [rsp + 0x38]
and eax, 1
cmp qword [rsp + 0x30], rcx
jne 0x140150580
cmp dword [rsp + 0x2c], eax
je 0x14015047c
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 0x14015046a
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 0x140150554
Function at 0x140158440
Capabilities:
Encode data using xor

Disassembly:
neg r9d
test r8, r8
je 0x140158650
lea r11, [rdx + 1]
mov r10, rcx
lea rax, [r8 - 1]
sub r10, r11
cmp r10, 0xe
jbe 0x140158620
cmp rax, 6
jbe 0x140158620
push rbp
mov rbp, rsp
push rsi
push rbx
and rsp, 0xfffffffffffffff0
cmp rax, 0xe
jbe 0x140158651
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 0x1401584a0
mov rax, r8
and rax, 0xfffffffffffffff0
test r8b, 0xf
je 0x140158618
mov rbx, r8
sub rbx, rax
lea r10, [rbx - 1]
cmp r10, 6
jbe 0x14015852c
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 0x140158618
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 0x140158618
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 0x140158618
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 0x140158618
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 0x140158618
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 0x140158618
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 0x140158618
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 0x140158628
ret
ret
mov rbx, r8
xor eax, eax
jmp 0x1401584e4
Function at 0x14015d2a0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14015d4a0
lea rax, [r8 - 1]
mov r10, rcx
mov r11, rdx
cmp rax, 0xe
jbe 0x14015d4a3
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 0x14015d2d0
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 0x14015d4ad
xor eax, eax
ret
xor eax, eax
xor r9d, r9d
jmp fcn.14015d336
movzx eax, al
neg rax
shr rax, 0x3f
ret
Function at 0x14015eb10
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 0x14015eb50
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 0x14015eb39
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 0x14015eb90
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 0x14015ebd0
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 0x14015ebbf
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 0x14015ec20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
lea rbx, [0x1403f17a0]
mov rcx, rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
call sub.msvcrt.dll_strlen
mov r8, rax
mov rax, rbx
cmp r8, 3
jbe 0x14015ec58
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 0x14015ec4b
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, [0x1403e2e7a]
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 0x1401aafc0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x48
mov qword [rsp + 0x70], r8
test r8, r8
je 0x1401ab070
mov r12, rdx
test rdx, rdx
je 0x1401ab070
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 0x1401ab030
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 0x1401ab0a1
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 0x1401ab028
lea rax, [0x1402abee2]
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 0x1401ab028
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 0x1401ab028
Function at 0x1401ab0e0
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 0x1401ab24e
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 0x1401ab218
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 0x1401ab1e8
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 0x1401ab1da
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 0x1401ab1da
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 0x1401ab1da
Function at 0x1401efba0
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.1400f5180
mov rcx, rax
mov r12, rax
call fcn.140101b60
mov rcx, rbx
mov r14, rax
call fcn.140101b60
mov rdi, rax
test rbx, rbx
je 0x1401efbef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401efbef
test al, 0x10
jne 0x1401efce8
test rsi, rsi
je 0x1401efc0a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401efc0a
test al, 0x80
jne 0x1401efd48
mov rcx, r12
sub rdi, r14
call sub.msvcrt.dll_free
mov rcx, rsi
call fcn.140035ff0
mov r12, rax
test rax, rax
je 0x1401efe08
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1401efcb4
cmp byte [rax + 8], 0x2e
lea rdx, [rax + 8]
jne 0x1401efc50
cmp byte [rdx + 1], 0
je 0x1401efc29
nop word cs:[rax + rax]
cmp byte [rax + 8], 0x2e
je 0x1401efcd0
xor r8d, r8d
mov rcx, rsi
call fcn.1400750e0
mov r14, rax
test rax, rax
je 0x1401efc7f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401efc7f
test al, 0x10
jne 0x1401efd30
test r13d, r13d
je 0x1401efd70
lea rdx, [r14 + rdi]
mov r8, r14
mov ecx, r13d
call fcn.1401ef940
test al, al
je 0x1401efd70
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036200
test rax, rax
jne 0x1401efc36
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 0x1401efc56
cmp byte [rdx + 2], 0
je 0x1401efc29
jmp 0x1401efc56
test r13d, r13d
jne 0x1401efdb8
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 0x1401efdd8
lea rax, str.Failed_to_add_directory_to_tar
jmp 0x1401efd77
test r13d, r13d
je 0x1401efd63
mov r8, rsi
mov rdx, r12
mov ecx, r13d
call fcn.1401ef940
test al, al
jne 0x1401efe38
lea rax, str.Failed_to_add_file_to_tar
jmp 0x1401efcf8
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.1401ef7a0
test al, al
jne 0x1401efc0a
jmp 0x1401efcf1
lea rdx, [r14 + rdi]
mov r8, r14
mov ecx, r13d
call fcn.1401ef7a0
test al, al
je 0x1401efd39
mov r8d, r13d
mov rdx, r14
mov rcx, rbx
call fcn.1401efba0
jmp 0x1401efc9f
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 0x1401efd1d
mov rcx, r12
mov byte [rsp + 0x3f], al
call sub.msvcrt.dll_free
movzx eax, byte [rsp + 0x3f]
jmp 0x1401efd1d
Function at 0x1401fc820
Capabilities:
Encode data using xor

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

Function at 0x1401fdcf0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x1f
mov r8d, r8d
jmp fcn.140128d10
Function at 0x140207de0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
test edx, edx
je 0x140207f2a
lea eax, [rdx - 1]
cmp eax, 2
jbe 0x140207f2c
mov r8d, edx
movdqa xmm4, xmmword [0x1402d28e0]
movdqa xmm3, xmmword [0x1402d28f0]
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 0x140207e28
mov eax, edx
and eax, 0xfffffffc
test dl, 3
je 0x140207f2a
sub edx, eax
cmp edx, 1
je 0x140207efa
movq xmm2, qword [0x1402d28e0]
mov r8d, eax
movq xmm3, qword [0x1402d28f0]
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 0x140207f2a
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 0x140207e85
Function at 0x14020cd40
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 0x14020cd71
mov r8d, edx
xor edx, edx
shl r8, 2
call sub.msvcrt.dll_memset
test r12d, r12d
je 0x14020cdbe
xor r13d, r13d
nop dword [rax]
mov rcx, rdi
call fcn.14010dc40
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 0x14020cd80
test ebp, ebp
je 0x14020ce14
xor r12d, r12d
nop dword [rax]
mov rcx, rdi
call fcn.14010dc40
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 0x14020cdc8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret