Function at 0x100da650
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 0x10180bee
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101dadb0]
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.10048e10
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 0x101b8c74
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [ebx], 0
call fcn.10048200
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 0
mov dword [ebp - 0x48], 1
je 0x100da9ef
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x70]
call fcn.10047840
push 0
mov byte [ebp - 4], 3
call fcn.1013db80
add esp, 4
mov dword [ebp - 0x74], edx
mov esi, eax
call fcn.1014cd50
imul eax, esi
push eax
call fcn.1013f810
add esp, 4
call fcn.1013f7d0
cdq
mov ecx, 0x2710
idiv ecx
mov esi, edx
call fcn.1013f7d0
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.10048e10
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.10048200
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.1004a7a0
add esp, 0x2c
lea ecx, [ebp - 0x70]
call fcn.100447b0
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x100da7ee
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10048ea0
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.10048ea0
lea eax, [ebp - 0x2c]
add esp, 8
cmp edi, eax
je 0x100da853
mov ecx, edi
call fcn.100447b0
mov eax, dword [edi + 0x18]
cmp eax, 0x10
jb 0x100da837
inc eax
push eax
push dword [ebx]
call fcn.10048ea0
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.10048410
lea ecx, [ebp - 0x2c]
call fcn.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100da870
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
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.10048ea0
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 0x100da8c5
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 0x100da9dd
cmp ebx, 0xffffffff
je 0x100da9d9
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 0x100da90f
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.1013c120
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100da9d3
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 0x100da955
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.10123240
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 0x100da9c1
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 [0x1027c0b8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100da9c1
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 0x100da970
push dword [ebp - 0x44]
call fcn.1013a720
mov edi, dword [ebp - 0x4c]
add esp, 4
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x100da9e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100da9ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.100447b0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x100daa0c
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048ea0
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.10048ea0
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.10120250
mov esp, ebp
pop ebp
ret 0x20