Function at 0x1006da63
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x101390fc
call fcn.1007db34
sub esp, 0x80
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x8b]
mov byte [ebp - 0x8c], bl
mov esi, dword [ebp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
mov dword [ebp - 0x48], ebx
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x8c]
push 0x40
push eax
push dword [esi + 0x1f4]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ebx
push dword [esi + 0x1ec]
push dword [esi + 0x20]
call fcn.10070e2f
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0x40], eax
je 0x1006deb9
push eax
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x44], eax
je 0x1006dec2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x28]
mov edi, eax
push edi
push dword [ebp + 0xc]
call fcn.100615fb
add esp, 0xc
test eax, eax
je 0x1006decb
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0x30], ebx
mov dword [eax], 1
mov eax, dword [ebp + 0x10]
je 0x1006db24
or dword [eax + 0x24], 8
cmp dword [ebp - 0x34], ebx
je 0x1006db2d
or dword [eax + 0x24], 0x10
push dword [ebp + 8]
call fcn.10071121
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0x8c]
push dword [ebp - 0x1c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
push eax
call fcn.10074cd3
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x38], 0x3e0
mov dword [esi + 0x3c], ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x40], ebx
push dword [ebp + 8]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x378], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
call edi
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call edi
push dword [ebp + 0x10]
call fcn.1006bad2
mov dword [esp], 0x3e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1006bd3b
add esp, 0xc
test eax, eax
je 0x1006ded4
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x2c], ebx
cmp eax, ebx
mov dword [ebp + 0x14], ebx
jne 0x1006dbe4
cmp dword [esi + 0x1c], ebx
jne 0x1006dbe4
mov dword [ebp - 0x2c], 1
mov dword [ebp + 0x14], ebx
jmp 0x1006ddb2
cmp dword [esi + 0x1c], ebx
mov ecx, 0x10000
mov dword [ebp + 0x1c], ecx
jne 0x1006dbf8
cmp eax, ecx
jae 0x1006dbf8
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
call fcn.1007e238
mov edi, dword [ebp - 0x44]
pop ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
add eax, 4
push eax
mov dword [ebp - 0x38], eax
call fcn.1007e238
pop ecx
mov dword [ebp - 0x44], eax
push ebx
push ebx
push dword [esi + 0x38]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x14]
call fcn.1007e1e0
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x10]
call fcn.1007e1e0
add esp, 0x18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push ebx
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006dd09
cmp dword [ebp - 0x20], ebx
je 0x1006dd12
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push eax
push edi
call fcn.1006c142
add esp, 0x28
cmp eax, ebx
jne 0x1006dd1b
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
add eax, 4
push eax
call fcn.10074cb0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push ebx
mov dword [ecx], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x3c], ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006dd69
mov eax, dword [ebp - 0x18]
add eax, 4
cmp dword [ebp - 0x3c], eax
jb 0x1006dd70
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
jne 0x1006dcfd
mov dword [esi + 0x40], eax
inc ecx
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], ecx
jmp 0x1006dc38
push 0x3127
push 0xd
jmp 0x1006dd77
mov dword [ebp - 0x2c], 1
jmp 0x1006dd85
jge 0x1006dd60
push 0x1019f4bc
lea ecx, [ebp + 8]
call fcn.10094520
push 0x313a
lea eax, [ebp + 8]
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
push dword [ebp - 0x20]
push dword [ebp - 0x40]
push str.Error:_Encrypt_Data_Failed__File__Algrithm_d__DataLen_lu_KeyLen_lu__LINE_d
push eax
call fcn.10097c40
push dword [ebp + 8]
call fcn.10072272
or dword [ebp - 4], 0xffffffff
add esp, 0x1c
lea ecx, [ebp + 8]
call fcn.10094cc0
push 0x313e
push 0x11
jmp 0x1006dd77
push 0x3148
jmp 0x1006dd75
push 0x314f
push 0xe
call fcn.100680dd
pop ecx
mov dword [ebp + 0x14], 1
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x1006dd93
push dword [ebp - 0x14]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0x44], ebx
je 0x1006dda1
push dword [ebp - 0x44]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x1006ddb2
push dword [ebp - 0x24]
call fcn.1007de95
pop ecx
mov dword [ebp - 0x24], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x2c], ebx
je 0x1006def2
cmp dword [ebp + 0x14], ebx
jne 0x1006def2
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x48], 1
je 0x1006de7c
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x1006ddf6
mov dword [esi + 0x378], 0x3e0
mov dword [esi + 0x37c], ebx
jmp 0x1006de1e
push ebx
dec eax
push dword [esi + 0x40]
push ebx
push eax
call fcn.1007ea30
mov ecx, dword [esi + 0x44]
xor edi, edi
add eax, ecx
adc edx, edi
add eax, 0x3e0
adc edx, ebx
mov dword [esi + 0x378], eax
mov dword [esi + 0x37c], edx
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
push esi
push dword [edi + 0x20]
push dword [ebp + 0xc]
call fcn.10069087
add esp, 0x10
test eax, eax
je 0x1006de6e
push dword [ebp + 0x18]
add edi, 0x24
push edi
call fcn.100721af
push dword [ebp + 0x18]
or dword [edi], 4
call fcn.10074d62
add esp, 0xc
test eax, eax
jne 0x1006de58
or dword [edi], 1
mov eax, dword [ebp + 0x18]
add eax, 0x10
push eax
call fcn.10074d62
test eax, eax
pop ecx
jne 0x1006de7c
or dword [edi], 2
jmp 0x1006de7c
push 0x3196
push 0x10
call fcn.100680dd
pop ecx
pop ecx
push dword [ebp + 0x10]
call fcn.1006baf3
push esi
push dword [ebp + 0x10]
call fcn.1006b971
add esp, 0xc
test eax, eax
je 0x1006dedb
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x3e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1006bd3b
add esp, 0xc
test eax, eax
je 0x1006dee4
jmp 0x1006def2
push 0x30bc
push 0xb
jmp 0x1006deeb
push 0x30c3
push 0xc
jmp 0x1006deeb
push 0x30d2
push 0x25
jmp 0x1006deeb
push 0x30fd
jmp 0x1006dee9
push 0x31a0
push 0x13
jmp 0x1006deeb
push 0x31a8
push 0x10
call fcn.100680dd
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret