joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180156030
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r12, rdx
mov r13, rcx
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
mov qword [rbp - 0x28], rax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRunServicesOnce]
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x38]
call fcn.1800f62e0
nop
lea rdi, [rbp - 0x28]
mov esi, 2
nop
mov r9d, 0x20019
mov r8, qword [rdi]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x38]
call fcn.1800f5ce0
test rax, rax
je 0x180156153
lea rcx, [rbp - 0x18]
call fcn.1800e9c50
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.1800f62c0
test eax, eax
je 0x180156140
xor ebx, ebx
cmp dword [rbp - 0x10], ebx
jle 0x180156140
nop dword [rax + rax]
mov r8d, ebx
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x18]
call fcn.1800f4ce0
nop
mov r8, qword [rbp + 0x48]
cmp dword [r8 - 8], 0
je 0x180156130
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x38]
call fcn.1800f5da0
nop
mov rax, qword [rbp + 0x40]
cmp dword [rax - 8], 0
je 0x180156126
lea r8, [rbp + 0x48]
mov edx, dword [r13 + 8]
mov rcx, r13
call fcn.1800ec880
lea r8, [rbp + 0x40]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.1800ec880
nop
lea rcx, [rbp + 0x40]
call fcn.1800e8250
nop
lea rcx, [rbp + 0x48]
call fcn.1800e8250
inc ebx
cmp ebx, dword [rbp - 0x10]
jl 0x1801560d0
lea rcx, [rbp - 0x38]
call fcn.1800f48f0
nop
lea rcx, [rbp - 0x18]
call fcn.1800ec600
add rdi, 8
dec rsi
jne 0x180156080
lea rcx, [rbp - 0x38]
call fcn.1800f5c60
lea eax, [rsi + 1]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180156bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x38], rbp
mov rbp, rcx
lea r8, [rsp + 0x68]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180156cdf
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180156cdf
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x180156cdf
lea ecx, [rdi + 0x40]
mov edx, eax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180156cda
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180156cd1
cmp dword [rsp + 0x60], 7
jne 0x180156cd1
mov qword [rsp + 0x50], rbx
mov rbx, rsi
cmp byte [rsi], dil
je 0x180156ccc
nop dword [rax + rax]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x180156cc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rbx, rax
cmp byte [rbx], dil
jne 0x180156ca0
jmp 0x180156ccc
mov edi, 1
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x38]
test rcx, rcx
je 0x180156cf4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x180156d00
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.18012a2e0
test eax, eax
je 0x180156dd7
call fcn.18012a340
test eax, eax
je 0x180156dc9
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x180156d77
lea r8d, [rbx + 4]
lea rdx, str.TermService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180156d7b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x180156dd9
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180156db5
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x180156db0
cmp eax, 2
jne 0x180156db5
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180156dd7
lea rcx, str.Terminal_Server
call fcn.180156bc0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
jmp 0x180156d00

Function at 0x180157080
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.18012a2e0
test eax, eax
je 0x180156dd7
call fcn.18012a340
test eax, eax
je 0x180156dc9
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x180156d77
lea r8d, [rbx + 4]
lea rdx, str.TermService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180156d7b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x180156dd9
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180156db5
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x180156db0
cmp eax, 2
jne 0x180156db5
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180156dd7
lea rcx, str.Terminal_Server
call fcn.180156bc0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
jmp 0x180156d00
Function at 0x1801583f0
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
sub rsp, 0x258
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp eax, 1
jne 0x180158555
test rbx, rbx
je 0x180158555
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x280], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp ecx, 2
jle 0x18015854d
movzx eax, word [rbx + 2]
cmp ax, 0x3a
jne 0x180158482
movabs rax, 0x5c003a0041
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
movzx eax, word [rbx]
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x18015854d
cmp word [rbx], 0x5c
jne 0x18015854d
cmp ax, 0x5c
jne 0x18015854d
mov qword [rsp + 0x278], rbp
mov qword [rsp + 0x250], r12
mov r12d, 0x5c
lea rcx, [rbx + 4]
mov edx, r12d
call fcn.1800fbc74
mov rbp, rax
test rax, rax
je 0x18015853d
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], ax
call fcn.1800fb1e0
lea rcx, [rbp + 2]
mov edx, r12d
call fcn.1800fbc74
test rax, rax
je 0x18015850d
sub rax, rbx
sar rax, 1
lea ecx, [rax + 1]
cmp ecx, 0x104
jge 0x18015853d
movsxd r8, ecx
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1800fb420
jmp 0x180158530
lea eax, [rdi + 1]
cmp eax, 0x104
jge 0x18015853d
movsxd rdi, edi
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8, rdi
call fcn.1800fb420
mov word [rsp + rdi*2 + 0x30], r12w
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov rbp, qword [rsp + 0x278]
mov r12, qword [rsp + 0x250]
mov rdi, qword [rsp + 0x280]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x258
pop rsi
pop rbx
ret

