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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, qword [rbp + 0x190]
mov rax, r8
mov rdi, qword [rbp + 0x198]
mov r12, rdx
mov rsi, qword [rbp + 0x1a0]
mov r15, rcx
mov rdx, rax
lea rcx, [rbp + 0xb0]
mov r8d, 0x10
call fcn.14002abf0
xor r14d, r14d
mov dword [rbp + 0xc0], 0x1000000
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x30], r14
mov rdx, r12
mov qword [rsp + 0x28], r14
lea r9d, [r14 + 0x14]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14000a4e4
lea r13d, [r14 + 0x20]
mov r8d, r13d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x88]
call fcn.14002abf0
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rsi
lea rdi, [rbp + 0x40]
mov byte [rsp + 0x51], r14b
lea rsi, [rbp + 0x50]
mov byte [rsp + 0x50], r14b
lea r14d, [r13 - 0x1d]
mov dword [rbp + 0x40], eax
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov qword [rbp + 0x50], rbx
cmp dword [rdi], 0
jbe 0x14000a98a
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.14000a4e4
mov r8, r13
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.14002abf0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000a95d
sub rbx, 1
jne 0x14000a900
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, r13
call fcn.14002abf0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a8f5
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.140018408
lea rcx, [rbp + 0x88]
mov rdx, r13
call fcn.140018408
lea rcx, [rbp + 0x68]
call fcn.140018408
lea rcx, [rbp + 0x100]
call fcn.140018408
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ace4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000ad87
mov ecx, dword [rbx]
lea rdx, [rsp + 0x50]
call fcn.140009178
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a4e4
xor r9d, r9d
lea r10, [rsp + 0x58]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x14000ad65
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000adcf
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a4e4
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14002abf0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140010960
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140010997
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140010983
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140043520]
cmp byte [rbx + 0x21], 0
je 0x140010997
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.140011990
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400109a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x1400109d3
mov al, 1
jmp 0x140010b02
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x1400109eb
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140010a46
xor ebx, ebx
test rsi, rsi
je 0x140010a6f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140010a66
add rbx, r13
cmp rbx, rsi
jb 0x140010a06
jmp 0x140010a66
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140010afb
cmp byte [rdi + 0x22], 0
je 0x140010afb
cmp dword [rdi + 0x14], 0
jne 0x140010afb
lea rdx, [rdi + 0x40]
call fcn.14000b6a8
test al, al
je 0x140010ad0
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x1400109f1
test ecx, ecx
je 0x1400109f1
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140043520]
mov rdx, rax
mov eax, dword [rsp + 0x30]
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140043520]
jmp 0x1400109f1
lea rdx, [0x14004c2c0]
lea rcx, [rsp + 0x38]
call fcn.1400020b4
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
call fcn.14000b688
nop
lea rcx, [rsp + 0x38]
call fcn.140002254
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028a10
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010ca8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140010cda
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010d57
mov rcx, rbx
call fcn.140011174
test al, al
je 0x140010d1d
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140010d1d
mov rdx, rbp
mov rcx, rbx
call fcn.140010ca8
jmp 0x140010d5b
cmp dword [rbx + 0x14], 1
jne 0x140010d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140010d32
xor eax, eax
jmp 0x140010d5b
cmp dword [rbx + 0x14], 0
jne 0x140010d52
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140010d52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140010d52
mov r8d, edi
jmp 0x140010d10
or eax, 0xffffffff
jmp 0x140010d5b
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140010ff8
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400111a4
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 [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.140013208
cmp ax, 0x2e
je 0x1400111fc
cmp ax, 0x20
je 0x1400111fc
mov rcx, rdi
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x14001124d
jmp 0x140011200
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400115c4
test al, al
jne 0x140011261
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x14001123f
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
test esi, esi
je 0x140011261
test bpl, bpl
je 0x14001125d
mov edx, r14d
mov rcx, rdi
call fcn.140011684
xor eax, eax
jmp 0x14001127c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140011277
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14001127c
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028a10
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400115fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140011668
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x14001165e
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011684
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x1400116fe
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x1400116f4
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400118b4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14000128c
mov rdx, rax
mov rcx, rsi
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14001196f
lea rcx, [rsp + 0x40]
call fcn.1400026bc
nop
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400140dc
test al, al
je 0x14001195a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x14001195a
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
nop
lea rcx, [rsp + 0x40]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140028a10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011990
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140011a01
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x1400119f7
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011a1c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x140011a8d
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400140dc
test al, al
je 0x140011a83
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140011ef8
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140011fc1
mov rcx, rdx
call fcn.14000128c
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011fe2
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400140dc
test al, al
je 0x140011f8d
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140002254
cmp rbx, 0xffffffffffffffff
jne 0x140011fe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140011fb7
cmp eax, 0x13
je 0x140011fb7
xor al, al
jmp 0x140011fb9
mov al, 1
mov byte [rdi + 0x64], al
jmp 0x140012074
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140011fe2
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140011fb9
mov rdx, rsi
mov rcx, rdi
call fcn.140003be4
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400020b4
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140013444
nop
lea rcx, [rsp + 0x20]
call fcn.140002254
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rdi + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rdi + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rdi + 0x58], rax
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14001b398
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14001b398
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14001b398
and dword [rdi + 0x60], 0
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140028a10
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012af0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x14005d391], bl
jne 0x140012b55
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140012b44
jne 0x140012b46
cmp dword [rsp + 0x2c], 0x55f0
jb 0x140012b46
call fcn.14001288c
test al, al
jne 0x140012b46
mov bl, 1
mov byte [0x14005d390], bl
mov byte [0x14005d391], 1
jmp 0x140012b5b
mov bl, byte [0x14005d390]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140028a10
add rsp, 0x150
pop rbx
ret

