joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ce678
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140184774], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x1400ce6d8
movdqa xmm0, xmmword [0x1401361b0]
movdqa xmm1, xmmword [0x1401361a0]
movdqa xmmword [0x140185580], xmm0
movdqa xmm0, xmmword [0x140136170]
movdqa xmmword [0x140185590], xmm1
movdqa xmm1, xmmword [0x140136180]
movdqa xmmword [0x1401855a0], xmm0
movdqa xmmword [0x1401855b0], xmm1
xor edx, edx
mov r8d, 0xf0
call qword [sym.imp.msvcrt.dll_memset]
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14010e130]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400ce6f5
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cf438
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov rbp, r8
lea rdx, [0x140132c08]
lea rcx, [rax - 0x28]
mov r8d, 8
mov rsi, r9
call fcn.1400eaa4c
lea rax, vtable.micro::qsec::QHMACSHA256.0
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400eaaf0
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.1400eab70
lea rcx, [rsp + 0x20]
call fcn.1400eaabc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400cfa14
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx], 1
mov rdi, rdx
mov rbx, rcx
mov esi, 0x20
jne 0x1400cfa8f
mov eax, dword [rcx + 4]
lea r9d, [rsi - 0x1c]
lea r8, [r11 - 0x38]
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x30]
mov edx, esi
mov rcx, rdi
mov qword [r11 - 0x48], rax
call fcn.1400cf438
xor edx, edx
lea r8, [rsp + 0x38]
mov dword [rbx + 4], edx
mov r9d, edx
movzx eax, byte [r8]
mov ecx, edx
inc edx
and ecx, 3
inc r8
shl ecx, 3
shl eax, cl
xor r9d, eax
cmp edx, esi
jb 0x1400cfa71
mov dword [rbx + 4], r9d
cmp dword [rbx], 2
jne 0x1400cfac2
lea rax, [rsp + 0x38]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400cf438
lea rdx, [rsp + 0x38]
lea rcx, [rbx + 4]
mov r8, rsi
call qword [sym.imp.msvcrt.dll_memcpy]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400d31e8
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
lea rax, vtable.File.0
mov rbx, rcx
mov qword [rcx], rax
je 0x1400d3232
cmp byte [rcx + 0x18], 0
jne 0x1400d3232
cmp byte [rcx + 0x1a], 0
je 0x1400d322d
cmp dword [rcx + 0x14], 0
jne 0x1400d3232
call fcn.1400d3524
cmp byte [rbx + 0x1b], 0
je 0x1400d3232
lea rcx, [rbx + 0x26]
add rsp, 0x20
pop rbx
jmp fcn.1400d3fc8
call fcn.1400d3524
add rsp, 0x20
pop rbx
ret

