Function at 0x8003f5b0
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 0x8003f74a
mov eax, dword [esp + 0x64]
test al, 7
mov ebx, dword [esp + 0x60]
je 0x8003f5fc
cmp eax, ebx
je 0x8003f5fc
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 0x8003f605
mov edx, 1
mov dword [esp + 0x5c], edx
test bl, 7
je 0x8003f635
cmp ebx, eax
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
jne 0x8003f623
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x1c]
mov dword [esp + 0x60], 0
jmp 0x8003f639
mov dword [esp + 0x60], edx
mov ecx, dword [esp + 0x70]
test cl, 7
je 0x8003f65f
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 0x8003f661
mov ebp, edx
cmp dword [esp + 0x6c], edx
jne 0x8003f696
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 0x8003f6fa
cmp ebx, eax
push 0
je 0x8003f6ce
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 0x8003f6fe
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 0x8003f714
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 0x8003f72a
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 0x8003f833
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 0x8003f7a3
test ebp, ebp
mov edi, dword [esp + 0x70]
jbe 0x8003f76e
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 0x8003f765
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 0x8003f833
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 0x8003f790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c
mov ebx, dword [esp + 0x60]
cmp esi, ebx
je 0x8003f7df
mov eax, dword [esp + 0x68]
push 0
push eax
push esi
push ebx
call dword [esp + 0x68]
test ebp, ebp
jbe 0x8003f833
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 0x8003f7c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c
cmp ebp, 0x20
ja 0x8003f833
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 0x8003f833
mov ecx, dword [esp + 0x70]
lea esi, [esp + 0x34]
sub esi, ebx
mov eax, ebx
sub ecx, ebx
jmp 0x8003f820
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 0x8003f820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c