Function at 0x48ec60
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x2c
lea ecx, [ebp - 0x30]
push esi
push ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
xor ebx, ebx
call fcn.00491e90
mov edx, dword [0x516e10]
push 0x1cfce
add edx, 0x1e63f
push esi
push edx
call fcn.00491e90
mov eax, dword [0x516e10]
push 0xbcc
mov dword [eax + 0x1c], esi
call fcn.00485c10
mov ecx, dword [0x516e10]
add esp, 0x1c
mov dword [ebp - 0x34], esi
movzx eax, word [ecx + 0x28]
movzx edi, word [ecx + 0x2a]
imul edi, eax
xor edx, edx
mov eax, esi
div edi
test edx, edx
jne 0x48ef06
xor edi, edi
cmp esi, edi
je 0x48ef06
movzx eax, word [ecx + 0x28]
mov dword [ebp - 0x48], edi
cmp eax, edi
jbe 0x48ee37
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], eax
movzx edx, word [ecx + 0x2c]
push edx
lea eax, [esi + ecx + 0x22e]
push 0
push eax
call fcn.00491e90
mov eax, dword [0x516e10]
movzx ecx, word [eax + 0x2c]
mov edx, dword [ebp - 0x4c]
push ecx
lea ecx, [edx + eax + 0x1e641]
push ecx
lea edx, [esi + eax + 0x22e]
push edx
call fcn.00493060
mov eax, dword [0x516e10]
mov ebx, 1
mov ecx, ebx
add esp, 0x18
mov dword [ebp - 0x34], ebx
cmp cx, word [eax + 0x2a]
jae 0x48ed99
movzx edx, word [eax + 0x2c]
xor ecx, ecx
test edx, edx
je 0x48ed8d
add ebx, dword [ebp - 0x40]
imul ebx, ebx, 0x202
lea edx, [esi + eax]
add eax, ebx
mov al, byte [eax + ecx + 0x1e641]
xor byte [edx + ecx + 0x22e], al
mov eax, dword [0x516e10]
lea edx, [edx + ecx + 0x22e]
movzx edx, word [eax + 0x2c]
inc ecx
cmp ecx, edx
jb 0x48ed62
mov ebx, dword [ebp - 0x34]
movzx ecx, word [eax + 0x2a]
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, ecx
jb 0x48ed53
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
push edx
lea ecx, [eax + edi + 2]
push 0
push ecx
call fcn.00491e90
mov eax, dword [0x516e10]
movzx edx, word [eax + 0x2c]
push edx
mov edx, dword [eax + 0x1e637]
lea ecx, [esi + eax + 0x22e]
push ecx
lea eax, [edx + edi + 2]
push eax
call fcn.00493060
mov eax, dword [0x516e10]
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
lea ecx, [ebp - 0x38]
push ecx
push edx
lea ecx, [eax + edi + 2]
push ecx
call fcn.0048c860
mov edx, dword [0x516e10]
mov eax, dword [edx + 0x1e637]
mov cx, word [ebp - 0x38]
add dword [ebp - 0x4c], 0x2a2a
add dword [ebp - 0x40], 0x15
mov word [edi + eax], cx
mov ecx, dword [0x516e10]
mov eax, dword [ebp - 0x48]
movzx edx, word [ecx + 0x28]
inc eax
add esp, 0x24
add esi, 0x200
add edi, 0x202
mov dword [ebp - 0x48], eax
cmp eax, edx
jb 0x48ed01
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x48ee9d
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x40], esi
lea esp, [esp]
xor edx, edx
test eax, eax
je 0x48ee88
jmp 0x48ee60
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x516e10]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x48ee60
mov esi, dword [ebp - 0x40]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x40], esi
cmp ebx, edx
jb 0x48ee50
mov ax, word [ecx + 0x2a]
imul ax, word [ecx + 0x28]
mov edx, dword [ebp - 0x44]
mov word [ecx + 0x1e631], ax
mov ecx, dword [0x516e10]
mov dword [ecx + 0x1e633], edx
mov eax, dword [0x516e10]
inc dword [eax + 0x1c]
call fcn.0048e0e0
test eax, eax
jne 0x48f1fb
xor ebx, ebx
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
call fcn.00491e90
mov ecx, dword [0x516e10]
push 0x1cfce
add ecx, 0x1e63f
push ebx
push ecx
call fcn.00491e90
mov ecx, dword [0x516e10]
add esp, 0x18
movzx edx, word [ecx + 0x2c]
push edx
add ecx, 0x2e
push 0
push ecx
call fcn.00491e90
mov ecx, dword [0x516e10]
movzx edx, word [ecx + 0x2c]
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
sub eax, dword [ecx + 4]
lea edi, [edx + esi]
add esp, 0xc
cmp edi, eax
jb 0x48ef37
sub eax, esi
jmp 0x48ef39
mov eax, edx
mov edx, dword [ebp - 0x50]
push edx
push eax
add ecx, 0x2e
push 1
push ecx
call fcn.0049872e
mov edi, eax
add dword [ebp - 0x44], edi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x516e10]
movzx ecx, word [eax + 0x2c]
push ecx
add eax, 0x2e
add esi, edi
push eax
mov dword [ebp - 0x3c], esi
call fcn.0048c860
mov eax, dword [0x516e10]
movzx edx, word [eax + 0x2c]
mov esi, ebx
imul esi, esi, 0x15
add esi, dword [ebp + ebx*4 - 0x30]
push edx
imul esi, esi, 0x202
lea ecx, [eax + 0x2e]
push ecx
lea edx, [esi + eax + 0x1e641]
push edx
call fcn.00493060
mov eax, dword [0x516e10]
mov cx, word [ebp - 0x38]
mov word [esi + eax + 0x1e63f], cx
mov eax, dword [ebp + ebx*4 - 0x30]
mov ecx, dword [0x516e10]
movzx esi, word [ecx + 0x28]
inc eax
mov dword [ebp + ebx*4 - 0x30], eax
xor edx, edx
lea eax, [ebx + 1]
div esi
add esp, 0x28
mov ebx, edx
movzx edx, word [ecx + 0x2c]
cmp edi, edx
je 0x48efe4
movzx edi, word [ecx + 0x2a]
imul edi, esi
mov esi, dword [ebp - 0x34]
xor edx, edx
mov eax, esi
div edi
test edx, edx
jne 0x48effa
test esi, esi
je 0x48effa
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
cmp dword [ebp - 0x3c], eax
jae 0x48effa
inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
jmp 0x48ecc5
xor ebx, ebx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp dx, word [ecx + 0x28]
jae 0x48f163
xor edi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
jmp 0x48f020
movzx eax, word [ecx + 0x2c]
push eax
lea ecx, [esi + ecx + 0x22e]
push 0
push ecx
call fcn.00491e90
mov eax, dword [0x516e10]
movzx edx, word [eax + 0x2c]
mov ecx, dword [ebp - 0x3c]
push edx
lea edx, [ecx + eax + 0x1e641]
push edx
lea eax, [esi + eax + 0x22e]
push eax
call fcn.00493060
mov ecx, dword [0x516e10]
lea eax, [ebp + ebx*4 - 0x30]
add esp, 0x18
cmp dword [eax], 1
mov dword [ebp - 0x34], 1
jbe 0x48f0c8
mov eax, dword [eax]
movzx edx, word [ecx + 0x2c]
mov dword [ebp - 0x50], eax
xor eax, eax
test edx, edx
je 0x48f0b9
mov ebx, dword [ebp - 0x34]
add ebx, dword [ebp - 0x40]
imul ebx, ebx, 0x202
lea ebx, [ebx]
lea edx, [esi + ecx]
add ecx, ebx
mov cl, byte [ecx + eax + 0x1e641]
xor byte [edx + eax + 0x22e], cl
mov ecx, dword [0x516e10]
lea edx, [edx + eax + 0x22e]
movzx edx, word [ecx + 0x2c]
inc eax
cmp eax, edx
jb 0x48f090
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x50]
jb 0x48f078
mov ebx, dword [ebp - 0x48]
movzx edx, word [ecx + 0x2c]
mov eax, dword [ecx + 0x1e637]
push edx
lea ecx, [eax + edi + 2]
push 0
push ecx
call fcn.00491e90
mov eax, dword [0x516e10]
movzx edx, word [eax + 0x2c]
push edx
mov edx, dword [eax + 0x1e637]
lea ecx, [esi + eax + 0x22e]
push ecx
lea eax, [edx + edi + 2]
push eax
call fcn.00493060
mov eax, dword [0x516e10]
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
lea ecx, [ebp - 0x38]
push ecx
push edx
lea ecx, [eax + edi + 2]
push ecx
call fcn.0048c860
mov edx, dword [0x516e10]
mov eax, dword [edx + 0x1e637]
mov cx, word [ebp - 0x38]
add dword [ebp - 0x3c], 0x2a2a
add dword [ebp - 0x40], 0x15
mov word [edi + eax], cx
mov ecx, dword [0x516e10]
movzx edx, word [ecx + 0x28]
inc ebx
add esp, 0x24
add esi, 0x200
add edi, 0x202
mov dword [ebp - 0x48], ebx
cmp ebx, edx
jb 0x48f020
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x48f1bd
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], esi
xor edx, edx
test eax, eax
je 0x48f1a8
mov edi, edi
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x516e10]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x48f180
mov esi, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x3c], esi
cmp ebx, edx
jb 0x48f178
movzx esi, word [ecx + 0x28]
xor edx, edx
xor eax, eax
test esi, esi
je 0x48f1d9
lea esp, [esp]
add edx, dword [ebp + eax*4 - 0x30]
inc eax
cmp eax, esi
jb 0x48f1d0
mov word [ecx + 0x1e631], dx
mov eax, dword [0x516e10]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x1e633], ecx
call fcn.0048e0e0
mov eax, dword [0x516e10]
inc dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492093
mov esp, ebp
pop ebp
ret