Function at 0x1000d500
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb640
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x45c
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x18], 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 - 0x464], ecx
mov dword [ebp - 0x420], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], 0
cmp dword [ebp + 8], 0
jne 0x1000d57a
push 0x466
push 0x1010d4d0
push 0x1010d504
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1000d597
push 0x467
push 0x1010d534
push 0x1010d568
call fcn.100cb557
add esp, 0xc
mov edx, dword [ebp - 0x464]
cmp dword [edx + 8], 0
jne 0x1000d5bf
lea ecx, [ebp - 0x428]
call fcn.1000e1f0
push 0x101508c8
lea eax, [ebp - 0x428]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x464]
cmp dword [ecx + 4], 0
jne 0x1000d5e7
lea ecx, [ebp - 0x430]
call fcn.1000e170
push 0x101508b8
lea edx, [ebp - 0x430]
push edx
call fcn.100cb4c0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x1000d635
lea ecx, [ebp - 0x438]
call fcn.1000e070
push 0x101508a8
lea ecx, [ebp - 0x438]
push ecx
call fcn.100cb4c0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1000d676
lea ecx, [ebp - 0x440]
call fcn.1000e270
push 0x10150898
lea eax, [ebp - 0x440]
push eax
call fcn.100cb4c0
mov dword [ebp - 0x41c], 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x3e8
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x1000d6cd
lea ecx, [ebp - 0x448]
call fcn.1000def0
push 0x10150878
lea ecx, [ebp - 0x448]
push ecx
call fcn.100cb4c0
cmp dword [ebp - 0x40c], 0x3e8
je 0x1000d6e3
mov dword [ebp - 0x41c], 1
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 0
jbe 0x1000d7c1
push 0x3e8
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
mov edx, dword [ebp - 0x41c]
push edx
push 0
mov eax, dword [ebp - 0x464]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x1000d755
lea ecx, [ebp - 0x450]
call fcn.1000dff0
push 0x10150868
lea edx, [ebp - 0x450]
push edx
call fcn.100cb4c0
cmp dword [ebp - 0x410], 0xffffffff
jb 0x1000d775
push 0x4a8
push 0x1010d59c
push 0x1010d5d0
call fcn.100cb557
add esp, 0xc
push 0
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x410]
push edx
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x1000d7c1
lea ecx, [ebp - 0x458]
call fcn.1000e820
push 0x10150b24
lea edx, [ebp - 0x458]
push edx
call fcn.100cb4c0
cmp dword [ebp - 0x41c], 0
je 0x1000d680
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d864
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 8