Function at 0x482eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x160]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
add eax, dword [edi + 0x38]
adc edx, dword [edi + 0x3c]
cmp edx, 0xf
jbe 0x482ee0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x483040
mov ecx, dword [edi + 0x15c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
test ecx, ecx
jne 0x483097
mov eax, dword [edi + 0x158]
mov ebx, dword [edi + 0xc]
test eax, eax
bswap ebx
je 0x482f87
mov edx, dword [esp + 0x60]
test edx, edx
je 0x482f62
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x60]
jmp 0x482f27
test ebp, ebp
je 0x482f4e
movzx ecx, byte [edi + eax + 0x40]
add ebx, 1
add esi, 1
movzx edx, byte [edi + eax + 0x10]
sub ebp, 1
xor dl, byte [ebx - 1]
xor ecx, edx
mov byte [esi - 1], dl
mov byte [edi + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x482f23
test eax, eax
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebp
je 0x482f75
mov dword [edi + 0x158], eax
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [edi + 0x50]
mov dword [esp + 4], eax
lea eax, [edi + 0x40]
mov dword [esp], eax
call fcn.00482510
cmp dword [esp + 0x60], 0xf
jbe 0x483129
lea eax, [edi + 0x50]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], edi
sub eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 1]
shr dword [esp + 0x2c], 4
mov esi, eax
mov ebx, dword [esp + 0x2c]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
call eax
mov edi, dword [esp + 0x50]
mov eax, esi
bswap eax
mov edx, edi
mov dword [edi + 0xc], eax
xor eax, eax
mov edi, dword [edx + 0x40]
add edx, 4
mov ecx, dword [edx + 0xc]
xor ecx, dword [ebx + eax*4]
mov dword [ebp + eax*4], ecx
xor edi, ecx
add eax, 1
mov dword [edx + 0x3c], edi
cmp eax, 4
jne 0x482ffe
mov eax, dword [esp + 0x20]
add ebp, 0x10
add ebx, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00482510
cmp esi, dword [esp + 0x1c]
je 0x483060
add esi, 1
jmp 0x482fd2
cmp eax, 0xffffffe0
ja 0x482ed6
mov ecx, dword [edi + 0x15c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
test ecx, ecx
je 0x482efa
jmp 0x483097
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
and dword [esp + 0x60], 0xf
add eax, 1
shl eax, 4
add dword [esp + 0x5c], eax
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x4830cb
mov eax, dword [esp + 0x60]
mov dword [edi + 0x158], eax
mov eax, 1
jmp 0x482f6d
lea eax, [edi + 0x50]
mov dword [esp + 4], eax
lea eax, [edi + 0x40]
mov dword [esp], eax
call fcn.00482510
mov eax, dword [edi + 0x158]
mov ebx, dword [edi + 0xc]
mov dword [edi + 0x15c], 0
test eax, eax
bswap ebx
je 0x482f87
jmp 0x482f09
mov eax, dword [esp + 0x54]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x50], edi
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x60]
add eax, 1
bswap eax
mov dword [edi + 0xc], eax
mov edi, dword [esp + 0x5c]
xor eax, eax
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [esi + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, ebp
jne 0x483103
mov edi, dword [esp + 0x50]
jmp 0x483083
mov dword [esp + 0x1c], ebx
jmp 0x48307b