Function at 0x100d9cb0
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 0x101801fe
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.100484a0
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.10047890
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 0
mov dword [ebp - 0x48], 1
je 0x100da04f
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x70]
call fcn.10046ed0
push 0
mov byte [ebp - 4], 3
call fcn.1013d1a0
add esp, 4
mov dword [ebp - 0x74], edx
mov esi, eax
call fcn.1014c370
imul eax, esi
push eax
call fcn.1013ee30
add esp, 4
call fcn.1013edf0
cdq
mov ecx, 0x2710
idiv ecx
mov esi, edx
call fcn.1013edf0
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.100484a0
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.10047890
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.10049e30
add esp, 0x2c
lea ecx, [ebp - 0x70]
call fcn.10043e40
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x100d9e4e
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10048530
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.10048530
lea eax, [ebp - 0x2c]
add esp, 8
cmp edi, eax
je 0x100d9eb3
mov ecx, edi
call fcn.10043e40
mov eax, dword [edi + 0x18]
cmp eax, 0x10
jb 0x100d9e97
inc eax
push eax
push dword [ebx]
call fcn.10048530
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.10047aa0
lea ecx, [ebp - 0x2c]
call fcn.10043e40
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100d9ed0
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048530
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.10048530
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 0x100d9f25
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 0x100da03d
cmp ebx, 0xffffffff
je 0x100da039
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 0x100d9f6f
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.1013b740
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100da033
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 0x100d9fb5
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.10122870
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 0x100da021
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 0x100da021
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 0x100d9fd0
push dword [ebp - 0x44]
call fcn.10139d20
mov edi, dword [ebp - 0x4c]
add esp, 4
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x100da044
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100da04f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.10043e40
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x100da06c
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048530
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.10048530
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.1011f880
mov esp, ebp
pop ebp
ret 0x20