Function at 0x40dce0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460d87
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x480164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x214], 0
push 0xb8
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0043e790
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x150]
push 0x24
push eax
call fcn.004166d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x150]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x118]
test ecx, ecx
je 0x40dd72
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 3
call fcn.00415500
mov byte [ebp - 0x218], al
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x144], 6
jne 0x40ddc3
mov ecx, dword [ebp + ecx - 0x118]
lea edx, [ebp - 0x38]
push 1
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x150]
jmp 0x40dddc
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 4], 6
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x118]
test ecx, ecx
je 0x40ddef
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov edi, dword [ebp - 0x30]
add edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x2c]
adc esi, dword [ebp - 0x34]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test edi, edi
je 0x40de91
cmp edi, 0x7fffffff
ja 0x40e7b7
cmp edi, 0x1000
jb 0x40de6a
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x40e7bc
push eax
call fcn.0043c81d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40e80a
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40de73
push edi
call fcn.0043c81d
add esp, 4
push edi
lea esi, [eax + edi]
mov dword [ebp - 0x20], eax
push 0
push eax
mov dword [ebp - 0x18], esi
call fcn.0043e790
mov dword [ebp - 0x1c], esi
add esp, 0xc
mov esi, dword [ebp - 0x214]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x214], 0
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ebp + eax - 0x144]
mov eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, dword [ebp - 0x214]
and edx, 0xfffffffe
or eax, edx
push eax
call fcn.00407690
lea eax, [ebp - 0x150]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x118]
test ecx, ecx
je 0x40def9
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 9
call fcn.00415500
mov byte [ebp - 0x218], al
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x144], 6
jne 0x40df7c
mov ecx, dword [ebp + ecx - 0x118]
lea edx, [ebp - 0x38]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
adc eax, dword [ebp - 0x2c]
and ecx, eax
cmp ecx, 0xffffffff
jne 0x40df7c
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x150]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407690
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x118]
test ecx, ecx
je 0x40df99
mov eax, dword [ecx]
call dword [eax + 8]
push esi
push edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x150]
push dword [ebp - 0x20]
call fcn.00412950
lea ecx, [ebp - 0x140]
call fcn.00414870
test eax, eax
jne 0x40dfe7
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x150]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407690
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, eax
je 0x40e01a
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.0040aee0
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.00414d00
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0x10
mov eax, esp
lea ecx, [ebp - 0x224]
lea edx, [ebp - 0x68]
mov dword [eax + 0x24], 0
call fcn.00416820
mov cl, byte [ebp - 0x30]
add esp, 0x30
mov al, byte [ebp - 0x224]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x214], cl
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 0x224], cl
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], esi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x214]
call fcn.00414960
push str.os_crypt
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xf
call fcn.00416940
push str.encrypted_key
mov ecx, eax
call fcn.00416940
mov ecx, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
cmp byte [ecx], 3
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
mov dword [ebp - 0x214], 4
jne 0x40e7c1
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x98]
cmp ecx, eax
je 0x40e128
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40e11b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0040aee0
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x19
push eax
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x22c]
call fcn.00427a50
mov edx, dword [ebp - 0x218]
add esp, 4
cmp edx, 0x10
jb 0x40e19e
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e194
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
cmp eax, 5
jb 0x40e805
add eax, 0xfffffffb
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push ecx
add eax, 5
lea ecx, [ebp - 0x22c]
push eax
call fcn.0040aee0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00413f60
mov edx, dword [ebp - 0x218]
cmp edx, 0x10
jb 0x40e23c
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e232
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x40e43e
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x40e2b4
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e2aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x40e304
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e2fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.00414960
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x40e347
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e33d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
test ecx, ecx
je 0x40e3a2
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40e383
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x150]
call fcn.0040e810
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40e3e7
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e3dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x40e79b
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e42f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
jmp 0x40e79b
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x80]
push dword [ebp - 0x208]
mov dword [ebp - 0x70], 0
push dword [ebp - 0x204]
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.0040aee0
push 0xb0
lea eax, [ebp - 0x200]
mov byte [ebp - 4], 0x1d
push 0
push eax
call fcn.0043e790
add esp, 4
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x200]
push 0x20
push eax
call fcn.00416ab0
mov byte [ebp - 4], 0x1e
lea edx, [ebp - 0x80]
cmp dword [ebp - 0x6c], 0x10
lea ecx, [ebp - 0x200]
push dword [ebp - 0x70]
cmovae edx, dword [ebp - 0x80]
call fcn.0041b230
add esp, 4
lea ecx, [ebp - 0x1fc]
call fcn.00414870
test eax, eax
jne 0x40e4f4
mov eax, dword [ebp - 0x200]
lea ecx, [ebp - 0x200]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407690
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x200]
call fcn.0040e910
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x40e543
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e539
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 0x10
jb 0x40e58d
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e583
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x40e5dd
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e5d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.00414960
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x40e620
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e616
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
test ecx, ecx
je 0x40e67b
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40e65c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x150]
call fcn.0040e810
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40e6c0
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e6b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x40e79b
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e80a
push edx
push ecx
call fcn.0043cbb8
add esp, 8
jmp 0x40e79b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c625
mov esp, ebp
pop ebp
ret
call fcn.00415830
call fcn.004068a0
call fcn.00418e00
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x218]
push eax
call fcn.00423190
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x16
call fcn.00423230
add esp, 8
lea eax, [ebp - 0x248]
push 0x47e0bc
push eax
call fcn.0043e1a0
call fcn.004156f0
call fcn.00447a18
int3