joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015594
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.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov sil, dl
mov rdi, rcx
call fcn.140087970
cmp eax, 0x600
jb 0x140015744
mov rcx, rdi
call fcn.1400e670c
xor ebx, ebx
test al, al
jne 0x140015744
mov r14d, 0x800
lea r8, [rsp + 0x50]
mov r9d, r14d
lea rcx, [0x1401bc3f0]
mov rdx, rdi
call fcn.140057058
mov r8d, r14d
lea rdx, [rbp + 0xf50]
lea rcx, [rsp + 0x50]
call fcn.1400943e8
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140015744
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 0x14001567a
mov eax, dword [rsp + 0x40]
and eax, 0x80008
cmp eax, 8
jne 0x140015744
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400156ad
test al, 0x10
jne 0x1400156ad
lea rcx, [rsp + 0x50]
call fcn.1400153e4
and eax, 6
cmp al, 6
jne 0x140015740
lea rcx, [rsp + 0x50]
call fcn.1400951a8
lea rcx, [rsp + 0x50]
mov dil, bl
call fcn.140083dd0
test al, al
jne 0x140015714
mov dil, 1
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1f50]
call fcn.1400aa9e4
lea rcx, [rsp + 0x50]
call fcn.1400951a8
lea rax, [rsp + 0x50]
lea r8, [rbp + 0x1f50]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140015702
add rax, 2
test edx, edx
jne 0x1400156ee
test ecx, ecx
je 0x140015714
lea rcx, [rsp + 0x50]
call fcn.140083dd0
test al, al
je 0x1400156c1
lea rcx, [rsp + 0x50]
call fcn.1400153e4
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x14001573a
test dil, dil
je 0x140015736
test sil, sil
je 0x14001573c
test cl, cl
jne 0x14001573c
mov bl, 1
mov al, bl
jmp 0x140015746
mov al, 1
jmp 0x140015746
xor al, al
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.140117fa0
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 0x140016bf8
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.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
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 0x140016d46
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 0x140016d46
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140016d46
mov rcx, qword [rcx + 0x10]
lea rdx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140016d46
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.1400aa9e4
lea rcx, [rbp + 0xf90]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140016cce
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140016d6e
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.140018b20
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.140117fa0
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.140117c94
int3
Function at 0x1400175d8
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x140181c48]
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.140117fa0
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret
Function at 0x140018724
Capabilities:
Get file system object information

Disassembly:
push rbx
mov eax, 0x1300
call fcn.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
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, [0x14013ffc8]
mov r9d, 0x2b8
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x1400187aa
xor r8d, r8d
lea rcx, [rsp + 0x2f0]
mov edx, 0x800
call fcn.1400e64a8
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.140117fa0
add rsp, 0x1300
pop rbx
ret

Function at 0x140019c4c
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.140019cec
test al, al
jne 0x140019cae
cmp byte [rsp + 0x30], sil
jne 0x140019cda
mov rdx, qword [rbx + 8]
lea rcx, [0x1401c97d8]
add rdx, 0xe462
call fcn.14007ca64
jmp 0x140019cda
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 8]
call fcn.140019930
mov rcx, rbx
call fcn.140019428
cmp byte [rbx + 0x40], sil
je 0x140019cda
cmp word [rdi], si
je 0x140019cda
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 0x140019eb0
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 0x140019ef1
mov qword [rdx], rbx
cmp dword [rcx + 0x30], ebx
jbe 0x140019f23
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 0x140019ed6
jmp 0x140019f23
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140019f15
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140019f15
xor al, al
jmp 0x140019f25
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 0x14001b7a8
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 0x14001b871
mov ecx, dword [rcx + 0x30]
xor edi, edi
test ecx, ecx
je 0x14001b86d
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x10]
mov eax, edi
add rax, rax
cmp r8, qword [rdx + rax*8]
je 0x14001b7fa
inc edi
cmp edi, ecx
jb 0x14001b7e9
cmp edi, ecx
jae 0x14001b86d
xor ebp, ebp
mov esi, edi
test r14d, r14d
je 0x14001b865
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 0x14001b832
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001ba50
and dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call fcn.14001b7a8
mov byte [rbx + 0x20], 1
test al, al
je 0x14001b86d
mov edx, dword [rsp + 0x70]
inc esi
add ebp, edx
add r15, rdx
sub r14d, edx
cmp esi, dword [rbx + 0x30]
jb 0x14001b802
mov dword [r12], ebp
mov al, 1
jmp 0x14001b886
xor al, al
jmp 0x14001b886
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 0x14001bd70
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.14001ba50
test al, al
je 0x14001bda9
cmp qword [rsp + 0x40], rbx
jne 0x14001bda9
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
jmp 0x14001bdab
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c0a8
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 0x14001c0fc
mov r8, qword [rbx + 0x48]
cmp rcx, r8
jae 0x14001c0fc
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 0x14001c107
mov dword [r9], r10d
jmp 0x14001c120
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.1400211c4
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 0x14001ed00
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140183b60]
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 0x14001ed17
mov dword [r10], r8d
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x14001ed0a
ret

