joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14001269b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140012731
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
xor esi, esi
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d08
test al, al
je 0x1400126f3
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012731
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001272c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012750
call fcn.140031c1c
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400367f4
int3

Function at 0x140012a20
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.14001572c
cmp ax, 0x2e
je 0x140012a7e
cmp ax, 0x20
je 0x140012a7e
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140012a68
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x140012b1c
jmp 0x140012a82
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.140012670
cmp eax, 0xffffffff
jne 0x140012b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140015d08
test al, al
je 0x140012ada
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012b18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012b13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012b6d
call fcn.140031c1c
test esi, esi
je 0x140012b30
test bpl, bpl
je 0x140012b2c
mov edx, r14d
mov rcx, rdi
call fcn.1400130f8
xor eax, eax
jmp 0x140012b4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140012b46
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140012b4b
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400367f4
int3
Function at 0x140012d14
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 7
jbe 0x140012d4f
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140012d59
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x140012e72
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x30], xmm6
mov word [rbp - 0x40], r14w
movups xmmword [rbp - 0x60], xmm0
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r14w
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140015d08
test al, al
je 0x140012de7
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140015d08
test al, al
je 0x140012ddf
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
movdqa xmm6, xmmword [0x1400489f0]
mov ebx, 0x1000
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140012e30
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x140012e23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012ea4
call fcn.140031c1c
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140012e72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, rbx
jb 0x140012e6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012e9e
call fcn.140031c1c
mov al, sil
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140031d30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [rsp + 0x70]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400367f4
nop
call fcn.1400367f4
nop
int3
Function at 0x1400130f8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140013122
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne dil
test eax, eax
jne 0x1400131c1
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d08
test al, al
je 0x140013183
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400131c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131e1
call fcn.140031c1c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.1400367f4
int3
Function at 0x14001340c
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
cmp rcx, 0xffffffffffffffff
jne 0x140013525
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x140013456
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013546
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], r14w
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140015d08
test al, al
je 0x1400134ba
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400134fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400134f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013658
call fcn.140031c1c
cmp rdi, 0xffffffffffffffff
jne 0x140013546
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14001351b
cmp eax, 0x13
mov al, r14b
jne 0x14001351d
mov al, 1
mov byte [rbx + 0x64], al
jmp 0x14001362e
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013546
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14001351d
mov rdx, rsi
mov rcx, rbx
call fcn.140003cac
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x6c]
call fcn.14003686c
mov r8, rax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400012c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140017324
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400135cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400135ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013652
call fcn.140031c1c
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rbx + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rbx + 0x58], rax
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14001e744
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14001e744
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14001e744
mov dword [rbx + 0x60], r14d
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140031d30
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400367f4
int3
call fcn.1400367f4
int3
Function at 0x140013e4c
Capabilities:
Hash data using crc32b

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 2
mov ebx, edx
mov rsi, rcx
lea ebp, [rdi - 1]
cmp edx, ebp
jbe 0x140013e9b
test bl, 1
je 0x140013e85
mov r8d, edi
mov edx, ebp
mov rcx, rsi
call fcn.140013ebc
mov ebp, eax
mov r8d, edi
mov edx, edi
mov rcx, rsi
call fcn.140013ebc
shr ebx, 1
mov edi, eax
cmp ebx, 1
ja 0x140013e71
mov r8d, edi
mov edx, ebp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140013ebc

Function at 0x140014214
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x140060a98], bl
jne 0x140014279
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140014268
jne 0x14001426a
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14001426a
call fcn.14001429c
test al, al
jne 0x14001426a
mov bl, 1
mov byte [0x140060a99], bl
mov byte [0x140060a98], 1
jmp 0x14001427f
mov bl, byte [0x140060a99]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140031d30
add rsp, 0x150
pop rbx
ret
Function at 0x1400155e8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001568d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400020c0
test ebx, ebx
setne bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001568b
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015686
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015698
call fcn.140031c1c
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.1400367f4
int3

