Function at 0x1001b540
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5032
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x10244540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x12c], esi
push 0xb8
lea eax, [ebp - 0x110]
mov dword [ebp - 0x14], 0
push 0
push eax
call fcn.10190ee0
add esp, 4
lea ecx, [ebp - 0x110]
push 1
push dword [esi + 4]
call fcn.1001da50
mov dword [ebp - 4], 0
cmp dword [ebp - 0xb4], 0
je 0x1001bb51
mov eax, dword [ebp - 0x110]
xorps xmm0, xmm0
mov byte [ebp - 0x113], 0
mov word [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp + eax - 0xd8]
test ecx, ecx
mov dword [ebp - 0x118], ecx
sete byte [ebp - 0x114]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.10022c70
add esp, 8
test al, al
je 0x1001b63b
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x1001b656
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x18]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call fcn.10022d10
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 1
mov eax, esp
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
mov dword [eax + 0x24], 0
call fcn.1001f820
add esp, 0x30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.os_crypt
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.100191c0
cmp byte [ebp - 0x40], 1
jne 0x1001b6e3
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x124]
push eax
mov edi, dword [ecx]
call fcn.10023610
mov esi, dword [ebp - 0x11c]
cmp byte [esi + 0xd], 0
jne 0x1001b6e3
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10026030
test al, al
jne 0x1001b6e3
mov byte [ebp - 0x125], 1
cmp esi, edi
jne 0x1001b6ea
mov byte [ebp - 0x125], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1001b71e
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b714
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc45
push ecx
push edx
call fcn.1018eb3e
add esp, 8
cmp byte [ebp - 0x125], 0
je 0x1001bb0a
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.encrypted_key
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.100191c0
push str.os_crypt
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.1001f940
cmp byte [eax], 1
jne 0x1001b7a2
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x124]
push eax
mov edi, dword [ecx]
call fcn.10023610
mov esi, dword [ebp - 0x11c]
cmp byte [esi + 0xd], 0
jne 0x1001b7a2
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10026030
test al, al
jne 0x1001b7a2
mov byte [ebp - 0x125], 1
cmp esi, edi
jne 0x1001b7a9
mov byte [ebp - 0x125], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1001b7e1
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b7d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc45
push ecx
push edx
call fcn.1018eb3e
add esp, 8
cmp byte [ebp - 0x125], 0
je 0x1001bb0a
push str.encrypted_key
push str.os_crypt
lea ecx, [ebp - 0x40]
call fcn.1001f940
mov ecx, eax
call fcn.1001f940
mov ecx, eax
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x15c], xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
cmp byte [ecx], 3
mov dword [ebp - 0x14], 8
jne 0x1001bbf2
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x15c]
cmp ecx, eax
je 0x1001b868
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x1001b859
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.10017d60
lea edx, [ebp - 0x15c]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.1001a000
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x1001b8bb
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b8b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc36
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x144], xmm0
cmp eax, 5
jb 0x1001bc3b
add eax, 0xfffffffb
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push ecx
add eax, 5
lea ecx, [ebp - 0x144]
push eax
call fcn.100191c0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x30]
call fcn.10017500
mov ecx, dword [ebp - 0x130]
cmp ecx, 0xf
jbe 0x1001b970
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc40
push ecx
push edx
call fcn.1018eb3e
add esp, 8
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1001bad2
push dword [ebp - 0x120]
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x144], xmm0
call fcn.100191c0
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x144]
push eax
add ecx, 0x10
call fcn.10017500
mov ecx, dword [ebp - 0x130]
cmp ecx, 0xf
jbe 0x1001ba35
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001ba2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc40
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1001ba6d
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001ba63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc40
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
push dword [ebp - 0x40]
call fcn.1001ea20
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1001bac6
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001babc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc40
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov byte [ebp - 0x125], 1
jmp 0x1001bb58
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1001bb0a
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001bb00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc40
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
push dword [ebp - 0x40]
call fcn.1001ea20
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1001bb51
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001bb47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc45
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov byte [ebp - 0x125], 0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x114], eax
lea ecx, [ebp - 0x100]
call fcn.1001d9a0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x114], ecx
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0xc
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.1018e306
mov al, byte [ebp - 0x125]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
call fcn.10020f30
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x144]
lea eax, [ebp - 0x12c]
push eax
call fcn.1002a310
push eax
lea ecx, [ebp - 0x178]
mov dword [ebp - 4], 5
call fcn.1002a3e0
add esp, 8
lea eax, [ebp - 0x178]
push 0x102425cc
push eax
call fcn.101908e7
call fcn.1019b181
call fcn.10018190
call fcn.1019b181
call fcn.1019b181
int3