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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5063a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
push ebx
push esi
mov dword [ebp - 0x90], ecx
push edi
mov dword [ebp - 0x2c], 0
call fcn.0040b0d0
neg eax
mov dword [ebp - 0x15], 0x848286b2
mov dword [ebp - 0x11], 0x839b84
sbb esi, esi
mov byte [ebp - 0xd], 1
and esi, 0x100
add esi, 0x20019
xor ecx, ecx
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x15], al
inc ecx
cmp ecx, 7
jb 0x40c6c7
xor eax, eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c6f2
sub ecx, edx
lea eax, [ebp - 0x15]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00402ea0
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0xbeafa7b4
mov dword [ebp - 0x50], 0xabbfadbc
mov dword [ebp - 0x4c], 0x9198bdb3
mov dword [ebp - 0x48], 0x99869b81
mov dword [ebp - 0x44], 0xb9a58c91
mov dword [ebp - 0x40], 0x8a8d8589
mov dword [ebp - 0x3c], 0x63736790
mov dword [ebp - 0x38], 0x7c6c73
mov byte [ebp - 0x34], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1f
jb 0x40c754
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x34], 0
push eax
push esi
push 0
lea eax, [ebp - 0x54]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c812
mov dword [ebp - 0x58], 0x20019
xor ecx, ecx
mov dword [ebp - 0x28], 0x400
mov dword [ebp - 0x19], 0x828a89aa
mov dword [ebp - 0x15], 0xa9888282
mov dword [ebp - 0x11], 0x95999a
mov byte [ebp - 0xd], 1
lea esp, [esp]
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x19], al
inc ecx
cmp ecx, 0xb
jb 0x40c7b0
lea eax, [ebp - 0x28]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
lea eax, [ebp - 0x19]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c809
lea ecx, [ebp - 0x66c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c7f0
sub ecx, edx
lea eax, [ebp - 0x66c]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00468880
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15], 0x848286b2
xor ecx, ecx
mov dword [ebp - 0x11], 0x839b84
mov byte [ebp - 0xd], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x15], al
inc ecx
cmp ecx, 7
jb 0x40c826
xor eax, eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c860
sub ecx, edx
lea eax, [ebp - 0x15]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00402ea0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x26c]
push 0x7c
push 0
push eax
call fcn.004e1ab0
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x40c8cc
lea ecx, [ebp - 0x268]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c8b0
sub ecx, edx
lea eax, [ebp - 0x268]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00468880
lea ecx, [ebp - 0x4c]
call fcn.0040c1a0
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
mov word [ebp - 0x27], 0x5f
mov byte [ebp - 0x25], 0
call fcn.0040c110
mov edi, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x57], 0x5f
mov byte [ebp - 0x55], 0
mov word [ebp - 0x2f], 0x5f
mov byte [ebp - 0x2d], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c913
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp - 0x64]
sub eax, edx
cmp eax, ecx
jb 0x40ccf0
cmp dword [ebp - 0x60], 0xf
lea eax, [ebp - 0x74]
jbe 0x40c93a
mov eax, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x2f]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0xf0]
call fcn.00470ea0
mov dword [ebp - 0x2c], 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0xf
jbe 0x40c96d
mov eax, dword [ebp - 0x8c]
push dword [ebp - 0x7c]
lea ecx, [ebp - 0xf0]
push eax
call fcn.0046b590
mov edx, eax
mov dword [ebp - 0x2c], 0xc
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ecx, dword [edx]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x120]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x57]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
lea edx, [ebp - 0x24]
push eax
call fcn.0046d100
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd8]
push edi
push eax
push dword [ebp - 0x5c]
call fcn.00470cf0
lea eax, [ebp - 0x27]
mov dword [ebp - 0x2c], 0x1c
push eax
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x108]
call fcn.0046d100
mov byte [ebp - 4], 9
mov edx, eax
push esi
lea ecx, [ebp - 0xc0]
call fcn.0046d3a0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x108]
call fcn.00402c80
mov ebx, 0x1c
mov dword [ebp - 0x2c], ebx
and ebx, 0xffffffef
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xd8]
call fcn.00402c80
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x120]
call fcn.00402c80
and ebx, 0xfffffff7
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xf
jbe 0x40caa0
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ca96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ccf5
push ecx
push edx
call fcn.004dfaf3
add esp, 8
and ebx, 0xfffffffb
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xf0]
call fcn.00402c80
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x94]
cmp ecx, 0xf
jbe 0x40cb05
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cafb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ccf5
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4c]
call fcn.00402c80
mov ebx, dword [ebp - 0xb0]
xor eax, eax
mov dword [ebp - 0x54], eax
xor ecx, ecx
cmp dword [ebp - 0xac], 0xf
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], al
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 0x154], al
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x1f0], 0x67452301
mov dword [ebp - 0x1ec], 0xefcdab89
mov dword [ebp - 0x1e8], 0x98badcfe
mov dword [ebp - 0x1e4], 0x10325476
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x28], eax
jbe 0x40cbac
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x28], eax
xor edi, edi
cmp ebx, 0x40
jb 0x40cbe4
mov esi, 0x40
jmp 0x40cbc0
add eax, 0xffffffc0
lea ecx, [ebp - 0x1f0]
add eax, esi
push eax
call fcn.00486d50
mov eax, dword [ebp - 0x28]
add esi, 0x40
add edi, 0x40
cmp esi, ebx
jbe 0x40cbc0
mov ecx, dword [ebp - 0x1d8]
cmp edi, ebx
je 0x40cc0e
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 0x28]
add eax, edi
push eax
lea eax, [ebp - 0x1d4]
add eax, ecx
push eax
call fcn.004e1370
sub ebx, edi
add esp, 0xc
add dword [ebp - 0x1d8], ebx
jmp 0x40cc18
mov dword [ebp - 0x1d8], 0
push ecx
lea ecx, [ebp - 0x1f0]
call fcn.00486bc0
cmp byte [ebp - 0x154], 0
je 0x40cc3e
mov ecx, 8
lea esi, [ebp - 0x143]
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp - 0x90]
lea ecx, [ebp - 0x54]
xor eax, eax
lea edx, [ecx + 1]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cc60
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
mov ecx, ebx
call fcn.00402ea0
or dword [ebp - 0x2c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.00402c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00402c80
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x40cccb
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ccc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ccfa
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004025a0
call fcn.004e4d70
call fcn.004e4d70
int3