joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f300
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042f280]
mov r8d, 1
mov r9d, 0x104
call fcn.004129a0
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042f2c0]
mov r8d, 1
mov r9d, 0x104
call fcn.004129a0
movzx rax, byte [0x0042f580]
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042f7f0
test al, al
jne 0x42f3a5
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042f710
test al, al
je 0x42f4b4
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x40]
call fcn.0042ff80
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.0043a070
mov rcx, qword [rbp + 0x88]
call fcn.00410730
mov rbx, rax
mov rcx, rbx
mov rdx, qword [rbp + 0x70]
mov r8d, 0x104
lea r9, [rbp + 0x84]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42f4af
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x42f432
movzx rax, byte [rbp + 0x4f]
or al, 1
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x42f44b
movzx rax, byte [rbp + 0x4f]
or al, 2
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x42f464
movzx rax, byte [rbp + 0x4f]
or al, 0x20
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x42f488
sub eax, 1
test eax, eax
je 0x42f495
sub eax, 1
test eax, eax
je 0x42f4a2
sub eax, 1
test eax, eax
jne 0x42f4df
movzx rax, byte [rbp + 0x4f]
or al, 0x10
mov byte [rbp + 0x4f], al
jmp 0x42f4df
movzx rax, byte [rbp + 0x4f]
or al, 4
mov byte [rbp + 0x4f], al
jmp 0x42f4df
movzx rax, byte [rbp + 0x4f]
or al, 8
mov byte [rbp + 0x4f], al
jmp 0x42f4df
call fcn.0043b2c0
lea rcx, [rbp + 0x50]
mov rdx, qword [0x0069c028]
call fcn.00416dd0
mov rcx, qword [0x004242e0]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00437e80
mov rcx, rax
call fcn.0040da20
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040ea00
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042f2c0]
call fcn.00412b70
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042f280]
call fcn.00412b70
lea rcx, [rbp + 0x88]
call fcn.0040e920
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x42f710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.00410730
mov rdi, rax
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42f7bd
mov ecx, eax
test ecx, 0x400
je 0x42f7b2
test sil, sil
jne 0x42f753
mov al, 1
jmp 0x42f7e6
test eax, 0x10
je 0x42f762
xor eax, eax
jmp 0x42f7e6
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42f7a5
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42f7e6
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42f7e6
test eax, 0x10
sete al
jmp 0x42f7e6
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42f7e0
cmp eax, 3
je 0x42f7e0
cmp eax, 0x7b
je 0x42f7e0
mov rcx, rbp
mov rdx, rbx
call fcn.0042f6c0
test al, al
jne 0x42f7e4
xor eax, eax
jmp 0x42f7e6
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov ebx, edx
xor esi, esi
call fcn.00410730
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x42f8de
mov eax, edi
test eax, 0x400
jne 0x42f832
test edi, 0x10
setne sil
jmp 0x42f911
test bl, bl
je 0x42f888
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42f911
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test edi, 0x10
setne sil
jmp 0x42f911
test edi, 0x10
je 0x42f895
mov sil, 1
jmp 0x42f911
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42f8d9
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor esi, esi
jmp 0x42f911
mov sil, 1
jmp 0x42f911
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42f909
cmp eax, 3
je 0x42f909
cmp eax, 0xa1
je 0x42f909
cmp eax, 0x7b
je 0x42f909
cmp eax, 0x35
je 0x42f909
cmp eax, 0x15
je 0x42f909
cmp eax, 0x43
jne 0x42f90e
xor esi, esi
jmp 0x42f911
mov sil, 1
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x42fd40
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rbx
call fcn.00410730
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x42fdaf
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42fda8
mov ecx, eax
test ecx, 0x400
je 0x42fda8
test eax, 0x10
je 0x42fda8
mov rcx, rbx
call fcn.00410730
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x42fdaf
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x430330
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.00410730
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x4361f0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x436217
movzx rax, word [rbp + 0x2c]
jmp 0x436219
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x437c90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00437a40
mov ebx, eax
mov rax, qword [0x0069bf18]
cmp byte [rax], 0
je 0x437dc6
mov rcx, qword [0x0069bb68]
call fcn.0040a910
call fcn.00409350
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00437c50]
mov r8d, 1
movsxd r9, esi
call fcn.004129a0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00437e5c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x437e0b
mov rcx, qword [0x006a3270]
call fcn.00413140
mov rcx, rax
mov rax, qword [0x0069bae0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00437c50]
call fcn.00412b70
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4399c0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040efd0
lea rcx, [rbp + 0x58]
call fcn.0040f220
mov rcx, qword [rbp + 0x58]
call fcn.00410730
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x439ad0
mov ecx, dword [rbp + 0x54]
call fcn.00409030
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00410730
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x439ac6
mov rcx, qword [rbp + 0x68]
lea rdx, [0x00439b28]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x439ac6
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.00409060
nop
lea rcx, [rbp + 0x58]
call fcn.0040e920
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x43af10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040f100
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00416ea0
mov esi, eax
cmp esi, 0x104
jbe 0x43af6c
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409030
mov rdi, rax
jmp 0x43af70
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00416ea0
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x43afc7
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x43afa8
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x43afd9
mov rcx, rdi
call fcn.00409060
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4be680
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4be687
nop
ret