Function at 0x140017258
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x140017266
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001a528
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rbp, str.cw
mov ecx, edi
lea rsi, [0x140000000]
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
mov byte [rax + rsi + 0x64ae0], cl
inc ecx
cmp ecx, 0x100
jl 0x14001a551
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x657e1], r9b
mov byte [rsi + rdi*4 + 0x657e0], r9b
mov byte [rsi + rdi*4 + 0x653e3], r9b
mov byte [rsi + rdi*4 + 0x653e0], r9b
mov byte [rsi + rdi*4 + 0x64fe3], r9b
mov byte [rsi + rdi*4 + 0x64fe2], r9b
mov byte [rsi + rdi*4 + 0x64be2], r9b
mov byte [rsi + rdi*4 + 0x64be1], r9b
call fcn.14001ad0c
mov dl, 3
mov byte [rsi + rdi*4 + 0x657e3], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x653e2], al
mov byte [rsi + rdi*4 + 0x64fe1], al
mov byte [rsi + rdi*4 + 0x64be0], al
call fcn.14001ad0c
movzx r9d, byte [rdi + rsi + 0x64ae0]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x657e2], al
mov byte [rsi + rdi*4 + 0x653e1], al
mov byte [rsi + rdi*4 + 0x64fe0], al
mov byte [rsi + rdi*4 + 0x64be3], al
call fcn.14001ad0c
mov dl, 9
mov byte [rsi + rdi*4 + 0x667e2], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x663e1], al
mov byte [rsi + rdi*4 + 0x65fe0], al
mov byte [rsi + rdi*4 + 0x65be3], al
mov byte [rsi + r9*4 + 0x677e2], al
mov byte [rsi + r9*4 + 0x673e1], al
mov byte [rsi + r9*4 + 0x66fe0], al
mov byte [rsi + r9*4 + 0x66be3], al
call fcn.14001ad0c
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x667e0], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x663e3], al
mov byte [rsi + rdi*4 + 0x65fe2], al
mov byte [rsi + rdi*4 + 0x65be1], al
mov byte [rsi + r9*4 + 0x677e0], al
mov byte [rsi + r9*4 + 0x673e3], al
mov byte [rsi + r9*4 + 0x66fe2], al
mov byte [rsi + r9*4 + 0x66be1], al
call fcn.14001ad0c
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x667e1], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x663e0], al
mov byte [rsi + rdi*4 + 0x65fe3], al
mov byte [rsi + rdi*4 + 0x65be2], al
mov byte [rsi + r9*4 + 0x677e1], al
mov byte [rsi + r9*4 + 0x673e0], al
mov byte [rsi + r9*4 + 0x66fe3], al
mov byte [rsi + r9*4 + 0x66be2], al
call fcn.14001ad0c
mov byte [rsi + rdi*4 + 0x667e3], al
mov byte [rsi + rdi*4 + 0x663e2], al
mov byte [rsi + rdi*4 + 0x65fe1], al
mov byte [rsi + rdi*4 + 0x65be0], al
inc rdi
mov byte [rsi + r9*4 + 0x677e3], al
mov byte [rsi + r9*4 + 0x673e2], al
mov byte [rsi + r9*4 + 0x66fe1], al
mov byte [rsi + r9*4 + 0x66be0], al
cmp rdi, 0x100
jl 0x14001a568
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ac84
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
lea r11, [rcx + 0x18]
mov r10, rcx
movdqu xmm2, xmmword [rcx + 8]
test r8, r8
je 0x14001ad05
movsxd rcx, dword [r10 + 4]
mov rax, rdx
add rdx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
movdqu xmm1, xmmword [r11 + rax*8]
lea eax, [rcx - 1]
movsxd rcx, eax
xorps xmm1, xmm3
test eax, eax
jle 0x14001acdc
mov rax, rcx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec rcx
lea rax, [rax - 0x10]
aesdec xmm1, xmm0
test rcx, rcx
jg 0x14001acc7
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001acf0
xorps xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x14001ac95
movdqu xmmword [r10 + 8], xmm2
ret

