joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f3f4
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 0x14000f421
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, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000f4a0
mov rcx, rbx
call fcn.14000f548
test al, al
je 0x14000f464
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000f464
mov rdx, rsi
mov rcx, rbx
call fcn.14000f3f4
jmp 0x14000f4a4
cmp dword [rbx + 0x14], 1
jne 0x14000f479
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000f479
xor eax, eax
jmp 0x14000f4a4
cmp dword [rbx + 0x14], 0
jne 0x14000f49b
cmp rdi, 0x8000
jbe 0x14000f49b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000f49b
mov r8d, 0x8000
jmp 0x14000f457
or eax, 0xffffffff
jmp 0x14000f4a4
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f6f4
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000f748
test al, al
je 0x14000f721
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
call qword [rax + 0x18]
add rsp, 0x20
pop rbx
ret

Function at 0x14000fa84
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 0x14000fb04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov r13, rdx
mov rsi, rcx
test r8, r8
jne 0x14000fb37
mov al, 1
jmp 0x14000fca7
cmp dword [rcx + 0x14], 1
jne 0x14000fb4c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r14b, dil
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
je 0x14000fba9
mov rbx, rdi
test rbp, rbp
je 0x14000fbd3
mov r8d, 0x4000
mov qword [rsp + 0x20], rdi
mov eax, ebp
lea rdx, [rbx + r13]
sub eax, ebx
lea r9, [rsp + 0x70]
mov rcx, rbp
sub rcx, rbx
cmp rcx, r8
mov rcx, qword [rsi + 8]
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r14b
test r14b, r14b
je 0x14000fbd3
add rbx, 0x4000
cmp rbx, rbp
jb 0x14000fb60
jmp 0x14000fbca
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov r8d, ebp
mov qword [rsp + 0x20], rdi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r14b
test r14b, r14b
jne 0x14000fca0
cmp byte [rsi + 0x1c], dil
je 0x14000fca0
cmp dword [rsi + 0x14], edi
jne 0x14000fca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x20]
lea r12, [rsi + 0x26]
mov r15, rax
mov rcx, r12
call fcn.140010250
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14000fc3e
mov rcx, r15
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14000fc3e
lea rax, [r15 + rbp]
cmp rax, rbx
jbe 0x14000fc3e
mov rdx, r12
lea rcx, [0x14005e3b0]
call fcn.14000b7dc
xor r8d, r8d
lea rcx, [0x14005e3b0]
mov rdx, r12
call fcn.14000b2a8
xor edi, edi
test al, al
je 0x14000fc8e
mov ecx, dword [rsp + 0x70]
mov eax, ecx
cmp rcx, rbp
jae 0x14000fb4c
test ecx, ecx
je 0x14000fb4c
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x14000fb4c
lea r8, [rsi + 0x26]
xor edx, edx
lea rcx, [0x14005e3b0]
call fcn.14000b7bc
mov byte [rsi + 0x10], 1
mov al, r14b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14001013c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14001019a
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400142cc
test al, al
je 0x14001019a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d0f0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x1400101d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
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 0x14001022d
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400142cc
test al, al
je 0x14001022d
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.14002d0f0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140010250
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r8d, 0x800
lea rdx, [rsp + 0x40]
call fcn.140014000
movzx eax, word [rsp + 0x40]
lea r9, [rsp + 0x28]
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400102cc
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x1400102cc
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x1400102ce
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002d0f0
add rsp, 0x1058
ret

Function at 0x1400102fc
Capabilities:
Get disk information

Disassembly:
push rbx
mov eax, 0x1260
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1250], rax
mov r8d, 0x800
lea rdx, [rsp + 0x250]
call fcn.140014070
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x250]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14001039b
lea rdx, [0x140043558]
lea rcx, [rsp + 0x40]
call fcn.140033ff0
test eax, eax
je 0x140010392
lea rdx, str.FAT32
lea rcx, [rsp + 0x40]
call fcn.140033ff0
test eax, eax
jne 0x140010397
mov ebx, 1
mov al, bl
jmp 0x14001039d
xor al, al
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.14002d0f0
add rsp, 0x1260
pop rbx
ret

Function at 0x1400103c4
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r8d, 0x800
lea rdx, [rsp + 0x20]
call fcn.140014070
movzx eax, word [rsp + 0x20]
neg ax
lea rax, [rsp + 0x20]
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x14001041a
cmp eax, 5
je 0x14001041a
xor eax, eax
jmp 0x14001041f
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d0f0
add rsp, 0x1038
ret
Function at 0x140010438
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.140014a40
xor ebx, ebx
cmp word [rax], 0x20
je 0x14001048a
cmp word [rax], 0x2e
je 0x14001048a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400104bf
mov rcx, rdi
call fcn.1400101d4
cmp eax, 0xffffffff
jne 0x1400104d2
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400142cc
test al, al
je 0x1400104d2
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400104d2
test sil, sil
je 0x1400104ce
mov edx, ebp
mov rcx, rdi
call fcn.140010788
xor eax, eax
jmp 0x1400104e4
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.14002d0f0
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret

Function at 0x140010510
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x140010598
mov r8d, 0x800
lea rdx, [rsp + 0x1020]
mov rcx, rdi
call fcn.1400142cc
test al, al
je 0x140010598
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400142cc
test al, al
je 0x140010598
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14002d0f0
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140010788
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x1400107ef
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400142cc
test al, al
je 0x1400107ef
mov edx, edi
lea rcx, [rsp + 0x20]
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.14002d0f0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011130
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x1400111e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011212
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.1400142cc
test al, al
je 0x1400111be
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011212
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x1400111d8
cmp eax, 0x13
je 0x1400111d8
xor eax, eax
jmp 0x1400111dd
mov eax, 1
mov byte [rdi + 0x1044], al
jmp 0x1400112a7
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140011208
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x1400112a7
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.14001f364
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.140014b60
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.14001fee8
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14001fee8
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14001fee8
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.14002d0f0
add rsp, 0x1280
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140013e84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov bpl, r8b
lea rcx, [rsp + 0x58]
mov rsi, rdx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor r14d, r14d
lea r8, [rsp + 0x40]
xor ecx, ecx
mov word [rbx], r14w
mov dil, r14b
lea edx, [r14 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x140013f25
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140013f25
cmp word [rbx], r14w
je 0x140013f25
mov rdx, rsi
mov rcx, rbx
call fcn.140013300
mov r8, rsi
lea rdx, [0x140044108]
mov rcx, rbx
call fcn.14001f32c
mov rcx, rbx
call fcn.1400101c0
mov dil, al
test al, al
jne 0x140013f25
test bpl, bpl
je 0x140013f25
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140010438
test eax, eax
sete dil
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x48]
mov al, dil
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001413c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
lea rax, [rsp + 0x30]
mov sil, r8b
mov word [rcx], bp
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov rbx, rcx
lea rdx, str.SoftwareWinRARPaths
lea r9d, [rbp + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400141b7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.AppData
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], bp
je 0x1400141c8
mov rcx, rbx
call fcn.1400101c0
test al, al
jne 0x1400141f0
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.140013e84
test al, al
jne 0x1400141f0
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140014ab8
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400142cc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1030
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1020], rax
cmp word [rcx], 0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
je 0x1400144e8
call fcn.14001451c
or r15, 0xffffffffffffffff
mov rsi, r15
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x140014316
mov rcx, rbx
call fcn.140014550
test al, al
je 0x1400143d8
mov rcx, rbx
call fcn.14001451c
test al, al
je 0x140014379
lea rax, [rsi + 4]
cmp r14, rax
jbe 0x1400144e8
mov r8d, 4
lea rdx, [0x140044260]
mov rcx, rdi
call fcn.140034e68
sub rdi, rbx
movzx eax, word [rbx]
mov word [rdi + rbx + 8], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140014361
mov al, 1
jmp 0x1400144ea
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x1400144e8
add rbx, 2
cmp word [rbx], bp
jne 0x1400144e8
lea rax, [rsi + 6]
cmp r14, rax
jbe 0x1400144e8
lea r8d, [rbp - 0x58]
mov rcx, rdi
lea rdx, [0x140044260]
call fcn.140034e68
movabs rax, 0x43004e0055
mov qword [rdi + 8], rax
sub rdi, rbx
movzx eax, word [rbx]
mov word [rdi + rbx + 0xe], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400143c5
jmp 0x140014372
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x1400144e8
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x14001449d
cmp eax, 0x2f
je 0x14001449d
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.140013300
lea rax, [rsp + 0x20]
inc r15
cmp word [rax + r15*2], 0
jne 0x140014422
lea rax, [rsi + 4]
add rax, r15
cmp r14, rax
jbe 0x1400144e8
mov r8d, 4
lea rdx, [0x140044260]
mov rcx, rdi
call fcn.140034e68
lea rax, [rsp + 0x20]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x20]
movzx eax, word [rcx]
mov word [rdx + rcx + 8], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140014462
cmp word [rbx], 0x2e
jne 0x14001448a
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140014486
cmp eax, 0x2f
jne 0x14001448a
add rbx, 4
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call fcn.14001f32c
jmp 0x140014372
lea rax, [rsi + 6]
cmp r14, rax
jbe 0x1400144e8
mov r8d, 4
lea rdx, [0x140044260]
mov rcx, rdi
call fcn.140034e68
lea rcx, [rdi + 8]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140034e68
sub rdi, rbx
movzx eax, word [rbx]
mov word [rdi + rbx + 0xc], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400144d2
jmp 0x140014372
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d0f0
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1030
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400161f4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
and dword [rcx + 4], 0
mov eax, 0x8000
and dword [rcx], 0
mov ebp, r8d
cmp r8d, eax
mov r14, rcx
mov rcx, qword [rcx + 0x10]
mov rbx, r9
cmovb eax, r8d
mov rdi, rdx
mov r8d, eax
call fcn.1400300d0
xor sil, sil
cmp ebp, 1
jbe 0x140016253
lea rcx, [rdi + 1]
lea edx, [rbp - 1]
xor sil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x140016247
mov edx, 8
mov rcx, r14
call fcn.140011360
and dword [rbx + 0x28], 0
cmp sil, byte [rdi]
jne 0x1400162c5
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
call fcn.1400161a8
mov edi, eax
test eax, eax
je 0x1400162c5
mov edx, 1
mov rcx, rbx
call fcn.140015884
movsxd rcx, dword [rbx + 0x28]
mov rdx, rcx
inc ecx
mov dword [rbx + 0x28], ecx
imul rcx, rdx, 0x38
add rcx, qword [rbx]
lea rax, [rcx + 0xc]
mov dword [rcx], 0x28
mov dword [rax], edi
mov qword [rcx + 0x18], rax
lea rax, [rcx + 0x24]
mov qword [rcx + 0x30], rax
mov eax, 3
mov dword [rcx + 0x20], eax
mov dword [rcx + 8], eax
jmp 0x140016349
mov edx, 1
mov rcx, rbx
call fcn.140015884
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], 0x16
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 0x140016349
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x140016328
lea rax, [rdx + 0xc]
add rax, rcx
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x14001633c
lea rax, [rdx + 0x24]
add rax, rcx
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x140016311
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140019f38
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1f60]
mov eax, 0x2060
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, rcx
je 0x140019f7e
mov rdx, rcx
mov rcx, rdi
call fcn.14001f364
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRARGeneral
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r15d, r15d
test eax, eax
jne 0x14001a070
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r15w
jne 0x140019fb4
mov eax, 0x7ff
lea r9, [rsp + 0x40]
sub eax, ecx
lea rdx, str.LanguageFolder
mov rcx, qword [rsp + 0x38]
add eax, eax
mov dword [rsp + 0x30], eax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a065
mov r8d, 0x800
mov word [rsp + 0x50], r15w
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.140013300
mov rcx, rbx
call fcn.140014a64
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call fcn.14001f32c
lea rcx, [rsp + 0x50]
call fcn.1400101c0
test al, al
je 0x14001a065
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001f364
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.14002d0f0
add rsp, 0x2060
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001a090
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1068]
mov eax, 0x1150
call fcn.14002d080
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.14001a284
lea rdx, [rbp + 0x40]
mov r15d, 2
test rbx, rbx
je 0x14001a0fa
sub rdx, rbx
movzx eax, word [rbx]
mov word [rdx + rbx], ax
add rbx, r15
test ax, ax
jne 0x14001a0e9
jmp 0x14001a108
mov r8d, 0x800
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x800
lea rdx, str.rarlng.dll
lea rcx, [rbp + 0x40]
call fcn.140014b60
mov r8d, 0x800
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.140019f38
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], r15d
jne 0x14001a16c
cmp dword [rsp + 0x24], 5
ja 0x14001a15b
jne 0x14001a16c
cmp word [rbp + 0x34], r15w
jb 0x14001a16c
mov r8d, r15d
lea rcx, [rbp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x14001a176
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x14005e350], rax
setne cl
mov byte [rdi], cl
test cl, cl
mov rax, qword [0x14005e350]
cmove rax, rsi
mov qword [0x14005e358], rsi
mov qword [0x14005e350], rax
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.14002d0f0
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001abd4
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
lea r11, [rcx + 0x18]
mov r10, rcx
movdqu xmm2, xmmword [rcx + 8]
test r8, r8
je 0x14001ac51
movsxd rcx, dword [r10 + 4]
mov rax, rdx
add rdx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
dec ecx
movdqu xmm1, xmmword [r11 + rax*8]
pxor xmm1, xmm3
test ecx, ecx
jle 0x14001ac27
movsxd rax, ecx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec ecx
lea rax, [rax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x14001ac14
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001ac3c
pxor xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x14001abe5
movdqu xmmword [r10 + 8], xmm2
ret

Function at 0x14001ac58
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov edi, 1
mov r11, rcx
cmp dword [rcx + 4], edi
jle 0x14001ad24
lea r9, [rsp]
sub r9, rcx
lea rbx, [rcx + 0x28]
sub r9, 0x2a
lea r15, [0x140000000]
xor r10d, r10d
lea rsi, [rbx + 2]
mov ebp, 4
lea r14, [r9 + r10]
movzx eax, byte [rsi + 1]
lea rdx, [r10 + rax*4]
movzx eax, byte [rsi - 1]
mov r8b, byte [rdx + r15 + 0x63210]
lea rcx, [r10 + rax*4]
movzx eax, byte [rsi - 2]
xor r8b, byte [rcx + r15 + 0x62a10]
lea rcx, [r10 + rax*4]
movzx eax, byte [rsi]
xor r8b, byte [rcx + r15 + 0x62610]
lea rcx, [r10 + rax*4]
xor r8b, byte [rcx + r15 + 0x62e10]
mov byte [r14 + rsi], r8b
lea rsi, [rsi + 4]
sub rbp, 1
jne 0x14001acb6
inc r10
cmp r10, 4
jl 0x14001aca9
movups xmm0, xmmword [rsp]
inc edi
sub r9, 0x10
movdqu xmmword [rbx], xmm0
add rbx, 0x10
cmp edi, dword [r11 + 4]
jl 0x14001aca6
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.14002d0f0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret