joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f82c
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 0x14000f859
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 0x14000f8d8
mov rcx, rbx
call fcn.14000f7a4
test al, al
je 0x14000f89c
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000f89c
mov rdx, rsi
mov rcx, rbx
call fcn.14000f82c
jmp 0x14000f8dc
cmp dword [rbx + 0x14], 1
jne 0x14000f8b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000f8b1
xor eax, eax
jmp 0x14000f8dc
cmp dword [rbx + 0x14], 0
jne 0x14000f8d3
cmp rdi, 0x8000
jbe 0x14000f8d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000f8d3
mov r8d, 0x8000
jmp 0x14000f88f
or eax, 0xffffffff
jmp 0x14000f8dc
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000fbec
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000fb70
test al, al
je 0x14000fc1a
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 0x14000fc50
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.1400398a0
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140013e70
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 0x14000fca8
cmp eax, 5
je 0x14000fca8
xor eax, eax
jmp 0x14000fcad
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x1038
ret

Function at 0x14000fcc8
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.1400398a0
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140013938
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 0x14000fd44
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x14000fd44
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000fd46
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x1058
ret
Function at 0x14000fd60
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1260
call fcn.1400398a0
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1250], rax
lea rdx, [rsp + 0x250]
mov r8d, 0x800
call fcn.140013e70
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 0x14000fe06
lea rsi, [rsp + 0x40]
lea rdi, [0x14003d150]
lea ecx, [rbx + 4]
repe cmpsw word [rsi], word [rdi]
je 0x14000fdfd
lea rsi, [rsp + 0x40]
lea rdi, str.FAT32
lea ecx, [rbx + 6]
repe cmpsw word [rsi], word [rdi]
jne 0x14000fe02
mov ebx, 1
mov al, bl
jmp 0x14000fe08
xor al, al
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400398a0
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 0x14000fea9
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013f44
test al, al
je 0x14000fea9
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.14002c700
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14000fecc
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400398a0
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 0x14000ff33
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140013f44
test al, al
je 0x14000ff33
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.14002c700
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ff5c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.1400398a0
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 0x14000ffe4
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013f44
test al, al
je 0x14000ffe4
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140013f44
test al, al
je 0x14000ffe4
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.14002c700
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14001000c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400398a0
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 0x14001006a
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013f44
test al, al
je 0x14001006a
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.14002c700
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400103c4
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.1400398a0
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.140013290
cmp word [rax], 0x2e
je 0x140010417
cmp word [rax], 0x20
je 0x140010417
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001044c
mov rcx, rbx
call fcn.14000fe50
cmp eax, 0xffffffff
jne 0x14001045f
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140013f44
test al, al
je 0x14001045f
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001045f
test dil, dil
je 0x14001045b
mov edx, esi
mov rcx, rbx
call fcn.14000fecc
xor eax, eax
jmp 0x140010479
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140010474
cmp eax, 3
mov eax, 1
jne 0x140010479
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140010f54
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.1400398a0
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 0x140011008
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011032
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140013f44
test al, al
je 0x140010fdf
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011032
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140010ffb
cmp eax, 3
je 0x140010ffb
cmp eax, 0x12
je 0x140010ffb
mov eax, 1
jmp 0x140010ffd
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x1400110c8
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140011028
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x1400110c8
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.14001e774
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.1400138a4
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.14001f4a8
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14001f4a8
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14001f4a8
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.14002c700
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret

Function at 0x140013350
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 0x1400133f6
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, r12d
je 0x1400133f6
cmp word [rbx], r12w
je 0x1400133f6
mov rdx, rbp
mov rcx, rbx
call fcn.140013304
lea rdx, [0x14003d800]
mov r8, rbp
mov rcx, rbx
call fcn.14001e7b0
mov rcx, rbx
call fcn.14001037c
mov dil, al
cmp al, r12b
jne 0x1400133f6
cmp sil, r12b
je 0x1400133f6
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400103c4
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 0x1400139d0
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 0x140013a4b
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 0x140013a5d
mov rcx, rbx
call fcn.14001037c
cmp al, bpl
jne 0x140013a86
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.140013350
cmp al, bpl
jne 0x140013a86
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.14001399c
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013f44
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.1400398a0
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 0x14001417a
call fcn.1400135c8
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.140013df8
cmp al, r14b
je 0x140014067
mov rcx, rbx
call fcn.1400135c8
cmp al, r14b
je 0x140013ff6
lea rax, [r13 + 4]
cmp r12, rax
jbe 0x14001417a
lea r8d, [r14 + 4]
lea rdx, [0x14003d898]
mov rcx, rsi
call fcn.14002d1fc
sub rsi, rbx
movzx ecx, word [rbx]
add rbx, 2
mov word [rsi + rbx + 6], cx
cmp cx, r14w
jne 0x140013fdd
mov al, 1
jmp 0x14001417c
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x14001417a
add rbx, 2
cmp word [rbx], bp
jne 0x14001417a
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x14001417a
lea r8d, [rbp - 0x58]
lea rdx, [0x14003d898]
mov rcx, rsi
call fcn.14002d1fc
lea rdx, [0x14003d890]
mov rcx, rsi
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x14001403e
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xc], ax
cmp ax, r14w
jne 0x140014053
jmp 0x140013fef
mov edi, 0x7ff
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r14d
je 0x14001417a
cmp eax, edi
ja 0x14001417a
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x14001412e
cmp eax, 0x2f
je 0x14001412e
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.140013304
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 0x14001417a
lea r8d, [rbp - 0x58]
lea rdx, [0x14003d898]
mov rcx, rsi
call fcn.14002d1fc
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 0x1400140f2
cmp word [rbx], 0x2e
jne 0x14001411b
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140014117
cmp eax, 0x2f
jne 0x14001411b
add rbx, 4
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.14001e7b0
jmp 0x140013fef
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x14001417a
lea rdx, [0x14003d898]
mov r8d, 4
mov rcx, rsi
call fcn.14002d1fc
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.14002d1fc
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xa], ax
cmp ax, r14w
jne 0x140014163
jmp 0x140013fef
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x1030
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400159d8
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.14002ca30
xor dil, dil
cmp ebp, 1
jbe 0x140015a37
lea rcx, [rsi + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x140015a2b
mov edx, 8
mov rcx, r12
call fcn.1400112f8
and dword [rbx + 0x28], 0
cmp dil, byte [rsi]
jne 0x140015aa9
mov r8d, ebp
mov rdx, rsi
mov rcx, r12
call fcn.140015894
mov edi, eax
test eax, eax
je 0x140015aa9
mov edx, 1
mov rcx, rbx
call fcn.140015938
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 0x140015b29
mov edx, 1
mov rcx, rbx
call fcn.140015938
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 0x140015b29
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x140015b0a
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x140015b1c
lea rax, [rcx + rdx + 0x24]
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x140015af5
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 0x140019a08
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.1400398a0
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 0x140019a47
mov rdx, rcx
mov rcx, rbx
call fcn.14001e774
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 0x140019b3f
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, [0x14003dc78]
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 0x140019b34
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.140013304
mov rcx, rsi
call fcn.1400136bc
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rax
call fcn.14001e7b0
lea rcx, [rsp + 0x50]
call fcn.14001037c
cmp al, r12b
je 0x140019b34
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rbx
call fcn.14001e774
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x2060
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140019c20
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1150
call fcn.1400398a0
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.1400199d4
xor ebp, ebp
cmp rbx, rbp
je 0x140019c82
lea r8, [rsp + 0x140]
sub r8, rbx
movzx eax, word [rbx]
mov word [r8 + rbx], ax
add rbx, 2
cmp ax, bp
jne 0x140019c6f
jmp 0x140019c98
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.1400138a4
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.140019a08
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x140019d0d
cmp dword [rsp + 0x24], 5
ja 0x140019cf7
jne 0x140019d0d
cmp dword [rsp + 0x28], 1
jbe 0x140019d0d
xor edx, edx
lea rcx, [rsp + 0x140]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140019d1b
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.14002c700
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140019d70
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 0x140019ded
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 0x140019dc3
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 0x140019db0
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x140019dd8
pxor xmm1, xmm2
mov rax, r9
add r9, 0x10
sub r8, 1
movdqa xmm2, xmm3
movdqu xmmword [rax], xmm1
jne 0x140019d81
movdqu xmmword [r10 + 8], xmm2
ret
Function at 0x140019df4
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.14002ca30
xor edi, edi
xor r9d, r9d
xor edx, edx
xor r8d, r8d
movsxd rbx, ebp
lea r14d, [rdi + 4]
test ebp, ebp
jle 0x140019e8f
xor r10d, r10d
cmp edi, dword [rsi + 4]
jg 0x140019e8f
cmp rdx, rbx
jge 0x140019e7a
lea r11, [rsp + rdx*4 + 0x20]
cmp r8, r14
jge 0x140019e7d
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 0x140019e59
cmp r8, r14
jne 0x140019e8a
inc edi
add r10, r14
xor r9d, r9d
xor r8d, r8d
cmp rdx, rbx
jl 0x140019e4a
cmp edi, dword [rsi + 4]
movsxd r11, edi
movsxd r10, r9d
jg 0x140019fed
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 0x140019f23
cmp rbx, 1
jle 0x140019f9f
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 0x140019f09
add rdx, r14
sub r8, 1
jne 0x140019f07
jmp 0x140019f9f
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 0x140019f31
sub r8, 1
jne 0x140019f2e
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 0x140019f9f
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 0x140019f8b
sub r8, 1
jne 0x140019f88
xor edx, edx
test ebp, ebp
jle 0x140019fe4
cmp edi, dword [rsi + 4]
jg 0x140019fed
cmp rdx, rbx
jge 0x140019fd2
lea r8, [rsp + rdx*4 + 0x20]
cmp r10, r14
jge 0x140019fd5
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 0x140019fb4
cmp r10, r14
jne 0x140019fdf
inc edi
inc r11
xor r10d, r10d
cmp rdx, rbx
jl 0x140019fa5
cmp edi, dword [rsi + 4]
jle 0x140019eac
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002c700
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