Function at 0x14001ad0c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x14001ad54
mov al, r10b
xor al, bl
movzx r8d, al
test r11b, 1
movzx eax, r10b
cmove r8d, eax
mov al, bl
add al, al
mov r10b, r8b
mov r8b, bl
movzx edx, al
mov cl, dl
mov ebx, edx
xor cl, 0x1b
test r8b, r8b
movzx ecx, cl
cmovs ebx, ecx
shr r11b, 1
jne 0x14001ad1d
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x14001ad60
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14001ae47
lea rbx, [r11 - 0x38]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x677e0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x66fe0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x66be0]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x673e0]
mov byte [r10 + r14], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x14001adbe
inc r9
cmp r9, 4
jl 0x14001adb1
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.140045070
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14001adae
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140031d30
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001b2ec
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r10, qword [0x140067bf0]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
test r10, r10
jne 0x14001b38b
cmp byte [0x140067be8], bl
jne 0x14001b38b
lea rcx, str.Crypt32.dll
call fcn.14001d594
mov qword [0x140067be0], rax
test rax, rax
je 0x14001b374
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140067be0]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140067bf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067bf8], rax
jmp 0x14001b37b
mov rax, qword [0x140067bf8]
mov r10, qword [0x140067bf0]
mov byte [0x140067be8], 1
jmp 0x14001b392
mov rax, qword [0x140067bf8]
mov rdx, rsi
mov r8d, ebp
and rdx, 0xfffffffffffffff0
test r14b, r14b
je 0x14001b3e3
test r10, r10
je 0x14001b3fe
mov rcx, rdi
mov rax, r10
call qword [0x140048528]
test eax, eax
jne 0x14001b419
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140060a80]
mov rcx, rbx
call fcn.14000adc0
mov rcx, rbx
call fcn.14000b194
mov edx, 2
mov rcx, rbx
call fcn.14000adb8
jmp 0x14001b419
test rax, rax
je 0x14001b3fe
mov rcx, rdi
call qword [0x140048528]
test eax, eax
jne 0x14001b419
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001b3bd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rsi, rsi
je 0x14001b419
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rdi + rbx], cl
inc rbx
cmp rbx, rsi
jb 0x14001b409
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001bf4c
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x14001bfda
jbe 0x14001bfc5
lea edx, [rbp + 8]
cmp edi, edx
jae 0x14001bfaf
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.140045710
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001b4c4
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.140045710
mov rcx, r14
shr rcx, 0x20
call fcn.140036a34
mov ecx, r14d
mov dword [rbx + 0x58], eax
call fcn.140036a34
lea r8, [rbx + 0x20]
mov dword [rbx + 0x5c], eax
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001b4c4
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rsi + rdx]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x14001c013
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140031d30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14001c06c
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret
Function at 0x14001c270
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r8d, dword [rcx + 0x20]
mov edi, 0x38
mov rsi, qword [rcx + 0x20]
and r8d, 0x3f
shl rsi, 3
mov r14, rdx
mov rbx, rcx
mov byte [r8 + rcx + 0x28], 0x80
inc r8d
cmp r8d, edi
je 0x14001c2f1
jbe 0x14001c2da
lea edx, [rdi + 8]
cmp r8d, edx
jae 0x14001c2cf
mov ecx, r8d
sub edx, r8d
add rcx, 0x28
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.140045710
mov rcx, rbx
call fcn.14001c530
xor r8d, r8d
mov ecx, r8d
sub edi, r8d
add rcx, 0x28
mov r8d, edi
add rcx, rbx
xor edx, edx
call fcn.140045710
mov rcx, rsi
shr rcx, 0x20
call fcn.140036a34
mov ecx, esi
mov dword [rbx + 0x60], eax
call fcn.140036a34
mov rcx, rbx
mov dword [rbx + 0x64], eax
call fcn.14001c530
mov ecx, dword [rbx]
call fcn.140036a34
mov dword [r14], eax
mov ecx, dword [rbx + 4]
call fcn.140036a34
mov dword [r14 + 4], eax
mov ecx, dword [rbx + 8]
call fcn.140036a34
mov dword [r14 + 8], eax
mov ecx, dword [rbx + 0xc]
call fcn.140036a34
mov dword [r14 + 0xc], eax
mov ecx, dword [rbx + 0x10]
call fcn.140036a34
mov dword [r14 + 0x10], eax
mov ecx, dword [rbx + 0x14]
call fcn.140036a34
mov dword [r14 + 0x14], eax
mov ecx, dword [rbx + 0x18]
call fcn.140036a34
mov dword [r14 + 0x18], eax
mov ecx, dword [rbx + 0x1c]
call fcn.140036a34
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [r14 + 0x1c], eax
and qword [rbx + 0x20], 0
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x14001c3c4
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x90], rax
and qword [rsp + 0x40], 0
mov rbx, r8
mov r8, rdx
mov dword [rsp + 0x20], 0x6a09e667
mov rdx, rcx
mov dword [rsp + 0x24], 0xbb67ae85
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov dword [rsp + 0x3c], 0x5be0cd19
call fcn.14001c4a0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14001c270
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140031d30
add rsp, 0xa0
pop rbx
ret

Function at 0x14001c460
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret