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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4c1c50]
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.00470280
mov edx, dword [0x4d9400]
push 0x1cfce
add edx, 0x1e63f
push esi
push edx
call fcn.00470280
mov eax, dword [0x4d9400]
push 0xbcc
mov dword [eax + 0x1c], esi
call fcn.004637e0
mov ecx, dword [0x4d9400]
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 0x46cad6
xor edi, edi
cmp esi, edi
je 0x46cad6
movzx eax, word [ecx + 0x28]
mov dword [ebp - 0x48], edi
cmp eax, edi
jbe 0x46ca07
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.00470280
mov eax, dword [0x4d9400]
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.004713d0
mov eax, dword [0x4d9400]
mov ebx, 1
mov ecx, ebx
add esp, 0x18
mov dword [ebp - 0x34], ebx
cmp cx, word [eax + 0x2a]
jae 0x46c969
movzx edx, word [eax + 0x2c]
xor ecx, ecx
test edx, edx
je 0x46c95d
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 [0x4d9400]
lea edx, [edx + ecx + 0x22e]
movzx edx, word [eax + 0x2c]
inc ecx
cmp ecx, edx
jb 0x46c932
mov ebx, dword [ebp - 0x34]
movzx ecx, word [eax + 0x2a]
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, ecx
jb 0x46c923
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
push edx
lea ecx, [eax + edi + 2]
push 0
push ecx
call fcn.00470280
mov eax, dword [0x4d9400]
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.004713d0
mov eax, dword [0x4d9400]
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.0046a430
mov edx, dword [0x4d9400]
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 [0x4d9400]
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 0x46c8d1
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x46ca6d
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x40], esi
lea esp, [esp]
xor edx, edx
test eax, eax
je 0x46ca58
jmp 0x46ca30
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x4d9400]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x46ca30
mov esi, dword [ebp - 0x40]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x40], esi
cmp ebx, edx
jb 0x46ca20
mov ax, word [ecx + 0x2a]
imul ax, word [ecx + 0x28]
mov edx, dword [ebp - 0x44]
mov word [ecx + 0x1e631], ax
mov ecx, dword [0x4d9400]
mov dword [ecx + 0x1e633], edx
mov eax, dword [0x4d9400]
inc dword [eax + 0x1c]
call fcn.0046bcb0
test eax, eax
jne 0x46cdcb
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.00470280
mov ecx, dword [0x4d9400]
push 0x1cfce
add ecx, 0x1e63f
push ebx
push ecx
call fcn.00470280
mov ecx, dword [0x4d9400]
add esp, 0x18
movzx edx, word [ecx + 0x2c]
push edx
add ecx, 0x2e
push 0
push ecx
call fcn.00470280
mov ecx, dword [0x4d9400]
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 0x46cb07
sub eax, esi
jmp 0x46cb09
mov eax, edx
mov edx, dword [ebp - 0x50]
push edx
push eax
add ecx, 0x2e
push 1
push ecx
call fcn.0047697e
mov edi, eax
add dword [ebp - 0x44], edi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x4d9400]
movzx ecx, word [eax + 0x2c]
push ecx
add eax, 0x2e
add esi, edi
push eax
mov dword [ebp - 0x3c], esi
call fcn.0046a430
mov eax, dword [0x4d9400]
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.004713d0
mov eax, dword [0x4d9400]
mov cx, word [ebp - 0x38]
mov word [esi + eax + 0x1e63f], cx
mov eax, dword [ebp + ebx*4 - 0x30]
mov ecx, dword [0x4d9400]
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 0x46cbb4
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 0x46cbca
test esi, esi
je 0x46cbca
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
cmp dword [ebp - 0x3c], eax
jae 0x46cbca
inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
jmp 0x46c895
xor ebx, ebx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp dx, word [ecx + 0x28]
jae 0x46cd33
xor edi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
jmp 0x46cbf0
movzx eax, word [ecx + 0x2c]
push eax
lea ecx, [esi + ecx + 0x22e]
push 0
push ecx
call fcn.00470280
mov eax, dword [0x4d9400]
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.004713d0
mov ecx, dword [0x4d9400]
lea eax, [ebp + ebx*4 - 0x30]
add esp, 0x18
cmp dword [eax], 1
mov dword [ebp - 0x34], 1
jbe 0x46cc98
mov eax, dword [eax]
movzx edx, word [ecx + 0x2c]
mov dword [ebp - 0x50], eax
xor eax, eax
test edx, edx
je 0x46cc89
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 [0x4d9400]
lea edx, [edx + eax + 0x22e]
movzx edx, word [ecx + 0x2c]
inc eax
cmp eax, edx
jb 0x46cc60
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x50]
jb 0x46cc48
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.00470280
mov eax, dword [0x4d9400]
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.004713d0
mov eax, dword [0x4d9400]
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.0046a430
mov edx, dword [0x4d9400]
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 [0x4d9400]
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 0x46cbf0
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x46cd8d
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], esi
xor edx, edx
test eax, eax
je 0x46cd78
mov edi, edi
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x4d9400]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x46cd50
mov esi, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x3c], esi
cmp ebx, edx
jb 0x46cd48
movzx esi, word [ecx + 0x28]
xor edx, edx
xor eax, eax
test esi, esi
je 0x46cda9
lea esp, [esp]
add edx, dword [ebp + eax*4 - 0x30]
inc eax
cmp eax, esi
jb 0x46cda0
mov word [ecx + 0x1e631], dx
mov eax, dword [0x4d9400]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x1e633], ecx
call fcn.0046bcb0
mov eax, dword [0x4d9400]
inc dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470483
mov esp, ebp
pop ebp
ret