Function at 0x43b670
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533e71
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x579258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SELECT__FROM_Win32_DiskDrive_WHERE__SerialNumber_IS_NOT_NULL__AND__InterfaceType____USB_
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
call fcn.0043c1f0
mov esi, eax
push 0x53f46c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0043c1f0
mov ecx, dword [esi]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x43b6d0
mov esi, dword [ecx]
jmp 0x43b6d2
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x43b6dc
mov edx, dword [eax]
jmp 0x43b6de
xor edx, edx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x10]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp + 8], eax
test esi, esi
je 0x43b74a
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x43b743
test esi, esi
je 0x43b743
mov eax, dword [esi]
test eax, eax
je 0x43b721
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43b738
push eax
call fcn.00460496
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00460404
add esp, 8
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x43b795
lock xadd dword [esi + 8], edi
dec edi
jne 0x43b795
test esi, esi
je 0x43b795
mov eax, dword [esi]
test eax, eax
je 0x43b773
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43b78a
push eax
call fcn.00460496
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00460404
add esp, 8
cmp dword [ebp + 8], 0
jl 0x43bdc2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x43bdbc
mov esi, dword [ebp + 0xc]
nop dword [eax]
lea edx, [ebp - 0x18]
mov dword [ebp + 8], 0
push edx
lea edx, [ebp + 8]
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x18], 0
je 0x43bdb9
cmp dword [esi + 0x10], 0
jne 0x43bdb9
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x53f470
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x2c]
call fcn.004eb450
mov ebx, eax
mov dword [ebp - 0x14], eax
lea eax, [ebx + 1]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x43b816
mov edx, dword [esi + 0x14]
sub ebx, eax
mov ecx, dword [esi + 0x10]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
cmp ebx, eax
ja 0x43b85b
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43b842
mov eax, dword [esi]
push ebx
push dword [ebp - 0x14]
lea edi, [eax + ecx]
push edi
call fcn.004ec550
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43b979
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bde2
lea edi, [ecx + ebx]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43b882
mov edi, SysReAllocString
lea eax, [edi + 0x24]
jmp 0x43b8c1
mov eax, edx
shr eax, 1
mov dword [ebp + 0xc], eax
mov eax, SysReAllocString
sub eax, dword [ebp + 0xc]
cmp edx, eax
jbe 0x43b89f
mov edi, SysReAllocString
lea eax, [edi + 0x24]
jmp 0x43b8c1
mov eax, dword [ebp + 0xc]
add eax, edx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x43b8e2
add eax, 0x23
lea ecx, [edi + 1]
cmp eax, ecx
jbe 0x43bdd8
push eax
call fcn.004603d4
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43bddd
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x1c]
jmp 0x43b8f6
test eax, eax
je 0x43b8f4
push eax
call fcn.004603d4
mov ecx, dword [ebp - 0x1c]
add esp, 4
jmp 0x43b8f6
xor eax, eax
cmp dword [ebp - 0x20], 0x10
lea edx, [ecx + ebx]
mov dword [esi + 0x14], edi
lea edi, [eax + ecx]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [ebp - 0x1c], edi
push ecx
jb 0x43b95c
mov edi, dword [esi]
push edi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.004ebfd0
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ecx, dword [ebp - 0x20]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43b950
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bddd
mov edi, edx
push ecx
push edi
call fcn.00460404
add esp, 8
jmp 0x43b974
push esi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp - 0x14]
push edi
call fcn.004ebfd0
add esp, 0x18
mov byte [edi + ebx], 0
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [esi + 0x10], 0
je 0x43bda3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.PNPDeviceID
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x2c]
call fcn.004eb450
mov ebx, eax
mov dword [ebp + 0xc], eax
lea eax, [ebx + 1]
nop
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x43b9c0
mov edx, dword [esi + 0x14]
sub ebx, eax
mov ecx, dword [esi + 0x10]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edx
cmp ebx, eax
ja 0x43ba05
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43b9ec
mov eax, dword [esi]
push ebx
push dword [ebp + 0xc]
lea edi, [eax + ecx]
push edi
call fcn.004ec550
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43badd
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bde2
lea eax, [ecx + ebx]
mov edi, eax
mov dword [ebp - 0x20], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43ba2e
mov edi, SysReAllocString
jmp 0x43ba4c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x43ba44
mov edi, SysReAllocString
jmp 0x43ba4c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405420
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x14], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x20], edi
jb 0x43bac0
mov edi, dword [esi]
push edi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.004ebfd0
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43bab4
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bddd
mov edi, edx
push ecx
push edi
call fcn.00460404
add esp, 8
jmp 0x43bad8
push esi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004ebfd0
add esp, 0x18
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Model
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x2c]
call fcn.004eb450
mov ebx, eax
mov dword [ebp + 0xc], eax
lea eax, [ebx + 1]
nop dword [eax]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x43bb20
mov edx, dword [esi + 0x14]
sub ebx, eax
mov ecx, dword [esi + 0x10]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
cmp ebx, eax
ja 0x43bb65
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43bb4c
mov eax, dword [esi]
push ebx
push dword [ebp + 0xc]
lea edi, [ecx + eax]
push edi
call fcn.004ec550
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43bc3d
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bde2
lea eax, [ecx + ebx]
mov edi, eax
mov dword [ebp - 0x24], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43bb8e
mov edi, SysReAllocString
jmp 0x43bbac
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x43bba4
mov edi, SysReAllocString
jmp 0x43bbac
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405420
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x14], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x20], edi
jb 0x43bc20
mov edi, dword [esi]
push edi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.004ebfd0
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43bc14
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bddd
mov edi, edx
push ecx
push edi
call fcn.00460404
add esp, 8
jmp 0x43bc38
push esi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004ebfd0
add esp, 0x18
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SystemName
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x2c]
call fcn.004eb450
mov ebx, eax
mov dword [ebp + 0xc], eax
lea eax, [ebx + 1]
nop dword [eax]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x43bc80
mov edx, dword [esi + 0x14]
sub ebx, eax
mov ecx, dword [esi + 0x10]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
cmp ebx, eax
ja 0x43bcc5
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43bcac
mov eax, dword [esi]
push ebx
push dword [ebp + 0xc]
lea edi, [ecx + eax]
push edi
call fcn.004ec550
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43bd99
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bde2
lea eax, [ecx + ebx]
mov edi, eax
mov dword [ebp - 0x24], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43bcee
mov edi, SysReAllocString
jmp 0x43bd0c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x43bd04
mov edi, SysReAllocString
jmp 0x43bd0c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405420
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x14], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x20], edi
jb 0x43bd7c
mov edi, dword [esi]
push edi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.004ebfd0
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43bd70
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bddd
mov edi, edx
push ecx
push edi
call fcn.00460404
add esp, 8
jmp 0x43bd94
push esi
push eax
call fcn.004ebfd0
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004ebfd0
add esp, 0x18
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x43b7b0
jmp 0x43bdbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004053b0
call fcn.004f5b2a
call fcn.00404fc0
int3