Function at 0x10029640
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x100a2bb4]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push edi
test esi, esi
je 0x1003e7f5
mov edx, dword [ecx + 0xc]
xor eax, eax
mov ebx, dword [ecx + 4]
xor edi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], eax
test edx, edx
je 0x10029799
add ebx, 0x1c
mov ecx, edx
lea esp, [esp]
mov edx, dword [ebx - 4]
cmp edx, 0xffffffff
je 0x100297b2
mov edi, dword [esi + 0x430]
lea ecx, [edx + edx*2]
mov eax, dword [ebx - 0xc]
shl ecx, 3
add edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebx - 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
lea esi, [edi + 8]
test eax, eax
je 0x1003e9fd
mov ecx, dword [ebx]
mov eax, dword [edi]
shl ecx, 4
sub ecx, dword [ebx]
test dword [eax + ecx*2 + 8], 0x400
lea eax, [eax + ecx*2]
mov dword [esp + 0x20], eax
je 0x1003e847
mov eax, dword [esp + 0x28]
lea ecx, [edx + edx*2]
mov edi, dword [ebx]
mov edx, dword [esp + 0x20]
imul edi, edi, 0x34
mov eax, dword [eax + 4]
add edi, dword [eax + ecx*8]
lea ecx, [esp + 0x30]
push edi
push esi
call fcn.10029ab0
add esp, 8
test eax, eax
js 0x1003ea53
cmp dword [ebp + 0x10], 0
mov dword [edi + 4], 0
je 0x10029760
mov ecx, 0x1000444c
mov edx, 0xc
jmp 0x10029740
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x1002989c
add esi, 4
add ecx, 4
sub edx, 4
jae 0x10029740
xor eax, eax
test eax, eax
jne 0x10029760
cmp dword [edi], 9
je 0x100297bc
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
add ebx, 0x20
inc edx
mov dword [esp + 0x2c], edx
cmp edx, ecx
jb 0x100296a0
test eax, eax
je 0x1002988f
test edi, edi
jne 0x1003ea7d
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10037870
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx], 0xffffffff
je 0x10029775
jmp 0x100296ac
add edi, 0x24
mov dword [esp + 0x24], 0
cmp word [edi], 8
jne 0x10029760
mov eax, dword [edi + 8]
test eax, eax
je 0x10029760
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov esi, eax
lea ecx, [esi + 0x13]
and ecx, 0xfffffff0
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1003e97d
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, dword [esp + 0x20]
push esi
lea ecx, [eax + edx]
xor eax, eax
mov dword [ecx - 0x10], eax
mov dword [ecx - 0xc], eax
mov dword [ecx - 8], eax
mov dword [ecx - 4], eax
lea eax, [edx + 4]
push dword [edi + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0
push eax
mov dword [eax], esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push dword [esp + 0x28]
call dword [sym.imp.DPAPI.dll_CryptProtectMemory]
test eax, eax
je 0x1003e937
mov eax, dword [edi + 8]
test esi, esi
je 0x1002985b
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x10029850
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x24]
mov eax, 8
mov word [edi], ax
mov eax, dword [esp + 0x20]
mov dword [edi + 8], eax
test byte [0x100a4750], 2
jne 0x1003e9a8
test esi, esi
jns 0x10029760
jmp 0x1003e9c5
test edi, edi
je 0x10029799
jmp 0x1003ea87
cmp al, byte [ecx]
jne 0x100298bc
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x100298bc
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x100298bc
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x10029755
sbb eax, eax
or eax, 1
jmp 0x10029757
mov eax, dword [0x100a4750]
test al, 2
je 0x1003e83d
push 0x3e1
mov edx, 0x10013af0
mov ecx, 0x80004003
call fcn.10051341
mov eax, dword [0x100a4750]
add esp, 4
test al, 2
je 0x1003e83d
mov ecx, dword [0x100aa138]
mov edx, 0xf8409
push 0x80004003
push 0x10013b68
call fcn.1005682f
jmp 0x1002979b
mov eax, 0x80004003
jmp 0x1002979b
mov eax, dword [esp + 0x1c]
imul edi, dword [ebx], 0x34
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x484]
add edi, dword [eax + ecx]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [edi + 0x24]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
call fcn.100497d4
mov ecx, dword [esp + 0x20]
lea edi, [esp + 0x64]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [ecx + 4]
mov ecx, 6
mov dword [esp + 0x58], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.10029ab0
add esp, 8
test eax, eax
js 0x1003e91d
cmp word [esp + 0x7c], 0
je 0x1003e92f
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x48]
call fcn.1009826a
test al, al
jne 0x1003e92f
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x14], edi
jmp 0x1002976d
mov edx, dword [ebx - 4]
jmp 0x100296f5
test byte [0x100a4750], 2
je 0x1003e969
cmp dword [0x100aa408], 0
je 0x1003e969
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100aa408]
push eax
mov eax, dword [0x100aa100]
push 0x34c00
push eax
call fcn.10056748
add esp, 0x10
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, 0x80004005
jmp 0x10029875
test byte [0x100a4750], 2
mov esi, 0x8007000e
je 0x10029882
push 0xdb
mov edx, 0x10004ae8
mov ecx, esi
call fcn.10051341
add esp, 4
jmp 0x10029875
mov ecx, dword [0x100aa100]
mov edx, 0x37809
push esi
push 0x10004b48
call fcn.1005682f
mov esi, eax
jmp 0x10029882
test byte [0x100a4750], 2
je 0x1003e9eb
push 0x42d
mov ecx, esi
jmp 0x1003e9de
push 0x448
mov ecx, eax
mov edx, 0x10013af0
call fcn.10051341
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x14], edi
jmp 0x1002976d
mov eax, dword [esp + 0x28]
imul edi, dword [ebx], 0x34
mov eax, dword [eax + 4]
add edi, dword [eax + ecx]
cmp dword [ebp + 0x10], 0
mov dword [edi + 4], 0
jne 0x10029760
mov edx, 0x1000444c
mov ecx, esi
call fcn.1003020b
test eax, eax
je 0x10029760
cmp dword [edi], 9
jne 0x10029760
lea ecx, [edi + 0x24]
call fcn.100278b9
test eax, eax
jns 0x10029760
test byte [0x100a4750], 2
je 0x1003e9eb
jmp 0x1003e9d7
test byte [0x100a4750], 2
je 0x1003ea73
push 0x41e
mov edx, 0x10013af0
mov ecx, 0x80040e73
call fcn.10051341
add esp, 4
mov eax, 0x80040e73
jmp 0x1002979b
mov eax, 0x40eda
jmp 0x1002979b
mov eax, 0x80040e21
jmp 0x1002979b