Function at 0x483050
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x483080
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x483133
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x15c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x483150
mov eax, dword [ebx + 0x158]
test eax, eax
je 0x483108
test esi, esi
je 0x4830e3
mov ebp, dword [esp + 0x48]
jmp 0x4830b4
test esi, esi
je 0x4830db
movzx ecx, byte [ebx + eax + 0x40]
add ebp, 1
add edi, 1
movzx edx, byte [ebx + eax + 0x10]
sub esi, 1
xor dl, byte [ebp - 1]
xor ecx, edx
mov byte [edi - 1], dl
mov byte [ebx + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x4830b0
test eax, eax
mov dword [esp + 0x48], ebp
je 0x4830f6
mov dword [ebx + 0x158], eax
add esp, 0x2c
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
call fcn.004821a0
mov eax, dword [ebx + 0xc]
mov ebp, esi
and ebp, 0xfffffff0
bswap eax
mov dword [esp + 0x18], eax
jne 0x4831d7
test esi, esi
jne 0x48317b
mov dword [ebx + 0x158], esi
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x483072
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x15c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x48309a
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.004821a0
mov eax, dword [ebx + 0x158]
mov dword [ebx + 0x15c], 0
test eax, eax
je 0x483108
jmp 0x4830a4
mov eax, dword [esp + 0x44]
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 + 0x18]
mov edx, ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x40], ebx
add eax, 1
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
nop
lea esi, [esi]
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [ebp + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, esi
jne 0x4831b0
mov ebx, dword [esp + 0x40]
jmp 0x483120
mov ecx, dword [esp + 0x44]
mov eax, ebp
sub esi, ebp
mov edx, dword [esp + 0x48]
shr eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
add dword [esp + 0x48], ebp
test ecx, ecx
bswap eax
mov dword [ebx + 0xc], eax
je 0x48311c
lea ecx, [ebx + 0x40]
mov ebp, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x50]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
mov esi, ebp
mov ebp, eax
mov edi, ecx
lea esi, [esi]
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x483242
mov eax, dword [esp + 0x14]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.004821a0
sub edi, 1
jne 0x483240
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
shl eax, 4
add edi, eax
jmp 0x48311c