Function at 0x1001f700
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acac5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100d800c]
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 ebx, ecx
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1001f8ed
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, byte [ebx + 8]
jne 0x1001f908
movsx eax, byte [ecx + 1]
mov esi, dword [ebx + 0xc]
cmp eax, esi
je 0x1001f764
push str.Incorrect_number_of_salt_bytes
jmp 0x1001f90d
lea eax, [esi + 2]
cmp edx, eax
jae 0x1001f775
push str.Ciphertext_corrupt:_short_salt
jmp 0x1001f90d
cmp edx, 2
jbe 0x1001f8e8
mov eax, dword [ebx]
add ecx, 2
push dword [ebx + 0xc]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100b42b0]
mov ecx, ebx
call esi
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp + 0x10]
sub ebx, eax
sub ebx, 2
jne 0x1001f7ad
push str.Ciphertext_corrupt:_data_short
jmp 0x1001f90d
add eax, 2
lea ecx, [ebp + 0xc]
push eax
call fcn.100207c0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
push ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10009ee0
mov esi, dword [ebp - 0x20]
push ebx
push 0
push esi
call fcn.10083a60
add esp, 0xc
mov dword [ebp - 0x2c], 0
lea eax, [esi + ebx]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.10009e80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub esi, ecx
test ecx, ecx
jne 0x1001f82d
call fcn.10086f38
mov dword [eax], 0x16
jmp 0x1001f873
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001f845
cmp esi, ebx
jb 0x1001f845
push ebx
push eax
push ecx
call fcn.10083c30
add esp, 0xc
jmp 0x1001f878
push esi
push 0
push ecx
call fcn.10083a60
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x1001f864
call fcn.10086f38
mov dword [eax], 0x16
jmp 0x1001f873
cmp esi, ebx
jae 0x1001f878
call fcn.10086f38
mov dword [eax], 0x22
call fcn.100869af
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
push 0
push 1
push 0
push dword [eax + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1001f923
push dword [ebp - 0x24]
mov dword [edi], 0
mov ecx, edi
push dword [ebp - 0x20]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.10005da0
lea ecx, [ebp - 0x20]
call fcn.10020530
mov eax, edi
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.1006d58e
mov esp, ebp
pop ebp
ret 0xc
call fcn.10020870
push str.Deobfuscate:_obfuscated_is_empty
lea ecx, [ebp - 0x3c]
call fcn.1001e170
push 0x100d6c48
lea eax, [ebp - 0x3c]
push eax
call fcn.10083bba
push str.Unknown_obfuscation_algorithm_id
lea ecx, [ebp - 0x3c]
call fcn.100083f0
push 0x100d6b98
lea eax, [ebp - 0x3c]
push eax
call fcn.10083bba
push str.Decrypt:_CryptDecrypt___failed
lea ecx, [ebp - 0x48]
call fcn.10005d60
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.1000a520
int3