joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f9a4
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 0x14000f9d1
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 0x14000fa50
mov rcx, rbx
call fcn.14000f91c
test al, al
je 0x14000fa14
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000fa14
mov rdx, rsi
mov rcx, rbx
call fcn.14000f9a4
jmp 0x14000fa54
cmp dword [rbx + 0x14], 1
jne 0x14000fa29
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000fa29
xor eax, eax
jmp 0x14000fa54
cmp dword [rbx + 0x14], 0
jne 0x14000fa4b
cmp rdi, 0x8000
jbe 0x14000fa4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000fa4b
mov r8d, 0x8000
jmp 0x14000fa07
or eax, 0xffffffff
jmp 0x14000fa54
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000fd64
Capabilities:
Clear file content

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

Function at 0x14000fdc8
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140014458
movzx r11d, word [rsp + 0x20]
lea rax, [rsp + 0x20]
neg r11w
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x14000fe20
cmp eax, 5
je 0x14000fe20
xor eax, eax
jmp 0x14000fe25
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d160
add rsp, 0x1038
ret

Function at 0x14000fe40
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140013e9c
movzx eax, word [rsp + 0x40]
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14000febc
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x14000febc
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000febe
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002d160
add rsp, 0x1058
ret
Function at 0x14000fed8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1260
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1250], rax
lea rdx, [rsp + 0x250]
mov r8d, 0x800
call fcn.140014458
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea rcx, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
je 0x14000ff7e
lea rsi, [rsp + 0x40]
lea rdi, [0x14003d170]
lea ecx, [rbx + 4]
repe cmpsw word [rsi], word [rdi]
je 0x14000ff75
lea rsi, [rsp + 0x40]
lea rdi, str.FAT32
lea ecx, [rbx + 6]
repe cmpsw word [rsi], word [rdi]
jne 0x14000ff7a
mov ebx, 1
mov al, bl
jmp 0x14000ff80
xor al, al
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.14002d160
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
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 0x140010021
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013930
test al, al
je 0x140010021
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.14002d160
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140010044
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
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 0x1400100ab
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140013930
test al, al
je 0x1400100ab
lea rcx, [rsp + 0x20]
mov edx, edi
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.14002d160
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400100d4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
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 0x14001015c
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013930
test al, al
je 0x14001015c
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140013930
test al, al
je 0x14001015c
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.14002d160
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140010184
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
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 0x1400101e2
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013930
test al, al
je 0x1400101e2
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.14002d160
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.140013400
cmp word [rax], 0x2e
je 0x140010563
cmp word [rax], 0x20
je 0x140010563
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140010598
mov rcx, rbx
call fcn.14000ffc8
cmp eax, 0xffffffff
jne 0x1400105ab
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140013930
test al, al
je 0x1400105ab
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400105ab
test dil, dil
je 0x1400105a7
mov edx, esi
mov rcx, rbx
call fcn.140010044
xor eax, eax
jmp 0x1400105c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400105c0
cmp eax, 3
mov eax, 1
jne 0x1400105c5
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d160
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001109c
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140011150
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001117a
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140013930
test al, al
je 0x140011127
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001117a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140011143
cmp eax, 3
je 0x140011143
cmp eax, 0x12
je 0x140011143
mov eax, 1
jmp 0x140011145
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140011210
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140011170
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140011210
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.14001efc0
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140013e08
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.14001feb0
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14001feb0
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14001feb0
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.14002d160
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret

Function at 0x140013580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x58]
mov sil, r8b
mov rbp, rdx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor r12d, r12d
lea r8, [rsp + 0x40]
lea edx, [r12 + 0x1a]
xor ecx, ecx
mov word [rbx], r12w
mov dil, r12b
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, r12d
jne 0x140013626
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, r12d
je 0x140013626
cmp word [rbx], r12w
je 0x140013626
mov rdx, rbp
mov rcx, rbx
call fcn.1400134a8
lea rdx, [0x14003d810]
mov r8, rbp
mov rcx, rbx
call fcn.14001effc
mov rcx, rbx
call fcn.1400104f4
mov dil, al
cmp al, r12b
jne 0x140013626
cmp sil, r12b
je 0x140013626
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140010510
cmp eax, r12d
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 rbp, qword [rsp + 0x50]
mov al, dil
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140013930
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1030
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor r14d, r14d
mov r12, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x140013b66
call fcn.140013474
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.1400137f8
cmp al, r14b
je 0x140013a53
mov rcx, rbx
call fcn.140013474
cmp al, r14b
je 0x1400139e2
lea rax, [r13 + 4]
cmp r12, rax
jbe 0x140013b66
lea r8d, [r14 + 4]
lea rdx, [0x14003d840]
mov rcx, rsi
call fcn.14002dc5c
sub rsi, rbx
movzx ecx, word [rbx]
add rbx, 2
mov word [rsi + rbx + 6], cx
cmp cx, r14w
jne 0x1400139c9
mov al, 1
jmp 0x140013b68
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x140013b66
add rbx, 2
cmp word [rbx], bp
jne 0x140013b66
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140013b66
lea r8d, [rbp - 0x58]
lea rdx, [0x14003d840]
mov rcx, rsi
call fcn.14002dc5c
lea rdx, [0x14003d838]
mov rcx, rsi
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140013a2a
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xc], ax
cmp ax, r14w
jne 0x140013a3f
jmp 0x1400139db
mov edi, 0x7ff
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r14d
je 0x140013b66
cmp eax, edi
ja 0x140013b66
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x140013b1a
cmp eax, 0x2f
je 0x140013b1a
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.1400134a8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx + r13 + 3]
cmp r12, rax
jbe 0x140013b66
lea r8d, [rbp - 0x58]
lea rdx, [0x14003d840]
mov rcx, rsi
call fcn.14002dc5c
lea rax, [rsp + 0x20]
mov rcx, rsi
sub rcx, rax
lea rdx, [rsp + 0x20]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140013ade
cmp word [rbx], 0x2e
jne 0x140013b07
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140013b03
cmp eax, 0x2f
jne 0x140013b07
add rbx, 4
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.14001effc
jmp 0x1400139db
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140013b66
lea rdx, [0x14003d840]
mov r8d, 4
mov rcx, rsi
call fcn.14002dc5c
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.14002dc5c
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xa], ax
cmp ax, r14w
jne 0x140013b4f
jmp 0x1400139db
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d160
add rsp, 0x1030
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013f34
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rdx
lea rax, [rsp + 0x30]
mov sil, r8b
mov rbx, rcx
mov word [rcx], bp
lea r9d, [rbp + 1]
lea rdx, str.SoftwareWinRARPaths
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x140013faf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.AppData
xor r8d, r8d
mov qword [rsp + 0x20], rbx
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 0x140013fc1
mov rcx, rbx
call fcn.1400104f4
cmp al, bpl
jne 0x140013fea
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.140013580
cmp al, bpl
jne 0x140013fea
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140013f00
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140015c6c
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 r12
sub rsp, 0x20
and dword [rcx + 4], 0
and dword [rcx], 0
mov eax, 0x8000
cmp r8d, eax
mov r12, rcx
mov rcx, qword [rcx + 0x10]
cmovb eax, r8d
mov ebp, r8d
mov rbx, r9
mov r8d, eax
mov rsi, rdx
call fcn.14002d490
xor dil, dil
cmp ebp, 1
jbe 0x140015ccb
lea rcx, [rsi + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x140015cbf
mov edx, 8
mov rcx, r12
call fcn.140011440
and dword [rbx + 0x28], 0
cmp dil, byte [rsi]
jne 0x140015d3d
mov r8d, ebp
mov rdx, rsi
mov rcx, r12
call fcn.140015b28
mov edi, eax
test eax, eax
je 0x140015d3d
mov edx, 1
mov rcx, rbx
call fcn.140015bcc
movsxd rcx, dword [rbx + 0x28]
mov rdx, rcx
inc ecx
mov dword [rbx + 0x28], ecx
imul rdx, rdx, 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 0x140015dbd
mov edx, 1
mov rcx, rbx
call fcn.140015bcc
movsxd rax, dword [rbx + 0x28]
xor r8d, r8d
mov rcx, rax
inc eax
mov dword [rbx + 0x28], eax
imul rcx, rcx, 0x38
add rcx, qword [rbx]
lea rax, [rcx + 0xc]
mov dword [rcx], 0x16
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
cmp dword [rbx + 0x28], r8d
jle 0x140015dbd
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x140015d9e
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x140015db0
lea rax, [rcx + rdx + 0x24]
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x140015d89
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140019cc8
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x2060
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, rcx
je 0x140019d07
mov rdx, rcx
mov rcx, rbx
call fcn.14001efc0
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareWinRARGeneral
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r12d, r12d
cmp eax, r12d
jne 0x140019dff
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, 0x7ff
lea r9, [rsp + 0x40]
not rcx
lea rdx, [0x14003dc88]
xor r8d, r8d
dec rcx
sub eax, ecx
mov rcx, qword [rsp + 0x38]
add eax, eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1050]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x140019df4
mov edi, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1050]
mov r8d, edi
mov word [rsp + 0x50], r12w
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.1400134a8
mov rcx, rsi
call fcn.140013c20
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rax
call fcn.14001effc
lea rcx, [rsp + 0x50]
call fcn.1400104f4
cmp al, r12b
je 0x140019df4
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rbx
call fcn.14001efc0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14002d160
add rsp, 0x2060
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140019ee0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x1150
call fcn.14003a300
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.140019c94
xor ebp, ebp
lea r12d, [rbp + 2]
cmp rbx, rbp
je 0x140019f43
lea r8, [rsp + 0x140]
sub r8, rbx
movzx eax, word [rbx]
mov word [r8 + rbx], ax
add rbx, r12
cmp ax, bp
jne 0x140019f31
jmp 0x140019f59
lea rdx, [rsp + 0x140]
mov r8d, 0x800
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.rarlng.dll
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.140013e08
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.140019cc8
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], r12d
jne 0x140019fd1
cmp dword [rsp + 0x24], 5
ja 0x140019fbc
jne 0x140019fd1
cmp word [rsp + 0x134], r12w
jb 0x140019fd1
lea rcx, [rsp + 0x140]
mov r8d, r12d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140019fdf
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, rbp
mov qword [0x140050e68], rax
setne cl
mov byte [rsi], cl
mov rax, qword [0x140050e68]
cmp cl, bpl
cmove rax, rdi
mov qword [0x140050e60], rdi
mov qword [0x140050e68], rax
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.14002d160
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x14001a034
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movdqu xmm2, xmmword [rcx + 8]
mov r10, rcx
lea r11, [rcx + 0x18]
test r8, r8
je 0x14001a0b1
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 0x14001a087
movsxd rax, ecx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec ecx
sub rax, 0x10
aesdec xmm1, xmm0
test ecx, ecx
jg 0x14001a074
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001a09c
pxor xmm1, xmm2
mov rax, r9
add r9, 0x10
sub r8, 1
movdqa xmm2, xmm3
movdqu xmmword [rax], xmm1
jne 0x14001a045
movdqu xmmword [r10 + 8], xmm2
ret
Function at 0x14001a0b8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, dword [rcx + 4]
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x20
sub ebp, 6
call fcn.14002d490
xor edi, edi
xor r9d, r9d
xor edx, edx
xor r8d, r8d
movsxd rbx, ebp
lea r14d, [rdi + 4]
test ebp, ebp
jle 0x14001a153
xor r10d, r10d
cmp edi, dword [rsi + 4]
jg 0x14001a153
cmp rdx, rbx
jge 0x14001a13e
lea r11, [rsp + rdx*4 + 0x20]
cmp r8, r14
jge 0x14001a141
mov eax, dword [r11]
lea rcx, [r10 + r8]
inc rdx
add r11, r14
inc r9d
inc r8
cmp rdx, rbx
mov dword [rsi + rcx*4 + 0x18], eax
jl 0x14001a11d
cmp r8, r14
jne 0x14001a14e
inc edi
add r10, r14
xor r9d, r9d
xor r8d, r8d
cmp rdx, rbx
jl 0x14001a10e
cmp edi, dword [rsi + 4]
movsxd r11, edi
movsxd r10, r9d
jg 0x14001a2b1
lea r12, [0x140055ef0]
lea r15, [0x140056010]
movzx ecx, byte [rsp + rbx*4 + 0x1d]
mov al, byte [rsp + 0x20]
xor al, byte [rcx + r15]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + rbx*4 + 0x1e]
mov al, byte [rax + r15]
xor byte [rsp + 0x21], al
movzx eax, byte [rsp + rbx*4 + 0x1f]
mov al, byte [rax + r15]
xor byte [rsp + 0x22], al
movzx eax, byte [rsp + rbx*4 + 0x1c]
mov al, byte [rax + r15]
xor byte [rsp + 0x23], al
mov al, byte [r12]
inc r12
xor byte [rsp + 0x20], al
cmp ebp, 8
je 0x14001a1e7
cmp rbx, 1
jle 0x14001a263
lea rdx, [rsp + 0x24]
lea r8, [rbx - 1]
xor ecx, ecx
mov al, byte [rdx + rcx - 4]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, r14
jl 0x14001a1cd
add rdx, r14
sub r8, 1
jne 0x14001a1cb
jmp 0x14001a263
lea rcx, [rsp + 0x24]
mov r8d, 3
mov rdx, r14
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14001a1f5
sub r8, 1
jne 0x14001a1f2
movzx eax, byte [rsp + 0x2c]
mov al, byte [rax + r15]
xor byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x2d]
mov al, byte [rax + r15]
xor byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x2e]
mov al, byte [rax + r15]
xor byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x2f]
mov al, byte [rax + r15]
xor byte [rsp + 0x33], al
cmp rbx, 5
jle 0x14001a263
lea rcx, [rsp + 0x34]
lea r8, [rbx - 5]
mov rdx, r14
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14001a24f
sub r8, 1
jne 0x14001a24c
xor edx, edx
test ebp, ebp
jle 0x14001a2a8
cmp edi, dword [rsi + 4]
jg 0x14001a2b1
cmp rdx, rbx
jge 0x14001a296
lea r8, [rsp + rdx*4 + 0x20]
cmp r10, r14
jge 0x14001a299
mov eax, dword [r8]
lea rcx, [r10 + r11*4]
inc rdx
add r8, r14
inc r10
cmp rdx, rbx
mov dword [rsi + rcx*4 + 0x18], eax
jl 0x14001a278
cmp r10, r14
jne 0x14001a2a3
inc edi
inc r11
xor r10d, r10d
cmp rdx, rbx
jl 0x14001a269
cmp edi, dword [rsi + 4]
jle 0x14001a170
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002d160
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret