Function at 0x483140
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 0x483170
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x4832d0
mov ecx, dword [ebx + 0x15c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
test ecx, ecx
jne 0x483327
mov eax, dword [ebx + 0x158]
mov esi, dword [ebx + 0xc]
test eax, eax
bswap esi
je 0x483216
mov edx, dword [esp + 0x60]
test edx, edx
je 0x4831f1
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
jmp 0x4831b4
test edi, edi
je 0x4831e1
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 0x4831b0
test eax, eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
je 0x483204
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.00482510
cmp dword [esp + 0x60], 0xf
jbe 0x4833ac
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 0x48328d
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.00482510
cmp ebx, dword [esp + 0x1c]
je 0x4832f0
add ebx, 1
jmp 0x483261
cmp eax, 0xffffffe0
ja 0x483166
mov ecx, dword [ebx + 0x15c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
test ecx, ecx
je 0x48318a
jmp 0x483327
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 0x48335b
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x158], eax
mov eax, 1
jmp 0x4831fc
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 esi, dword [ebx + 0xc]
mov dword [ebx + 0x15c], 0
test eax, eax
bswap esi
je 0x483216
jmp 0x483199
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 0x483390
jmp 0x483313
mov dword [esp + 0x1c], esi
jmp 0x48330b