Function at 0x140020190
Capabilities:
Delete file

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

Function at 0x140020f9c
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.140095154
xor ebp, ebp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.1400aa9bc
mov rcx, rbx
call fcn.140083dd0
test al, al
je 0x140020fef
mov al, 1
jmp 0x140021074
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 0x140021053
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.140095154
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.1400aa9bc
mov rcx, rbx
call fcn.140083dd0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140028db8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
lea rdx, [0x140187fb0]
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 0x140028dd1
mov qword [rdx], r9
inc r8
add rdx, 8
sub r10, 1
jne 0x140028dc8
ret

Function at 0x140028e10
Capabilities:
Encode data using xor

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

Function at 0x14002cda8
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 0x14002cde0
xor eax, eax
jmp 0x14002cf54
lea rbp, [rdx - 4]
add esi, 5
add rbp, rcx
or rbx, 0xffffffffffffffff
xor r15d, r15d
lea rdx, [0x140000000]
lea r8, [r11 + r14]
jmp 0x14002ce0a
mov al, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x14002ce0f
inc r8
cmp r8, rbp
jb 0x14002cdfe
mov r11, r8
sub r11, r14
mov rax, r11
cmp r8, rbp
jae 0x14002cf34
sub rax, rbx
cmp rax, 3
jbe 0x14002ce77
mov r10d, r15d
mov al, byte [r8 + 4]
mov rbx, r11
dec al
cmp al, 0xfd
jbe 0x14002cea8
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 0x14002cebb
lea r9d, [r11 + rdx]
add r9d, esi
jmp 0x14002cec4
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x14002ce2d
cmp byte [r10 + rdx + 0x1410e0], r15b
je 0x14002cea5
movzx eax, byte [r10 + rdx + 0x1410e8]
mov rcx, r8
sub rcx, rax
mov al, byte [rcx + 4]
inc al
test al, 0xfe
jne 0x14002ce2d
mov rbx, r11
and r10d, 3
add r10d, r10d
or r10d, 1
inc r11
jmp 0x14002cdf8
mov r9d, edx
sub r9d, r11d
sub r9d, esi
test r10d, r10d
je 0x14002cf00
movzx edi, byte [r12 + r14 + 0x1410e8]
mov ecx, 0x18
shl edi, 3
mov edx, r9d
sub ecx, edi
shr edx, cl
inc dl
test dl, 0xfe
jne 0x14002cf00
mov ecx, 0x20
mov edx, 1
sub ecx, edi
shl edx, cl
dec edx
xor edx, r9d
jmp 0x14002ce67
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 0x14002cdf1
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 0x140037228
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 0x1400372f6
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 0x140037307
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.1400370ac

Function at 0x140039430
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 0x140039443
mov word [r9], dx
inc r8d
add r9, 2
cmp r8d, 0x100
jb 0x14003943a
ret

