Function at 0x1000d758
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, 0x1001a200
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000d7bd
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.1000d1dd
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.10003ea5
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
call fcn.10003ea5
mov dword [ebp - 0x34], eax
push 0xf0000000
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.1000dae9
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x1000d85d
lea eax, [ebp - 8]
push eax
call fcn.1000d1dd
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.10003ea5
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
call fcn.10003ea5
mov dword [ebp - 0x34], eax
push 0
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.1000dae9
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x1000d85d
mov eax, 0x1001a201
jmp 0x1000da81
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x1000d879
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10014c4d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000d88a
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1000d8aa
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10014c4d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000d8bb
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.1000dd7f
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000d8ed
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10003c59
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.10015970
add esp, 0x10
mov dword [ebp - 0x30], eax
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
mov ecx, 3
call fcn.10001257
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1000d940
push ebx
call fcn.10014c47
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000d954
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10003ceb
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10003c59
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1000d1dd
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.1000dfa6
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x1000d9a9
mov eax, 0x1001a201
jmp 0x1000da81
push dword [ebp - 0x10]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.10001257
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000d9d3
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10003c59
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10003c59
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10005174
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000d1dd
push eax
push dword [ebp - 0x2c]
push 0
push 1
push 0
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
nop
nop
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x1000da3b
mov eax, 0x1001a201
jmp 0x1000da81
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.1000453a
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000da5e
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000da7c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10014c4d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000da81
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000da92
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000daa2
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000dab2
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000dac2
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000dad2
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000dae2
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc