Function at 0x10010d30
Capabilities:
Check if file exists
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100f3f31
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x3b4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c4]
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
call fcn.10008010
xor ebx, ebx
push 0x206
lea eax, [esp + 0x1aa]
xor edx, edx
push ebx
mov dword [esp + 0x3c4], ebx
push eax
mov word [esp + 0x1b0], dx
call fcn.100d4cc0
add esp, 0xc
mov dword [esp + 0x144], 0xf
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
push esi
mov eax, 0x208
lea edi, [esp + 0x1a8]
mov byte [esp + 0x3c0], 1
call fcn.100044f0
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
mov eax, edi
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], dx
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10010e10
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x1a8]
lea esi, [esp + 0x14c]
call fcn.10012b10
mov eax, esi
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c0], 2
mov ebp, dword [0x101e2348]
mov edi, dword [0x101e2330]
push ecx
mov esi, 0x101e2330
call fcn.10012060
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x10010e65
cmp eax, edi
je 0x10010e6a
call fcn.100d13c5
cmp dword [esi + 4], ebp
jne 0x1001101e
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.GDCB_DECRYPT.txt
lea edx, [esp + 0x1a8]
push edx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x1a4]
push eax
call edi
test eax, eax
je 0x10010f6d
lea ecx, [esp + 0x1a4]
push ecx
lea ecx, [esp + 0x130]
call fcn.10011a30
test al, al
jne 0x10010f49
cmp dword [esp + 0x160], 8
jb 0x10010ed6
mov edx, dword [esp + 0x14c]
push edx
call fcn.100d072d
add esp, 4
xor eax, eax
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], ax
jb 0x10010f0c
mov ecx, dword [esp + 0x130]
push ecx
call fcn.100d072d
add esp, 4
mov dword [esp + 0x3bc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xf
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100115f2
lea ecx, [esp + 0x148]
push ecx
push 0x101e2330
call fcn.10011ee0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x134]
push edx
mov ecx, eax
jmp 0x1001103b
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.GDCB_DECRYPT2.txt
lea ecx, [esp + 0x1a8]
push ecx
call esi
lea edx, [esp + 0x1a4]
push edx
call edi
test eax, eax
je 0x10010fcd
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x130]
call fcn.10011a30
test al, al
jne 0x10010f49
lea esi, [esp + 0x148]
call fcn.10011cc0
lea ecx, [esp + 0x12c]
call fcn.10002cc0
jmp 0x100115d3
cmp dword [esp + 0x160], 8
jb 0x10010fe7
mov eax, dword [esp + 0x14c]
push eax
call fcn.100d072d
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], cx
jb 0x100115ba
mov edx, dword [esp + 0x130]
push edx
jmp 0x100115b2
lea ecx, [esp + 0x148]
push ecx
push 0x101e2330
call fcn.10011ee0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x138]
call fcn.10002a30
cmp dword [esp + 0x140], ebx
je 0x1001156a
mov ebp, dword [0x101e2328]
mov edi, dword [0x101e2310]
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x2c]
push eax
mov esi, 0x101e2310
call fcn.10011e50
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x1001107c
cmp eax, edi
je 0x10011081
call fcn.100d13c5
cmp dword [esi + 4], ebp
jne 0x10011166
cmp dword [esp + 0x144], 0x10
mov eax, dword [esp + 0x130]
jae 0x100110a2
lea eax, [esp + 0x130]
push eax
call fcn.10011650
test al, al
je 0x10010fb0
xor eax, eax
push 0x20
lea ecx, [esp + 0x168]
push 0x101e1b08
push ecx
mov byte [esp + 0x170], bl
mov dword [esp + 0x171], eax
mov dword [esp + 0x175], eax
mov dword [esp + 0x179], eax
mov dword [esp + 0x17d], eax
mov dword [esp + 0x181], eax
mov dword [esp + 0x185], eax
mov dword [esp + 0x189], eax
mov word [esp + 0x18d], ax
mov byte [esp + 0x18f], al
mov dword [esp + 0x190], ebx
mov dword [esp + 0x194], ebx
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], ebx
call fcn.100d0e10
add esp, 0xc
push 0x10
lea edx, [esp + 0x188]
push 0x101e1f0c
push edx
call fcn.100d0e10
add esp, 0xc
push 0x101e2310
lea ecx, [esp + 0x130]
call fcn.10011cf0
mov ecx, 0xc
lea esi, [esp + 0x164]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x100111b5
push 0x101e2310
lea ecx, [esp + 0x130]
call fcn.10011cf0
mov esi, eax
push 0x20
lea eax, [esp + 0x168]
push eax
mov ecx, 0xc
lea edi, [esp + 0x16c]
push 0x101e1b08
rep movsd dword es:[edi], dword [esi]
call fcn.100d0e10
add esp, 0xc
push 0x10
lea ecx, [esp + 0x188]
push ecx
push 0x101e1f0c
call fcn.100d0e10
add esp, 0xc
mov edx, dword [esp + 0x1c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100114b8
push ebx
push esi
mov byte [esp + 0x19c], bl
mov dword [esp + 0x19d], ebx
mov dword [esp + 0x1a1], ebx
mov dword [esp + 0x1a5], ebx
mov word [esp + 0x1a9], bx
mov byte [esp + 0x1ab], bl
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x210
jae 0x10011228
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10010fb0
push 0x400
push ebx
push 0x101e1b08
call fcn.100d4cc0
add esp, 0xc
push 0x400
push ebx
push 0x101e1f0c
call fcn.100d4cc0
add esp, 0xc
push ebx
push ebx
lea ecx, [edi - 0x210]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push 0x101e1f08
push 0x100
push 0x101e1b08
push esi
call ebp
push ebx
push 0x101e230c
push 0x100
push 0x101e1f0c
push esi
call ebp
push ebx
lea edx, [esp + 0x24]
push edx
push 0x10
lea eax, [esp + 0x1a0]
push eax
push esi
call ebp
sub edi, dword [esp + 0x194]
sub edi, 0x210
cmp edi, 0x10
ja 0x100113ac
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea ecx, [esp + 0x34]
push ecx
call edi
test eax, eax
jne 0x100112ed
push 0xf0000008
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea edx, [esp + 0x34]
push edx
call edi
test eax, eax
je 0x100113ac
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x494
push 0x101e0b08
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10011553
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push 0x101e1f08
push 0x101e1b08
push ebx
push 1
push ebx
push edx
call edi
test eax, eax
je 0x10011553
mov eax, dword [esp + 0x28]
push 0x101e230c
push 0x101e1f0c
push ebx
push 1
push ebx
push eax
call edi
test eax, eax
je 0x10011553
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [esp + 0x30]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x100113ac
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x4000
push 0x40
call ebp
mov edi, eax
cmp edi, ebx
je 0x100113ac
push 0x4000
push 0x40
call ebp
mov ebp, eax
cmp ebp, ebx
jne 0x100113d9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x148]
call fcn.10011cc0
lea ecx, [esp + 0x12c]
call fcn.10002cc0
lea eax, [esp + 0x18]
call fcn.10020510
jmp 0x100115fe
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xec
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x40], ebx
call fcn.100d4cc0
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push 0x100
push 0x101e1b08
mov dword [esp + 0x130], ebx
call fcn.1006c040
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
push 0x4000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001147c
nop
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x1001147c
push ebx
push 0x101e1f0c
lea ecx, [esp + 0x3c]
push ecx
push eax
push ebp
push edi
call fcn.1006c050
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 0x18
push ebx
lea edx, [esp + 0x24]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea edx, [esp + 0x24]
push edx
push 0x4000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10011430
mov eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebp
push edi
call ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
cmp dword [esp + 0x160], 8
jb 0x100114d2
mov edx, dword [esp + 0x14c]
push edx
call fcn.100d072d
add esp, 4
xor eax, eax
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], ax
jb 0x10011508
mov ecx, dword [esp + 0x130]
push ecx
call fcn.100d072d
add esp, 4
mov dword [esp + 0x3bc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xf
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001154c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x10011600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x100113ac
cmp dword [esp + 0x160], 8
jb 0x10011584
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.100d072d
add esp, 4
xor edx, edx
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], dx
jb 0x100115ba
mov eax, dword [esp + 0x130]
push eax
call fcn.100d072d
add esp, 4
mov byte [esp + 0x130], bl
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], 0xf
mov dword [esp + 0x3bc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100115fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x3b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.100d0738
add esp, 0x3ac
ret 4