Function at 0x140039a3c
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.0x1400a07c7.0]
mov rdx, qword [rdi + 0x5740]
mov r9, rbx
mov rcx, qword [rdi + 0x5738]
mov r8, rax
call fcn.1400ad3a4
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.1400211c4
mov edx, dword [rdi + 0x5730]
mov r8, rsi
mov r9, rbp
test rsi, rsi
je 0x140039ad4
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 0x140039ab4
mov rax, qword [rdi + 8]
mov dword [rdi + 0x5730], edx
cmp byte [rax + 0x7311], 0
jne 0x140039b15
mov rax, qword [rdi + 0x46e8]
lea rcx, [rdi + 0x46e8]
mov rax, qword [rax + 0x30]
call qword [case.0x1400a07c7.0]
test al, al
je 0x140039b15
mov r8, rsi
lea rcx, [rdi + 0x46e8]
mov rdx, rbp
call fcn.140083354
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003eb70
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r8, r8
je 0x14003eb9e
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 0x14003eb78
movzx eax, r10w
ret
Function at 0x14003ffbc
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 0x14003ffd3
mov dword [r10], r8d
inc r9d
add r10, 4
cmp r9d, 0x100
jb 0x14003ffc6
ret
Function at 0x14004ce40
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.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r15d, edx
lea rdx, [0x140142d88]
call fcn.140084ce0
mov rbp, rax
xor eax, eax
test rbp, rbp
jne 0x14004ce92
lea eax, [rbp + 0x32]
jmp 0x14004cfe7
mov r14d, 0x1000
cmp r15d, 0x8000
jbe 0x14004cf9f
mov edx, r15d
xor r8d, r8d
shr edx, 3
mov rcx, rbp
add edx, r14d
call fcn.140128c94
mov r12d, 1
lea rcx, [rsp + 0x20]
mov edx, r12d
mov r9, rbp
mov r8d, r14d
call fcn.14012897c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004cbf0
mov edx, r15d
xor r8d, r8d
shr edx, 2
mov rcx, rbp
add edx, r14d
mov esi, eax
call fcn.140128c94
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, r14d
mov edx, r12d
call fcn.14012897c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004cbf0
lea edx, [r15 + r15]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
add edx, r14d
mov edi, eax
call fcn.140128c94
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, r14d
mov edx, r12d
call fcn.14012897c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004cbf0
lea edx, [r15 + r15*2]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
add edx, r14d
mov ebx, eax
call fcn.140128c94
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, r14d
mov edx, r12d
call fcn.14012897c
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004cbf0
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.140124918
mov eax, ebx
jmp 0x14004cfe7
cmp r15d, r14d
jbe 0x14004cfad
mov rax, r15
sub rax, r14
shr rax, 1
xor r8d, r8d
mov edx, eax
mov rcx, rbp
call fcn.140128c94
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8, r14
mov edx, 1
call fcn.14012897c
mov rcx, rbp
mov rbx, rax
call fcn.140124918
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14004cbf0
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140117fa0
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 0x140050c4c
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.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
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 0x140050dbd
mov ecx, eax
call fcn.140083f5c
xor esi, esi
test al, al
je 0x140050dbd
mov ecx, edi
call fcn.140084118
test al, al
jne 0x140050dbd
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], si
jne 0x140050cb9
mov rcx, rbx
call fcn.140095154
cmp word [rax], si
je 0x140050dbd
mov r9d, 0x800
lea r8, [rbp + 0x6200]
lea rdx, [0x14013f330]
mov rcx, rbx
call fcn.140094a14
lea rcx, [rsp + 0x30]
call fcn.1400aaa18
nop
lea rdx, [rbp + 0x6200]
lea rcx, [rsp + 0x30]
call fcn.1400aaa48
mov r8d, 2
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1040]
call fcn.1400a6cf0
nop
mov qword [rbp + 0x1000], rsi
mov qword [rbp + 0x1008], rsi
mov qword [rbp + 0x1010], rsi
jmp 0x140050d84
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140124fa4
test eax, eax
jne 0x140050d98
lea rcx, [rbp - 0x10]
call fcn.1400843d8
cmp byte [rbp + 0xffc], sil
je 0x140050d7b
test byte [rbp + 0x1030], 1
je 0x140050d84
lea rcx, [rbp - 0x10]
call fcn.140083a58
jmp 0x140050d84
lea rcx, [rbp - 0x10]
call fcn.140083adc
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x1040]
call fcn.1400a7854
test eax, eax
je 0x140050d42
mov rcx, rbx
call fcn.140083a58
nop
lea rcx, [rbp + 0x1040]
call fcn.1400a6db8
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140050dbd
call fcn.140123a48
mov rcx, qword [rbp + 0x7200]
xor rcx, rsp
call fcn.140117fa0
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 0x140050de8
Capabilities:
Get common file path

Disassembly:
mov r8d, 0x10
jmp fcn.140050e48

Function at 0x140050e48
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 0x140050e88
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 0x140050e88
mov bl, 1
jmp 0x140050e9a
mov r8, rdi
lea rdx, str.unknown_folder
mov rcx, rsi
call fcn.1400aa9e4
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret