Function at 0x40b830
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Hash data with md5
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50596a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x678
push ebx
push esi
push edi
mov dword [ebp - 0xcc], ecx
mov esi, 0x20019
call fcn.0040a440
test eax, eax
je 0x40b86a
mov esi, 0x20119
mov dword [ebp - 0x15], 0x999d9ba1
xor ecx, ecx
mov dword [ebp - 0x11], 0x948e97
mov byte [ebp - 0xd], 1
mov edi, edi
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x15], al
inc ecx
cmp ecx, 7
jb 0x40b880
xor eax, eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x15]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
lea edx, [ecx + 1]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b8c0
sub ecx, edx
lea eax, [ebp - 0x15]
push ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.00402ae0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xa3b0baa7
mov dword [ebp - 0x54], 0xbea8b8af
mov dword [ebp - 0x50], 0x9c97b0a0
mov dword [ebp - 0x4c], 0x6c716e72
mov dword [ebp - 0x48], 0x445a7162
mov dword [ebp - 0x44], 0x7f7a707a
mov dword [ebp - 0x40], 0x6e7c6a63
mov dword [ebp - 0x3c], 0x6b7960
mov byte [ebp - 0x38], 1
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x58], al
inc ecx
cmp ecx, 0x1f
jb 0x40b925
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x38], 0
push eax
push esi
push 0
lea eax, [ebp - 0x58]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b9e5
mov dword [ebp - 0x34], 0x20019
xor ecx, ecx
mov dword [ebp - 0x28], 0x400
mov dword [ebp - 0x19], 0x9f9594b9
mov dword [ebp - 0x15], 0xbc9f9791
mov dword [ebp - 0x11], 0x9a9489
mov byte [ebp - 0xd], 1
lea ecx, [ecx]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x19], al
inc ecx
cmp ecx, 0xb
jb 0x40b980
lea eax, [ebp - 0x28]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x34]
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 0x40b9dc
lea ecx, [ebp - 0x680]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b9c0
sub ecx, edx
lea eax, [ebp - 0x680]
push ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.0046a350
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15], 0x999d9ba1
xor ecx, ecx
mov dword [ebp - 0x11], 0x948e97
mov byte [ebp - 0xd], 1
lea esp, [esp]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x15], al
inc ecx
cmp ecx, 7
jb 0x40ba00
xor eax, eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ba40
sub ecx, edx
lea eax, [ebp - 0x15]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.00402ae0
push 0x7c
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004e14f0
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x40baac
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ba90
sub ecx, edx
lea eax, [ebp - 0x27c]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0046a350
lea ecx, [ebp - 0x50]
call fcn.0040b360
mov dword [ebp - 0x30], eax
push 0x12
push 0
push 0
mov byte [ebp - 4], 2
push 0x50f540
mov word [ebp - 0x27], 0x5f
mov byte [ebp - 0x25], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp eax, 0xffffffff
jne 0x40bb0d
xor eax, eax
mov dword [ebp - 0xd0], 0xf
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xe4], al
jmp 0x40bb1e
push ecx
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.0040b1a0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b]
mov word [ebp - 0x33], 0x5f
lea edx, [ecx + 1]
mov byte [ebp - 0x31], 0
mov word [ebp - 0x2b], 0x5f
mov byte [ebp - 0x29], 0
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb40
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp - 0xa0]
sub eax, edx
cmp eax, ecx
jb 0x40c141
cmp dword [ebp - 0x9c], 0x10
lea eax, [ebp - 0xb0]
jb 0x40bb73
mov eax, dword [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x2b]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0xc8]
call fcn.004720e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
jb 0x40bba2
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xb4]
mov eax, edx
mov edi, dword [ebp - 0xb8]
sub eax, edi
mov esi, dword [ebp - 0x88]
cmp esi, eax
ja 0x40bbf3
lea eax, [esi + edi]
mov dword [ebp - 0xb8], eax
lea ebx, [ebp - 0xc8]
cmp edx, 0x10
jb 0x40bbd6
mov ebx, dword [ebp - 0xc8]
push esi
lea eax, [ebx + edi]
push ecx
push eax
call fcn.004e0f70
lea eax, [ebx + edi]
add esp, 0xc
mov byte [eax + esi], 0
lea ecx, [ebp - 0xc8]
jmp 0x40bc0a
push esi
push ecx
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0xc8]
push dword [ebp - 0x2c]
push esi
call fcn.004706c0
mov ecx, eax
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 eax, dword [ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea eax, [ebp - 0x33]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x24]
call fcn.0046a480
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x78], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x74], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x70], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x12c]
call fcn.00471ed0
lea eax, [ebp - 0x27]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x12c]
call fcn.0046a480
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x114], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x110], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x108], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0xfc]
call fcn.00471ed0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x100]
cmp ecx, 0x10
jb 0x40bd6a
mov edx, dword [ebp - 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x40bda8
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x10
jb 0x40bdfb
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x10
jb 0x40be33
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40be29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0x10
jb 0x40be83
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40be79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xd0]
cmp ecx, 0x10
jb 0x40bedc
mov edx, dword [ebp - 0xe4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bed2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x40bf14
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c146
push ecx
push edx
call fcn.004df511
add esp, 8
mov ebx, dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0x80], eax
xor ecx, ecx
cmp dword [ebp - 0xe8], 0x10
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], al
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 0x164], al
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x200], 0x67452301
mov dword [ebp - 0x1fc], 0xefcdab89
mov dword [ebp - 0x1f8], 0x98badcfe
mov dword [ebp - 0x1f4], 0x10325476
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x28], eax
jb 0x40bfa6
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x28], eax
xor edi, edi
cmp ebx, 0x40
jb 0x40bfd6
mov esi, 0x40
add eax, 0xffffffc0
lea ecx, [ebp - 0x200]
add eax, esi
push eax
call fcn.00485b20
mov eax, dword [ebp - 0x28]
add esi, 0x40
add edi, 0x40
cmp esi, ebx
jbe 0x40bfb2
mov ecx, dword [ebp - 0x1e8]
cmp edi, ebx
je 0x40c000
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 0x28]
add eax, edi
push eax
lea eax, [ebp - 0x1e4]
add eax, ecx
push eax
call fcn.004e0f70
sub ebx, edi
add esp, 0xc
add dword [ebp - 0x1e8], ebx
jmp 0x40c00a
mov dword [ebp - 0x1e8], 0
push ecx
lea ecx, [ebp - 0x200]
call fcn.00485980
cmp byte [ebp - 0x164], 0
je 0x40c030
mov ecx, 8
lea esi, [ebp - 0x153]
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp - 0xcc]
lea ecx, [ebp - 0x80]
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
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c050
sub ecx, edx
lea eax, [ebp - 0x80]
push ecx
push eax
mov ecx, ebx
call fcn.00402ae0
mov ecx, dword [ebp - 0xe8]
cmp ecx, 0x10
jb 0x40c09f
mov edx, dword [ebp - 0xfc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c095
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c14b
push ecx
push edx
call fcn.004df511
add esp, 8
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0xf
mov byte [ebp - 0xfc], 0
cmp eax, 0x10
jb 0x40c0f8
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x98]
mov edx, eax
cmp ecx, 0x1000
jb 0x40c0ee
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x30], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x40c14b
mov eax, dword [ebp - 0x30]
push ecx
push eax
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x40c12e
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c124
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c14b
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402270
call fcn.004e47b0
call fcn.004e47b0
int3