Function at 0x40d170
Capabilities:
Encode data using xor
Hash data with md5
Query or enumerate registry value

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 0x50382a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x668
push esi
push edi
mov dword [ebp - 0x64], ecx
mov esi, 0x20019
call fcn.0040bd30
test eax, eax
mov dword [ebp - 0x19], 0x44424672
mov ecx, 0x20119
mov dword [ebp - 0x15], 0x435b44
cmovne esi, ecx
mov byte [ebp - 0x11], 1
xor ecx, ecx
nop
lea eax, [ecx + 0x27]
xor byte [ebp + ecx - 0x19], al
inc ecx
cmp ecx, 7
jb 0x40d1d0
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x19]
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d205
sub ecx, edx
lea eax, [ebp - 0x19]
push ecx
push eax
lea ecx, [ebp - 0xac]
call fcn.00402830
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x5263f0]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x3c], 0
movaps xmm0, xmmword [str.QLeyIEMJP33__]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x40], 1
lea eax, [ecx + 0x27]
xor byte [ebp + ecx - 0x60], al
inc ecx
cmp ecx, 0x1f
jb 0x40d248
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x40], 0
push eax
push esi
push 0
lea eax, [ebp - 0x60]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d305
mov dword [ebp - 0x30], 0x20019
xor ecx, ecx
mov dword [ebp - 0x34], 0x400
mov dword [ebp - 0x1d], 0x424a496a
mov dword [ebp - 0x19], 0x69484242
mov dword [ebp - 0x15], 0x55595a
mov byte [ebp - 0x11], 1
lea eax, [ecx + 0x27]
xor byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 0xb
jb 0x40d2a0
lea eax, [ebp - 0x34]
mov byte [ebp - 0x11], 0
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x1d]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d2fc
lea ecx, [ebp - 0x678]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d2e0
sub ecx, edx
lea eax, [ebp - 0x678]
push ecx
push eax
lea ecx, [ebp - 0xac]
call fcn.004659f0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x19], 0x44424672
xor ecx, ecx
mov dword [ebp - 0x15], 0x435b44
mov byte [ebp - 0x11], 1
nop dword [eax]
lea eax, [ecx + 0x27]
xor byte [ebp + ecx - 0x19], al
inc ecx
cmp ecx, 7
jb 0x40d320
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x19]
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x80], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d352
sub ecx, edx
lea eax, [ebp - 0x19]
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00402830
push 0x7c
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x40d3bc
lea ecx, [ebp - 0x274]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d3a0
sub ecx, edx
lea eax, [ebp - 0x274]
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004659f0
lea ecx, [ebp - 0x110]
call fcn.0040cc80
mov dword [ebp - 0x38], eax
push 0x12
push 0
push 0
mov byte [ebp - 4], 2
push 0x50c500
mov word [ebp - 0x33], 0x5f
mov byte [ebp - 0x31], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp eax, 0xffffffff
jne 0x40d415
xorps xmm0, xmm0
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xdc], xmm0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
jmp 0x40d426
push ecx
mov edx, eax
lea ecx, [ebp - 0xdc]
call fcn.0040ca80
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b]
mov word [ebp - 0x2f], 0x5f
lea edx, [ecx + 1]
mov byte [ebp - 0x2d], 0
mov word [ebp - 0x2b], 0x5f
mov byte [ebp - 0x29], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d444
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp - 0x9c]
sub eax, edx
cmp eax, ecx
jb 0x40d9ea
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
push ecx
cmovae eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x2b]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.0046d850
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x80], 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x84]
sub eax, edx
mov dword [ebp - 0x2c], edx
push edi
push ecx
cmp edi, eax
ja 0x40d4e0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [esi + edx]
push eax
call fcn.004deb10
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov byte [eax + edi], 0
lea eax, [ebp - 0x28]
jmp 0x40d4f0
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call fcn.0046bc40
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x2f]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x7c]
call fcn.00465b20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0xf4]
call fcn.0046d660
lea eax, [ebp - 0x33]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xf4]
call fcn.00465b20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x128], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x118], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push dword [ebp - 0x38]
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc4]
call fcn.0046d660
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x40d60b
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d601
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x40d649
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d63f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x40d69c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d692
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x10
jb 0x40d6d4
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40d71e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d714
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xc8]
cmp ecx, 0x10
jb 0x40d76e
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d764
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xfc]
cmp ecx, 0x10
jb 0x40d7ac
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d7a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9ef
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov esi, dword [ebp - 0xb4]
lea ecx, [ebp - 0xc4]
xor edx, edx
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0xb0], 0x10
xorps xmm0, xmm0
mov dword [ebp - 0xfc], 0xf
cmovae ecx, dword [ebp - 0xc4]
xor edi, edi
mov byte [ebp - 0x110], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x1f8], 0x67452301
mov dword [ebp - 0x1f4], 0xefcdab89
mov dword [ebp - 0x1f0], 0x98badcfe
mov dword [ebp - 0x1ec], 0x10325476
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 0x15c], dl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x50], xmm0
cmp esi, 0x40
jb 0x40d878
mov esi, 0x40
nop dword [eax]
lea eax, [ecx - 0x40]
add eax, esi
lea ecx, [ebp - 0x1f8]
push eax
call fcn.00480fd0
mov ecx, dword [ebp - 0x30]
add esi, 0x40
add edi, 0x40
cmp esi, dword [ebp - 0x34]
jbe 0x40d850
mov edx, dword [ebp - 0x1e0]
mov esi, dword [ebp - 0x34]
cmp edi, esi
je 0x40d8a0
mov eax, esi
sub eax, edi
push eax
lea eax, [edi + ecx]
push eax
lea eax, [ebp - 0x1dc]
add eax, edx
push eax
call fcn.004deb10
sub esi, edi
add esp, 0xc
add dword [ebp - 0x1e0], esi
jmp 0x40d8aa
mov dword [ebp - 0x1e0], 0
push ecx
lea ecx, [ebp - 0x1f8]
call fcn.00480e60
cmp byte [ebp - 0x15c], 0
je 0x40d8de
movups xmm0, xmmword [ebp - 0x14b]
mov al, byte [ebp - 0x12b]
mov byte [ebp - 0x40], al
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [ebp - 0x13b]
movups xmmword [ebp - 0x50], xmm0
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
xorps xmm0, xmm0
lea edx, [ecx + 1]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d900
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
mov ecx, esi
call fcn.00402830
mov ecx, dword [ebp - 0xb0]
cmp ecx, 0x10
jb 0x40d94f
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d945
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9f4
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
cmp eax, 0x10
jb 0x40d99f
mov edx, dword [ebp - 0x94]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d995
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9f4
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp - 0x98]
cmp ecx, 0x10
jb 0x40d9d5
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d9cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9f4
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402040
call fcn.004e2350
call fcn.004e2350
int3