Function at 0x4833c0
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 0x4833f0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x4834a3
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x15c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x4834c0
mov eax, dword [ebx + 0x158]
test eax, eax
je 0x483478
test esi, esi
je 0x483453
mov ebp, dword [esp + 0x48]
jmp 0x483424
test esi, esi
je 0x48344b
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 0x483420
test eax, eax
mov dword [esp + 0x48], ebp
je 0x483466
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.00482510
mov eax, dword [ebx + 0xc]
mov ebp, esi
and ebp, 0xfffffff0
bswap eax
mov dword [esp + 0x18], eax
jne 0x483547
test esi, esi
jne 0x4834eb
mov dword [ebx + 0x158], esi
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x4833e2
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x15c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x48340a
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.00482510
mov eax, dword [ebx + 0x158]
mov dword [ebx + 0x15c], 0
test eax, eax
je 0x483478
jmp 0x483414
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 0x483520
mov ebx, dword [esp + 0x40]
jmp 0x483490
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 0x48348c
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 0x4835b2
mov eax, dword [esp + 0x14]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00482510
sub edi, 1
jne 0x4835b0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
shl eax, 4
add edi, eax
jmp 0x48348c