Function at 0x498c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
movzx ebx, byte [edx + 3]
mov esi, dword [ebp + 8]
movzx ecx, byte [edx + 2]
shl ebx, 8
or ebx, ecx
mov dword [ebp - 0x6c], eax
movzx ecx, byte [edx + 1]
mov eax, dword [esi + 4]
shl ebx, 8
lea eax, [esi + eax*4]
or ebx, ecx
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
xor ebx, dword [eax + 8]
mov ecx, ebx
mov dword [ebp - 0x24], ebx
shr ecx, 0x18
mov dword [ebp - 0x5c], ecx
mov ecx, ebx
shr ecx, 0x10
mov dword [ebp - 0x4c], ecx
mov ecx, ebx
shr ecx, 8
mov dword [ebp - 0x48], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 6]
or dword [ebp - 0x2c], ecx
shl dword [ebp - 0x2c], 8
movzx ecx, byte [edx + 5]
or dword [ebp - 0x2c], ecx
shl dword [ebp - 0x2c], 8
movzx ecx, byte [edx + 4]
or dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [eax + 0xc]
mov edi, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
shr edi, 0x10
mov dword [ebp - 0x54], edi
mov edi, ecx
shr ecx, 0x18
mov dword [ebp - 0x68], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [ebp - 0x28], ecx
movzx ecx, byte [edx + 0xa]
or dword [ebp - 0x28], ecx
shl dword [ebp - 0x28], 8
movzx ecx, byte [edx + 9]
or dword [ebp - 0x28], ecx
shl dword [ebp - 0x28], 8
movzx ecx, byte [edx + 8]
or dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
xor ecx, dword [eax + 0x10]
shr edi, 8
mov dword [ebp - 0x50], edi
mov edi, ecx
shr edi, 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x58], edi
mov edi, ecx
shr ecx, 0x10
mov dword [ebp - 0x40], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
mov dword [ebp - 0x30], ecx
movzx ecx, byte [edx + 0xe]
shr edi, 0x18
or dword [ebp - 0x30], ecx
mov dword [ebp - 0x44], ebx
movzx ecx, byte [edx + 0xd]
shl dword [ebp - 0x30], 8
or dword [ebp - 0x30], ecx
shl dword [ebp - 0x30], 8
movzx ecx, byte [edx + 0xc]
mov edx, dword [ebp - 0x30]
or edx, ecx
xor edx, dword [eax + 0x14]
add eax, 0x18
mov ecx, edx
mov dword [ebp - 0x30], edx
shr ecx, 0x18
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x38], ecx
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x68]
sar ecx, 1
dec ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x64], ecx
test ecx, ecx
jle 0x49904e
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x5c], ecx
nop
mov ecx, dword [ebp - 0x40]
movzx ecx, cl
movzx edx, bl
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x44]
movzx ecx, cl
mov edx, dword [ebp - 0x48]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x5220b0]
xor ebx, dword [esi*4 + 0x522cb0]
xor ebx, dword [eax]
mov ecx, dword [ebp - 0x38]
movzx ecx, cl
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
mov edx, dword [ebp - 0x50]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x5220b0]
xor ebx, dword [edi*4 + 0x522cb0]
xor ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x4c]
movzx ecx, cl
mov dword [ebp - 0x38], ebx
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
mov edx, dword [ebp - 0x58]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x5220b0]
mov ecx, dword [ebp - 0x34]
xor ebx, dword [ecx*4 + 0x522cb0]
xor ebx, dword [eax + 8]
mov ecx, dword [ebp - 0x54]
movzx ecx, cl
mov dword [ebp - 0x34], ebx
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x30]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x5220b0]
mov ecx, dword [ebp - 0x5c]
xor ebx, dword [ecx*4 + 0x522cb0]
xor ebx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x34]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x5224b0]
xor edx, dword [ecx*4 + 0x5228b0]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x522cb0]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
movzx ecx, dl
xor edi, dword [ecx*4 + 0x5220b0]
mov ecx, edi
mov dword [ebp - 0x44], edi
xor ecx, dword [eax + 0x10]
mov edi, ecx
mov dword [ebp - 0x44], ecx
shr edi, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x5c], edi
mov edi, ecx
shr ecx, 8
mov dword [ebp - 0x48], ecx
mov ecx, edx
shr edi, 0x10
shr ecx, 8
movzx edx, cl
mov ecx, ebx
mov dword [ebp - 0x4c], edi
mov edx, dword [edx*4 + 0x5224b0]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5228b0]
mov ecx, dword [ebp - 0x34]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x522cb0]
mov ecx, dword [ebp - 0x38]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5220b0]
xor edx, dword [eax + 0x14]
mov ecx, edx
mov dword [ebp - 0x20], edx
shr ecx, 0x10
mov esi, edx
mov dword [ebp - 0x54], ecx
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
mov dword [ebp - 0x2c], edx
movzx edx, cl
mov ecx, dword [ebp - 0x38]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5228b0]
shr esi, 0x18
xor edx, dword [ecx*4 + 0x5224b0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x522cb0]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
movzx ecx, dl
shr edx, 8
movzx edx, dl
xor edi, dword [ecx*4 + 0x5220b0]
mov ecx, edi
mov dword [ebp - 0x28], edi
xor ecx, dword [eax + 0x18]
mov edx, dword [edx*4 + 0x5224b0]
mov edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
shr edi, 8
mov dword [ebp - 0x58], edi
mov edi, ecx
shr ecx, 0x10
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
movzx ecx, cl
shr edi, 0x18
xor edx, dword [ecx*4 + 0x5228b0]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x522cb0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x5220b0]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov ecx, edx
mov dword [ebp - 0x30], edx
shr ecx, 0x18
mov ebx, edx
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x64]
dec ecx
shr ebx, 8
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x64], ecx
test ecx, ecx
jg 0x498e00
jmp 0x499051
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
movzx ecx, cl
movzx edx, bl
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x44]
movzx ecx, cl
mov edx, dword [ebp - 0x48]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x5220b0]
xor ebx, dword [esi*4 + 0x522cb0]
xor ebx, dword [eax]
mov ecx, dword [ebp - 0x38]
movzx ecx, cl
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
mov edx, dword [ebp - 0x50]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x5220b0]
xor ebx, dword [edi*4 + 0x522cb0]
xor ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x4c]
movzx ecx, cl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
mov edx, dword [ebp - 0x58]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x5220b0]
mov ecx, dword [ebp - 0x34]
xor ebx, dword [ecx*4 + 0x522cb0]
xor ebx, dword [eax + 8]
mov ecx, dword [ebp - 0x54]
movzx ecx, cl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx*4 + 0x5228b0]
xor ebx, dword [edx*4 + 0x5224b0]
mov ecx, dword [ebp - 0x30]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x5220b0]
mov ecx, dword [ebp - 0x5c]
xor ebx, dword [ecx*4 + 0x522cb0]
mov ecx, dword [ebp - 0x34]
xor ebx, dword [eax + 0xc]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 8], ebx
mov dword [ebp - 0x60], ebx
movzx edx, byte [ecx + 0x521fb0]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x521fb0]
shl ecx, 8
xor edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x40]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x34]
xor edx, dword [eax + 0x10]
shr ecx, 0x18
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + 0x521fb0]
mov ecx, ebx
shl edx, 8
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [ebp - 0x6c]
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x40]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x3c]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x40]
xor edx, dword [eax + 0x14]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x3c]
movzx ebx, byte [ecx + 0x521fb0]
mov ecx, dword [ebp - 0x60]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x521fb0]
shl ecx, 8
xor ebx, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl ebx, 8
shr edx, 0x10
movzx ecx, byte [ecx + 0x521fb0]
xor ebx, ecx
mov ecx, dword [ebp - 0x34]
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor ebx, ecx
movzx ecx, dl
xor ebx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ebx
movzx edx, byte [ecx + 0x521fb0]
mov ecx, dword [ebp - 0x40]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x521fb0]
shl ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x34]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x60]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x521fb0]
xor edx, ecx
mov ecx, dword [ebp - 0x68]
xor edx, dword [eax + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi], cl
shr ecx, 0x18
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x64]
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x18], edx
mov byte [esi + 4], cl
mov byte [esi + 6], al
mov eax, ebx
mov byte [esi + 8], bl
shr eax, 8
mov byte [esi + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xe], al
lea eax, [ebp - 0x24]
mov byte [esi + 0xc], dl
shr ecx, 0x18
shr edx, 0x18
push 0x20
shr ebx, 0x18
push eax
mov byte [esi + 7], cl
mov byte [esi + 0xb], bl
mov byte [esi + 0xf], dl
call fcn.004a0f10
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret