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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov r14d, dword [rbp + 0x800]
mov rdi, r8
mov r13b, dl
mov r15, rcx
cmp r14d, 0x18
ja 0x140007c7b
xor esi, esi
lea rbx, [rcx + 0x148]
mov rdx, rdi
mov rcx, rbx
call fcn.140012c64
test al, al
je 0x140007abb
lea rcx, [rbx + 0x20]
cmp dword [rcx + 0x30], r14d
jne 0x140007abb
mov rdx, qword [rbp + 0x7f0]
mov r8d, 0x10
call fcn.1400274c0
test eax, eax
je 0x140007c97
inc esi
add rbx, 0x98
cmp esi, 4
jb 0x140007a88
mov rcx, qword [rbp + 0x7e8]
lea rdx, [rbp - 0x60]
mov esi, 0x800
mov r8d, esi
call fcn.140015e20
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.14002d160
mov r8, qword [rbp + 0x7f0]
lea rcx, [rbp - 0x60]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x60]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400080c4
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.140012f60
mov ecx, dword [r15 + 0x3a8]
mov eax, ecx
and eax, 3
imul rsi, rax, 0x98
lea eax, [rcx + 1]
add rsi, 0x148
mov dword [r15 + 0x3a8], eax
add rsi, r15
mov dword [rsi + 0x50], r14d
cmp rsi, rdi
je 0x140007b81
mov r9b, byte [rbp + 0x800]
mov rcx, rsi
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
call fcn.140007264
mov al, byte [rdi + 0x18]
lea rcx, [rsi + 0x20]
mov rdx, qword [rbp + 0x7f0]
mov r8, rbx
mov byte [rsi + 0x18], al
call fcn.1400275c0
mov edi, 0x20
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rsi + 0x30]
call fcn.1400275c0
lea rcx, [rsi + 0x54]
mov r8d, edi
lea rdx, [rsp + 0x60]
call fcn.1400275c0
lea rcx, [rsi + 0x74]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.1400275c0
xor r9d, r9d
lea rcx, [rsi + 0x30]
mov r8b, 1
mov edx, edi
call fcn.140012da4
mov rcx, qword [rbp + 0x808]
test rcx, rcx
je 0x140007bfa
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.1400275c0
mov rbx, qword [rbp + 0x810]
test rbx, rbx
je 0x140007c43
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140026730
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov r9, rdi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + rbx], al
sub r9, 1
jne 0x140007c1f
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140012f60
mov rax, qword [rbp + 0x7f8]
test rax, rax
je 0x140007c6e
lea rcx, [r15 + 0x3b0]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov dl, r13b
call fcn.140012274
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140012f60
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov edi, 0x20
lea rdx, [rbx + 0x30]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.1400275c0
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, edi
call fcn.140012da4
lea rdx, [rbx + 0x54]
mov r8d, edi
lea rcx, [rsp + 0x60]
call fcn.1400275c0
lea rdx, [rbx + 0x74]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.1400275c0
jmp 0x140007be2
Function at 0x1400080c4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov rax, r8
mov r15, rdx
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
lea rcx, [rbp - 0x40]
mov rdx, rax
mov rbx, r9
cmovb r8, r9
call fcn.1400275c0
xor edi, edi
mov dword [rbp + rbx - 0x40], 0x1000000
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r9, [rbx + 4]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x28], rdi
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140007de0
lea r13d, [rdi + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400275c0
mov eax, dword [rbp + 0x178]
lea rsi, [rbp - 0x80]
dec eax
mov byte [rbp + 0x178], dil
mov dword [rsp + 0x50], eax
lea r14d, [r13 - 0x1d]
mov rax, qword [rbp + 0x160]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x170]
mov byte [rbp + 0x160], dil
lea rdi, [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 0x10
cmp dword [rdi], 0
jbe 0x14000824b
mov ebx, dword [rdi]
lea rax, [rbp + 0x178]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x30]
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, r12
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140007de0
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400275c0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax - 0x68]
movdqu xmm1, xmmword [rsp + rax + 0x60]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x78], xmm1
sub rcx, 1
jne 0x140008221
sub rbx, 1
jne 0x1400081c2
mov rcx, qword [rsi]
lea rdx, [rbp - 0x68]
mov r8, r13
call fcn.1400275c0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x1400081b7
lea edx, [r14 + 0x44]
lea rcx, [rbp - 0x40]
call fcn.140012f60
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140012f60
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140012f60
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140012f60
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000bea0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x4f88]
mov eax, 0x5070
call fcn.140025840
sub rsp, rax
mov rbx, rcx
mov r15d, 0x800
mov r8d, r15d
lea rdx, [rbp + 0x2f70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
lea edi, [r15 - 2]
cmp eax, edi
ja 0x14000c084
mov r8d, r15d
lea rdx, [rbp + 0x3f70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x14000c084
lea rcx, [rbp + 0x2f70]
call fcn.14000f68c
mov rsi, rax
lea rcx, [rbp + 0x3f70]
call fcn.14000f68c
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x14000c084
mov rdx, rax
mov rcx, rsi
call fcn.140015f74
test eax, eax
je 0x14000c084
mov rcx, rbx
call fcn.14000f68c
mov rcx, rax
mov rdx, rdi
call fcn.140015f74
test eax, eax
jne 0x14000c084
movzx eax, r14w
mov word [rsp + 0x20], ax
mov edi, r14d
test ax, ax
jne 0x14000bfd6
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14001424c
lea rcx, [rsp + 0x20]
call fcn.14000f68c
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r15
call fcn.1400053bc
lea rcx, [rsp + 0x20]
call fcn.14000cf1c
test al, al
je 0x14000bfbd
mov eax, r14d
mov word [rsp + 0x20], ax
jmp 0x14000bfc2
movzx eax, word [rsp + 0x20]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000bf71
test ax, ax
je 0x14000c084
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0x1f70]
call fcn.14001424c
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0x1f70]
call fcn.14000f718
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x1f70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000c084
lea rcx, [rbp + 0xf20]
call fcn.14000c0a4
nop
mov dil, r14b
mov rcx, rbx
call fcn.14000cf1c
test al, al
jne 0x14000c044
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rbp + 0xf20]
call fcn.14000c1c8
mov dil, al
lea rdx, [rbp + 0x1f70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x14000c074
lea rcx, [rbp + 0xf20]
call fcn.14000c160
lea rcx, [rbp + 0xf20]
call fcn.14000c2f0
nop
lea rcx, [rbp + 0xf20]
call fcn.14000c0ec
mov al, 1
jmp 0x14000c086
xor al, al
lea r11, [rsp + 0x5070]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000c2f0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000c327
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000c313
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003b508]
cmp byte [rbx + 0x21], 0
je 0x14000c327
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.14000cebc
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000c330
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 0x14000c362
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 0x14000c3df
mov rcx, rbx
call fcn.14000c498
test al, al
je 0x14000c3a5
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14000c3a5
mov rdx, rbp
mov rcx, rbx
call fcn.14000c330
jmp 0x14000c3e3
cmp dword [rbx + 0x14], 1
jne 0x14000c3ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000c3ba
xor eax, eax
jmp 0x14000c3e3
cmp dword [rbx + 0x14], 0
jne 0x14000c3da
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000c3da
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000c3da
mov r8d, edi
jmp 0x14000c398
or eax, 0xffffffff
jmp 0x14000c3e3
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 0x14000c674
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000c6b0
test al, al
je 0x14000c6a8
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14003b508]
add rsp, 0x20
pop rbx
ret

