Function at 0x10014bf0
Capabilities:
Check if file exists
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100f3e71
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x10b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x10d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10e4]
mov esi, edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x64], eax
call fcn.10008010
xor ebx, ebx
push esi
mov dword [esp + 0x10e0], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x12
lea ebp, [eax + eax + 2]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x100156b3
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
push esi
mov eax, ebp
mov byte [esp + 0x10e0], 1
call fcn.100044f0
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
mov eax, edi
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
lea edx, [eax + 2]
jmp 0x10014cd0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10014cd0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0xb4]
call fcn.10012b10
mov byte [esp + 0x10dc], 2
mov edx, dword [0x101e05a0]
mov eax, dword [0x101e0588]
mov ecx, esi
mov dword [esp + 0x28], edx
push ecx
lea edx, [esp + 0x88]
push edx
mov esi, 0x101e0588
mov dword [esp + 0x2c], eax
call fcn.10012060
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x10014d2c
cmp eax, dword [esp + 0x24]
je 0x10014d31
call fcn.100d13c5
mov eax, dword [esp + 0x28]
cmp dword [esi + 4], eax
push 0x10129ee0
mov eax, ebp
jne 0x10014e5b
call fcn.100044f0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
add eax, 2
push eax
mov eax, ebp
call fcn.100044f0
push 0x10129ee4
mov eax, ebp
call fcn.100044f0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10014e03
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10014d8b
push eax
mov eax, edi
call fcn.10014a90
push edi
lea ecx, [esp + 0x98]
call fcn.10015f40
test al, al
jne 0x10014ddf
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea esi, [esp + 0xb0]
call fcn.10011cc0
lea ecx, [esp + 0x94]
call fcn.10002cc0
mov dword [esp + 0x10dc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100156d2
lea ecx, [esp + 0xb0]
push ecx
push 0x101e0588
call fcn.10011ee0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x9c]
push edx
mov ecx, eax
jmp 0x10014eba
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0xc8], 8
jb 0x10014e24
mov eax, dword [esp + 0xb4]
push eax
call fcn.100d072d
add esp, 4
xor ecx, ecx
cmp dword [esp + 0xac], 0x10
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
jb 0x10015699
mov edx, dword [esp + 0x98]
push edx
jmp 0x10015691
call fcn.100044f0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
add eax, 2
push eax
mov eax, ebp
call fcn.100044f0
push 0x10129ee4
mov eax, ebp
call fcn.100044f0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10014e9d
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10014e9d
push eax
mov eax, edi
call fcn.10014a90
lea edx, [esp + 0xb0]
push edx
push 0x101e0588
call fcn.10011ee0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xa0]
call fcn.10002a30
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0xa8], ebx
je 0x10015649
mov edi, dword [0x101e0580]
mov ebp, dword [0x101e0568]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x88]
push ecx
mov esi, 0x101e0568
call fcn.100162c0
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x10014f05
cmp eax, ebp
je 0x10014f0a
call fcn.100d13c5
mov ebp, 0x10
cmp dword [esi + 4], edi
jne 0x1001501b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebp
jae 0x10014f37
lea eax, [esp + 0x98]
push eax
call fcn.10015710
test al, al
jne 0x10014fdf
push 0xbb8
call edi
inc esi
cmp esi, 0xa
jl 0x10014f20
cmp dword [esp + 0xc8], 8
jb 0x10014f6c
mov edx, dword [esp + 0xb4]
push edx
call fcn.100d072d
add esp, 4
xor eax, eax
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], ax
cmp dword [esp + 0xac], ebp
jb 0x10014fa1
mov ecx, dword [esp + 0x98]
push ecx
call fcn.100d072d
add esp, 4
mov dword [esp + 0x10dc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100156d2
push 0x1000
lea ecx, [esp + 0xd0]
push 0x101ded60
push ecx
call fcn.100d4950
add esp, 0xc
push 0x1000
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x9c]
push eax
push 0x101e0568
call fcn.10016150
push eax
jmp 0x10015038
push 0x1000
lea ecx, [esp + 0x98]
push ecx
push 0x101e0568
call fcn.10016150
push eax
push 0x101ded60
call fcn.100d4950
mov edx, dword [esp + 0x28]
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp esi, 0xffffffff
je 0x10015597
push 0x400
push ebx
push 0x101dfd60
mov dword [esp + 0x3c], ebx
call fcn.100d4cc0
add esp, 0xc
push 0x400
push ebx
push 0x101e0164
call fcn.100d4cc0
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
mov edx, dword [esp + 0x34]
jg 0x10015130
jl 0x100150c2
cmp edx, 0x208
jae 0x10015130
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0xb0]
call fcn.10011cc0
cmp dword [esp + 0xac], ebp
jb 0x10014fa1
mov ecx, dword [esp + 0x98]
push ecx
call fcn.100d072d
mov dword [esp + 0x10e0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100156d2
xor eax, eax
push ebx
sub edx, 0x1c
push ebx
sbb ecx, ebx
push ecx
push edx
push esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x94]
push ecx
push 0x1c
lea edx, [esp + 0x74]
push edx
push esi
call ebp
test eax, eax
je 0x1001527d
cmp dword [esp + 0x7c], 0x93892918
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jne 0x100152ac
cmp dword [esp + 0x80], 0x38281
jne 0x100152ac
mov edi, ecx
sub edi, 0x21c
mov edx, eax
sbb edx, ebx
cmp dword [esp + 0x6c], edx
mov dword [esp + 0x3c], edi
jg 0x100152ac
jl 0x100151e0
cmp dword [esp + 0x68], edi
ja 0x100152aa
xor ebx, ebx
mov edi, dword [esp + 0x70]
imul edi, dword [esp + 0x78]
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x24], edi
jg 0x100152aa
jl 0x10015203
cmp dword [esp + 0x68], edi
ja 0x100152aa
mov eax, dword [esp + 0x3c]
push 0
push 0
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0x101e0160
push 0x100
push 0x101dfd60
push esi
call ebp
push 0
push 0x101e0564
push 0x100
push 0x101e0164
push esi
call ebp
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x38]
sub ecx, 0x21c
sbb eax, 0
mov ebx, edi
or ebx, edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
je 0x1001527d
cmp eax, edx
jg 0x10015335
jl 0x1001527d
cmp ecx, edi
jae 0x10015335
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0xb0]
call fcn.10011cc0
lea ecx, [esp + 0x94]
call fcn.10002cc0
lea eax, [esp + 0x18]
call fcn.10020510
jmp 0x100156de
xor ebx, ebx
push ebx
sub ecx, 0x208
push ebx
sbb eax, ebx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
push 0x101e0160
push 0x100
push 0x101dfd60
push esi
call ebp
push ebx
push 0x101e0564
push 0x100
push 0x101e0164
push esi
call ebp
push ebx
lea eax, [esp + 0x94]
push eax
push 8
lea ecx, [esp + 0x58]
push ecx
push esi
call ebp
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
sub ecx, 0x208
sbb eax, ebx
or edi, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
je 0x1001527d
cmp eax, edx
jl 0x1001527d
jg 0x10015337
cmp ecx, dword [esp + 0x4c]
jae 0x10015337
jmp 0x1001527d
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea edx, [esp + 0x58]
push edx
call edi
test eax, eax
jne 0x10015371
push 0xf0000008
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea eax, [esp + 0x58]
push eax
call edi
test eax, eax
je 0x1001527d
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x64]
push ecx
push ebx
push ebx
push 0x494
push 0x101ded60
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10015632
mov eax, dword [esp + 0x64]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push 0x101e0160
push 0x101dfd60
push ebx
push 1
push ebx
push eax
call edi
test eax, eax
je 0x10015632
mov ecx, dword [esp + 0x64]
push 0x101e0564
push 0x101e0164
push ebx
push 1
push ebx
push ecx
call edi
test eax, eax
je 0x10015632
mov edx, dword [esp + 0x48]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x60]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x1001527d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x100000
push 0x40
call edi
mov ebx, eax
test ebx, ebx
je 0x1001527d
push 0x100000
push 0x40
call edi
mov dword [esp + 0x60], eax
test eax, eax
jne 0x1001543f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1001527d
xor edi, edi
push edi
push edi
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x100000
push ebx
push esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebp
test eax, eax
je 0x10015570
jmp 0x10015487
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x40]
jg 0x10015570
jl 0x100154a5
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jae 0x10015570
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x58], ecx
jg 0x10015511
mov eax, dword [esp + 0x4c]
jl 0x100154b9
cmp edi, eax
jae 0x10015511
sub eax, edi
sbb ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x30]
xor edx, edx
cmp edx, ecx
jg 0x100154d8
jl 0x100154cf
cmp edi, eax
jae 0x100154d8
mov dword [esp + 0x88], edx
jmp 0x100154e1
mov edi, eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push edi
push ebx
push ecx
push edx
mov ecx, 0x101e0164
mov edx, 0x101dfd60
call fcn.10032990
xor eax, eax
add esp, 0x10
add dword [esp + 0x24], edi
adc dword [esp + 0x28], eax
add dword [esp + 0x54], edi
adc dword [esp + 0x58], eax
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
sbb eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
test eax, eax
jg 0x1001553b
jl 0x10015533
cmp ecx, 0x100000
jae 0x1001553b
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x34]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esp + 0x1c], edi
push 0
lea edx, [esp + 0x34]
adc dword [esp + 0x24], 0
push edx
push 0x100000
push ebx
push esi
call ebp
test eax, eax
jne 0x10015483
mov eax, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call edi
push ebx
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov ebp, 0x10
xor ebx, ebx
cmp dword [esp + 0xc8], 8
jb 0x100155b1
mov eax, dword [esp + 0xb4]
push eax
call fcn.100d072d
add esp, 4
xor ecx, ecx
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
cmp dword [esp + 0xac], ebp
jb 0x100155e6
mov edx, dword [esp + 0x98]
push edx
call fcn.100d072d
add esp, 4
mov dword [esp + 0x10dc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001562b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x100156e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x48]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1001527d
cmp dword [esp + 0xc8], 8
jb 0x10015663
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.100d072d
add esp, 4
xor edx, edx
cmp dword [esp + 0xac], 0x10
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], dx
jb 0x10015699
mov eax, dword [esp + 0x98]
push eax
call fcn.100d072d
add esp, 4
mov byte [esp + 0x98], 0
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], 0xf
mov dword [esp + 0x10dc], 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 0x100156de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x10d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10b8]
xor ecx, esp
call fcn.100d0738
add esp, 0x10cc
ret 4