Function at 0x8003ed60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x54]
cmp ebp, 8
push esi
push edi
jne 0x8003eefa
mov eax, dword [esp + 0x64]
test al, 7
mov ebx, dword [esp + 0x60]
je 0x8003edac
cmp eax, ebx
je 0x8003edac
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], 0
mov edx, 1
jmp 0x8003edb5
mov edx, 1
mov dword [esp + 0x5c], edx
test bl, 7
je 0x8003ede5
cmp ebx, eax
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
jne 0x8003edd3
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x1c]
mov dword [esp + 0x60], 0
jmp 0x8003ede9
mov dword [esp + 0x60], edx
mov ecx, dword [esp + 0x70]
test cl, 7
je 0x8003ee0f
mov esi, dword [ecx]
mov dword [esp + 0x2c], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], ecx
xor ebp, ebp
jmp 0x8003ee11
mov ebp, edx
cmp dword [esp + 0x6c], edx
jne 0x8003ee46
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, dword [eax + 4]
xor esi, edi
mov edi, dword [ecx + 4]
mov ecx, dword [esp + 0x68]
push edx
push ecx
push ebx
xor eax, edi
push ebx
mov dword [ebx], esi
mov dword [ebx + 4], eax
call dword [esp + 0x68]
mov edx, dword [ebx]
mov eax, dword [esp + 0x70]
mov dword [eax], edx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
jmp 0x8003eeaa
cmp ebx, eax
push 0
je 0x8003ee7e
mov edx, dword [esp + 0x6c]
push edx
push eax
push ebx
call dword [esp + 0x68]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebx]
xor edx, ecx
mov ecx, dword [ebx + 4]
mov dword [ebx], edx
mov edx, dword [eax + 4]
xor ecx, edx
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
jmp 0x8003eeae
mov ecx, dword [esp + 0x6c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
push ecx
push eax
push ebx
call dword [esp + 0x68]
mov eax, dword [esp + 0x70]
mov edx, dword [eax]
mov ecx, dword [ebx]
xor ecx, edx
mov edx, dword [ebx + 4]
mov dword [ebx], ecx
mov ecx, dword [eax + 4]
xor edx, ecx
mov dword [ebx + 4], edx
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
test edx, edx
jne 0x8003eec4
mov esi, dword [ebx]
mov edx, dword [esp + 0x10]
mov dword [edx], esi
mov esi, dword [ebx + 4]
mov dword [edx + 4], esi
mov edx, dword [esp + 0x5c]
test edx, edx
jne 0x8003eeda
mov esi, dword [ecx]
mov edx, dword [esp + 0x14]
mov dword [edx], esi
mov ecx, dword [ecx + 4]
mov dword [edx + 4], ecx
test ebp, ebp
jne 0x8003efe3
mov edx, dword [eax]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword [ecx], edx
mov eax, dword [eax + 4]
pop ebp
mov dword [ecx + 4], eax
pop ebx
add esp, 0x44
ret 0x1c
cmp dword [esp + 0x6c], 1
mov esi, dword [esp + 0x64]
jne 0x8003ef53
test ebp, ebp
mov edi, dword [esp + 0x70]
jbe 0x8003ef1e
mov ecx, edi
mov eax, esi
sub ecx, esi
mov edx, ebp
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x8003ef15
mov ecx, dword [esp + 0x68]
push 1
push ecx
push esi
mov esi, dword [esp + 0x6c]
push esi
call dword [esp + 0x68]
test ebp, ebp
jbe 0x8003efe3
mov ecx, esi
mov eax, edi
sub ecx, edi
lea ecx, [ecx]
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec ebp
jne 0x8003ef40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c
mov ebx, dword [esp + 0x60]
cmp esi, ebx
je 0x8003ef8f
mov eax, dword [esp + 0x68]
push 0
push eax
push esi
push ebx
call dword [esp + 0x68]
test ebp, ebp
jbe 0x8003efe3
mov ecx, dword [esp + 0x70]
sub esi, ebx
mov eax, ebx
sub ecx, ebx
mov dl, byte [ecx + eax]
xor byte [eax], dl
mov dl, byte [esi + eax]
mov byte [ecx + eax], dl
inc eax
dec ebp
jne 0x8003ef76
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c
cmp ebp, 0x20
ja 0x8003efe3
mov edx, dword [esp + 0x64]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
push ecx
push edx
push ebx
call dword [esp + 0x68]
test ebp, ebp
jbe 0x8003efe3
mov ecx, dword [esp + 0x70]
lea esi, [esp + 0x34]
sub esi, ebx
mov eax, ebx
sub ecx, ebx
jmp 0x8003efd0
mov dl, byte [eax + ecx]
mov bl, byte [eax]
xor bl, dl
mov dl, byte [esi + eax]
mov byte [eax], bl
mov byte [eax + ecx], dl
inc eax
dec ebp
jne 0x8003efd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c