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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058c4
xor eax, eax
push ebp
push 0x41957e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push ebx
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x419526
mov dword [ebp - 0x24], 0x400
mov eax, dword [ebp - 0x24]
call fcn.00402ce0
mov esi, eax
jmp 0x419501
mov dword [ebp - 0x24], 0x400
mov eax, dword [ebp - 4]
call fcn.004056a0
mov edi, eax
test edi, edi
jl 0x4194f2
inc edi
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.00419070
push esi
mov eax, dword [ebp - 8]
call fcn.00404ac4
push eax
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4194ea
push 0x419594
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00404880
push dword [ebp - 0x48]
push 0x4195a4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004049c8
push 0x4195b0
push dword [ebp - 8]
push 0x4195a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004049c8
cmp dword [ebp - 0xc], 0
je 0x419434
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.004046ac
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x41930c]
call fcn.00405854
add esp, 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4194ea
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00404ea0
mov eax, dword [ebp - 0x4c]
call fcn.00404eec
inc eax
add eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call sub.crypt32.dll_CryptUnprotectData
test eax, eax
je 0x4194ea
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
call fcn.0041920c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.00404900
mov eax, dword [ebp - 0x18]
inc ebx
dec edi
jne 0x4193bc
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.004032dc
inc dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x4193a0
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419585
lea eax, [ebp - 0x50]
call fcn.00404658
lea eax, [ebp - 0x4c]
call fcn.00404d8c
lea eax, [ebp - 0x48]
call fcn.00404658
lea eax, [ebp - 0x14]
mov edx, dword [0x41930c]
call fcn.00405860
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040467c
lea eax, [ebp - 4]
mov edx, dword [0x418e24]
call fcn.00405860
ret