Function at 0x415a70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
push esi
push edi
cmp dword [0x4b5190], ebx
jne 0x415dcb
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [ebp + 0x200], 0xa
mov ecx, ebp
add eax, 2
jmp 0x415aa0
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
or esi, edi
movzx edi, byte [eax]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4], esi
inc edx
add eax, 4
cmp edx, 4
jl 0x415aa0
mov edi, 0x4baae8
mov esi, dword [ecx + 0xc]
mov eax, esi
shr eax, 0x10
movzx edx, al
mov eax, dword [edx*4 + 0x4b9ee8]
shl eax, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x4b9ee8]
movzx edx, byte [ecx + 0xc]
shl eax, 8
xor eax, dword [edx*4 + 0x4b9ee8]
mov edx, esi
shl eax, 8
shr edx, 0x18
xor eax, dword [edx*4 + 0x4b9ee8]
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
add edi, 4
xor eax, dword [edi - 4]
add ecx, 0x10
xor edx, eax
mov dword [ecx], eax
mov eax, dword [ecx - 8]
xor eax, edx
mov dword [ecx + 8], eax
xor eax, esi
cmp edi, 0x4bab10
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], eax
jl 0x415ad0
cmp dword [0x4b5194], ebx
je 0x415c4d
xor eax, eax
lea esp, [esp]
mov edx, dword [eax + 0x4b9ee8]
add edx, edx
mov esi, dword [edx + edx + 0x4bbb10]
add edx, edx
mov dword [eax + 0x4bb310], esi
mov esi, dword [edx + 0x4bb710]
mov dword [eax + 0x4baf10], esi
mov esi, dword [edx + 0x4ba6e8]
mov edx, dword [edx + 0x4ba2e8]
mov dword [eax + 0x4bd310], edx
mov edx, dword [eax + 0x4b9eec]
add edx, edx
add edx, edx
mov dword [eax + 0x4bab10], esi
mov esi, dword [edx + 0x4bbb10]
mov dword [eax + 0x4bb314], esi
mov esi, dword [edx + 0x4bb710]
mov dword [eax + 0x4baf14], esi
mov esi, dword [edx + 0x4ba6e8]
mov edx, dword [edx + 0x4ba2e8]
mov dword [eax + 0x4bd314], edx
mov edx, dword [eax + 0x4b9ef0]
add edx, edx
add edx, edx
mov dword [eax + 0x4bab14], esi
mov esi, dword [edx + 0x4bbb10]
mov dword [eax + 0x4bb318], esi
mov esi, dword [edx + 0x4bb710]
mov dword [eax + 0x4baf18], esi
mov esi, dword [edx + 0x4ba6e8]
mov edx, dword [edx + 0x4ba2e8]
mov dword [eax + 0x4bd318], edx
mov edx, dword [eax + 0x4b9ef4]
add edx, edx
add edx, edx
mov dword [eax + 0x4bab18], esi
mov esi, dword [edx + 0x4bbb10]
mov dword [eax + 0x4bb31c], esi
mov esi, dword [edx + 0x4bb710]
mov dword [eax + 0x4baf1c], esi
mov esi, dword [edx + 0x4ba6e8]
mov edx, dword [edx + 0x4ba2e8]
mov dword [eax + 0x4bab1c], esi
mov dword [eax + 0x4bd31c], edx
add eax, 0x10
cmp eax, 0x400
jl 0x415b50
mov dword [0x4b5194], ebx
mov edx, dword [ecx]
mov dword [ebp + 0x100], edx
mov edx, dword [ecx + 4]
add ecx, 4
lea eax, [ebp + 0x100]
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
add eax, 4
add ecx, 4
add eax, 4
mov dword [eax], edx
mov edx, dword [ecx + 4]
add ecx, 4
add eax, 4
mov dword [eax], edx
mov edi, 1
add eax, 4
add ecx, 4
cmp dword [ebp + 0x200], edi
jle 0x415d9f
mov esi, dword [ecx - 0x20]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
sub ecx, 0x20
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x4bb310]
xor edx, dword [ebx*4 + 0x4baf10]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x4bab10]
movzx esi, byte [ecx]
xor edx, dword [esi*4 + 0x4bd310]
add ecx, 4
mov dword [eax], edx
mov esi, dword [ecx]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x4bb310]
xor edx, dword [ebx*4 + 0x4baf10]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x4bab10]
movzx esi, byte [ecx]
xor edx, dword [esi*4 + 0x4bd310]
add eax, 4
mov dword [eax], edx
mov esi, dword [ecx + 4]
add ecx, 4
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x4bb310]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4baf10]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x4bab10]
movzx esi, byte [ecx]
xor edx, dword [esi*4 + 0x4bd310]
add eax, 4
mov dword [eax], edx
mov esi, dword [ecx + 4]
add ecx, 4
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x4bb310]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4baf10]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x4bab10]
movzx esi, byte [ecx]
xor edx, dword [esi*4 + 0x4bd310]
add eax, 4
mov dword [eax], edx
inc edi
add eax, 4
add ecx, 4
cmp edi, dword [ebp + 0x200]
jl 0x415c94
mov edx, dword [ecx - 0x20]
mov dword [eax], edx
sub ecx, 0x20
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
add eax, 4
add ecx, 4
add eax, 4
pop edi
mov dword [eax], edx
mov ecx, dword [ecx + 4]
pop esi
pop ebp
mov dword [eax + 4], ecx
xor eax, eax
pop ebx
ret
call fcn.00415de0
mov dword [0x4b5190], ebx
jmp 0x415a86