Function at 0x14000cb80
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x14000cc04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x14000cc2f
mov al, 1
jmp 0x14000cd47
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x14000cc47
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
and dword [rsp + 0x70], 0
xor bpl, bpl
cmp dword [rdi + 0x14], 0
je 0x14000cca1
xor ebx, ebx
test rsi, rsi
je 0x14000ccc7
mov eax, esi
lea rdx, [rbx + r15]
sub eax, ebx
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rcx, rsi
sub rcx, rbx
cmp rcx, r13
mov rcx, qword [r14]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
jne 0x14000ccc2
add rbx, r13
cmp rbx, rsi
jb 0x14000cc62
jmp 0x14000ccc2
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
jne 0x14000cd40
cmp byte [rdi + 0x22], 0
je 0x14000cd40
cmp dword [rdi + 0x14], 0
jne 0x14000cd40
xor r8d, r8d
lea rdx, [rdi + 0x3a]
lea rcx, [0x14004f538]
call fcn.140008630
test al, al
je 0x14000cd2e
mov ecx, dword [rsp + 0x70]
cmp rcx, rsi
jae 0x14000cc4d
test ecx, ecx
je 0x14000cc4d
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14003b508]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x14003b508]
jmp 0x14000cc4d
lea r8, [rdi + 0x3a]
xor edx, edx
lea rcx, [0x14004f538]
call fcn.140008ac0
mov byte [rdi + 0x10], 1
mov al, bpl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x14000ce5c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140025840
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000cea8
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000cea8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x14000cebc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140025840
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000cf08
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000cf08
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret
Function at 0x14000cf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140025840
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000cf77
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000cf77
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1020
call fcn.140025840
sub rsp, rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.14000f664
xor ebx, ebx
cmp word [rax], 0x2e
je 0x14000cff0
cmp word [rax], 0x20
je 0x14000cff0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d025
mov rcx, rdi
call fcn.14000cf30
cmp eax, 0xffffffff
jne 0x14000d038
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000d038
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000d038
test sil, sil
je 0x14000d034
mov edx, ebp
mov rcx, rdi
call fcn.14000d3e4
xor eax, eax
jmp 0x14000d053
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000d04e
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000d053
mov eax, 2
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000d188
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2020
call fcn.140025840
sub rsp, rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000d1fe
mov r8d, 0x800
lea rdx, [rsp + 0x1020]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000d1fe
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000eda0
test al, al
je 0x14000d1fe
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea r11, [rsp + 0x2020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000d3e4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.140025840
sub rsp, rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14000d439
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000eda0
test al, al
je 0x14000d439
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea r11, [rsp + 0x1020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000d60c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x1178]
mov eax, 0x1270
call fcn.140025840
sub rsp, rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000d6b8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d6d4
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.14000eda0
test al, al
je 0x14000d691
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d6d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14000d6ab
cmp eax, 0x13
je 0x14000d6ab
xor al, al
jmp 0x14000d6ad
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x14000d769
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000d6d4
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14000d6ad
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.14001424c
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.14000f718
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1000], rcx
lea rcx, [rdi + 0x1010]
mov qword [rdi + 0x1038], rax
call fcn.140015500
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140015500
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140015500
and dword [rdi + 0x1040], 0
lea r11, [rsp + 0x1270]
mov rsi, qword [r11 + 0x18]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000e040
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
xor bl, bl
cmp byte [0x14004f550], bl
jne 0x14000e093
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x14000e082
jne 0x14000e084
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14000e084
call fcn.14000e0a4
test al, al
jne 0x14000e084
mov bl, 1
mov byte [0x14004f551], bl
mov byte [0x14004f550], 1
jmp 0x14000e099
mov bl, byte [0x14004f551]
mov al, bl
add rsp, 0x140
pop rbx
ret
Function at 0x14000eda0
Capabilities:
Get common file path

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
mov eax, 0x1020
call fcn.140025840
sub rsp, rax
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x14000ef4f
call fcn.14000ef78
mov rcx, rbx
call fcn.14002a7e8
mov rcx, rbx
mov rbp, rax
call fcn.14000efa8
test al, al
je 0x14000ee84
mov rcx, rbx
call fcn.14000ef78
test al, al
je 0x14000ee38
lea rax, [rbp + 4]
cmp rdi, rax
jbe 0x14000ef4f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.14001424c
mov rdx, rbx
mov r8, rdi
mov rcx, rsi
call fcn.140014208
mov al, 1
jmp 0x14000ef51
cmp word [rbx], 0x5c
jne 0x14000ef4f
cmp word [rbx + 2], 0x5c
jne 0x14000ef4f
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000ef4f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.14001424c
mov r8, rdi
lea rdx, [0x14003bd58]
mov rcx, rsi
call fcn.140014208
lea rdx, [rbx + 2]
jmp 0x14000ee26
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x14000ef4f
cmp word [rbx], 0x5c
je 0x14000ef19
cmp word [rbx], 0x2f
je 0x14000ef19
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.14000e7f8
lea rcx, [rsp + 0x20]
call fcn.14002a7e8
lea rcx, [rax + 4]
add rcx, rbp
cmp rdi, rcx
jbe 0x14000ef4f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.14001424c
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140014208
cmp word [rbx], 0x2e
jne 0x14000ee23
cmp word [rbx + 2], 0x5c
je 0x14000ef10
cmp word [rbx + 2], 0x2f
jne 0x14000ee23
add rbx, 4
jmp 0x14000ee23
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000ef4f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.14001424c
mov r8, rdi
mov word [rsp + 0x24], r14w
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140014208
jmp 0x14000ee23
xor al, al
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14000feb8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, r9
mov r10b, bl
cmp r8d, 1
jbe 0x14000feec
lea rcx, [rdx + 1]
lea r8d, [rdi - 1]
xor r10b, byte [rcx]
inc rcx
sub r8, 1
jne 0x14000fee0
cmp r10b, byte [rdx]
jne 0x14000ff28
mov r8, rdi
or ecx, 0xffffffff
call fcn.1400071f0
lea rdx, [0x14004c060]
not eax
mov rcx, rdx
cmp dword [rcx + 4], eax
jne 0x14000ff11
cmp dword [rcx], edi
je 0x14000ff1e
inc ebx
add rcx, 0xc
cmp ebx, 6
jae 0x14000ff28
jmp 0x14000ff08
lea rcx, [rbx + rbx*2]
mov eax, dword [rdx + rcx*4 + 8]
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001205c
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 + 0x53570], cl
inc ecx
cmp ecx, 0x100
jl 0x140012085
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x54271], r9b
mov byte [rsi + rdi*4 + 0x54270], r9b
mov byte [rsi + rdi*4 + 0x53e73], r9b
mov byte [rsi + rdi*4 + 0x53e70], r9b
mov byte [rsi + rdi*4 + 0x53a73], r9b
mov byte [rsi + rdi*4 + 0x53a72], r9b
mov byte [rsi + rdi*4 + 0x53672], r9b
mov byte [rsi + rdi*4 + 0x53671], r9b
call fcn.140012840
mov dl, 3
mov byte [rsi + rdi*4 + 0x54273], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x53e72], al
mov byte [rsi + rdi*4 + 0x53a71], al
mov byte [rsi + rdi*4 + 0x53670], al
call fcn.140012840
movzx r9d, byte [rdi + rsi + 0x53570]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x54272], al
mov byte [rsi + rdi*4 + 0x53e71], al
mov byte [rsi + rdi*4 + 0x53a70], al
mov byte [rsi + rdi*4 + 0x53673], al
call fcn.140012840
mov dl, 9
mov byte [rsi + rdi*4 + 0x55272], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x54e71], al
mov byte [rsi + rdi*4 + 0x54a70], al
mov byte [rsi + rdi*4 + 0x54673], al
mov byte [rsi + r9*4 + 0x56272], al
mov byte [rsi + r9*4 + 0x55e71], al
mov byte [rsi + r9*4 + 0x55a70], al
mov byte [rsi + r9*4 + 0x55673], al
call fcn.140012840
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x55270], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x54e73], al
mov byte [rsi + rdi*4 + 0x54a72], al
mov byte [rsi + rdi*4 + 0x54671], al
mov byte [rsi + r9*4 + 0x56270], al
mov byte [rsi + r9*4 + 0x55e73], al
mov byte [rsi + r9*4 + 0x55a72], al
mov byte [rsi + r9*4 + 0x55671], al
call fcn.140012840
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x55271], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x54e70], al
mov byte [rsi + rdi*4 + 0x54a73], al
mov byte [rsi + rdi*4 + 0x54672], al
mov byte [rsi + r9*4 + 0x56271], al
mov byte [rsi + r9*4 + 0x55e70], al
mov byte [rsi + r9*4 + 0x55a73], al
mov byte [rsi + r9*4 + 0x55672], al
call fcn.140012840
mov byte [rsi + rdi*4 + 0x55273], al
mov byte [rsi + rdi*4 + 0x54e72], al
mov byte [rsi + rdi*4 + 0x54a71], al
mov byte [rsi + rdi*4 + 0x54670], al
inc rdi
mov byte [rsi + r9*4 + 0x56273], al
mov byte [rsi + r9*4 + 0x55e72], al
mov byte [rsi + r9*4 + 0x55a71], al
mov byte [rsi + r9*4 + 0x55670], al
cmp rdi, 0x100
jl 0x14001209c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret