Function at 0x482b40
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 0x482b70
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x482cd0
mov ecx, dword [edi + 0x15c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
test ecx, ecx
jne 0x482d27
mov eax, dword [edi + 0x158]
mov ebx, dword [edi + 0xc]
test eax, eax
bswap ebx
je 0x482c17
mov edx, dword [esp + 0x60]
test edx, edx
je 0x482bf2
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x60]
jmp 0x482bb7
test ebp, ebp
je 0x482bde
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 0x482bb3
test eax, eax
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebp
je 0x482c05
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.004821a0
cmp dword [esp + 0x60], 0xf
jbe 0x482db9
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 0x482c8e
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.004821a0
cmp esi, dword [esp + 0x1c]
je 0x482cf0
add esi, 1
jmp 0x482c62
cmp eax, 0xffffffe0
ja 0x482b66
mov ecx, dword [edi + 0x15c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
test ecx, ecx
je 0x482b8a
jmp 0x482d27
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 0x482d5b
mov eax, dword [esp + 0x60]
mov dword [edi + 0x158], eax
mov eax, 1
jmp 0x482bfd
lea eax, [edi + 0x50]
mov dword [esp + 4], eax
lea eax, [edi + 0x40]
mov dword [esp], eax
call fcn.004821a0
mov eax, dword [edi + 0x158]
mov ebx, dword [edi + 0xc]
mov dword [edi + 0x15c], 0
test eax, eax
bswap ebx
je 0x482c17
jmp 0x482b99
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 0x482d93
mov edi, dword [esp + 0x50]
jmp 0x482d13
mov dword [esp + 0x1c], ebx
jmp 0x482d0b