Function at 0x483280
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x4832b0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x48342a
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x15c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x483447
mov eax, dword [ebx + 0x158]
test eax, eax
je 0x483346
test esi, esi
je 0x483319
mov dword [esp + 0x50], ebx
jmp 0x4832e4
test esi, esi
je 0x483311
mov ebx, dword [esp + 0x50]
add edi, 1
add ecx, 1
movzx edx, byte [edi - 1]
sub esi, 1
movzx ebp, byte [ebx + eax + 0x10]
xor ebp, edx
mov ebx, ebp
mov byte [ecx - 1], bl
mov ebx, dword [esp + 0x50]
xor byte [ebx + eax + 0x40], dl
add eax, 1
and eax, 0xf
jne 0x4832e0
test eax, eax
mov ebx, dword [esp + 0x50]
je 0x48332c
mov dword [ebx + 0x158], eax
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.004821a0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [esp + 0x28], eax
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
je 0x483413
shr eax, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x4833cf
lea edx, [ebx + 0x40]
mov ebp, edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
lea eax, [ebx + 0x50]
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], esi
mov esi, ebp
mov ebp, eax
mov dword [esp + 0x5c], ecx
mov edi, edx
nop
lea esi, [esi]
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x483392
mov eax, dword [esp + 0x20]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.004821a0
sub edi, 1
jne 0x483390
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
shl eax, 4
add edi, eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
sub edi, ebp
sub esi, ebp
mov dword [esp], edi
add edi, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
call dword [esp + 0x64]
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
bswap eax
mov dword [ebx + 0xc], eax
add ecx, ebp
test esi, esi
jne 0x48347e
mov dword [ebx + 0x158], esi
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x4832a6
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x15c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x4832ca
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.004821a0
mov eax, dword [ebx + 0x158]
mov dword [ebx + 0x15c], 0
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x483346
jmp 0x4832d4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
call dword [ebx + 0x160]
mov eax, dword [esp + 0x28]
mov edx, ebx
mov ecx, dword [esp + 0x20]
add eax, 1
bswap eax
mov ebp, ecx
mov dword [ebx + 0xc], eax
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [ebp + eax], cl
add eax, 1
cmp eax, esi
jne 0x4834b0
jmp 0x483417