Function at 0x140014750
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001476c
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 0x1400147db
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001da4
nop
lea rcx, [rsp + 0x20]
call fcn.140001adc
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001aec
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.14000129c
test ebx, ebx
setne bl
lea rcx, [rsp + 0x20]
call fcn.140001af8
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140017610
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
mov r9d, 4
sub rcx, r8
mov eax, dword [rdx + r8]
xor eax, dword [r8]
mov dword [rcx + r8], eax
lea r8, [r8 + 4]
sub r9, 1
jne 0x14001761c
ret

Function at 0x140017c88
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 0x140017d0b
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
pxor xmm1, xmm3
test eax, eax
jle 0x140017ce1
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 0x140017ccc
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x140017cf6
pxor xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x140017c99
movdqu xmmword [r10 + 8], xmm2
ret
Function at 0x140017f6c
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 [0x140055038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x140018053
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 + 0x5cf70]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x5c770]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x5c370]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x5cb70]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x140017fca
inc r9
cmp r9, 4
jl 0x140017fbd
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.14002abf0
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x140017fba
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140028a10
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 0x14001807c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov bl, dl
mov r11b, cl
xor r10b, r10b
mov cl, r11b
mov al, r10b
xor al, r11b
test bl, 1
movzx r8d, al
movzx eax, r10b
cmove r8d, eax
add cl, cl
movzx edx, cl
mov r10b, r8b
mov r8b, r11b
mov cl, dl
xor cl, 0x1b
mov r11d, edx
test r8b, r8b
movzx ecx, cl
cmovs r11d, ecx
shr bl, 1
jne 0x140018089
mov rbx, qword [rsp + 8]
mov al, r10b
ret
Function at 0x1400180cc
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 + 0x5a270], cl
inc ecx
cmp ecx, 0x100
jl 0x1400180f5
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5af71], r9b
mov byte [rsi + rdi*4 + 0x5af70], r9b
mov byte [rsi + rdi*4 + 0x5ab73], r9b
mov byte [rsi + rdi*4 + 0x5ab70], r9b
mov byte [rsi + rdi*4 + 0x5a773], r9b
mov byte [rsi + rdi*4 + 0x5a772], r9b
mov byte [rsi + rdi*4 + 0x5a372], r9b
mov byte [rsi + rdi*4 + 0x5a371], r9b
call fcn.14001807c
mov dl, 3
mov byte [rsi + rdi*4 + 0x5af73], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5ab72], al
mov byte [rsi + rdi*4 + 0x5a771], al
mov byte [rsi + rdi*4 + 0x5a370], al
call fcn.14001807c
movzx r9d, byte [rdi + rsi + 0x5a270]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5af72], al
mov byte [rsi + rdi*4 + 0x5ab71], al
mov byte [rsi + rdi*4 + 0x5a770], al
mov byte [rsi + rdi*4 + 0x5a373], al
call fcn.14001807c
mov dl, 9
mov byte [rsi + rdi*4 + 0x5bf72], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5bb71], al
mov byte [rsi + rdi*4 + 0x5b770], al
mov byte [rsi + rdi*4 + 0x5b373], al
mov byte [rsi + r9*4 + 0x5cf72], al
mov byte [rsi + r9*4 + 0x5cb71], al
mov byte [rsi + r9*4 + 0x5c770], al
mov byte [rsi + r9*4 + 0x5c373], al
call fcn.14001807c
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x5bf70], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5bb73], al
mov byte [rsi + rdi*4 + 0x5b772], al
mov byte [rsi + rdi*4 + 0x5b371], al
mov byte [rsi + r9*4 + 0x5cf70], al
mov byte [rsi + r9*4 + 0x5cb73], al
mov byte [rsi + r9*4 + 0x5c772], al
mov byte [rsi + r9*4 + 0x5c371], al
call fcn.14001807c
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x5bf71], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5bb70], al
mov byte [rsi + rdi*4 + 0x5b773], al
mov byte [rsi + rdi*4 + 0x5b372], al
mov byte [rsi + r9*4 + 0x5cf71], al
mov byte [rsi + r9*4 + 0x5cb70], al
mov byte [rsi + r9*4 + 0x5c773], al
mov byte [rsi + r9*4 + 0x5c372], al
call fcn.14001807c
mov byte [rsi + rdi*4 + 0x5bf73], al
mov byte [rsi + rdi*4 + 0x5bb72], al
mov byte [rsi + rdi*4 + 0x5b771], al
mov byte [rsi + rdi*4 + 0x5b370], al
inc rdi
mov byte [rsi + r9*4 + 0x5cf73], al
mov byte [rsi + r9*4 + 0x5cb72], al
mov byte [rsi + r9*4 + 0x5c771], al
mov byte [rsi + r9*4 + 0x5c370], al
cmp rdi, 0x100
jl 0x14001810c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400185b0
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 rax, qword [0x140057400]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test rax, rax
jne 0x1400185f7
lea rcx, [0x1400573f0]
call fcn.140018334
mov rax, qword [0x140057400]
mov rdx, rdi
mov r8d, ebp
and rdx, 0xfffffffffffffff0
test r14b, r14b
je 0x140018643
test rax, rax
je 0x140018665
mov rcx, rsi
call qword [0x140043520]
test eax, eax
jne 0x140018680
lea rdx, str.CryptProtectMemory_failed
lea rcx, [0x1400573e0]
call fcn.14000b71c
call fcn.14000ba68
mov edx, 2
lea rcx, [0x1400573e0]
call fcn.14000b978
jmp 0x140018680
mov rax, qword [0x140057408]
test rax, rax
je 0x140018665
mov rcx, rsi
call qword [0x140043520]
test eax, eax
jne 0x140018680
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001861f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x140018680
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x140018670
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