Function at 0x482dd0
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 eax, dword [ebx + 0x160]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x482e00
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x482f60
mov ecx, dword [ebx + 0x15c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
test ecx, ecx
jne 0x482fb7
mov eax, dword [ebx + 0x158]
mov esi, dword [ebx + 0xc]
test eax, eax
bswap esi
je 0x482ea6
mov edx, dword [esp + 0x60]
test edx, edx
je 0x482e81
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
jmp 0x482e44
test edi, edi
je 0x482e71
add dword [esp + 0x58], 1
add ecx, 1
mov edx, dword [esp + 0x58]
sub edi, 1
movzx ebp, byte [ebx + eax + 0x10]
movzx esi, byte [edx - 1]
xor ebp, esi
mov edx, ebp
mov byte [ecx - 1], dl
mov edx, esi
xor byte [ebx + eax + 0x40], dl
add eax, 1
and eax, 0xf
jne 0x482e40
test eax, eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
je 0x482e94
mov dword [ebx + 0x158], eax
mov eax, 1
add esp, 0x3c
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
cmp dword [esp + 0x60], 0xf
jbe 0x48303c
lea eax, [ebx + 0x50]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], ebx
sub eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esi + 1]
shr dword [esp + 0x2c], 4
mov ebx, eax
mov edi, dword [esp + 0x2c]
add edi, eax
mov dword [esp + 0x1c], edi
mov edi, 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 ecx, dword [esp + 0x50]
mov eax, ebx
bswap eax
mov edx, ecx
mov dword [ecx + 0xc], eax
xor eax, eax
mov ecx, dword [edi + eax*4]
mov esi, dword [edx + 0x10]
xor esi, ecx
mov dword [ebp + eax*4], esi
add eax, 1
xor dword [edx + 0x40], ecx
add edx, 4
cmp eax, 4
jne 0x482f1d
mov eax, dword [esp + 0x24]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004821a0
cmp ebx, dword [esp + 0x1c]
je 0x482f80
add ebx, 1
jmp 0x482ef1
cmp eax, 0xffffffe0
ja 0x482df6
mov ecx, dword [ebx + 0x15c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
test ecx, ecx
je 0x482e1a
jmp 0x482fb7
mov eax, dword [esp + 0x2c]
mov ebx, 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 0x482feb
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x158], eax
mov eax, 1
jmp 0x482e8c
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 esi, dword [ebx + 0xc]
mov dword [ebx + 0x15c], 0
test eax, eax
bswap esi
je 0x482ea6
jmp 0x482e29
mov eax, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
add eax, 1
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
nop
movzx ecx, byte [esi + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [edi + eax], cl
add eax, 1
cmp eax, ebp
jne 0x483020
jmp 0x482fa3
mov dword [esp + 0x1c], esi
jmp 0x482f9b