Function at 0x40b3f4
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x40b3fd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d2c
xor eax, eax
push ebp
push 0x40b843
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
call fcn.00403778
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push ebx
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40b5b9
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.00402850
mov esi, eax
jmp 0x40b594
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 4]
call fcn.00404ae8
mov edi, eax
test edi, edi
jl 0x40b587
inc edi
xor ebx, ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.0040b094
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x40b3d0]
call fcn.00404cbc
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40b57f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00403ee8
mov eax, dword [ebp - 0x50]
call fcn.00403f44
inc eax
add eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.crypt32.dll_CryptUnprotectData
test eax, eax
je 0x40b57f
push dword [ebp - 0x4c]
push 0x40b85c
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.004039a0
push dword [ebp - 0x54]
push 0x40b870
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00403ad4
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.0040b268
push dword [ebp - 0x58]
push 0x40b87c
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00403ad4
inc ebx
dec edi
jne 0x40b482
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.004055e4
inc dword [ebp - 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x40b466
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x40b7cf
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x4c]
mov eax, 0x40b87c
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00403c74
mov edx, dword [ebp - 0x4c]
mov eax, 0x40b87c
call fcn.00403cfc
mov ecx, eax
inc ecx
lea eax, [ebp - 0x4c]
mov edx, 1
call fcn.00403cb4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov ecx, 0x40b87c
mov edx, dword [ebp - 0x44]
call fcn.00403a60
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
call fcn.00407ec8
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
call fcn.00403810
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x40b888
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00403c74
mov eax, dword [ebp - 0x64]
mov edx, 0x40b894
call fcn.00403b60
jne 0x40b7cf
mov edx, dword [ebp - 0x44]
mov eax, 0x40b8a4
call fcn.00403cfc
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00403cb4
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00403c74
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00403cb4
jmp 0x40b7ba
mov edx, dword [ebp - 0x44]
mov eax, 0x40b8a4
call fcn.00403cfc
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00403cb4
push dword [ebp - 0x48]
push dword [ebp - 0x40]
push 0x40b870
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00403c74
push dword [ebp - 0x68]
push 0x40b870
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00403ad4
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00403cb4
mov edx, dword [ebp - 0x44]
mov eax, 0x40b8a4
call fcn.00403cfc
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00403cb4
push dword [ebp - 0x48]
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00403c74
push dword [ebp - 0x6c]
push 0x40b870
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00403ad4
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00403cb4
lea eax, [ebp - 0x48]
mov edx, 0x40b87c
call fcn.00403a1c
mov edx, dword [ebp - 0x44]
mov eax, 0x40b870
call fcn.00403cfc
test eax, eax
jg 0x40b6c3
mov edx, dword [ebp - 0x4c]
mov eax, 0x40b87c
call fcn.00403cfc
test eax, eax
jg 0x40b5c7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
call fcn.004037cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b84a
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.0040379c
lea eax, [ebp - 0x50]
call fcn.00403dd8
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.0040379c
lea eax, [ebp - 0x24]
mov edx, dword [0x40b3d0]
call fcn.00404cc8
lea eax, [ebp - 0x10]
call fcn.00403778
lea eax, [ebp - 4]
mov edx, dword [0x40accc]
call fcn.00404cc8
ret