Function at 0x1400d359c
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x1400d3675
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x1400d35d5
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rbx + 8], rax
and dword [rsp + 0x60], 0
cmp dword [rbx + 0x14], 0
je 0x1400d362e
xor esi, esi
test rdi, rdi
je 0x1400d3653
mov r15d, 0x4000
mov eax, edi
mov r8d, r15d
mov rcx, rdi
sub rcx, rsi
sub eax, esi
lea rdx, [rsi + rbp]
cmp rcx, r15
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x1400d3653
add rsi, r15
cmp rsi, rdi
jb 0x1400d35ed
jmp 0x1400d364f
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x1400d365f
cmp byte [rbx + 0x1c], 0
je 0x1400d365f
cmp dword [rbx + 0x14], 0
je 0x1400d3676
mov rbp, qword [rsp + 0x58]
mov byte [rbx + 0x10], 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
inc dword [0x140173d9c]
mov eax, 5
lea rdx, [0x14016bdb0]
lea rcx, [rsp + 0x68]
mov dword [0x140173d98], eax
mov dword [rsp + 0x68], eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1400d3790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x1400d37bd
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400d3848
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400d380c
call qword [sym.imp.KERNEL32.DLL_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400d380c
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x1400d380c
mov rdx, rsi
mov rcx, rbx
call fcn.1400d3790
jmp 0x1400d384c
cmp dword [rbx + 0x14], 1
jne 0x1400d3821
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x1400d3821
xor eax, eax
jmp 0x1400d384c
cmp dword [rbx + 0x14], 0
jne 0x1400d3843
cmp rdi, 0x8000
jbe 0x1400d3843
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x21
jne 0x1400d3843
mov r8d, 0x8000
jmp 0x1400d37ff
or eax, 0xffffffff
jmp 0x1400d384c
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d3b18
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.140001a50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call qword [sym.imp.msvcrt.dll_wcslen]
xor ebx, ebx
lea rcx, [rdi - 2]
test rax, rax
lea rcx, [rcx + rax*2]
mov r8, rdi
cmovne r8, rcx
cmp word [r8], 0x20
je 0x1400d3b7f
cmp word [r8], 0x2e
je 0x1400d3b7f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x1400d3bb3
mov rcx, rdi
call fcn.1400d3ec0
cmp eax, 0xffffffff
jne 0x1400d3bc6
cmp word [rdi], bx
je 0x1400d3bc6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400d51ec
test al, al
je 0x1400d3bc6
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x1400d3bc6
test sil, sil
je 0x1400d3bc2
mov edx, ebp
mov rcx, rdi
call fcn.1400d3f3c
xor eax, eax
jmp 0x1400d3bd8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
setbe bl
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d3ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140001a50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400d3f19
cmp word [rdi], 0
je 0x1400d3f19
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400d51ec
test al, al
je 0x1400d3f19
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400d3f3c
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.140001a50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne bl
test bl, bl
jne 0x1400d3fa1
cmp word [rdi], bp
je 0x1400d3fa1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400d51ec
test al, al
je 0x1400d3fa1
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d55e8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rcx + 4], 0
and dword [rcx], 0
mov eax, 0x8000
cmp r8d, eax
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
cmovb eax, r8d
mov esi, r8d
mov rbx, r9
mov r8d, eax
mov rbp, rdx
call qword [sym.imp.msvcrt.dll_memcpy]
xor r8b, r8b
cmp esi, 1
jbe 0x1400d5642
lea rcx, [rbp + 1]
lea edx, [rsi - 1]
xor r8b, byte [rcx]
inc rcx
dec rdx
jne 0x1400d5637
mov ecx, dword [rdi + 4]
add ecx, 8
mov eax, ecx
and ecx, 7
shr eax, 3
mov dword [rdi + 4], ecx
add dword [rdi], eax
and dword [rbx + 0x28], 0
cmp r8b, byte [rbp]
jne 0x1400d570c
or dword [rsp + 0x28], 0xffffffff
lea rax, vtable.micro::qsec::QCRC32.0
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400e9028
mov edx, dword [rsp + 0x28]
lea r8, [0x140174880]
not edx
xor ecx, ecx
mov rax, r8
cmp dword [rax + 4], edx
jne 0x1400d569f
cmp dword [rax], esi
je 0x1400d5701
inc ecx
add rax, 0xc
cmp ecx, 6
jb 0x1400d5696
xor edi, edi
test edi, edi
je 0x1400d570c
inc qword [rbx + 8]
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jbe 0x1400d56c6
mov rcx, rbx
call fcn.1400d5fec
movsxd rax, dword [rbx + 0x28]
mov rcx, rax
inc eax
mov dword [rbx + 0x28], eax
imul rdx, rcx, 0x38
add rdx, qword [rbx]
lea rax, [rdx + 0xc]
mov dword [rdx], 0x28
mov dword [rax], edi
mov qword [rdx + 0x18], rax
lea rax, [rdx + 0x24]
mov qword [rdx + 0x30], rax
mov eax, 3
mov dword [rdx + 0x20], eax
mov dword [rdx + 8], eax
jmp 0x1400d5799
lea rcx, [rcx + rcx*2]
mov edi, dword [r8 + rcx*4 + 8]
jmp 0x1400d56ac
inc qword [rbx + 8]
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jbe 0x1400d5722
mov rcx, rbx
call fcn.1400d5fec
movsxd rax, dword [rbx + 0x28]
xor r8d, r8d
mov rcx, rax
inc eax
mov dword [rbx + 0x28], eax
imul rdx, rcx, 0x38
add rdx, qword [rbx]
lea rax, [rdx + 0xc]
mov dword [rdx], reloc.WS2_32.dll_shutdown
mov qword [rdx + 0x18], rax
lea rax, [rdx + 0x24]
mov qword [rdx + 0x30], rax
mov eax, 3
mov dword [rdx + 0x20], eax
mov dword [rdx + 8], eax
cmp dword [rbx + 0x28], r8d
jle 0x1400d5799
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x1400d5778
lea rax, [rdx + 0xc]
add rax, rcx
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x1400d578c
lea rax, [rdx + 0x24]
add rax, rcx
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x1400d5761
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d66b8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor ecx, ecx
mov eax, 1
mov sil, dl
cpuid
mov r15d, reloc.SHELL32.dll_ILFindLastID
shr ecx, 0x19
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ebx
and cl, 1
mov dword [rsp + 0x34], edx
mov byte [rdi], cl
sub r9d, 0x80
je 0x1400d673e
sub r9d, 0x40
je 0x1400d6730
cmp r9d, 0x40
jne 0x1400d672a
lea eax, [r15 + 0x10]
mov dword [rdi + 4], reloc.WS2_32.dll_ntohl
jmp 0x1400d674c
mov eax, dword [rsp + 0x20]
jmp 0x1400d6748
mov eax, reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rdi + 4], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x1400d674c
mov eax, r15d
mov dword [rdi + 4], 0xa
test eax, eax
je 0x1400d6777
xor ebx, ebx
mov r9d, eax
mov rax, rbx
mov rdx, rbx
lea rcx, [rsp + 0x38]
and eax, 3
shr rdx, 2
inc rbx
add rcx, rax
mov al, byte [r8]
inc r8
mov byte [rcx + rdx*4], al
dec r9
jne 0x1400d6751
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
jne 0x1400d6795
lea rcx, [rdi + 8]
mov r8, r15
xor edx, edx
call qword [sym.imp.msvcrt.dll_memset]
jmp 0x1400d67ad
lea rdx, [rdi + 8]
sub rcx, rdi
mov rbx, r15
mov al, byte [rcx + rdx - 8]
mov byte [rdx], al
inc rdx
dec rbx
jne 0x1400d679f
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400d6d9c
test sil, sil
jne 0x1400d687e
mov esi, 1
cmp dword [rdi + 4], esi
jle 0x1400d687e
lea rbx, [rsp + 0x28]
lea rbp, [rdi + 0x2a]
lea r12, [0x140000000]
sub rbx, rdi
sub rbx, 0x2a
xor r8d, r8d
mov r9, rbp
lea r11, [r8 + rbx]
mov r10d, 4
movzx eax, byte [r9 + 1]
lea rdx, [r8 + rax*4]
movzx eax, byte [r9 - 1]
mov dl, byte [rdx + r12 + 0x1872c0]
lea rcx, [r8 + rax*4]
movzx eax, byte [r9 - 2]
xor dl, byte [rcx + r12 + 0x186ac0]
lea rcx, [r8 + rax*4]
movzx eax, byte [r9]
xor dl, byte [rcx + r12 + 0x1855c0]
lea rcx, [r8 + rax*4]
xor dl, byte [rcx + r12 + 0x1876c0]
mov byte [r9 + r11], dl
lea r9, [r9 + 4]
dec r10
jne 0x1400d67f8
inc r8
cmp r8, 4
jl 0x1400d67eb
movsxd rax, esi
lea rcx, [rdi + 0x18]
lea rdx, [rsp + 0x28]
shl rax, 4
mov r8, r15
add rcx, rax
call qword [sym.imp.msvcrt.dll_memcpy]
inc esi
add rbp, r15
sub rbx, r15
cmp esi, dword [rdi + 4]
jl 0x1400d67e8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x1400d6d9c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14d, dword [rcx + 4]
mov rsi, rcx
lea rcx, [rbp - 0x30]
mov r8d, 0x20
sub r14d, 6
call qword [sym.imp.msvcrt.dll_memcpy]
xor r10d, r10d
xor ebx, ebx
xor r9d, r9d
movsxd r8, r14d
lea r12d, [r10 + 4]
lea r15d, [r10 + 1]
test r14d, r14d
jle 0x1400d6e44
xor edx, edx
xor r11d, r11d
cmp r10d, dword [rsi + 4]
jg 0x1400d6f92
cmp r9, r8
jge 0x1400d6e30
lea rdi, [rbp - 0x30]
lea rdi, [rdi + r9*4]
cmp rdx, r12
jge 0x1400d6e33
mov eax, dword [rdi]
lea rcx, [r11 + rdx]
add r9, r15
add rdi, r12
add ebx, r15d
add rdx, r15
mov dword [rsi + rcx*4 + 0x18], eax
cmp r9, r8
jl 0x1400d6e10
cmp rdx, r12
jne 0x1400d6e3f
add r10d, r15d
add r11, r12
xor ebx, ebx
xor edx, edx
cmp r9, r8
jl 0x1400d6df9
cmp r10d, dword [rsi + 4]
jg 0x1400d6f92
movsxd r11, ebx
movsxd rdi, r10d
lea r13, [0x140185dc0]
lea rbx, [0x1401883c0]
movzx ecx, byte [rbp + r8*4 - 0x33]
mov al, byte [rbp - 0x30]
xor al, byte [rcx + r13]
mov byte [rbp - 0x30], al
movzx eax, byte [rbp + r8*4 - 0x32]
mov al, byte [rax + r13]
xor byte [rbp - 0x2f], al
movzx eax, byte [rbp + r8*4 - 0x31]
mov al, byte [rax + r13]
xor byte [rbp - 0x2e], al
movzx eax, byte [rbp + r8*4 - 0x34]
mov al, byte [rax + r13]
xor byte [rbp - 0x2d], al
mov al, byte [rbx]
add rbx, r15
xor byte [rbp - 0x30], al
cmp r14d, 8
je 0x1400d6ecf
cmp r8, r15
jle 0x1400d6f3d
lea rcx, [rbp - 0x2c]
lea r9, [r8 - 1]
mov rdx, r12
mov al, byte [rcx - 4]
xor byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x1400d6ebb
sub r9, r15
jne 0x1400d6eb8
jmp 0x1400d6f3d
lea rcx, [rbp - 0x2c]
mov r9d, 3
mov rdx, r12
mov al, byte [rcx - 4]
xor byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x1400d6edc
sub r9, r15
jne 0x1400d6ed9
movzx eax, byte [rbp - 0x24]
mov al, byte [rax + r13]
xor byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x23]
mov al, byte [rax + r13]
xor byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x22]
mov al, byte [rax + r13]
xor byte [rbp - 0x1e], al
movzx eax, byte [rbp - 0x21]
mov al, byte [rax + r13]
xor byte [rbp - 0x1d], al
cmp r8, 5
jle 0x1400d6f3d
lea rcx, [rbp - 0x1c]
lea r9, [r8 - 5]
mov rdx, r12
mov al, byte [rcx - 4]
xor byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x1400d6f2b
sub r9, r15
jne 0x1400d6f28
xor edx, edx
test r14d, r14d
jle 0x1400d6f88
cmp r10d, dword [rsi + 4]
jg 0x1400d6f92
cmp rdx, r8
jge 0x1400d6f75
lea r9, [rbp - 0x30]
lea r9, [r9 + rdx*4]
cmp r11, r12
jge 0x1400d6f78
mov eax, dword [r9]
lea rcx, [r11 + rdi*4]
add rdx, r15
add r9, r12
add r11, r15
mov dword [rsi + rcx*4 + 0x18], eax
cmp rdx, r8
jl 0x1400d6f57
cmp r11, r12
jne 0x1400d6f83
add r10d, r15d
add rdi, r15
xor r11d, r11d
cmp rdx, r8
jl 0x1400d6f44
cmp r10d, dword [rsi + 4]
jle 0x1400d6e62
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d74ac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r10, qword [0x140184be0]
xor ebx, ebx
mov bpl, r9b
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
test r10, r10
jne 0x1400d7547
cmp byte [0x140184bd8], bl
jne 0x1400d7547
lea rcx, str.Crypt32.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov qword [0x140184bd0], rax
test rax, rax
je 0x1400d7530
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x140184bd0]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140184be0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov r9, rax
mov qword [0x140184be8], rax
jmp 0x1400d7537
mov r9, qword [0x140184be8]
mov r10, qword [0x140184be0]
mov byte [0x140184bd8], 1
jmp 0x1400d754e
mov r9, qword [0x140184be8]
mov rax, rsi
mov rcx, rsi
mov r8d, ebx
and eax, 0xf
sub rcx, rax
test bpl, bpl
setne r8b
test r14b, r14b
je 0x1400d757c
test r10, r10
je 0x1400d758f
mov edx, ecx
mov rcx, rdi
call r10
test eax, eax
jne 0x1400d75aa
jmp 0x1400d75bd
test r9, r9
je 0x1400d758f
mov edx, ecx
mov rcx, rdi
call r9
test eax, eax
jne 0x1400d75aa
jmp 0x1400d7603
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
test rsi, rsi
je 0x1400d75aa
add al, 0x4b
lea ecx, [rbx + rax]
xor byte [rbx + rdi], cl
inc rbx
cmp rbx, rsi
jb 0x1400d759c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
lea rdx, str.CryptProtectMemory_failed
lea rcx, [0x140173d98]
call fcn.1400d0c34
mov eax, dword [0x140173d98]
mov ecx, 2
cmp eax, 1
mov dword [rsp + 0x50], ecx
lea rdx, [0x14016bdb0]
cmovbe eax, ecx
inc dword [0x140173d9c]
lea rcx, [rsp + 0x50]
mov dword [0x140173d98], eax
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, str.CryptUnprotectMemory_failed
lea rcx, [0x140173d98]
call fcn.1400d0c34
mov eax, dword [0x140173d98]
mov ecx, 2
cmp eax, 1
mov dword [rsp + 0x50], ecx
lea rdx, [0x14016bdb0]
cmovbe eax, ecx
inc dword [0x140173d9c]
lea rcx, [rsp + 0x50]
mov dword [0x140173d98], eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1400d7acc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x1400d7b35
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
lea r8, [0x1400d7b88]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x1400d7b40
mov edx, dword [0x14017a338]
mov qword [rbx + rdi*8 + 8], rax
inc dword [rbx + 0x108]
test edx, edx
je 0x1400d7b2f
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x1400d7adf
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rdx, str.CreateThread_failed
lea rcx, [0x140173d98]
call fcn.1400d0c34
mov eax, dword [0x140173d98]
mov ecx, 2
cmp eax, 1
mov dword [rsp + 0x48], ecx
lea rdx, [0x14016bdb0]
cmovbe eax, ecx
inc dword [0x140173d9c]
lea rcx, [rsp + 0x48]
mov dword [0x140173d98], eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400e1f38
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x20]
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test rbx, rbx
je 0x1400e1f66
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400e2054
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
mov rsi, r9
xor edi, edi
lea r9, [rax + 8]
mov dword [rax + 8], edi
mov qword [rax - 0x18], rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [rsp + 0x40]
test eax, eax
setne dl
add qword [rbx + 0x10], rcx
test rsi, rsi
je 0x1400e2095
mov dword [rsi], ecx
test dl, dl
jne 0x1400e20b8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x1400e20aa
mov edi, 0x80004005
jmp 0x1400e20b8
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x1400e20cc
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, rdx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x40]
mov r9, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rsi, rax
call qword [r9 + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
xor ebx, ebx
test eax, eax
mov qword [rsp + 0x30], rbx
setne cl
test cl, cl
je 0x1400e2132
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x28]
test al, al
je 0x1400e2132
mov bl, 1
mov rsi, qword [rsp + 0x40]
neg bl
mov rbx, qword [rsp + 0x38]
sbb eax, eax
not eax
and eax, 0x80004005
add rsp, 0x20
pop rdi
ret
Function at 0x1400e8490
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400e84b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400e84d8
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400e8524
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov sil, r8b
mov rbp, rdx
mov rbx, rcx
lea rdi, [0x14012da68]
mov rcx, rdi
cmp qword [rdx + 8], 0
cmovne rcx, qword [rdx + 8]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e856e
bt eax, 0xa
jb 0x1400e857d
mov ecx, 3
call qword [sym.imp.KERNEL32.DLL_SetLastError]
or qword [rbx], 0xffffffffffffffff
cmp qword [rbp + 8], 0
cmovne rdi, qword [rbp + 8]
neg sil
sbb edx, edx
and edx, 0x40000000
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400e85f7
lea rax, vtable.micro::utils::QString.0
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400e7960
nop
lea rdx, [0x14016bc48]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret