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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2f60]
mov eax, 0x3060
call fcn.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov sil, dl
mov rdi, rcx
call fcn.140089140
cmp eax, 0x600
jb 0x1400157f4
mov rcx, rdi
call fcn.1400e7f9c
xor ebx, ebx
test al, al
jne 0x1400157f4
mov r14d, 0x800
lea r8, [rsp + 0x50]
mov r9d, r14d
lea rcx, [0x1401bd3f0]
mov rdx, rdi
call fcn.140058868
mov r8d, r14d
lea rdx, [rbp + 0xf50]
lea rcx, [rsp + 0x50]
call fcn.140095be0
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400157f4
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0xf50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14001572a
mov eax, dword [rsp + 0x40]
and eax, 0x80008
cmp eax, 8
jne 0x1400157f4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001575d
test al, 0x10
jne 0x14001575d
lea rcx, [rsp + 0x50]
call fcn.140015494
and eax, 6
cmp al, 6
jne 0x1400157f0
lea rcx, [rsp + 0x50]
call fcn.1400969a0
lea rcx, [rsp + 0x50]
mov dil, bl
call fcn.1400855a0
test al, al
jne 0x1400157c4
mov dil, 1
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1f50]
call fcn.1400ac228
lea rcx, [rsp + 0x50]
call fcn.1400969a0
lea rax, [rsp + 0x50]
lea r8, [rbp + 0x1f50]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400157b2
add rax, 2
test edx, edx
jne 0x14001579e
test ecx, ecx
je 0x1400157c4
lea rcx, [rsp + 0x50]
call fcn.1400855a0
test al, al
je 0x140015771
lea rcx, [rsp + 0x50]
call fcn.140015494
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x1400157ea
test dil, dil
je 0x1400157e6
test sil, sil
je 0x1400157ec
test cl, cl
jne 0x1400157ec
mov bl, 1
mov al, bl
jmp 0x1400157f6
mov al, 1
jmp 0x1400157f6
xor al, al
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.140119970
lea r11, [rsp + 0x3060]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140016ca8
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1fb8]
mov eax, 0x20b0
call fcn.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
xor r9d, r9d
mov rdi, rcx
mov rcx, qword [rcx]
mov edx, 0x110a
lea r8d, [r9 + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
test rax, rax
je 0x140016df6
mov rcx, qword [rdi]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov edx, 0x113e
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140016df6
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140016df6
mov rcx, qword [rcx + 0x10]
lea rdx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140016df6
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ebx, ax
mov r8d, 0x800
lea rdx, [rbp - 0x70]
shr ebx, 0xf
lea rcx, [rbp + 0xf90]
call fcn.1400ac228
lea rcx, [rbp + 0xf90]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140016d7e
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140016e1e
xorps xmm0, xmm0
mov word [rbp + rax + 0xf90], si
xor eax, eax
lea rcx, [rsp + 0x20]
not bx
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xf90]
and bx, 1
movups xmmword [rsp + 0x20], xmm0
shl bx, 6
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], bx
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dl, byte [rdi + 0x10]
mov rcx, rdi
call fcn.140018bd0
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.140119970
lea r11, [rsp + 0x20b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140119664
int3
Function at 0x140017688
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0x4009
mov rdi, r8
mov rcx, rbx
mov r9d, 0x2b8
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rdi + 0x24], eax
xor edx, edx
mov dword [rsp + 0x20], 0x400b
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x28], eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140119970
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret
Function at 0x1400187d4
Capabilities:
Get file system object information

Disassembly:
push rbx
mov eax, 0x1300
call fcn.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rsp + 0x12f0], rax
mov qword [rcx], rdx
lea r8, [rsp + 0x30]
mov rbx, rcx
mov dword [rsp + 0x20], 0x4001
xor edx, edx
lea rcx, [0x140140fd8]
mov r9d, 0x2b8
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14001885a
xor r8d, r8d
lea rcx, [rsp + 0x2f0]
mov edx, 0x800
call fcn.1400e7d38
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rbx]
mov r9, rax
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x12f0]
xor rcx, rsp
call fcn.140119970
add rsp, 0x1300
pop rbx
ret

Function at 0x140019cfc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea rdi, [rcx + 0x1042]
mov byte [rcx + 0x40], sil
lea r9, [rsp + 0x30]
mov word [rdi], si
mov rbx, rcx
mov rdx, qword [rcx + 8]
lea r8, [rdx + 0xf800]
add rdx, 0xe462
call fcn.140019d9c
test al, al
jne 0x140019d5e
cmp byte [rsp + 0x30], sil
jne 0x140019d8a
mov rdx, qword [rbx + 8]
lea rcx, [0x1401ca7d8]
add rdx, 0xe462
call fcn.14007e1e4
jmp 0x140019d8a
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 8]
call fcn.1400199e0
mov rcx, rbx
call fcn.1400194d8
cmp byte [rbx + 0x40], sil
je 0x140019d8a
cmp word [rdi], si
je 0x140019d8a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140019f60
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov r8, rcx
cmp byte [rcx + 0x20], bl
je 0x140019fa1
mov qword [rdx], rbx
cmp dword [rcx + 0x30], ebx
jbe 0x140019fd3
mov eax, ebx
mov rcx, qword [r8 + 0x28]
mov edx, ebx
inc ebx
add rdx, rdx
add rax, qword [rcx + rdx*8 + 8]
mov qword [rdi], rax
cmp ebx, dword [r8 + 0x30]
jb 0x140019f86
jmp 0x140019fd3
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140019fc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140019fc5
xor al, al
jmp 0x140019fd5
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
add rcx, rsi
mov qword [rdi], rcx
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b858
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0x20], 0
mov r12, r9
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
je 0x14001b921
mov ecx, dword [rcx + 0x30]
xor edi, edi
test ecx, ecx
je 0x14001b91d
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x10]
mov eax, edi
add rax, rax
cmp r8, qword [rdx + rax*8]
je 0x14001b8aa
inc edi
cmp edi, ecx
jb 0x14001b899
cmp edi, ecx
jae 0x14001b91d
xor ebp, ebp
mov esi, edi
test r14d, r14d
je 0x14001b915
mov rax, qword [rbx + 0x28]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rax + rcx*8]
mov qword [rbx + 0x10], rcx
mov byte [rbx + 0x20], 0
cmp esi, edi
jbe 0x14001b8e2
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001bb00
and dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call fcn.14001b858
mov byte [rbx + 0x20], 1
test al, al
je 0x14001b91d
mov edx, dword [rsp + 0x70]
inc esi
add ebp, edx
add r15, rdx
sub r14d, edx
cmp esi, dword [rbx + 0x30]
jb 0x14001b8b2
mov dword [r12], ebp
mov al, 1
jmp 0x14001b936
xor al, al
jmp 0x14001b936
mov rcx, qword [rcx + 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14001be20
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.14001bb00
test al, al
je 0x14001be59
cmp qword [rsp + 0x40], rbx
jne 0x14001be59
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
jmp 0x14001be5b
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c158
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov r10d, r8d
mov rcx, qword [rcx + 0x40]
mov rsi, rdx
add rcx, r10
mov r14d, r8d
mov dil, 1
mov qword [rbx + 0x40], rcx
je 0x14001c1ac
mov r8, qword [rbx + 0x48]
cmp rcx, r8
jae 0x14001c1ac
mov rax, qword [rbx + 0x18]
and qword [rax + 0x28], 0
and qword [rax + 0x30], 0
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], r8
mov byte [rax + 0x38], dil
cmp byte [rbx + 9], 0
je 0x14001c1b7
mov dword [r9], r10d
jmp 0x14001c1d0
mov rcx, qword [rbx + 0x10]
mov r8d, r10d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
mov rcx, qword [rbx + 0x18]
mov r8, r14
mov rdx, rsi
mov rcx, qword [rcx + 8]
call fcn.1400212b4
mov rbx, qword [rsp + 0x40]
mov al, dil
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret
Function at 0x14001ede0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140184b60]
mov r8d, r9d
mov r11d, 8
shl r8d, 0x18
lea eax, [r8 + r8]
mov ecx, r8d
mov edx, eax
mov r8d, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovs r8d, edx
dec r11d
test r11d, r11d
jg 0x14001edf7
mov dword [r10], r8d
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x14001edea
ret

Function at 0x140020270
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ecx, cx
call fcn.14012da30
xor edi, edi
mov ebx, eax
cmp word [0x140185f90], di
je 0x1400202a3
lea rcx, [0x140185f90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x140185f90], di
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002107c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rdi, r8
xor ecx, ecx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.14009694c
xor ebp, ebp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.1400ac200
mov rcx, rbx
call fcn.1400855a0
test al, al
je 0x1400210cf
mov al, 1
jmp 0x140021154
lea rax, [rsp + 0x38]
mov word [rbx], bp
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathswinrar.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021133
mov rcx, qword [rsp + 0x38]
lea eax, [rdi + rdi]
mov dword [rsp + 0x68], eax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14009694c
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.1400ac200
mov rcx, rbx
call fcn.1400855a0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140028ea8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
lea rdx, [0x140188fb0]
mov r10d, 0x100
mov r9, r8
mov r11d, 8
mov rcx, r9
movabs rax, 0xc96c5795d7870f42
and ecx, 1
dec rcx
not rcx
and rcx, rax
mov rax, r9
shr rax, 1
mov r9, rcx
xor r9, rax
sub r11, 1
jne 0x140028ec1
mov qword [rdx], r9
inc r8
add rdx, 8
sub r10, 1
jne 0x140028eb8
ret

Function at 0x140028f00
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
test r8, r8
je 0x140028f2a
movzx eax, byte [rdx]
inc rdx
xor rax, rcx
shr rcx, 8
movzx r8d, al
lea rax, [0x140188fb0]
xor rcx, qword [rax + r8*8]
sub r9, 1
jne 0x140028f08
mov rax, rcx
ret

Function at 0x14002cf90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
mov r10d, dword [r9]
xor r11d, r11d
and r10d, 7
mov esi, r8d
mov r14, rcx
cmp rdx, 5
jae 0x14002cfc8
xor eax, eax
jmp 0x14002d13c
lea rbp, [rdx - 4]
add esi, 5
add rbp, rcx
or rbx, 0xffffffffffffffff
xor r15d, r15d
lea rdx, [0x140000000]
lea r8, [r11 + r14]
jmp 0x14002cff2
mov al, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x14002cff7
inc r8
cmp r8, rbp
jb 0x14002cfe6
mov r11, r8
sub r11, r14
mov rax, r11
cmp r8, rbp
jae 0x14002d11c
sub rax, rbx
cmp rax, 3
jbe 0x14002d05f
mov r10d, r15d
mov al, byte [r8 + 4]
mov rbx, r11
dec al
cmp al, 0xfd
jbe 0x14002d090
movzx eax, byte [r8 + 3]
lea r14, [0x140000000]
movzx edx, byte [r8 + 4]
shl edx, 8
or edx, eax
mov r12d, r10d
movzx eax, byte [r8 + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r8 + 1]
shl edx, 8
or edx, eax
cmp dword [rsp + 0x50], r15d
je 0x14002d0a3
lea r9d, [r11 + rdx]
add r9d, esi
jmp 0x14002d0ac
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x14002d015
cmp byte [r10 + rdx + 0x1420f0], r15b
je 0x14002d08d
movzx eax, byte [r10 + rdx + 0x1420f8]
mov rcx, r8
sub rcx, rax
mov al, byte [rcx + 4]
inc al
test al, 0xfe
jne 0x14002d015
mov rbx, r11
and r10d, 3
add r10d, r10d
or r10d, 1
inc r11
jmp 0x14002cfe0
mov r9d, edx
sub r9d, r11d
sub r9d, esi
test r10d, r10d
je 0x14002d0e8
movzx edi, byte [r12 + r14 + 0x1420f8]
mov ecx, 0x18
shl edi, 3
mov edx, r9d
sub ecx, edi
shr edx, cl
inc dl
test dl, 0xfe
jne 0x14002d0e8
mov ecx, 0x20
mov edx, 1
sub ecx, edi
shl edx, cl
dec edx
xor edx, r9d
jmp 0x14002d04f
mov r14, qword [rsp + 0x30]
mov eax, r9d
shr eax, 0x18
and al, 1
mov byte [r8 + 1], r9b
neg al
mov byte [r8 + 4], al
mov eax, r9d
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, r9d
shr eax, 8
mov byte [r8 + 2], al
add r11, 5
jmp 0x14002cfd9
mov rdx, r11
sub rdx, rbx
lea ecx, [rdx - 1]
shl r10d, cl
and r10d, 7
cmp rdx, 3
cmova r10d, r15d
mov r15, qword [rsp + 0x48]
mov dword [r15], r10d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140038a18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x140038ae6
mov rdx, qword [rcx + 8]
movabs rsi, 0x9e3779b185ebca87
mov r9, qword [rcx + 0x18]
movabs rdi, 0xc2b2ae3d27d4eb4f
mov r8, qword [rcx + 0x10]
mov rax, rdx
mov r10, qword [rcx + 0x20]
mov r11, r9
rol r11, 0xc
rol rax, 1
add r11, rax
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
imul rdx, rsi
imul r8, rsi
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
add r10, r11
jmp 0x140038af7
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
pop rdi
jmp fcn.14003889c

Function at 0x14003ac10
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
lea r9, [rcx + 0x3440]
mov edx, r8d
mov r10d, 8
mov eax, edx
mov ecx, edx
xor eax, 0x14002
shr edx, 1
shr eax, 1
test cl, 1
cmovne edx, eax
sub r10, 1
jne 0x14003ac23
mov word [r9], dx
inc r8d
add r9, 2
cmp r8d, 0x100
jb 0x14003ac1a
ret

Function at 0x14003b21c
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, 0x20
add qword [rcx + 0x5738], r8
mov rdi, rcx
mov rbx, qword [rcx + 0x3678]
mov rsi, r8
add rcx, 0x3688
mov rbp, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400a1ff7.0]
mov rdx, qword [rdi + 0x5740]
mov r9, rbx
mov rcx, qword [rdi + 0x5738]
mov r8, rax
call fcn.1400aebe4
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.1400212b4
mov edx, dword [rdi + 0x5730]
mov r8, rsi
mov r9, rbp
test rsi, rsi
je 0x14003b2b4
movzx ecx, byte [r9]
inc r9
movzx eax, dl
xor rcx, rax
shr edx, 8
movzx eax, word [rdi + rcx*2 + 0x3440]
xor edx, eax
sub r8, 1
jne 0x14003b294
mov rax, qword [rdi + 8]
mov dword [rdi + 0x5730], edx
cmp byte [rax + 0x7311], 0
jne 0x14003b2f5
mov rax, qword [rdi + 0x46e8]
lea rcx, [rdi + 0x46e8]
mov rax, qword [rax + 0x30]
call qword [case.0x1400a1ff7.0]
test al, al
je 0x14003b2f5
mov r8, rsi
lea rcx, [rdi + 0x46e8]
mov rdx, rbp
call fcn.140084b24
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140040350
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r8, r8
je 0x14004037e
movzx eax, byte [rdx]
mov r9d, r10d
shr r9, 8
inc rdx
xor r9, rax
shl r10d, 8
movzx eax, r9b
xor r10d, dword [rcx + rax*4 + 0x1ac0]
sub r8, 1
jne 0x140040358
movzx eax, r10w
ret
Function at 0x14004179c
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
lea r10, [rcx + 0x1ac0]
mov r8d, r9d
mov r11d, 8
shl r8d, 8
lea ecx, [r8 + r8]
mov edx, r8d
mov eax, ecx
mov r8d, ecx
xor eax, 0x1021
bt edx, 0xf
cmovb r8d, eax
sub r11, 1
jne 0x1400417b3
mov dword [r10], r8d
inc r9d
add r10, 4
cmp r9d, 0x100
jb 0x1400417a6
ret
Function at 0x14004e640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1030
call fcn.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r15d, edx
lea rdx, [0x140143d98]
call fcn.1400864b0
mov rbp, rax
xor eax, eax
test rbp, rbp
jne 0x14004e692
lea eax, [rbp + 0x32]
jmp 0x14004e7e7
mov r14d, 0x1000
cmp r15d, 0x8000
jbe 0x14004e79f
mov edx, r15d
xor r8d, r8d
shr edx, 3
mov rcx, rbp
add edx, r14d
call fcn.14012a664
mov r12d, 1
lea rcx, [rsp + 0x20]
mov edx, r12d
mov r9, rbp
mov r8d, r14d
call fcn.14012a34c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004e3f0
mov edx, r15d
xor r8d, r8d
shr edx, 2
mov rcx, rbp
add edx, r14d
mov esi, eax
call fcn.14012a664
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, r14d
mov edx, r12d
call fcn.14012a34c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004e3f0
lea edx, [r15 + r15]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
add edx, r14d
mov edi, eax
call fcn.14012a664
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, r14d
mov edx, r12d
call fcn.14012a34c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004e3f0
lea edx, [r15 + r15*2]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
add edx, r14d
mov ebx, eax
call fcn.14012a664
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, r14d
mov edx, r12d
call fcn.14012a34c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004e3f0
add eax, ebx
mov rcx, rbp
add eax, edi
add eax, esi
cdq
and edx, 3
lea ebx, [rdx + rax]
sar ebx, 2
call fcn.1401262e8
mov eax, ebx
jmp 0x14004e7e7
cmp r15d, r14d
jbe 0x14004e7ad
mov rax, r15
sub rax, r14
shr rax, 1
xor r8d, r8d
mov edx, eax
mov rcx, rbp
call fcn.14012a664
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8, r14
mov edx, 1
call fcn.14012a34c
mov rcx, rbp
mov rbx, rax
call fcn.1401262e8
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14004e3f0
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140119970
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14005244c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x7218]
mov eax, 0x7310
call fcn.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rbp + 0x7200], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400525bd
mov ecx, eax
call fcn.14008572c
xor esi, esi
test al, al
je 0x1400525bd
mov ecx, edi
call fcn.1400858e8
test al, al
jne 0x1400525bd
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], si
jne 0x1400524b9
mov rcx, rbx
call fcn.14009694c
cmp word [rax], si
je 0x1400525bd
mov r9d, 0x800
lea r8, [rbp + 0x6200]
lea rdx, [0x140140330]
mov rcx, rbx
call fcn.14009620c
lea rcx, [rsp + 0x30]
call fcn.1400ac25c
nop
lea rdx, [rbp + 0x6200]
lea rcx, [rsp + 0x30]
call fcn.1400ac28c
mov r8d, 2
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1040]
call fcn.1400a8530
nop
mov qword [rbp + 0x1000], rsi
mov qword [rbp + 0x1008], rsi
mov qword [rbp + 0x1010], rsi
jmp 0x140052584
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140126974
test eax, eax
jne 0x140052598
lea rcx, [rbp - 0x10]
call fcn.140085ba8
cmp byte [rbp + 0xffc], sil
je 0x14005257b
test byte [rbp + 0x1030], 1
je 0x140052584
lea rcx, [rbp - 0x10]
call fcn.140085228
jmp 0x140052584
lea rcx, [rbp - 0x10]
call fcn.1400852ac
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x1040]
call fcn.1400a9094
test eax, eax
je 0x140052542
mov rcx, rbx
call fcn.140085228
nop
lea rcx, [rbp + 0x1040]
call fcn.1400a85f8
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400525bd
call fcn.140125418
mov rcx, qword [rbp + 0x7200]
xor rcx, rsp
call fcn.140119970
lea r11, [rsp + 0x7310]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400525e8
Capabilities:
Get common file path

Disassembly:
mov r8d, 0x10
jmp fcn.140052648

Function at 0x140052648
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov eax, r8d
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x104
jb 0x140052688
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, eax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140052688
mov bl, 1
jmp 0x14005269a
mov r8, rdi
lea rdx, str.unknown_folder
mov rcx, rsi
call fcn.1400ac228
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret