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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5346c1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x57b270]
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.0043c140
mov esi, eax
push 0x540484
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0043c140
mov ecx, dword [esi]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x43b620
mov esi, dword [ecx]
jmp 0x43b622
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x43b62c
mov edx, dword [eax]
jmp 0x43b62e
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 0x43b69a
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x43b693
test esi, esi
je 0x43b693
mov eax, dword [esi]
test eax, eax
je 0x43b671
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43b688
push eax
call fcn.00460be6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00460b61
add esp, 8
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x43b6e5
lock xadd dword [esi + 8], edi
dec edi
jne 0x43b6e5
test esi, esi
je 0x43b6e5
mov eax, dword [esi]
test eax, eax
je 0x43b6c3
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43b6da
push eax
call fcn.00460be6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00460b61
add esp, 8
cmp dword [ebp + 8], 0
jl 0x43bd12
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x43bd0c
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 0x43bd09
cmp dword [esi + 0x10], 0
jne 0x43bd09
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 0x540488
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x2c]
call fcn.004ebcd0
mov ebx, eax
mov dword [ebp - 0x14], eax
lea eax, [ebx + 1]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x43b766
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 0x43b7ab
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43b792
mov eax, dword [esi]
push ebx
push dword [ebp - 0x14]
lea edi, [eax + ecx]
push edi
call fcn.004ecdd0
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43b8c9
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bd32
lea edi, [ecx + ebx]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43b7d2
mov edi, SysReAllocString
lea eax, [edi + 0x24]
jmp 0x43b811
mov eax, edx
shr eax, 1
mov dword [ebp + 0xc], eax
mov eax, SysReAllocString
sub eax, dword [ebp + 0xc]
cmp edx, eax
jbe 0x43b7ef
mov edi, SysReAllocString
lea eax, [edi + 0x24]
jmp 0x43b811
mov eax, dword [ebp + 0xc]
add eax, edx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x43b832
add eax, 0x23
lea ecx, [edi + 1]
cmp eax, ecx
jbe 0x43bd28
push eax
call fcn.00460b31
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43bd2d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x1c]
jmp 0x43b846
test eax, eax
je 0x43b844
push eax
call fcn.00460b31
mov ecx, dword [ebp - 0x1c]
add esp, 4
jmp 0x43b846
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 0x43b8ac
mov edi, dword [esi]
push edi
push eax
call fcn.004ec850
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.004ec850
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ecx, dword [ebp - 0x20]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43b8a0
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bd2d
mov edi, edx
push ecx
push edi
call fcn.00460b61
add esp, 8
jmp 0x43b8c4
push esi
push eax
call fcn.004ec850
push ebx
push dword [ebp - 0x14]
push edi
call fcn.004ec850
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 0x43bcf3
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.004ebcd0
mov ebx, eax
mov dword [ebp + 0xc], eax
lea eax, [ebx + 1]
nop
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x43b910
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 0x43b955
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43b93c
mov eax, dword [esi]
push ebx
push dword [ebp + 0xc]
lea edi, [eax + ecx]
push edi
call fcn.004ecdd0
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43ba2d
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bd32
lea eax, [ecx + ebx]
mov edi, eax
mov dword [ebp - 0x20], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43b97e
mov edi, SysReAllocString
jmp 0x43b99c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x43b994
mov edi, SysReAllocString
jmp 0x43b99c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405430
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 0x43ba10
mov edi, dword [esi]
push edi
push eax
call fcn.004ec850
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.004ec850
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43ba04
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bd2d
mov edi, edx
push ecx
push edi
call fcn.00460b61
add esp, 8
jmp 0x43ba28
push esi
push eax
call fcn.004ec850
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004ec850
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.004ebcd0
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 0x43ba70
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 0x43bab5
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43ba9c
mov eax, dword [esi]
push ebx
push dword [ebp + 0xc]
lea edi, [ecx + eax]
push edi
call fcn.004ecdd0
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43bb8d
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bd32
lea eax, [ecx + ebx]
mov edi, eax
mov dword [ebp - 0x24], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43bade
mov edi, SysReAllocString
jmp 0x43bafc
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x43baf4
mov edi, SysReAllocString
jmp 0x43bafc
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405430
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 0x43bb70
mov edi, dword [esi]
push edi
push eax
call fcn.004ec850
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.004ec850
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43bb64
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bd2d
mov edi, edx
push ecx
push edi
call fcn.00460b61
add esp, 8
jmp 0x43bb88
push esi
push eax
call fcn.004ec850
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004ec850
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.004ebcd0
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 0x43bbd0
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 0x43bc15
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x43bbfc
mov eax, dword [esi]
push ebx
push dword [ebp + 0xc]
lea edi, [ecx + eax]
push edi
call fcn.004ecdd0
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x43bce9
mov eax, SysReAllocString
sub eax, ecx
cmp eax, ebx
jb 0x43bd32
lea eax, [ecx + ebx]
mov edi, eax
mov dword [ebp - 0x24], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x43bc3e
mov edi, SysReAllocString
jmp 0x43bc5c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x43bc54
mov edi, SysReAllocString
jmp 0x43bc5c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405430
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 0x43bccc
mov edi, dword [esi]
push edi
push eax
call fcn.004ec850
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.004ec850
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + ebx], 0
cmp ecx, 0x1000
jb 0x43bcc0
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43bd2d
mov edi, edx
push ecx
push edi
call fcn.00460b61
add esp, 8
jmp 0x43bce4
push esi
push eax
call fcn.004ec850
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004ec850
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 0x43b700
jmp 0x43bd0c
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.004053c0
call fcn.004f639a
call fcn.00404fd0
int3