Function at 0x100d0c70
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10176b0e
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101cfdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x31]
lea ebx, [edi + 4]
mov dword [edi], 0
push 8
mov dword [ebx], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 0x3c], eax
call fcn.10047940
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [eax], edi
mov dword [eax + 4], 0
mov dword [edi], eax
mov byte [ebp - 4], 2
mov ecx, edi
push 0
push 0x101aec64
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [ebx], 0
call fcn.10046d30
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 0
mov dword [ebp - 0x48], 1
je 0x100d100f
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x70]
call fcn.10046370
push 0
mov byte [ebp - 4], 3
call fcn.10133cd0
add esp, 4
mov dword [ebp - 0x74], edx
mov esi, eax
call fcn.10142ea0
imul eax, esi
push eax
call fcn.10135960
add esp, 4
call fcn.10135920
cdq
mov ecx, 0x2710
idiv ecx
mov esi, edx
call fcn.10135920
cdq
mov ecx, 0x64
idiv ecx
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push edx
cmovae eax, dword [ebp - 0x6c]
push esi
push eax
sub esp, 0x1c
lea eax, [ebp - 0x31]
mov esi, esp
mov dword [ebp - 0x3c], eax
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10047940
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov byte [ebp - 4], 4
mov ecx, esi
push 0xb
push str._s__d_d.uif
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
call fcn.10046d30
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.100492e0
add esp, 0x2c
lea ecx, [ebp - 0x70]
call fcn.100432e0
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x100d0e0e
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
call fcn.100479d0
lea eax, [ebp - 0x2c]
add esp, 8
cmp edi, eax
je 0x100d0e73
mov ecx, edi
call fcn.100432e0
mov eax, dword [edi + 0x18]
cmp eax, 0x10
jb 0x100d0e57
inc eax
push eax
push dword [ebx]
call fcn.100479d0
add esp, 8
lea eax, [ebp - 0x2c]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov ecx, edi
push eax
mov byte [ebx], 0
call fcn.10046f40
lea ecx, [ebp - 0x2c]
call fcn.100432e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100d0e90
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.100479d0
add esp, 8
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x24], 0x10
cmovae eax, dword [ebp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [edi + 0x18], 0x10
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x100d0ee5
mov ebx, dword [ebx]
push 0
push 0x80
push 4
push 0
push 1
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
cmp esi, 0xffffffff
je 0x100d0ffd
cmp ebx, 0xffffffff
je 0x100d0ff9
lea eax, [ebp - 0x78]
xor bl, bl
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x78]
and esi, 0x80000001
jns 0x100d0f2f
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.10132270
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100d0ff3
push 0
lea ecx, [ebp - 0x30]
push ecx
push 4
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d0f75
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x44]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x44]
push esi
push 0
push edi
call fcn.101193b0
add esp, 0xc
mov dword [ebp - 0x30], 0
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d0fe1
cmp dword [ebp - 0x30], esi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [ebp - 0x30]
push eax
push edi
push 0
push 1
push 0
push dword [0x102710b8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100d0fe1
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x100d0f90
push dword [ebp - 0x44]
call fcn.10130870
mov edi, dword [ebp - 0x4c]
add esp, 4
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x100d1004
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100d100f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.100432e0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x100d102c
inc eax
push eax
push dword [ebp + 0x10]
call fcn.100479d0
add esp, 8
mov ecx, dword [ebp + 0xc]
push 8
push ecx
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0xf
mov byte [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
call fcn.100479d0
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.101163c0
mov esp, ebp
pop ebp
ret 0x20