Function at 0x41a7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x58], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x64], eax
mov eax, 0x20
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], edi
cmp edx, eax
jae 0x41a825
mov eax, edx
mov dword [ebp - 0x48], edx
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.00433580
mov ecx, dword [ebp - 0x48]
add esp, 0xc
cmp ecx, 0x20
jae 0x41a89e
push dword [ebp - 0x64]
lea esi, [ecx - 0x10]
lea ecx, [ebp - 0x44]
add ecx, esi
mov edx, ecx
call fcn.0041d850
add esp, 4
xor ecx, ecx
test esi, esi
je 0x41a863
mov al, byte [ebp + ecx - 0x34]
xor byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, esi
jb 0x41a856
mov eax, dword [edi]
mov edi, esi
cmp esi, eax
jbe 0x41a86d
mov edi, eax
push edi
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x58]
push eax
call fcn.00433580
add esp, 0xc
cmp edi, esi
jne 0x41a9b8
mov ecx, dword [ebp - 0x54]
mov al, 1
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], eax
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x6c]
lea eax, [ecx + 0x10]
mov esi, 0x10
mov dword [ebp - 0x68], esi
cmp eax, edx
jbe 0x41a8c9
mov esi, edx
sub esi, ecx
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x70]
push esi
add eax, ecx
push eax
push edi
call fcn.00433580
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x14]
add dword [ebp - 0x48], esi
call fcn.0041d850
add esp, 0x10
test esi, esi
je 0x41a9cb
cmp esi, 0x10
je 0x41a9cb
xor eax, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x41a922
lea ecx, [ebp - 0x14]
sub edi, ecx
lea esp, [esp]
lea edx, [ebp - 0x14]
add edx, eax
inc eax
mov cl, byte [edi + edx]
xor byte [edx], cl
cmp eax, esi
jb 0x41a910
mov edi, dword [ebp - 0x4c]
cmp esi, 0x10
jae 0x41a941
mov eax, 0x10
lea ecx, [ebp - 0x14]
sub eax, esi
lea edx, [esi + edi]
push eax
add ecx, esi
push ecx
push edx
call fcn.00433580
add esp, 0xc
push dword [ebp - 0x64]
mov edx, edi
mov ecx, edi
call fcn.0041d850
mov eax, dword [ebp - 0x50]
mov ecx, edi
mov edi, eax
add esp, 4
sub edi, dword [ebp - 0x4c]
mov esi, 4
lea edx, [eax + 2]
movzx eax, byte [edi + ecx]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
xor byte [ecx - 3], al
movzx eax, byte [edx - 4]
xor byte [ecx - 2], al
movzx eax, byte [edx - 3]
xor byte [ecx - 1], al
dec esi
jne 0x41a962
mov ecx, dword [ebp - 0x54]
lea eax, [ebx + 0x10]
mov esi, dword [ebp - 0x68]
mov edi, 0x10
mov ecx, dword [ecx]
cmp eax, ecx
jbe 0x41a99f
mov edi, ecx
sub edi, ebx
mov eax, dword [ebp - 0x58]
push edi
push dword [ebp - 0x4c]
add eax, ebx
push eax
call fcn.00433580
add esp, 0xc
add ebx, edi
cmp edi, 0x10
je 0x41aa05
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edi, esi
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0x14]
add ecx, edx
movzx eax, byte [ecx + edi]
xor byte [ecx], al
movzx eax, byte [esi + edx + 1]
xor byte [ecx + 1], al
movzx eax, byte [esi + edx + 2]
xor byte [ecx + 2], al
movzx eax, byte [esi + edx + 3]
add edx, 4
xor byte [ecx + 3], al
cmp edx, 0x10
jb 0x41a9d7
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x60]
mov edi, eax
add eax, ebx
cmp eax, ecx
jbe 0x41aa19
mov edi, ecx
sub edi, ebx
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x58]
add eax, ebx
push eax
call fcn.00433580
mov eax, dword [ebp - 0x60]
add esp, 0xc
add ebx, edi
cmp edi, eax
jne 0x41a9b8
cmp esi, 0x10
jne 0x41aa56
mov eax, dword [ebp - 0x50]
mov edi, eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
jmp 0x41a8b0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ebx
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret