joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jne 0x1400120c4
mov al, 1
jmp 0x14001225b
cmp dword [rcx + 0x14], 1
jne 0x1400120d9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r12d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140012135
xor ebx, ebx
test rsi, rsi
je 0x14001215f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r12d
cmp rcx, r12
cmovb r8d, eax
lea rdx, [r14 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140012156
add rbx, r12
cmp rbx, rsi
jb 0x1400120f4
jmp 0x140012156
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140012254
cmp byte [rdi + 0x22], 0
je 0x140012254
cmp dword [rdi + 0x14], 0
jne 0x140012254
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x140060a80]
call fcn.14000ac48
test al, al
je 0x1400121ce
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x1400120df
test ecx, ecx
je 0x1400120df
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048528]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048528]
jmp 0x1400120df
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rcx, [0x140048a04]
call fcn.14003683c
mov r8, rax
lea rdx, [0x140048a04]
lea rcx, [rsp + 0x38]
call fcn.1400012c0
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x140060a80]
call fcn.14000b3f4
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140012254
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001224f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001227c
call fcn.140031bec
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400367c4
int3
Function at 0x14001248c
Capabilities:
Delete directory

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 0x1400124b7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140012554
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012516
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012554
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001254f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012574
call fcn.140031bec
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400367c4
int3

Function at 0x14001257c
Capabilities:
Delete file

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 0x1400125a7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140012644
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012606
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012644
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001263f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012664
call fcn.140031bec
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400367c4
int3
Function at 0x140012680
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 0x1400126ab
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140012741
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.140015d18
test al, al
je 0x140012703
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 0x140012741
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001273c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012760
call fcn.140031bec
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400367c4
int3

Function at 0x140012a30
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.14001573c
cmp ax, 0x2e
je 0x140012a8e
cmp ax, 0x20
je 0x140012a8e
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140012a78
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x140012b2c
jmp 0x140012a92
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.140012680
cmp eax, 0xffffffff
jne 0x140012b40
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.140015d18
test al, al
je 0x140012aea
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 0x140012b28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012b23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012b7d
call fcn.140031bec
test esi, esi
je 0x140012b40
test bpl, bpl
je 0x140012b3c
mov edx, r14d
mov rcx, rdi
call fcn.140013108
xor eax, eax
jmp 0x140012b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140012b56
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140012b5b
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d00
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.1400367c4
int3
Function at 0x140012d24
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 0x140012d5f
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140012d69
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x140012e82
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.140015d18
test al, al
je 0x140012df7
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012def
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 0x140012e40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x140012e33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012eb4
call fcn.140031bec
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140012e82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, rbx
jb 0x140012e7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012eae
call fcn.140031bec
mov al, sil
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140031d00
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.1400367c4
nop
call fcn.1400367c4
nop
int3
Function at 0x140013108
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 0x140013132
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne dil
test eax, eax
jne 0x1400131d1
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.140015d18
test al, al
je 0x140013193
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 0x1400131d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131f1
call fcn.140031bec
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.1400367c4
int3
Function at 0x14001341c
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 0x140013535
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x140013466
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013556
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.140015d18
test al, al
je 0x1400134ca
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 0x14001350c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013507
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013668
call fcn.140031bec
cmp rdi, 0xffffffffffffffff
jne 0x140013556
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14001352b
cmp eax, 0x13
mov al, r14b
jne 0x14001352d
mov al, 1
mov byte [rbx + 0x64], al
jmp 0x14001363e
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013556
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14001352d
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.14003683c
mov r8, rax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400012c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140017334
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400135df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400135da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013662
call fcn.140031bec
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.14001e714
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14001e714
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14001e714
mov dword [rbx + 0x60], r14d
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140031d00
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400367c4
int3
call fcn.1400367c4
int3
Function at 0x140013e5c
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 0x140013eab
test bl, 1
je 0x140013e95
mov r8d, edi
mov edx, ebp
mov rcx, rsi
call fcn.140013ecc
mov ebp, eax
mov r8d, edi
mov edx, edi
mov rcx, rsi
call fcn.140013ecc
shr ebx, 1
mov edi, eax
cmp ebx, 1
ja 0x140013e81
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.140013ecc

Function at 0x140014224
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 0x140014289
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140014278
jne 0x14001427a
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14001427a
call fcn.1400142ac
test al, al
jne 0x14001427a
mov bl, 1
mov byte [0x140060a99], bl
mov byte [0x140060a98], 1
jmp 0x14001428f
mov bl, byte [0x140060a99]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140031d00
add rsp, 0x150
pop rbx
ret
Function at 0x1400155f8
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 0x14001569d
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 0x14001569b
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015696
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400156a8
call fcn.140031bec
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.1400367c4
int3

Function at 0x140017268
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x140017276
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001a4ec
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 0x14001a515
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.14001acd0
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.14001acd0
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.14001acd0
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.14001acd0
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.14001acd0
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.14001acd0
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 0x14001a52c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ac48
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 0x14001acc9
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 0x14001aca0
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 0x14001ac8b
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001acb4
xorps xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x14001ac59
movdqu xmmword [r10 + 8], xmm2
ret

Function at 0x14001acd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x14001ad18
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 0x14001ace1
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x14001ad24
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 0x14001ae0b
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 0x14001ad82
inc r9
cmp r9, 4
jl 0x14001ad75
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.140045040
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14001ad72
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140031d00
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 0x14001b2b0
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 0x14001b34f
cmp byte [0x140067be8], bl
jne 0x14001b34f
lea rcx, str.Crypt32.dll
call fcn.14001d558
mov qword [0x140067be0], rax
test rax, rax
je 0x14001b338
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 0x14001b33f
mov rax, qword [0x140067bf8]
mov r10, qword [0x140067bf0]
mov byte [0x140067be8], 1
jmp 0x14001b356
mov rax, qword [0x140067bf8]
mov rdx, rsi
mov r8d, ebp
and rdx, 0xfffffffffffffff0
test r14b, r14b
je 0x14001b3a7
test r10, r10
je 0x14001b3c2
mov rcx, rdi
mov rax, r10
call qword [0x140048528]
test eax, eax
jne 0x14001b3dd
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 0x14001b3dd
test rax, rax
je 0x14001b3c2
mov rcx, rdi
call qword [0x140048528]
test eax, eax
jne 0x14001b3dd
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001b381
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rsi, rsi
je 0x14001b3dd
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rdi + rbx], cl
inc rbx
cmp rbx, rsi
jb 0x14001b3cd
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