Function at 0x487810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
movzx eax, byte [edx + 2]
movzx ebx, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 7]
shl eax, 8
mov dword [ebp - 8], eax
movzx eax, byte [edx + 6]
or dword [ebp - 8], eax
movzx eax, byte [edx + 5]
shl dword [ebp - 8], 8
or dword [ebp - 8], eax
movzx eax, byte [edx + 4]
shl dword [ebp - 8], 8
or dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esi, dword [ecx + 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], ebx
xor ebx, dword [esi]
add esi, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], ebx
xor eax, dword [esi]
add esi, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], eax
movzx eax, byte [edx + 0xb]
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xa]
or dword [ebp - 4], eax
movzx eax, byte [edx + 9]
shl dword [ebp - 4], 8
or dword [ebp - 4], eax
movzx eax, byte [edx + 8]
shl dword [ebp - 4], 8
or dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], esi
xor eax, dword [esi]
add esi, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xf]
shl eax, 8
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 0xe]
or dword [ebp - 0x10], eax
movzx eax, byte [edx + 0xd]
shl dword [ebp - 0x10], 8
or dword [ebp - 0x10], eax
movzx eax, byte [edx + 0xc]
shl dword [ebp - 0x10], 8
mov edx, dword [ebp - 0x10]
or edx, eax
mov dword [ebp - 0xc], esi
mov eax, dword [ecx]
sar eax, 1
mov dword [ebp - 0x28], edx
dec eax
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 0x10], edx
mov edi, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
test eax, eax
jle 0x487b62
nop dword [eax]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x75f318]
mov edi, dword [ebp - 0x10]
xor edx, dword [ecx*4 + 0x75ff18]
mov ecx, edi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x75ef18]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x760318]
mov ecx, dword [ebp - 0x18]
xor edx, dword [ecx]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], ecx
mov ecx, edi
shr ecx, 0x10
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x14], edx
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x75f318]
mov esi, dword [ebp - 0x18]
xor edx, dword [ecx*4 + 0x75ff18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x75ef18]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x760318]
mov ecx, edi
xor edx, dword [esi]
add esi, 4
shr ecx, 8
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x38], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0xc], esi
mov edx, dword [edx*4 + 0x75ff18]
shr ebx, 8
xor edx, dword [ecx*4 + 0x75f318]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x75ef18]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x760318]
xor edx, dword [esi]
add esi, 4
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], edx
movzx edx, cl
movzx ecx, bl
mov dword [ebp - 0xc], esi
mov ebx, dword [edx*4 + 0x75f318]
xor ebx, dword [ecx*4 + 0x75ff18]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x75ef18]
mov ecx, edi
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x760318]
xor ebx, dword [esi]
add esi, 4
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xc], esi
mov edx, dword [edx*4 + 0x75f318]
dec eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x75ff18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x75ef18]
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x760318]
mov ecx, ebx
xor edx, dword [esi]
add esi, 4
shr ecx, 0x10
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], edx
movzx edx, cl
mov ecx, dword [ebp - 0x2c]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x75f318]
mov dword [ebp - 0xc], esi
xor edx, dword [ecx*4 + 0x75ff18]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x75ef18]
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x760318]
mov ecx, ebx
xor edx, dword [esi]
add esi, 4
shr ecx, 8
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], edx
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x75ff18]
mov dword [ebp - 0xc], esi
xor edx, dword [ecx*4 + 0x75f318]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x18]
mov ecx, edx
mov edi, dword [ebp - 4]
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor edi, dword [ecx*4 + 0x75ef18]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edx*4 + 0x75f318]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x760318]
mov ecx, edi
mov dword [ebp - 4], edi
xor ecx, dword [esi]
add esi, 4
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], esi
xor edx, dword [ecx*4 + 0x75ff18]
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x75ef18]
movzx ecx, bl
mov ebx, dword [ebp - 0x30]
xor edx, dword [ecx*4 + 0x760318]
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 0x10], edx
mov edi, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
test eax, eax
jg 0x487910
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x75f318]
xor ecx, dword [eax*4 + 0x75ff18]
mov eax, edx
shr eax, 0x18
lea edx, [edi + 4]
xor ecx, dword [eax*4 + 0x75ef18]
movzx eax, bl
xor ecx, dword [eax*4 + 0x760318]
xor ecx, dword [esi]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, al
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x75f318]
mov dword [ebp - 0xc], edx
xor ecx, dword [eax*4 + 0x75ff18]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x75ef18]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x760318]
xor ecx, dword [edx]
add edx, 4
mov eax, dword [ebp - 0x10]
shr eax, 8
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x18], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0xc], edx
mov ecx, dword [ecx*4 + 0x75ff18]
shr ebx, 8
xor ecx, dword [eax*4 + 0x75f318]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x75ef18]
mov eax, dword [ebp - 4]
movzx eax, al
xor ecx, dword [eax*4 + 0x760318]
xor ecx, dword [edx]
add edx, 4
mov eax, dword [ebp - 8]
shr eax, 0x10
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], ecx
movzx ecx, al
movzx eax, bl
mov dword [ebp - 0xc], edx
mov ebx, dword [ecx*4 + 0x75f318]
xor ebx, dword [eax*4 + 0x75ff18]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x75ef18]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ebx, dword [eax*4 + 0x760318]
xor ebx, dword [edx]
add edx, 4
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shr eax, 0x18
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xc], edx
movzx ecx, byte [eax + 0x75e8f0]
mov eax, dword [ebp - 0x30]
shl ecx, 8
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
mov eax, dword [ebp - 0x18]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
mov eax, dword [ebp - 0x14]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
mov eax, ebx
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edx
movzx ecx, byte [eax + 0x75e8f0]
mov eax, dword [ebp - 0x14]
shr eax, 0x18
movzx eax, byte [eax + 0x75e8f0]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x30]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
mov eax, dword [ebp - 0x18]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
mov eax, dword [ebp - 0x14]
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
movzx eax, al
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], edx
movzx ecx, byte [eax + 0x75e8f0]
mov eax, dword [ebp - 0x18]
shr eax, 0x18
movzx eax, byte [eax + 0x75e8f0]
shl eax, 8
xor ecx, eax
mov eax, ebx
mov ebx, dword [ebp - 0x30]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
movzx eax, bl
shl ecx, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x75e8f0]
xor ecx, eax
mov eax, dword [ebp - 0x18]
movzx ebx, byte [ebx + 0x75e8f0]
xor ecx, dword [edx]
add edx, 4
shr eax, 0x10
movzx eax, al
shl ebx, 8
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
movzx eax, byte [eax + 0x75e8f0]
xor ebx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
shl ebx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x75e8f0]
mov ecx, dword [ebp + 8]
xor ebx, eax
mov eax, dword [ebp - 0x2c]
movzx eax, al
shl ebx, 8
push 4
push 0
movzx eax, byte [eax + 0x75e8f0]
xor ebx, eax
lea eax, [edx + 4]
xor ebx, dword [edx]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], 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 - 8]
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 - 0x30]
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 - 0x1c]
mov dword [ebp - 0x28], ebx
mov byte [ecx + 8], dl
mov byte [ecx + 0xc], bl
shr edx, 0x18
push eax
mov eax, dword [fcn.005f6720]
shr ebx, 0x18
mov byte [ecx + 0xb], dl
mov byte [ecx + 0xf], bl
call eax
push 4
lea eax, [ebp - 0x20]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
push 4
lea eax, [ebp - 0x24]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
push 4
lea eax, [ebp - 0x28]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
push 4
lea eax, [ebp - 0x34]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
push 4
lea eax, [ebp - 0x38]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
add esp, 0x48
lea eax, [ebp - 0x3c]
push 4
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
push 4
lea eax, [ebp - 0x40]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
push 4
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [fcn.005f6720]
call eax
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret