Function at 0x14002a990
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get storage device properties

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x14030b930]
xor rax, rsp
mov qword [rbp + 0x608], rax
mov r15, r8
mov r13d, edx
mov rbx, rcx
xor r14d, r14d
mov qword [rbp + 0x40], r14
movdqa xmm0, xmmword [0x1402c6510]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], r14w
mov byte [rbp + 0x38], r14b
lea rdx, str.GetPhysicalDeviceInfo
lea rcx, [rbp + 0x40]
call fcn.140009944
nop
call fcn.14001fe60
cmp dword [rax + 8], 4
jl 0x14002aa0b
lea rcx, [rbp + 0x38]
call fcn.140015c90
lea rcx, [r15 + 8]
call fcn.140002894
mov rcx, r15
call fcn.140002894
mov word [r15 + 0x20], 0
mov byte [r15 + 0x22], 0
mov dword [r15 + 0x1c], r13d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14002af65
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002af5d
call fcn.14001fe60
mov rdi, rax
lea rcx, [rbp + 0x60]
call fcn.140018dc0
nop
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], 5
movsd xmm0, qword [str.TRACE]
movsd qword [rbp + 0x18], xmm0
movzx ecx, word [0x1402bfb20]
mov word [rbp + 0x20], cx
mov word [rbp + 0x22], r14w
mov qword [rbp - 0x48], r14
mov r8, r14
mov qword [rbp - 0x38], r14
mov r9d, 7
mov qword [rbp - 0x30], r9
mov word [rbp - 0x48], r14w
mov ebx, r14d
cmp dword [rdi + 0x10], r14d
jle 0x14002ab35
cmp ebx, 0xa
jge 0x14002ab35
mov rax, r9
sub rax, r8
lea rcx, [rbp - 0x48]
cmp rax, 2
jb 0x14002ab0a
lea rdx, [r8 + 2]
mov qword [rbp - 0x38], rdx
cmp r9, 8
cmovae rcx, qword [rbp - 0x48]
mov eax, dword [0x1402bfb10]
mov dword [rcx + r8*2], eax
mov word [rcx + rdx*2], r14w
jmp 0x14002ab24
mov qword [rsp + 0x20], 2
lea r9, [0x1402bfb10]
mov edx, 2
call fcn.140020f80
inc ebx
cmp ebx, dword [rdi + 0x10]
jge 0x14002ab35
mov r9, qword [rbp - 0x30]
mov r8, qword [rbp - 0x38]
jmp 0x14002aad3
mov qword [rbp - 8], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r14w
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
lea r8, [rbp - 0x28]
lea rdx, [rbp - 8]
mov rcx, rdi
call fcn.14001ffb0
lea rsi, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rsi, qword [rbp - 0x48]
mov edx, 0x2040
lea rcx, [rbp + 0x5f8]
call fcn.140215384
mov rcx, qword [rbp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp + 0x70]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
lea rcx, [rbp + 0x70]
call fcn.1400165e0
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x80]
call fcn.140215384
mov rdi, rax
lea rdx, [0x1402bf648]
mov rcx, rbx
call fcn.140016310
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov edx, dword [rdi + 8]
call qword [rdi]
mov edx, 6
lea rcx, [rsp + 0x70]
call fcn.1402153ac
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rbx + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0x58]
call fcn.140215398
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
mov rcx, rbx
call fcn.1400165e0
mov rbx, rax
mov edx, 5
lea rcx, [rbp - 0x68]
call fcn.1402153ac
mov rdi, rax
lea rdx, [0x1402bf648]
mov rcx, rbx
call fcn.140016310
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [rdi + 8]
call qword [rdi]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov eax, 0x20
mov word [rdx + rbx + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rbp + 0x5e0]
call fcn.140215384
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x28]
mov rcx, rbx
call fcn.1400165e0
lea rdx, [0x1402bfb40]
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov rdx, rsi
call fcn.140016310
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14031b04c], eax
jg 0x14002bde4
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x78]
call fcn.1400199b0
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14002ad69
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14030c5e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002be31
call fcn.140004104
movups xmm0, xmmword [rbp + 0x5b0]
movups xmmword [0x14030c5e0], xmm0
movups xmm1, xmmword [rbp + 0x5c0]
movups xmmword [0x14030c5f0], xmm1
mov qword [rbp + 0x5c0], r14
mov qword [rbp + 0x5c8], 7
mov word [rbp + 0x5b0], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14002addf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002adda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002be37
call fcn.140004104
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x14002ae30
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ae2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002be3d
call fcn.140004104
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r14w
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14002ae81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ae7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002be43
call fcn.140004104
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x14002aed2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aecd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bdde
call fcn.140004104
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r14w
lea rcx, [rbp + 0x60]
call fcn.140018ca0
call fcn.14001fe60
lea rdx, [0x14030c5e0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14030c5e0]
mov r8, qword [0x14030c5f0]
mov rcx, rax
call fcn.1400165e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Failed_to_open_drive:
mov rcx, rbx
call fcn.140016310
mov rcx, rax
mov edx, r13d
call fcn.140018fc0
mov rcx, rax
lea rdx, str._with_error:
call fcn.140016310
mov rcx, rax
mov edx, edi
call fcn.140018fc0
mov rcx, rax
call fcn.1400174d0
xor r14b, r14b
jmp 0x14002bda7
mov edx, 0x21
xor ecx, ecx
lea r9d, [rdx - 0x1d]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rbp - 0x80], rax
mov edx, 0x211
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rbx, rbx
je 0x14002bd87
test rax, rax
je 0x14002bd76
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov byte [rbx + 0x20], al
mov dword [rbx], 0x200
mov byte [rbx + 0xc], r13b
mov word [rbx + 5], 0x101
movzx eax, r13b
and al, 1
or al, 0xfa
shl al, 4
mov byte [rbx + 9], al
mov byte [rbx + 0xa], 0xec
lea rcx, [rsi + 4]
xor edx, edx
mov r8d, 0x20d
call fcn.140217880
mov dword [rsi], 0x211
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002b05c
call fcn.14001fe60
mov rcx, rax
mov edx, 3
call fcn.1400202f0
mov rdi, rax
call fcn.14001fe60
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002b029
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Looking_for_Drive:
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov edx, r13d
call fcn.140018fc0
mov rcx, rax
call fcn.1400174d0
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x210
mov qword [rsp + 0x20], rsi
mov r9d, 0x20
mov r8, rbx
mov edx, 0x7c088
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r12, 0xffffffffffffffff
test eax, eax
je 0x14002b6b1
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002b0fe
call fcn.14001fe60
mov rcx, rax
lea edx, [r12 + 4]
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b0d0
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Got_Drive:
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov edx, r13d
call fcn.140018fc0
mov rcx, rax
call fcn.1400174d0
movzx eax, word [rsi + 0x46]
movzx edx, ax
shr dx, 8
mov byte [rbp + 0x5b0], dl
mov byte [rbp + 0x5b1], al
movzx ecx, word [rsi + 0x48]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5b2], al
mov byte [rbp + 0x5b3], cl
movzx ecx, word [rsi + 0x4a]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5b4], al
mov byte [rbp + 0x5b5], cl
movzx ecx, word [rsi + 0x4c]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5b6], al
mov byte [rbp + 0x5b7], cl
movzx ecx, word [rsi + 0x4e]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5b8], al
mov byte [rbp + 0x5b9], cl
movzx ecx, word [rsi + 0x50]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5ba], al
mov byte [rbp + 0x5bb], cl
movzx ecx, word [rsi + 0x52]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5bc], al
mov byte [rbp + 0x5bd], cl
movzx ecx, word [rsi + 0x54]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5be], al
mov byte [rbp + 0x5bf], cl
movzx ecx, word [rsi + 0x56]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5c0], al
mov byte [rbp + 0x5c1], cl
movzx ecx, word [rsi + 0x58]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5c2], al
mov byte [rbp + 0x5c3], cl
movzx ecx, word [rsi + 0x5a]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5c4], al
mov byte [rbp + 0x5c5], cl
movzx ecx, word [rsi + 0x5c]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5c6], al
mov byte [rbp + 0x5c7], cl
movzx ecx, word [rsi + 0x5e]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5c8], al
mov byte [rbp + 0x5c9], cl
movzx ecx, word [rsi + 0x60]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5ca], al
mov byte [rbp + 0x5cb], cl
movzx ecx, word [rsi + 0x62]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5cc], al
mov byte [rbp + 0x5cd], cl
movzx ecx, word [rsi + 0x64]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5ce], al
mov byte [rbp + 0x5cf], cl
movzx ecx, word [rsi + 0x66]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5d0], al
mov byte [rbp + 0x5d1], cl
movzx ecx, word [rsi + 0x68]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5d2], al
mov byte [rbp + 0x5d3], cl
movzx ecx, word [rsi + 0x6a]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5d4], al
mov byte [rbp + 0x5d5], cl
movzx ecx, word [rsi + 0x6c]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5d6], al
mov byte [rbp + 0x5d7], cl
mov byte [rbp + 0x5d8], 0
cmp dl, 0x20
jne 0x14002b316
nop word [rax + rax]
lea rax, [rbp + 0x5b0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b2f0
lea rdx, [rbp + 0x5b1]
lea rcx, [rbp + 0x5b0]
call fcn.1402171d0
cmp byte [rbp + 0x5b0], 0x20
je 0x14002b2e0
lea rcx, [rbp + 0x5b0]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b320
test eax, eax
je 0x14002b34d
nop dword [rax]
lea ecx, [rax - 1]
mov eax, ecx
lea rdx, [rbp + 0x5b0]
add rdx, rax
cmp byte [rdx], 0x20
jne 0x14002b34d
mov eax, ecx
mov byte [rdx], 0
test ecx, ecx
jne 0x14002b330
movzx eax, word [rsi + 0x3e]
movzx edx, ax
shr dx, 8
mov byte [rbp + 0x5f8], dl
mov byte [rbp + 0x5f9], al
movzx ecx, word [rsi + 0x40]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5fa], al
mov byte [rbp + 0x5fb], cl
movzx ecx, word [rsi + 0x42]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5fc], al
mov byte [rbp + 0x5fd], cl
movzx ecx, word [rsi + 0x44]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5fe], al
mov byte [rbp + 0x5ff], cl
movzx eax, word [rsi + 0x46]
shr ax, 8
mov byte [rbp + 0x600], al
cmp dl, 0x20
jne 0x14002b3f6
nop dword [rax]
lea rax, [rbp + 0x5f8]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b3d0
lea rdx, [rbp + 0x5f9]
lea rcx, [rbp + 0x5f8]
call fcn.1402171d0
cmp byte [rbp + 0x5f8], 0x20
je 0x14002b3c0
lea rcx, [rbp + 0x5f8]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b400
test eax, eax
je 0x14002b42d
nop dword [rax]
lea ecx, [rax - 1]
mov eax, ecx
lea rdx, [rbp + 0x5f8]
add rdx, rax
cmp byte [rdx], 0x20
jne 0x14002b42d
mov eax, ecx
mov byte [rdx], 0
test ecx, ecx
jne 0x14002b410
movzx eax, word [rsi + 0x24]
movzx edx, ax
shr dx, 8
mov byte [rbp + 0x5e0], dl
mov byte [rbp + 0x5e1], al
movzx ecx, word [rsi + 0x26]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5e2], al
mov byte [rbp + 0x5e3], cl
movzx ecx, word [rsi + 0x28]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5e4], al
mov byte [rbp + 0x5e5], cl
movzx ecx, word [rsi + 0x2a]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5e6], al
mov byte [rbp + 0x5e7], cl
movzx ecx, word [rsi + 0x2c]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5e8], al
mov byte [rbp + 0x5e9], cl
movzx ecx, word [rsi + 0x2e]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5ea], al
mov byte [rbp + 0x5eb], cl
movzx ecx, word [rsi + 0x30]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5ec], al
mov byte [rbp + 0x5ed], cl
movzx ecx, word [rsi + 0x32]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5ee], al
mov byte [rbp + 0x5ef], cl
movzx ecx, word [rsi + 0x34]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5f0], al
mov byte [rbp + 0x5f1], cl
movzx ecx, word [rsi + 0x36]
movzx eax, cx
shr ax, 8
mov byte [rbp + 0x5f2], al
mov byte [rbp + 0x5f3], cl
mov byte [rbp + 0x5f4], 0
cmp dl, 0x20
jne 0x14002b556
nop
lea rax, [rbp + 0x5e0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b530
lea rdx, [rbp + 0x5e1]
lea rcx, [rbp + 0x5e0]
call fcn.1402171d0
cmp byte [rbp + 0x5e0], 0x20
je 0x14002b520
mov dword [r15 + 0x1c], r13d
lea rax, [rbp + 0x68]
mov qword [rbp + 0x60], rax
mov r8d, 3
lea rdx, [rbp + 0x5f8]
lea rcx, [rbp + 0x60]
call fcn.140013b50
nop
mov rdx, qword [rbp + 0x60]
lea rcx, [r15 + 8]
call fcn.140010c40
nop
lea rax, [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
cmp rcx, rax
je 0x14002b599
call fcn.14021ef30
lea rax, [rbp + 0x178]
mov qword [rbp + 0x170], rax
mov r8d, 3
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x170]
call fcn.140013b50
nop
mov rdx, qword [rbp + 0x170]
mov rcx, r15
call fcn.140010c40
nop
lea rax, [rbp + 0x178]
mov rcx, qword [rbp + 0x170]
cmp rcx, rax
je 0x14002b5e9
call fcn.14021ef30
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002b64d
call fcn.14001fe60
mov rcx, rax
mov edx, 3
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b61b
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.firmwareVersion:
mov rcx, rax
call fcn.140016310
mov rbx, rax
mov rdx, qword [r15 + 8]
mov rcx, rax
call fcn.140016310
mov rcx, rbx
call fcn.1400174d0
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002b71a
call fcn.14001fe60
mov rcx, rax
mov edx, 3
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b683
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.model:
mov rcx, rax
call fcn.140016310
mov rbx, rax
mov rdx, qword [r15]
mov rcx, rax
call fcn.140016310
mov rcx, rbx
jmp 0x14002b715
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
call fcn.14001fe60
cmp dword [rax + 8], 2
jl 0x14002b71a
call fcn.14001fe60
mov rcx, rax
mov edx, 2
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b6ec
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Error_with_DeviceIoControl:
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov edx, r13d
call fcn.140018fc0
mov rcx, rax
call fcn.1400174d0
mov edx, 0x410
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x410
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d0c04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14002b777
cmp dword [rbx], 7
jne 0x14002b777
mov byte [r15 + 0x21], 1
mov qword [rbp - 0x58], r14
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x54], 8
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rbp - 0x58]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, 0x28
test eax, eax
cmovne edi, dword [rsp + 0x54]
mov ecx, edi
call fcn.140003e28
mov r13, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140217880
mov dword [r13], 0x28
mov dword [r13 + 4], edi
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rbp - 0x58]
mov edx, 0x2d1400
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14002b95b
movzx eax, byte [r13 + 0x1c]
mov byte [r15 + 0x18], al
mov eax, dword [r13 + 0xc]
test eax, eax
je 0x14002b89f
lea rdx, [rax + r13]
lea rax, [rbp + 0x288]
mov qword [rbp + 0x280], rax
mov r8d, 3
lea rcx, [rbp + 0x280]
call fcn.140013b50
nop
mov rdx, qword [rbp + 0x280]
lea rcx, [r15 + 0x10]
call fcn.140010c40
nop
lea rax, [rbp + 0x288]
mov rcx, qword [rbp + 0x280]
cmp rcx, rax
je 0x14002b896
call fcn.14021ef30
lea rcx, [r15 + 0x10]
call fcn.1400192b0
mov eax, dword [r13 + 0x10]
test eax, eax
je 0x14002b8fc
lea rdx, [rax + r13]
lea rax, [rbp + 0x398]
mov qword [rbp + 0x390], rax
mov r8d, 3
lea rcx, [rbp + 0x390]
call fcn.140013b50
nop
mov rdx, qword [rbp + 0x390]
mov rcx, r15
call fcn.140010c40
nop
lea rax, [rbp + 0x398]
mov rcx, qword [rbp + 0x390]
cmp rcx, rax
je 0x14002b8f4
call fcn.14021ef30
mov rcx, r15
call fcn.1400192b0
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x14002b95b
lea rdx, [rax + r13]
lea rax, [rbp + 0x4a8]
mov qword [rbp + 0x4a0], rax
mov r8d, 3
lea rcx, [rbp + 0x4a0]
call fcn.140013b50
nop
mov rdx, qword [rbp + 0x4a0]
lea rcx, [r15 + 8]
call fcn.140010c40
nop
lea rax, [rbp + 0x4a8]
mov rcx, qword [rbp + 0x4a0]
cmp rcx, rax
je 0x14002b952
call fcn.14021ef30
lea rcx, [r15 + 8]
call fcn.1400192b0
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.140002c44
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140012be0
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jl 0x14002b9a8
lea rdx, str.INTEL
mov rcx, rbx
call fcn.140216d00
test rax, rax
je 0x14002b9a8
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002b9a8
mov byte [r15 + 0x20], 1
lea rdx, [r15 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140002bb4
lea rcx, [rsp + 0x70]
call fcn.140012be0
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jl 0x14002b9ee
lea rdx, str.INTEL
mov rcx, rbx
call fcn.140216d00
test rax, rax
je 0x14002b9ee
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002b9ee
mov byte [r15 + 0x20], 1
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002ba4e
call fcn.14001fe60
mov rcx, rax
mov edx, 3
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002ba20
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Model:
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov rdx, qword [r15]
call fcn.140016310
mov rcx, rax
call fcn.1400174d0
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002baaf
call fcn.14001fe60
mov rcx, rax
mov edx, 3
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002ba80
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Firmware:
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov rdx, qword [r15 + 8]
call fcn.140016310
mov rcx, rax
call fcn.1400174d0
call fcn.14001fe60
cmp dword [rax + 8], 3
jl 0x14002bb10
call fcn.14001fe60
mov rcx, rax
mov edx, 3
call fcn.1400202f0
mov rbx, rax
call fcn.14001fe60
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002bae1
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Vendor:
mov rcx, rax
call fcn.140016310
mov rcx, rax
mov rdx, qword [r15 + 0x10]
call fcn.140016310
mov rcx, rax
call fcn.1400174d0
mov qword [rbp - 0x58], 1
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rbp - 0x58]
mov edx, 0x2d1400
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, 0x20
test eax, eax
cmovne edi, dword [rsp + 0x54]
mov ecx, edi
call fcn.140003e28
mov r8d, edi
xor edx, edx
mov rbx, rax
mov rcx, rax
call fcn.140217880
mov dword [rbx], 0x20
mov dword [rbx + 4], edi
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rbp - 0x58]
mov edx, 0x2d1400
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14002bbca
movzx eax, byte [rbx + 0x18]
mov byte [r15 + 0x18], al
mov rcx, rbx
call fcn.1400758a4
mov edx, 0x20
lea rcx, [r15 + 0x10]
call fcn.14002c020
test eax, eax
js 0x14002bcee
mov rcx, qword [r15 + 0x10]
sub rcx, 0x18
call fcn.140002c44
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140005a94
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 0x10], 0
jle 0x14002bcd4
mov edx, 0x20
mov rcx, rbx
call fcn.140217120
mov rdi, rax
test rax, rax
je 0x14002bccf
sub rdi, rbx
sar rdi, 1
test edi, edi
jle 0x14002bccf
mov r8d, edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.14002bef0
nop
mov rdx, rax
lea rcx, [r15 + 0x10]
call fcn.140002bb4
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bc82
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8d, [rdi + 1]
mov r9d, dword [rbx - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140012a40
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140002bb4
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bcca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bcee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [r15]
cmp dword [rcx - 0x10], 3
jl 0x14002bd47
add rcx, 0xffffffffffffffe8
call fcn.140002c44
lea rbx, [rax + 0x18]
cmp dword [rbx - 0x10], 0
jl 0x14002bd2d
lea rdx, [0x1402c0860]
mov rcx, rbx
call fcn.140216d00
test rax, rax
je 0x14002bd2d
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002bd2d
mov byte [r15 + 0x22], 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bd47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.1400758a4
mov r14d, 1
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, r14d
jg 0x14002bd72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x80]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x14002bd9d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x38]
call fcn.140017560
movzx eax, r14b
mov rcx, qword [rbp + 0x608]
xor rcx, rsp
call fcn.140212a70
mov rbx, qword [rsp + 0x768]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14021b87c
nop
lea rcx, [0x14031b04c]
call fcn.140212e94
cmp dword [0x14031b04c], 0xffffffff
jne 0x14002ad12
mov qword [0x14030c5e0], r14
movdqa xmm0, xmmword [0x1402c6510]
movdqu xmmword [0x14030c5f0], xmm0
lea rcx, [0x14025f1b0]
call fcn.140212cc8
lea rcx, [0x14031b04c]
call fcn.140212e34
jmp 0x14002ad12
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
int3