Function at 0x40a170
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0
push 0x51f4b8
mov ecx, 0x532b94
mov dword [ebp - 4], 2
call fcn.00465820
xor esi, esi
nop dword [eax + eax]
push 0
push 0x14e57
call fcn.00408920
mov cl, byte [esi + 0x5173c0]
add esp, 8
mov edx, dword [str.SetupDiEnumDeviceInterfaces]
xor cl, al
mov edi, dword [0x532ba8]
mov byte [ebp - 0x18], cl
cmp edx, edi
jae 0x40a1bb
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [str.SetupDiEnumDeviceInterfaces], eax
mov eax, 0x532b94
cmovae eax, dword [0x532b94]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x40a1d1
push dword [ebp - 0x18]
mov byte [ebp - 0x14], 0
mov ecx, 0x532b94
push dword [ebp - 0x14]
push 1
call fcn.004034f0
inc esi
cmp esi, 0x10ce
jb 0x40a170
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x40a1e3
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a210
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00403410
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13]
xorps xmm0, xmm0
mov word [ebp - 0x13], 0xa
mov byte [ebp - 0x11], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a250
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403410
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov edi, 0x532b94
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
cmovae ecx, edx
cmp dword [0x532ba8], 0x10
mov eax, dword [str.SetupDiEnumDeviceInterfaces]
cmovae edi, dword [0x532b94]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
cmp esi, eax
ja 0x40a377
sub eax, esi
test esi, esi
jne 0x40a2ad
xor edi, edi
jmp 0x40a359
movsx ecx, byte [ecx]
inc eax
add eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
sub eax, edi
push eax
push ecx
push edi
call fcn.004e03d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40a374
mov edx, dword [ebp - 0x18]
mov ecx, edi
sub esi, 4
jb 0x40a2f1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40a2f6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40a2e0
cmp esi, 0xfffffffc
je 0x40a32a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40a323
cmp esi, 0xfffffffd
je 0x40a32a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40a323
cmp esi, 0xfffffffe
je 0x40a32a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40a323
cmp esi, 0xffffffff
je 0x40a32a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40a32a
sbb eax, eax
or eax, 1
jmp 0x40a32c
xor eax, eax
test eax, eax
je 0x40a34e
mov eax, dword [ebp - 0x14]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x1c]
push edi
call fcn.004e03d0
mov esi, dword [ebp - 0x2c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40a2d0
jmp 0x40a374
sub edi, dword [ebp - 0x24]
cmp edi, 0xffffffff
je 0x40a374
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
mov ecx, 0x532b94
push eax
push esi
push edi
call fcn.00468390
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x40a3ae
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a3a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aafc
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x40a3e6
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a3dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aafc
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x40a3f0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov edx, dword [ebx + 0x18]
mov eax, 0x6c
test edx, edx
je 0x40a5e4
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x40a470
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40a440
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov edx, dword [ebx + 0x18]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x40a430
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a490
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x40aade
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.0046d4f0
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x3c]
call fcn.00465950
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x532b94
call fcn.004659c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x40a542
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a538
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aae3
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40a57a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a570
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aae3
push ecx
push edx
call fcn.004dcc02
add esp, 8
test esi, esi
je 0x40a5b4
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40a590
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
sub esi, 1
jne 0x40a580
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x40a5c0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov eax, 0x6c
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x40a7af
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x40a640
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40a610
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov edx, dword [ebx + 0x30]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x40a600
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a660
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x40aae8
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
push edx
cmovae eax, dword [ebx + 0x20]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.0046d4f0
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x3c]
call fcn.00465950
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x532b94
call fcn.004659c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x40a712
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a708
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aaed
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40a74a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a740
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aaed
push ecx
push edx
call fcn.004dcc02
add esp, 8
test esi, esi
je 0x40a784
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40a760
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
sub esi, 1
jne 0x40a750
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x40a790
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x40a97f
mov eax, 0x6c
xor edi, edi
sub eax, edx
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x40a810
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40a7e0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov edx, dword [ebx + 0x48]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x40a7d0
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a830
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x40aaf2
cmp dword [ebx + 0x4c], 0x10
lea eax, [ebx + 0x38]
push edx
cmovae eax, dword [ebx + 0x38]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.0046d4f0
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.00465950
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
mov ecx, 0x532b94
call fcn.004659c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x40a8e2
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aaf7
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40a91a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a910
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aaf7
push ecx
push edx
call fcn.004dcc02
add esp, 8
test esi, esi
je 0x40a954
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40a930
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
sub esi, 1
jne 0x40a920
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x40a960
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
xor esi, esi
push 0
push 0x14e57
call fcn.00408920
mov cl, byte [esi + 0x518490]
add esp, 8
mov edx, dword [str.SetupDiEnumDeviceInterfaces]
xor cl, al
mov edi, dword [0x532ba8]
mov byte [ebp - 0x24], cl
cmp edx, edi
jae 0x40a9cc
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [str.SetupDiEnumDeviceInterfaces], eax
mov eax, 0x532b94
cmovae eax, dword [0x532b94]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x40a9e2
push dword [ebp - 0x24]
mov byte [ebp - 0x1c], 0
mov ecx, 0x532b94
push dword [ebp - 0x1c]
push 1
call fcn.004034f0
inc esi
cmp esi, 0x14a
jb 0x40a981
mov dword [ebp - 0x18], 0x1001a02
xor edx, edx
lea eax, [edx + 0xf]
xor byte [ebp + edx - 0x18], al
inc edx
cmp edx, 2
jb 0x40a9f4
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00465950
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40aa47
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aafc
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x40aa89
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aafc
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp ecx, 0x10
jb 0x40aacb
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aac1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aafc
push ecx
push edx
call fcn.004dcc02
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402c40
call fcn.004e1ea0
call fcn.00402c40
call fcn.004e1ea0
call fcn.00402c40
call fcn.004e1ea0
call fcn.004e1ea0
int3