Function at 0x180158650
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rdx], eax
test rcx, rcx
je 0x18015867e
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov r9, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add rsp, 0x48
ret

Function at 0x1801588f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.1800ebe80
xor esi, esi
test rbx, rbx
je 0x180158980
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.1800fb1e0
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.1800e8410
mov eax, ebx
jmp 0x180158982
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800fbf40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1801589b0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rdx], eax
test rcx, rcx
je 0x1801589de
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add rsp, 0x48
ret

Function at 0x180158a10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.1800ebe80
xor esi, esi
test rbx, rbx
je 0x180158a9d
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.1800fb1e0
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, 0x104
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.1800e8410
mov eax, ebx
jmp 0x180158a9f
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800fbf40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180158b70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x830
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.1800ebe80
lea rcx, [rsp + 0x22]
xor esi, esi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x20], si
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
dec eax
cmp eax, 0x3fe
ja 0x180158bea
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800e8410
lea eax, [rsi + 1]
jmp 0x180158bec
mov eax, esi
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1800fbf40
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180158d00
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
call fcn.1800ec630
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsi], eax
mov edi, 1
xor ebx, ebx
test dword [rsi], edi
je 0x180158d99
mov eax, dword [0x1801bfaf4]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1801bfaf8]
mov word [rsp + 0x34], ax
xor eax, eax
mov word [rsp + 0x36], ax
add word [rsp + 0x30], bx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1800ebc90
nop
lea r8, [rsp + 0x20]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800ec880
nop
lea rcx, [rsp + 0x20]
call fcn.1800e8250
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180158d48
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180158dd0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rbp, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
call fcn.1800ee0e0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsi], eax
mov edi, 1
xor ebx, ebx
nop dword [rax]
test dword [rsi], edi
je 0x180158e60
movzx eax, word [0x1801dc248]
mov word [rsp + 0x50], ax
movzx eax, byte [0x1801dc24a]
mov byte [rsp + 0x52], al
xor eax, eax
mov byte [rsp + 0x53], al
add byte [rsp + 0x50], bl
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1800ed0c0
nop
lea r8, [rsp + 0x60]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800ee330
nop
lea rcx, [rsp + 0x60]
call fcn.1800ea530
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180158e10
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x180158e80
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
call fcn.1800ec630
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsi], eax
mov edi, 1
xor ebx, ebx
test dword [rsi], edi
je 0x180158f19
mov eax, dword [0x1801bfaf4]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1801bfaf8]
mov word [rsp + 0x34], ax
xor eax, eax
mov word [rsp + 0x36], ax
add word [rsp + 0x30], bx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1800ebc90
nop
lea r8, [rsp + 0x20]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800ec880
nop
lea rcx, [rsp + 0x20]
call fcn.1800e8250
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180158ec8
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180158f50
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800ec630
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.1800ec630
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x180159078
mov eax, dword [0x1801bfaf4]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1801bfaf8]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1800ebc90
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800ec880
mov r11, qword [0x1801d0c28]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800fb1e0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1800e8410
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.1800ec880
nop
lea rcx, [rsp + 0x20]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x28]
call fcn.1800e8250
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180158fb4
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801590c0
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x160
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800ee0e0
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.1800ee0e0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor ebx, ebx
nop
test esi, edi
je 0x1801591e1
movzx eax, word [0x1801dc248]
mov word [rsp + 0x20], ax
movzx eax, byte [0x1801dc24a]
mov byte [rsp + 0x22], al
xor eax, eax
mov byte [rsp + 0x23], al
add byte [rsp + 0x20], bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800ed0c0
nop
lea r8, [rsp + 0x30]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800ee330
mov r11, qword [0x1801d0c20]
mov qword [rsp + 0x28], r11
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.1800fb1e0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov byte [rsp + 0x143], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1800ea6b0
lea r8, [rsp + 0x28]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.1800ee330
nop
lea rcx, [rsp + 0x28]
call fcn.1800ea530
nop
lea rcx, [rsp + 0x30]
call fcn.1800ea530
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180159120
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800fbf40
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180159220
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800ec630
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.1800ec630
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x180159348
mov eax, dword [0x1801bfaf4]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1801bfaf8]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1800ebc90
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800ec880
mov r11, qword [0x1801d0c28]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800fb1e0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1800e8410
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.1800ec880
nop
lea rcx, [rsp + 0x20]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x28]
call fcn.1800e8250
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180159284
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180159740
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800ee0e0
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.1800ee0e0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x1802420c4]
test ecx, ecx
je 0x1801597f1
cmp eax, ecx
jne 0x1801597f1
mov eax, dword [0x1802420c8]
test eax, eax
je 0x1801597f1
cmp ebx, eax
jb 0x1801597f1
add eax, 0x493e0
cmp eax, ebx
jb 0x1801597f1
inc dword [0x1802420cc]
mov r8d, 1
lea rdx, [0x180242178]
lea rcx, [rsp + 0x28]
call fcn.1800f3200
nop
lea rdx, [0x180242148]
mov rcx, rsi
call fcn.1800ee250
lea rdx, [0x180242160]
mov rcx, rdi
call fcn.1800ee250
nop
jmp 0x18015986d
mov dword [0x1802420cc], 0
mov rdx, rdi
mov rcx, rsi
call fcn.1801590c0
mov r8d, 1
lea rdx, [0x180242178]
lea rcx, [rsp + 0x28]
call fcn.1800f3200
nop
mov dword [0x1802420c4], ebp
mov dword [0x1802420c8], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x180242148]
call fcn.1800ee0e0
mov rdx, rsi
lea rcx, [0x180242148]
call fcn.1800ee250
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x180242160]
call fcn.1800ee0e0
mov rdx, rdi
lea rcx, [0x180242160]
call fcn.1800ee250
nop
lea rcx, [rsp + 0x28]
call fcn.1800f3280
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1801598a0
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800ec630
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.1800ec630
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x1802420d0]
test ecx, ecx
je 0x180159951
cmp eax, ecx
jne 0x180159951
mov eax, dword [0x1802420d4]
test eax, eax
je 0x180159951
cmp ebx, eax
jb 0x180159951
add eax, 0x493e0
cmp eax, ebx
jb 0x180159951
inc dword [0x1802420d8]
mov r8d, 1
lea rdx, [0x1802421e0]
lea rcx, [rsp + 0x28]
call fcn.1800f3200
nop
lea rdx, [0x1802421b0]
mov rcx, rsi
call fcn.1800ec7a0
lea rdx, [0x1802421c8]
mov rcx, rdi
call fcn.1800ec7a0
nop
jmp 0x1801599cd
mov dword [0x1802420d8], 0
mov rdx, rdi
mov rcx, rsi
call fcn.180159220
mov r8d, 1
lea rdx, [0x1802421e0]
lea rcx, [rsp + 0x28]
call fcn.1800f3200
nop
mov dword [0x1802420d0], ebp
mov dword [0x1802420d4], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1802421b0]
call fcn.1800ec630
mov rdx, rsi
lea rcx, [0x1802421b0]
call fcn.1800ec7a0
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1802421c8]
call fcn.1800ec630
mov rdx, rdi
lea rcx, [0x1802421c8]
call fcn.1800ec7a0
nop
lea rcx, [rsp + 0x28]
call fcn.1800f3280
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret