Function at 0x14002a830
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 [0x14030c918]
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 [0x1402c75d0]
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.140009b0c
nop
call fcn.14001fcc0
cmp dword [rax + 8], 4
jl 0x14002a8ab
lea rcx, [rbp + 0x38]
call fcn.140015ae0
lea rcx, [r15 + 8]
call fcn.1400028b4
mov rcx, r15
call fcn.1400028b4
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 0x14002ae05
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002adfd
call fcn.14001fcc0
mov rdi, rax
lea rcx, [rbp + 0x60]
call fcn.140018c50
nop
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], 5
movsd xmm0, qword [str.TRACE]
movsd qword [rbp - 0x28], xmm0
movzx eax, word [0x1402c0b50]
mov word [rbp - 0x20], ax
mov word [rbp - 0x1e], r14w
mov qword [rbp - 0x48], r14
mov rdx, r14
mov qword [rbp - 0x38], rdx
mov r8d, 7
mov qword [rbp - 0x30], r8
mov word [rbp - 0x48], r14w
mov ebx, r14d
cmp dword [rdi + 0x10], r14d
jle 0x14002a9d5
cmp ebx, 0xa
jge 0x14002a9d5
mov rax, r8
sub rax, rdx
lea rcx, [rbp - 0x48]
cmp rax, 2
jb 0x14002a9aa
lea rax, [rdx + 2]
mov qword [rbp - 0x38], rax
cmp r8, 8
cmovae rcx, qword [rbp - 0x48]
mov eax, dword [0x1402c0b40]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], r14w
jmp 0x14002a9c4
mov qword [rsp + 0x20], 2
lea r9, [0x1402c0b40]
mov edx, 2
call fcn.140020db0
inc ebx
cmp ebx, dword [rdi + 0x10]
jge 0x14002a9d5
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
jmp 0x14002a973
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r14w
mov qword [rbp - 8], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r14w
lea r8, [rbp - 8]
lea rdx, [rbp + 0x18]
mov rcx, rdi
call fcn.14001fe10
lea rsi, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rsi, qword [rbp - 0x48]
mov edx, 0x2040
lea rcx, [rbp + 0x5f8]
call fcn.1402158b8
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 + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x28]
lea rcx, [rbp + 0x70]
call fcn.140016420
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x80]
call fcn.1402158b8
mov rdi, rax
lea rdx, [0x1402c0678]
mov rcx, rbx
call fcn.140016160
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.1402158e0
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.1402158cc
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
mov rcx, rbx
call fcn.140016420
mov rbx, rax
mov edx, 5
lea rcx, [rbp - 0x68]
call fcn.1402158e0
mov rdi, rax
lea rdx, [0x1402c0678]
mov rcx, rbx
call fcn.140016160
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.1402158b8
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [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.140016420
lea rdx, [0x1402c0b70]
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov rdx, rsi
call fcn.140016160
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14031c02c], eax
jg 0x14002bc84
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x78]
call fcn.140019820
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14002ac09
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14030d5d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ac04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bcd1
call fcn.14000410c
movups xmm0, xmmword [rbp + 0x5b0]
movups xmmword [0x14030d5d0], xmm0
movups xmm1, xmmword [rbp + 0x5c0]
movups xmmword [0x14030d5e0], 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 0x14002ac7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ac7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bcd7
call fcn.14000410c
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r14w
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x14002acd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002accb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bcdd
call fcn.14000410c
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r14w
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14002ad21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bce3
call fcn.14000410c
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14002ad72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bc7e
call fcn.14000410c
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
lea rcx, [rbp + 0x60]
call fcn.140018b40
call fcn.14001fcc0
lea rdx, [0x14030d5d0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14030d5d0]
mov r8, qword [0x14030d5e0]
mov rcx, rax
call fcn.140016420
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.140016160
mov rcx, rax
mov edx, r13d
call fcn.140018e50
mov rcx, rax
lea rdx, str._with_error:
call fcn.140016160
mov rcx, rax
mov edx, edi
call fcn.140018e50
mov rcx, rax
call fcn.140017370
xor r14b, r14b
jmp 0x14002bc47
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 0x14002bc27
test rax, rax
je 0x14002bc16
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.140217dc0
mov dword [rsi], 0x211
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002aefc
call fcn.14001fcc0
mov rcx, rax
mov edx, 3
call fcn.140020160
mov rdi, rax
call fcn.14001fcc0
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002aec9
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.Looking_for_Drive:
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov edx, r13d
call fcn.140018e50
mov rcx, rax
call fcn.140017370
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 0x14002b551
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002af9e
call fcn.14001fcc0
mov rcx, rax
lea edx, [r12 + 4]
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002af70
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.Got_Drive:
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov edx, r13d
call fcn.140018e50
mov rcx, rax
call fcn.140017370
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 0x14002b1b6
nop word [rax + rax]
lea rax, [rbp + 0x5b0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b190
lea rdx, [rbp + 0x5b1]
lea rcx, [rbp + 0x5b0]
call fcn.140217710
cmp byte [rbp + 0x5b0], 0x20
je 0x14002b180
lea rcx, [rbp + 0x5b0]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b1c0
test eax, eax
je 0x14002b1ed
nop dword [rax]
lea ecx, [rax - 1]
mov eax, ecx
lea rdx, [rbp + 0x5b0]
add rdx, rax
cmp byte [rdx], 0x20
jne 0x14002b1ed
mov eax, ecx
mov byte [rdx], 0
test ecx, ecx
jne 0x14002b1d0
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 0x14002b296
nop dword [rax]
lea rax, [rbp + 0x5f8]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b270
lea rdx, [rbp + 0x5f9]
lea rcx, [rbp + 0x5f8]
call fcn.140217710
cmp byte [rbp + 0x5f8], 0x20
je 0x14002b260
lea rcx, [rbp + 0x5f8]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b2a0
test eax, eax
je 0x14002b2cd
nop dword [rax]
lea ecx, [rax - 1]
mov eax, ecx
lea rdx, [rbp + 0x5f8]
add rdx, rax
cmp byte [rdx], 0x20
jne 0x14002b2cd
mov eax, ecx
mov byte [rdx], 0
test ecx, ecx
jne 0x14002b2b0
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 0x14002b3f6
nop
lea rax, [rbp + 0x5e0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b3d0
lea rdx, [rbp + 0x5e1]
lea rcx, [rbp + 0x5e0]
call fcn.140217710
cmp byte [rbp + 0x5e0], 0x20
je 0x14002b3c0
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.1400139c0
nop
mov rdx, qword [rbp + 0x60]
lea rcx, [r15 + 8]
call fcn.140010a70
nop
lea rax, [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
cmp rcx, rax
je 0x14002b439
call fcn.14021f680
lea rax, [rbp + 0x178]
mov qword [rbp + 0x170], rax
mov r8d, 3
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x170]
call fcn.1400139c0
nop
mov rdx, qword [rbp + 0x170]
mov rcx, r15
call fcn.140010a70
nop
lea rax, [rbp + 0x178]
mov rcx, qword [rbp + 0x170]
cmp rcx, rax
je 0x14002b489
call fcn.14021f680
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002b4ed
call fcn.14001fcc0
mov rcx, rax
mov edx, 3
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b4bb
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.firmwareVersion:
mov rcx, rax
call fcn.140016160
mov rbx, rax
mov rdx, qword [r15 + 8]
mov rcx, rax
call fcn.140016160
mov rcx, rbx
call fcn.140017370
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002b5ba
call fcn.14001fcc0
mov rcx, rax
mov edx, 3
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b523
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.model:
mov rcx, rax
call fcn.140016160
mov rbx, rax
mov rdx, qword [r15]
mov rcx, rax
call fcn.140016160
mov rcx, rbx
jmp 0x14002b5b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
call fcn.14001fcc0
cmp dword [rax + 8], 2
jl 0x14002b5ba
call fcn.14001fcc0
mov rcx, rax
mov edx, 2
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b58c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.Error_with_DeviceIoControl:
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov edx, r13d
call fcn.140018e50
mov rcx, rax
call fcn.140017370
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 0x14002b617
cmp dword [rbx], 7
jne 0x14002b617
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.140003e48
mov r13, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140217dc0
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 0x14002b7fb
movzx eax, byte [r13 + 0x1c]
mov byte [r15 + 0x18], al
mov eax, dword [r13 + 0xc]
test eax, eax
je 0x14002b73f
lea rdx, [rax + r13]
lea rax, [rbp + 0x288]
mov qword [rbp + 0x280], rax
mov r8d, 3
lea rcx, [rbp + 0x280]
call fcn.1400139c0
nop
mov rdx, qword [rbp + 0x280]
lea rcx, [r15 + 0x10]
call fcn.140010a70
nop
lea rax, [rbp + 0x288]
mov rcx, qword [rbp + 0x280]
cmp rcx, rax
je 0x14002b736
call fcn.14021f680
lea rcx, [r15 + 0x10]
call fcn.140019150
mov eax, dword [r13 + 0x10]
test eax, eax
je 0x14002b79c
lea rdx, [rax + r13]
lea rax, [rbp + 0x398]
mov qword [rbp + 0x390], rax
mov r8d, 3
lea rcx, [rbp + 0x390]
call fcn.1400139c0
nop
mov rdx, qword [rbp + 0x390]
mov rcx, r15
call fcn.140010a70
nop
lea rax, [rbp + 0x398]
mov rcx, qword [rbp + 0x390]
cmp rcx, rax
je 0x14002b794
call fcn.14021f680
mov rcx, r15
call fcn.140019150
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x14002b7fb
lea rdx, [rax + r13]
lea rax, [rbp + 0x4a8]
mov qword [rbp + 0x4a0], rax
mov r8d, 3
lea rcx, [rbp + 0x4a0]
call fcn.1400139c0
nop
mov rdx, qword [rbp + 0x4a0]
lea rcx, [r15 + 8]
call fcn.140010a70
nop
lea rax, [rbp + 0x4a8]
mov rcx, qword [rbp + 0x4a0]
cmp rcx, rax
je 0x14002b7f2
call fcn.14021f680
lea rcx, [r15 + 8]
call fcn.140019150
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140012a20
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jl 0x14002b848
lea rdx, str.INTEL
mov rcx, rbx
call fcn.140217248
test rax, rax
je 0x14002b848
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002b848
mov byte [r15 + 0x20], 1
lea rdx, [r15 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140002bd8
lea rcx, [rsp + 0x70]
call fcn.140012a20
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jl 0x14002b88e
lea rdx, str.INTEL
mov rcx, rbx
call fcn.140217248
test rax, rax
je 0x14002b88e
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002b88e
mov byte [r15 + 0x20], 1
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002b8ee
call fcn.14001fcc0
mov rcx, rax
mov edx, 3
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b8c0
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.Model:
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov rdx, qword [r15]
call fcn.140016160
mov rcx, rax
call fcn.140017370
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002b94f
call fcn.14001fcc0
mov rcx, rax
mov edx, 3
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b920
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.Firmware:
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov rdx, qword [r15 + 8]
call fcn.140016160
mov rcx, rax
call fcn.140017370
call fcn.14001fcc0
cmp dword [rax + 8], 3
jl 0x14002b9b0
call fcn.14001fcc0
mov rcx, rax
mov edx, 3
call fcn.140020160
mov rbx, rax
call fcn.14001fcc0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b981
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016420
lea rdx, str.Vendor:
mov rcx, rax
call fcn.140016160
mov rcx, rax
mov rdx, qword [r15 + 0x10]
call fcn.140016160
mov rcx, rax
call fcn.140017370
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.140003e48
mov r8d, edi
xor edx, edx
mov rbx, rax
mov rcx, rax
call fcn.140217dc0
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 0x14002ba6a
movzx eax, byte [rbx + 0x18]
mov byte [r15 + 0x18], al
mov rcx, rbx
call fcn.140075f74
mov edx, 0x20
lea rcx, [r15 + 0x10]
call fcn.14002bec0
test eax, eax
js 0x14002bb8e
mov rcx, qword [r15 + 0x10]
sub rcx, 0x18
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140005abc
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 0x10], 0
jle 0x14002bb74
mov edx, 0x20
mov rcx, rbx
call fcn.140217664
mov rdi, rax
test rax, rax
je 0x14002bb6f
sub rdi, rbx
sar rdi, 1
test edi, edi
jle 0x14002bb6f
mov r8d, edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.14002bd90
nop
mov rdx, rax
lea rcx, [r15 + 0x10]
call fcn.140002bd8
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bb22
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.140012880
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140002bd8
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bb6a
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 0x14002bb8e
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 0x14002bbe7
add rcx, 0xffffffffffffffe8
call fcn.140002c68
lea rbx, [rax + 0x18]
cmp dword [rbx - 0x10], 0
jl 0x14002bbcd
lea rdx, [0x1402c1890]
mov rcx, rbx
call fcn.140217248
test rax, rax
je 0x14002bbcd
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002bbcd
mov byte [r15 + 0x22], 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bbe7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.140075f74
mov r14d, 1
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, r14d
jg 0x14002bc12
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 0x14002bc3d
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.140017400
movzx eax, r14b
mov rcx, qword [rbp + 0x608]
xor rcx, rsp
call fcn.140212f90
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.14021bfcc
nop
lea rcx, [0x14031c02c]
call fcn.1402133b4
cmp dword [0x14031c02c], 0xffffffff
jne 0x14002abb2
mov qword [0x14030d5d0], r14
movdqa xmm0, xmmword [0x1402c75d0]
movdqu xmmword [0x14030d5e0], xmm0
lea rcx, [0x14025fa00]
call fcn.1402131e8
lea rcx, [0x14031c02c]
call fcn.140213354
jmp 0x14002abb2
call fcn.14021bfcc
nop
call fcn.14021bfcc
nop
call fcn.14021bfcc
nop
call fcn.14021bfcc
int3