Function at 0x50f950
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x50f9e2
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x50f9e2
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x50f9e2
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x50fa0c
lea rcx, [rbp + 0x38]
mov rdx, qword [0x0069be78]
call fcn.00416dd0
mov rcx, qword [0x004d6980]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00437e80
mov rcx, rax
call fcn.0040da20
jmp 0x50fa0c
lea rcx, [rbp + 0x30]
mov rdx, qword [0x0069be78]
call fcn.00416dd0
mov rcx, qword [0x004d6980]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00437e80
mov rcx, rax
call fcn.0040da20
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ea00
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x510580
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0050f790
jmp 0x5105db
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x510600
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0050f790
cmp esi, 1
jne 0x51062a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x5580d0
Capabilities:
Get disk information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov qword [rsp + 0x40], rcx
xor ebx, ebx
cmp qword [rsp + 0x40], 0
je 0x558147
mov rcx, qword [rsp + 0x40]
call fcn.00558470
test al, al
je 0x558147
mov rcx, qword [rsp + 0x40]
call fcn.005581c0
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov rcx, qword [rsp + 0x40]
sub esi, 1
movsxd rsi, esi
movzx rcx, word [rcx + rsi*2]
mov edx, ecx
mov r8d, ecx
sub r8w, 0x61
cmp r8w, 0x1a
jae 0x55812b
mov edx, ecx
and dx, 0xffdf
mov ecx, edx
cmp cx, 0x41
jb 0x558147
cmp cx, 0x5a
ja 0x558147
sub cl, 0x41
shr eax, cl
and eax, 1
cmp eax, 1
sete bl
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x587570
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x40], 0
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x64], 0
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x28], 0
mov rcx, qword [rsp + 0x38]
call fcn.00587650
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0x100
jae 0x587649
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 8
jge 0x587623
mov eax, dword [rsp + 0x30]
shr eax, 1
mov ecx, dword [rsp + 0x30]
and ecx, 1
sub ecx, 1
xor ecx, 0xffffffff
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x5875da
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + rcx*4 + 0x8c], eax
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x5875bc
mov rsp, rbp
pop rbp
ret

Function at 0x58aaf0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r8
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov rax, rsp
mov qword [rax + 0x28], rdx
mov dword [rax + 0x20], 0
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov ecx, r9d
mov edx, r9d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], r8
mov r8, rax
mov r9, qword [rsp + 0x30]
call sub.msvcrt.dll__beginthreadex
movsxd r8, eax
mov r9, qword [rsp + 0x58]
mov qword [r9], r8
mov r8, qword [rsp + 0x58]
mov rcx, qword [r8]
call fcn.0058a9b0
mov rsp, rbp
pop rbp
ret
Function at 0x595520
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff8
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], r8
mov dword [rsp + 4], 0
mov edx, dword [rsp + 0x14]
or edx, 0x100
mov dword [rsp + 0x14], edx
mov eax, dword [rsp + 0x14]
shr eax, 8
mov ecx, eax
mov rdx, qword [rsp + 0x18]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 0x14]
shr r8d, 7
and r8d, 1
mov r9d, 0
sub r9d, r8d
and r9d, 0x7ff
xor eax, r9d
shr eax, 4
mov ecx, eax
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 4]
add r8d, eax
mov dword [rsp + 4], r8d
mov eax, dword [rsp + 0x14]
shl eax, 1
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0x10000
jb 0x595553
mov eax, dword [rsp + 4]
mov rsp, rbp
pop rbp
ret
Function at 0x5a2dd0
Capabilities:
Get disk size

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x40], rcx
lea rcx, [rbp + 0x40]
call fcn.0040eaf0
nop
mov eax, dword [0x006931e0]
add eax, 1
cmp dword [0x006931e0], eax
jne 0x5a2e0f
mov ecx, dword [0x006932f0]
mov edx, dword [0x0069340c]
mov r8d, dword [0x00693454]
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov eax, dword [0x0069343c]
mov dword [0x00693410], eax
mov eax, dword [0x006931d4]
add eax, 1
cmp dword [0x006931d4], eax
jne 0x5a2e4b
mov ecx, dword [0x00693298]
mov edx, dword [0x006932dc]
mov r8d, dword [0x006933a4]
mov r9d, dword [0x006933d0]
call sub.advapi32.dll_CryptDuplicateKey
mov eax, dword [0x006932fc]
add eax, dword [0x006933b4]
mov ecx, dword [0x006933e0]
add ecx, dword [0x00693408]
cmp eax, ecx
jle 0x5a2e73
mov eax, dword [0x00693408]
mov dword [0x006932fc], eax
mov eax, dword [0x006932dc]
add eax, dword [0x00693308]
mov ecx, dword [0x006933c0]
add ecx, dword [0x006933dc]
cmp eax, ecx
jle 0x5a2e94
call fcn.004096f0
mov eax, dword [0x006933b4]
add eax, dword [0x006933d0]
mov ecx, dword [0x006933fc]
add ecx, dword [0x00693424]
cmp eax, ecx
jle 0x5a2ebc
mov eax, dword [0x00693424]
mov dword [0x006933b4], eax
mov eax, dword [0x00693454]
add eax, dword [0x006931c0]
mov ecx, dword [0x006931ec]
add ecx, dword [0x00693274]
cmp eax, ecx
jle 0x5a2ee2
mov dword [0x00693454], 0x144
mov rcx, qword [rbp + 0x40]
call fcn.00410050
xor ecx, ecx
or edx, 0xffffffff
mov r8, rax
call qword [0x006a8b60]
mov qword [rbp + 0x28], rax
call qword [0x006a9208]
cmp eax, 0xb7
jne 0x5a2f18
mov rcx, qword [rbp + 0x28]
or edx, 0xffffffff
call qword [0x006a8b98]
mov dword [0x006931b4], 0x306
mov eax, dword [0x006931b4]
sub eax, 0x1a5
mov dword [0x006931e0], eax
mov eax, dword [0x00693458]
add eax, dword [0x006931d0]
mov ecx, dword [0x006931fc]
add ecx, dword [0x00693284]
cmp eax, ecx
jle 0x5a2f5a
mov dword [0x00693458], 0xba
call fcn.005a2d10
cmp eax, dword [0x006931b4]
jle 0x5a2f71
mov dword [0x006931b4], 9
call fcn.005a2d10
cmp eax, dword [0x0069344c]
jle 0x5a2f88
mov dword [0x0069344c], 7
mov eax, dword [0x00693420]
mov dword [0x006933f4], eax
mov eax, dword [0x00693420]
mov dword [0x006933f4], eax
mov eax, dword [0x006933b8]
cmp eax, dword [0x006933e4]
je 0x5a2fba
mov eax, dword [0x006933b8]
mov dword [0x006933e4], eax
nop
lea rcx, [rbp + 0x40]
call fcn.0040e9c0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x5a2ff0
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov eax, dword [0x006933a0]
add eax, dword [0x006933c8]
mov ecx, dword [0x006933e4]
add ecx, dword [0x00693410]
cmp eax, ecx
jle 0x5a3020
mov eax, dword [0x00693410]
mov dword [0x006933a0], eax
call fcn.005a2d10
mov eax, dword [0x006932e4]
add eax, dword [0x006933a0]
mov ecx, dword [0x006933c8]
add ecx, dword [0x006933e4]
cmp eax, ecx
jle 0x5a3046
call fcn.004096f0
mov eax, dword [0x006931e0]
add eax, 1
cmp dword [0x006931e0], eax
jne 0x5a3076
mov ecx, dword [0x0069320c]
mov edx, dword [0x006932b4]
mov r8d, dword [0x006932ec]
mov r9d, dword [0x006933a4]
call sub.advapi32.dll_CryptDuplicateKey
mov eax, dword [0x006931b0]
add eax, dword [0x006931cc]
mov ecx, dword [0x006931f4]
add ecx, dword [0x00693280]
cmp eax, ecx
jle 0x5a309c
mov dword [0x006931b0], 0x161
mov eax, dword [0x006931dc]
add eax, 1
cmp dword [0x006931dc], eax
jne 0x5a30c5
mov ecx, dword [0x006931bc]
mov edx, dword [0x00693200]
mov r8d, dword [0x0069329c]
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov rcx, rbx
call qword [0x006a8ba0]
mov eax, dword [0x006931e8]
add eax, 1
cmp dword [0x006931e8], eax
jne 0x5a3108
mov ecx, dword [0x00693284]
mov edx, dword [0x00693300]
mov r8d, dword [0x006933c8]
mov r9d, dword [0x006933f4]
mov eax, dword [0x0069342c]
mov dword [rsp + 0x20], eax
call sub.kernel32.dll_LockFile
mov eax, dword [0x006932ec]
add eax, dword [0x006933a8]
mov ecx, dword [0x006933c4]
add ecx, dword [0x006933ec]
cmp eax, ecx
jle 0x5a3130
mov eax, dword [0x006933ec]
mov dword [0x006932ec], eax
mov eax, dword [0x00693420]
mov dword [0x00693404], eax
mov eax, dword [0x006933ec]
add eax, dword [0x00693408]
mov ecx, dword [0x006933a4]
add ecx, dword [0x006933d0]
cmp ecx, eax
jle 0x5a3164
mov ecx, dword [0x00693408]
mov dword [0x006933a4], ecx
mov ecx, dword [0x006933a4]
add ecx, dword [0x006933d0]
cmp ecx, eax
jle 0x5a3180
mov eax, dword [0x00693408]
mov dword [0x006933a4], eax
mov eax, dword [0x006933c4]
cmp eax, dword [0x006933ec]
je 0x5a319a
mov eax, dword [0x006933c4]
mov dword [0x006933ec], eax
mov eax, dword [0x00693200]
add eax, 1
cmp dword [0x00693200], eax
jne 0x5a31c3
mov ecx, dword [0x00693440]
mov edx, dword [0x006931d4]
mov r8d, dword [0x0069320c]
call sub.kernel32.dll_GetDiskFreeSpaceExW
call fcn.005a2d10
cmp eax, dword [0x006931b8]
jle 0x5a31da
mov dword [0x006931b8], 0xe
mov eax, dword [0x00693418]
mov dword [0x006933ec], eax
add rsp, 0x30
pop rbx
ret
Function at 0x5ae2e0
Capabilities:
Get disk size

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 0x50]
call fcn.0040eab0
nop
mov eax, dword [0x00693418]
add eax, dword [0x00693454]
mov ecx, dword [0x00693508]
add ecx, dword [0x00693544]
cmp eax, ecx
jle 0x5ae31f
call fcn.004096f0
mov eax, dword [0x0069397c]
mov dword [0x00693940], eax
mov eax, dword [0x00693508]
add eax, dword [0x00693544]
mov ecx, dword [0x006937fc]
add ecx, dword [0x00693938]
cmp eax, ecx
jle 0x5ae353
mov eax, dword [0x00693938]
mov dword [0x00693508], eax
nop
mov eax, dword [0x006933a0]
sub eax, dword [0x006932b4]
mov dword [0x006932b4], eax
mov rcx, qword [0x004d2058]
mov dl, 1
call fcn.0040b440
mov qword [rbp + 0x30], rax
nop
call fcn.005aba50
cmp eax, dword [0x0069412c]
jle 0x5ae390
mov dword [0x0069412c], 0xa
call fcn.005aa780
call fcn.005a9670
mov rcx, qword [0x00563db8]
mov dl, 1
call fcn.0056da10
mov qword [rbp + 0x38], rax
nop
mov rcx, qword [rbp + 0x58]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
mov r8b, 3
call fcn.0056dc10
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x58]
mov r8, qword [rbp + 0x50]
mov r9b, 0xe
call fcn.00570d60
mov rcx, qword [rbp + 0x38]
call fcn.0056dd20
mov rcx, qword [rbp + 0x30]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x58]
call fcn.004fd260
mov rcx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
call qword [rax]
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x30]
mov r8, rax
call fcn.004fbf30
mov rcx, qword [rbp + 0x58]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax + 0x48]
nop
mov rcx, qword [rbp + 0x38]
call fcn.0040b500
nop
mov rcx, qword [rbp + 0x30]
call fcn.0040b500
jmp 0x5ae478
mov eax, dword [0x006934f4]
add eax, dword [0x00693530]
mov ecx, dword [0x00693904]
add ecx, dword [0x00693940]
cmp eax, ecx
jle 0x5ae4a0
mov eax, dword [0x00693940]
mov dword [0x006934f4], eax
call fcn.005aa780
mov eax, dword [0x00693284]
add eax, 1
cmp dword [0x00693284], eax
jne 0x5ae4ce
mov ecx, dword [0x006934dc]
mov edx, dword [0x00693558]
mov r8d, dword [0x0069392c]
call sub.kernel32.dll_GetDiskFreeSpaceExW
nop
lea rcx, [rbp + 0x50]
call fcn.0040e920
lea rsp, [rbp + 0x40]
pop rbp
ret