Function at 0x14002a8f0
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 [0x140313918]
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 [0x1402cd3d0]
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.14001fce0
cmp dword [rax + 8], 4
jl 0x14002a96b
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 0x14002aec5
call fcn.14001fce0
cmp dword [rax + 8], 3
jl 0x14002aebd
call fcn.14001fce0
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 [0x1402c66d0]
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 0x14002aa95
cmp ebx, 0xa
jge 0x14002aa95
mov rax, r8
sub rax, rdx
lea rcx, [rbp - 0x48]
cmp rax, 2
jb 0x14002aa6a
lea rax, [rdx + 2]
mov qword [rbp - 0x38], rax
cmp r8, 8
cmovae rcx, qword [rbp - 0x48]
mov eax, dword [0x1402c66c0]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], r14w
jmp 0x14002aa84
mov qword [rsp + 0x20], 2
lea r9, [0x1402c66c0]
mov edx, 2
call fcn.140020dd0
inc ebx
cmp ebx, dword [rdi + 0x10]
jge 0x14002aa95
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
jmp 0x14002aa33
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.14001fe30
lea rsi, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rsi, qword [rbp - 0x48]
mov edx, 0x2040
lea rcx, [rbp + 0x5f8]
call fcn.140218738
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.140218738
mov rdi, rax
lea rdx, [0x1402c61f8]
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.140218760
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.14021874c
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.140218760
mov rdi, rax
lea rdx, [0x1402c61f8]
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.140218738
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, [0x1402c66f0]
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 [0x140323034], eax
jg 0x14002bd44
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x78]
call fcn.140019820
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14002acc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x1403145d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002acc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bd91
call fcn.14000410c
movups xmm0, xmmword [rbp + 0x5b0]
movups xmmword [0x1403145d0], xmm0
movups xmm1, xmmword [rbp + 0x5c0]
movups xmmword [0x1403145e0], 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 0x14002ad3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bd97
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 0x14002ad90
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bd9d
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 0x14002ade1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002addc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bda3
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 0x14002ae32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ae2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bd3e
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.14001fce0
lea rdx, [0x1403145d0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x1403145d0]
mov r8, qword [0x1403145e0]
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 0x14002bd07
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 0x14002bce7
test rax, rax
je 0x14002bcd6
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.14021ac40
mov dword [rsi], 0x211
call fcn.14001fce0
cmp dword [rax + 8], 3
jl 0x14002afbc
call fcn.14001fce0
mov rcx, rax
mov edx, 3
call fcn.140020180
mov rdi, rax
call fcn.14001fce0
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002af89
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 0x14002b611
call fcn.14001fce0
cmp dword [rax + 8], 3
jl 0x14002b05e
call fcn.14001fce0
mov rcx, rax
lea edx, [r12 + 4]
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b030
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 0x14002b276
nop word [rax + rax]
lea rax, [rbp + 0x5b0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b250
lea rdx, [rbp + 0x5b1]
lea rcx, [rbp + 0x5b0]
call fcn.14021a590
cmp byte [rbp + 0x5b0], 0x20
je 0x14002b240
lea rcx, [rbp + 0x5b0]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b280
test eax, eax
je 0x14002b2ad
nop dword [rax]
lea ecx, [rax - 1]
mov eax, ecx
lea rdx, [rbp + 0x5b0]
add rdx, rax
cmp byte [rdx], 0x20
jne 0x14002b2ad
mov eax, ecx
mov byte [rdx], 0
test ecx, ecx
jne 0x14002b290
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 0x14002b356
nop dword [rax]
lea rax, [rbp + 0x5f8]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b330
lea rdx, [rbp + 0x5f9]
lea rcx, [rbp + 0x5f8]
call fcn.14021a590
cmp byte [rbp + 0x5f8], 0x20
je 0x14002b320
lea rcx, [rbp + 0x5f8]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b360
test eax, eax
je 0x14002b38d
nop dword [rax]
lea ecx, [rax - 1]
mov eax, ecx
lea rdx, [rbp + 0x5f8]
add rdx, rax
cmp byte [rdx], 0x20
jne 0x14002b38d
mov eax, ecx
mov byte [rdx], 0
test ecx, ecx
jne 0x14002b370
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 0x14002b4b6
nop
lea rax, [rbp + 0x5e0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14002b490
lea rdx, [rbp + 0x5e1]
lea rcx, [rbp + 0x5e0]
call fcn.14021a590
cmp byte [rbp + 0x5e0], 0x20
je 0x14002b480
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 0x14002b4f9
call fcn.1402242a8
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 0x14002b549
call fcn.1402242a8
call fcn.14001fce0
cmp dword [rax + 8], 3
jl 0x14002b5ad
call fcn.14001fce0
mov rcx, rax
mov edx, 3
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b57b
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.14001fce0
cmp dword [rax + 8], 3
jl 0x14002b67a
call fcn.14001fce0
mov rcx, rax
mov edx, 3
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b5e3
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 0x14002b675
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
call fcn.14001fce0
cmp dword [rax + 8], 2
jl 0x14002b67a
call fcn.14001fce0
mov rcx, rax
mov edx, 2
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b64c
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 0x14002b6d7
cmp dword [rbx], 7
jne 0x14002b6d7
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.14021ac40
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 0x14002b8bb
movzx eax, byte [r13 + 0x1c]
mov byte [r15 + 0x18], al
mov eax, dword [r13 + 0xc]
test eax, eax
je 0x14002b7ff
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 0x14002b7f6
call fcn.1402242a8
lea rcx, [r15 + 0x10]
call fcn.140019150
mov eax, dword [r13 + 0x10]
test eax, eax
je 0x14002b85c
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 0x14002b854
call fcn.1402242a8
mov rcx, r15
call fcn.140019150
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x14002b8bb
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 0x14002b8b2
call fcn.1402242a8
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 0x14002b908
lea rdx, str.INTEL
mov rcx, rbx
call fcn.14021a0c8
test rax, rax
je 0x14002b908
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002b908
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 0x14002b94e
lea rdx, str.INTEL
mov rcx, rbx
call fcn.14021a0c8
test rax, rax
je 0x14002b94e
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002b94e
mov byte [r15 + 0x20], 1
call fcn.14001fce0
cmp dword [rax + 8], 3
jl 0x14002b9ae
call fcn.14001fce0
mov rcx, rax
mov edx, 3
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b980
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.14001fce0
cmp dword [rax + 8], 3
jl 0x14002ba0f
call fcn.14001fce0
mov rcx, rax
mov edx, 3
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002b9e0
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.14001fce0
cmp dword [rax + 8], 3
jl 0x14002ba70
call fcn.14001fce0
mov rcx, rax
mov edx, 3
call fcn.140020180
mov rbx, rax
call fcn.14001fce0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002ba41
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.14021ac40
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 0x14002bb2a
movzx eax, byte [rbx + 0x18]
mov byte [r15 + 0x18], al
mov rcx, rbx
call fcn.140078df4
mov edx, 0x20
lea rcx, [r15 + 0x10]
call fcn.14002bf80
test eax, eax
js 0x14002bc4e
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 0x14002bc34
mov edx, 0x20
mov rcx, rbx
call fcn.14021a4e4
mov rdi, rax
test rax, rax
je 0x14002bc2f
sub rdi, rbx
sar rdi, 1
test edi, edi
jle 0x14002bc2f
mov r8d, edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.14002be50
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 0x14002bbe2
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 0x14002bc2a
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 0x14002bc4e
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 0x14002bca7
add rcx, 0xffffffffffffffe8
call fcn.140002c68
lea rbx, [rax + 0x18]
cmp dword [rbx - 0x10], 0
jl 0x14002bc8d
lea rdx, [0x1402c73b8]
mov rcx, rbx
call fcn.14021a0c8
test rax, rax
je 0x14002bc8d
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002bc8d
mov byte [r15 + 0x22], 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bca7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.140078df4
mov r14d, 1
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, r14d
jg 0x14002bcd2
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 0x14002bcfd
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.140215e10
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.14021f028
nop
lea rcx, [0x140323034]
call fcn.140216234
cmp dword [0x140323034], 0xffffffff
jne 0x14002ac72
mov qword [0x1403145d0], r14
movdqa xmm0, xmmword [0x1402cd3d0]
movdqu xmmword [0x1403145e0], xmm0
lea rcx, [0x1402657c0]
call fcn.140216068
lea rcx, [0x140323034]
call fcn.1402161d4
jmp 0x14002ac72
call fcn.14021f028
nop
call fcn.14021f028
nop
call fcn.14021f028
nop
call fcn.14021f028
int3