Function at 0x4b6c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
mov ecx, dword [esi + 4]
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
mov dword [ebp - 4], ecx
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 7]
shl eax, 8
mov dword [ebp + 0xc], eax
movzx eax, byte [edx + 6]
or dword [ebp + 0xc], eax
movzx eax, byte [edx + 5]
shl dword [ebp + 0xc], 8
or dword [ebp + 0xc], eax
movzx eax, byte [edx + 4]
shl dword [ebp + 0xc], 8
or dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
xor ebx, dword [ecx]
add ecx, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ebx
xor eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x18], eax
mov dword [ebp + 0xc], eax
movzx eax, byte [edx + 0xb]
shl eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [edx + 0xa]
or dword [ebp + 8], eax
movzx eax, byte [edx + 9]
shl dword [ebp + 8], 8
or dword [ebp + 8], eax
movzx eax, byte [edx + 8]
shl dword [ebp + 8], 8
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ecx
xor eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp + 8], eax
movzx eax, byte [edx + 0xf]
shl eax, 8
mov dword [ebp - 8], eax
movzx eax, byte [edx + 0xe]
or dword [ebp - 8], eax
movzx eax, byte [edx + 0xd]
shl dword [ebp - 8], 8
or dword [ebp - 8], eax
movzx eax, byte [edx + 0xc]
shl dword [ebp - 8], 8
mov edx, dword [ebp - 8]
or edx, eax
mov dword [ebp - 4], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x20], edx
xor edx, dword [ecx]
mov ecx, dword [esi]
sar ecx, 1
dec ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov esi, eax
test ecx, ecx
jle 0x4b6f7f
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov edx, dword [ebp + 0xc]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5a1550]
mov esi, dword [ebp - 8]
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, esi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5a0d50]
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5a1550]
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
movzx eax, dl
xor ecx, dword [eax*4 + 0x5a0d50]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
xor ecx, dword [eax]
mov eax, esi
shr eax, 8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x34], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 4], edx
mov ecx, dword [ecx*4 + 0x5a1150]
shr ebx, 8
xor ecx, dword [eax*4 + 0x5a1550]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x5a0d50]
xor ecx, dword [edx]
add edx, 4
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], ecx
movzx ecx, al
movzx eax, bl
mov dword [ebp - 4], edx
mov ebx, dword [ecx*4 + 0x5a1550]
xor ebx, dword [eax*4 + 0x5a1150]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x5a1950]
mov eax, esi
movzx eax, al
xor ebx, dword [eax*4 + 0x5a0d50]
xor ebx, dword [edx]
add edx, 4
mov eax, dword [ebp - 0x24]
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], edx
mov ecx, dword [ecx*4 + 0x5a1550]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x5a0d50]
mov eax, ebx
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], ecx
movzx ecx, al
mov eax, dword [ebp - 0x24]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5a1550]
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x5a0d50]
mov eax, ebx
xor ecx, dword [edx]
add edx, 4
shr eax, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5a1150]
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x5a1550]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov edi, dword [ebp + 8]
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx*4 + 0x5a1550]
movzx eax, al
xor edi, dword [eax*4 + 0x5a0d50]
mov eax, edi
mov dword [ebp + 8], edi
xor eax, dword [edx]
add edx, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, dword [ebp - 0x24]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5a0d50]
lea eax, [edx + 4]
xor ecx, dword [edx]
mov esi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], ecx
test eax, eax
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x2c]
jg 0x4b6d26
mov edx, ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5a1550]
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, edx
shr eax, 0x18
lea edx, [esi + 4]
xor ecx, dword [eax*4 + 0x5a1950]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5a0d50]
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
mov eax, dword [ebp - 8]
shr eax, 0x10
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5a1550]
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x5a1150]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp + 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x5a0d50]
xor ecx, dword [edx]
add edx, 4
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 4], edx
mov ecx, dword [ecx*4 + 0x5a1150]
shr ebx, 8
xor ecx, dword [eax*4 + 0x5a1550]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x5a0d50]
xor ecx, dword [edx]
add edx, 4
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], ecx
movzx ecx, al
movzx eax, bl
mov dword [ebp - 4], edx
mov ebx, dword [ecx*4 + 0x5a1550]
xor ebx, dword [eax*4 + 0x5a1150]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x5a1950]
mov eax, dword [ebp - 8]
movzx eax, al
xor ebx, dword [eax*4 + 0x5a0d50]
xor ebx, dword [edx]
add edx, 4
mov eax, ebx
mov dword [ebp + 8], ebx
shr eax, 0x18
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], edx
movzx ecx, byte [eax + 0x5a0c50]
mov eax, dword [ebp - 0x2c]
shl ecx, 8
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
mov eax, ebx
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
movzx eax, al
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
movzx ecx, byte [eax + 0x5a0c50]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
movzx eax, byte [eax + 0x5a0c50]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x2c]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
mov eax, dword [ebp - 0x10]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
movzx ecx, byte [eax + 0x5a0c50]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
movzx eax, byte [eax + 0x5a0c50]
shl eax, 8
xor ecx, eax
mov eax, ebx
mov ebx, dword [ebp - 0x2c]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
movzx eax, bl
shl ecx, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x5a0c50]
xor ecx, eax
mov eax, dword [ebp - 0x10]
movzx ebx, byte [ebx + 0x5a0c50]
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
movzx eax, al
shl ebx, 8
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], ecx
movzx eax, byte [eax + 0x5a0c50]
xor ebx, eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
shl ebx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5a0c50]
mov ecx, dword [ebp + 0x10]
xor ebx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ebx, 8
push 4
movzx eax, byte [eax + 0x5a0c50]
xor ebx, eax
lea eax, [edx + 4]
xor ebx, dword [edx]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov byte [ecx], dl
shr edx, 0x18
mov byte [ecx + 3], dl
mov edx, dword [ebp - 0x28]
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov byte [ecx + 4], dl
shr edx, 0x18
mov byte [ecx + 7], dl
mov edx, dword [ebp - 0x2c]
mov eax, edx
shr eax, 8
mov byte [ecx + 9], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0xe], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov byte [ecx + 8], dl
mov byte [ecx + 0xc], bl
shr edx, 0x18
shr ebx, 0x18
push eax
mov byte [ecx + 0xb], dl
mov byte [ecx + 0xf], bl
call fcn.004b2d80
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.004b2d80
lea eax, [ebp - 0x1c]
push 4
push eax
call fcn.004b2d80
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.004b2d80
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.004b2d80
lea eax, [ebp - 0x34]
push 4
push eax
call fcn.004b2d80
lea eax, [ebp - 0x38]
push 4
push eax
call fcn.004b2d80
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.004b2d80
add esp, 0x40
lea eax, [ebp - 4]
push 4
push eax
call fcn.004b2d80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret