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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4f9590]
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.00493f80
mov edx, dword [0x511778]
push 0x1cfce
add edx, 0x1e63f
push esi
push edx
call fcn.00493f80
mov eax, dword [0x511778]
push 0xbcc
mov dword [eax + 0x1c], esi
call fcn.00487cf0
mov ecx, dword [0x511778]
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 0x490ff6
xor edi, edi
cmp esi, edi
je 0x490ff6
movzx eax, word [ecx + 0x28]
mov dword [ebp - 0x48], edi
cmp eax, edi
jbe 0x490f27
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.00493f80
mov eax, dword [0x511778]
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.00495060
mov eax, dword [0x511778]
mov ebx, 1
mov ecx, ebx
add esp, 0x18
mov dword [ebp - 0x34], ebx
cmp cx, word [eax + 0x2a]
jae 0x490e89
movzx edx, word [eax + 0x2c]
xor ecx, ecx
test edx, edx
je 0x490e7d
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 [0x511778]
lea edx, [edx + ecx + 0x22e]
movzx edx, word [eax + 0x2c]
inc ecx
cmp ecx, edx
jb 0x490e52
mov ebx, dword [ebp - 0x34]
movzx ecx, word [eax + 0x2a]
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, ecx
jb 0x490e43
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
push edx
lea ecx, [eax + edi + 2]
push 0
push ecx
call fcn.00493f80
mov eax, dword [0x511778]
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.00495060
mov eax, dword [0x511778]
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.0048e950
mov edx, dword [0x511778]
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 [0x511778]
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 0x490df1
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x490f8d
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x40], esi
lea esp, [esp]
xor edx, edx
test eax, eax
je 0x490f78
jmp 0x490f50
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x511778]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x490f50
mov esi, dword [ebp - 0x40]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x40], esi
cmp ebx, edx
jb 0x490f40
mov ax, word [ecx + 0x2a]
imul ax, word [ecx + 0x28]
mov edx, dword [ebp - 0x44]
mov word [ecx + 0x1e631], ax
mov ecx, dword [0x511778]
mov dword [ecx + 0x1e633], edx
mov eax, dword [0x511778]
inc dword [eax + 0x1c]
call fcn.004901d0
test eax, eax
jne 0x4912eb
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.00493f80
mov ecx, dword [0x511778]
push 0x1cfce
add ecx, 0x1e63f
push ebx
push ecx
call fcn.00493f80
mov ecx, dword [0x511778]
add esp, 0x18
movzx edx, word [ecx + 0x2c]
push edx
add ecx, 0x2e
push 0
push ecx
call fcn.00493f80
mov ecx, dword [0x511778]
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 0x491027
sub eax, esi
jmp 0x491029
mov eax, edx
mov edx, dword [ebp - 0x50]
push edx
push eax
add ecx, 0x2e
push 1
push ecx
call fcn.0049a72e
mov edi, eax
add dword [ebp - 0x44], edi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x511778]
movzx ecx, word [eax + 0x2c]
push ecx
add eax, 0x2e
add esi, edi
push eax
mov dword [ebp - 0x3c], esi
call fcn.0048e950
mov eax, dword [0x511778]
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.00495060
mov eax, dword [0x511778]
mov cx, word [ebp - 0x38]
mov word [esi + eax + 0x1e63f], cx
mov eax, dword [ebp + ebx*4 - 0x30]
mov ecx, dword [0x511778]
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 0x4910d4
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 0x4910ea
test esi, esi
je 0x4910ea
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
cmp dword [ebp - 0x3c], eax
jae 0x4910ea
inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
jmp 0x490db5
xor ebx, ebx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp dx, word [ecx + 0x28]
jae 0x491253
xor edi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
jmp 0x491110
movzx eax, word [ecx + 0x2c]
push eax
lea ecx, [esi + ecx + 0x22e]
push 0
push ecx
call fcn.00493f80
mov eax, dword [0x511778]
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.00495060
mov ecx, dword [0x511778]
lea eax, [ebp + ebx*4 - 0x30]
add esp, 0x18
cmp dword [eax], 1
mov dword [ebp - 0x34], 1
jbe 0x4911b8
mov eax, dword [eax]
movzx edx, word [ecx + 0x2c]
mov dword [ebp - 0x50], eax
xor eax, eax
test edx, edx
je 0x4911a9
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 [0x511778]
lea edx, [edx + eax + 0x22e]
movzx edx, word [ecx + 0x2c]
inc eax
cmp eax, edx
jb 0x491180
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x50]
jb 0x491168
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.00493f80
mov eax, dword [0x511778]
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.00495060
mov eax, dword [0x511778]
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.0048e950
mov edx, dword [0x511778]
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 [0x511778]
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 0x491110
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x4912ad
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], esi
xor edx, edx
test eax, eax
je 0x491298
mov edi, edi
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x511778]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x491270
mov esi, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x3c], esi
cmp ebx, edx
jb 0x491268
movzx esi, word [ecx + 0x28]
xor edx, edx
xor eax, eax
test esi, esi
je 0x4912c9
lea esp, [esp]
add edx, dword [ebp + eax*4 - 0x30]
inc eax
cmp eax, esi
jb 0x4912c0
mov word [ecx + 0x1e631], dx
mov eax, dword [0x511778]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x1e633], ecx
call fcn.004901d0
mov eax, dword [0x511778]
inc dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004944f9
mov esp, ebp
pop ebp
ret