Function at 0x403b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [esp + 0x44]
test eax, eax
je 0x403f26
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esi + ecx*8 + 4]
mov esi, dword [esp + 0x24]
mov eax, dword [eax + ecx*8]
mov ecx, dword [esi]
mov dword [esp], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x1c]
mov esi, 3
mov dword [esp + 0x1c], ecx
mov ecx, ebp
mov edi, dword [esp]
lea edx, [edi + eax]
mov edi, edx
movzx ebp, dl
shr edi, 0x18
mov edi, dword [ebx + edi*4 + 0xc00]
or edi, dword [ebx + ebp*4]
movzx ebp, dh
shr edx, 0x10
or edi, dword [ebx + ebp*4 + 0x400]
movzx edx, dl
or edi, dword [ebx + edx*4 + 0x800]
xor ecx, edi
mov edi, dword [esp + 4]
lea edx, [edi + ecx]
mov ebp, edx
movzx edi, dl
shr ebp, 0x18
mov ebp, dword [ebx + ebp*4 + 0xc00]
or ebp, dword [ebx + edi*4]
movzx edi, dh
shr edx, 0x10
or ebp, dword [ebx + edi*4 + 0x400]
mov edi, dword [esp + 8]
movzx edx, dl
or ebp, dword [ebx + edx*4 + 0x800]
xor eax, ebp
lea edx, [edi + eax]
mov edi, edx
movzx ebp, dl
shr edi, 0x18
mov edi, dword [ebx + edi*4 + 0xc00]
or edi, dword [ebx + ebp*4]
movzx ebp, dh
shr edx, 0x10
or edi, dword [ebx + ebp*4 + 0x400]
movzx edx, dl
or edi, dword [ebx + edx*4 + 0x800]
xor ecx, edi
mov edi, dword [esp + 0xc]
lea edx, [edi + ecx]
mov ebp, edx
movzx edi, dl
shr ebp, 0x18
mov ebp, dword [ebx + ebp*4 + 0xc00]
or ebp, dword [ebx + edi*4]
movzx edi, dh
shr edx, 0x10
or ebp, dword [ebx + edi*4 + 0x400]
mov edi, dword [esp + 0x10]
movzx edx, dl
or ebp, dword [ebx + edx*4 + 0x800]
xor eax, ebp
lea edx, [edi + eax]
mov edi, edx
movzx ebp, dl
shr edi, 0x18
mov edi, dword [ebx + edi*4 + 0xc00]
or edi, dword [ebx + ebp*4]
movzx ebp, dh
shr edx, 0x10
or edi, dword [ebx + ebp*4 + 0x400]
movzx edx, dl
or edi, dword [ebx + edx*4 + 0x800]
xor edi, ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + edi]
mov ebp, edx
movzx ecx, dl
shr ebp, 0x18
mov ebp, dword [ebx + ebp*4 + 0xc00]
or ebp, dword [ebx + ecx*4]
movzx ecx, dh
or ebp, dword [ebx + ecx*4 + 0x400]
shr edx, 0x10
movzx edx, dl
or ebp, dword [ebx + edx*4 + 0x800]
xor ebp, eax
mov eax, dword [esp + 0x18]
lea edx, [eax + ebp]
mov ecx, edx
movzx eax, dl
shr ecx, 0x18
mov ecx, dword [ebx + ecx*4 + 0xc00]
or ecx, dword [ebx + eax*4]
movzx eax, dh
shr edx, 0x10
or ecx, dword [ebx + eax*4 + 0x400]
mov eax, dword [esp + 0x1c]
movzx edx, dl
or ecx, dword [ebx + edx*4 + 0x800]
xor ecx, edi
lea edx, [eax + ecx]
mov edi, edx
movzx eax, dl
shr edi, 0x18
mov edi, dword [ebx + edi*4 + 0xc00]
or edi, dword [ebx + eax*4]
movzx eax, dh
shr edx, 0x10
or edi, dword [ebx + eax*4 + 0x400]
movzx edx, dl
or edi, dword [ebx + edx*4 + 0x800]
mov eax, edi
xor eax, ebp
sub esi, 1
jne 0x403bc9
mov esi, dword [esp + 0x1c]
mov ebp, ecx
add esi, eax
mov ecx, esi
mov edx, esi
movzx edi, cl
shr edx, 0x18
mov ecx, esi
shr esi, 0x10
mov edx, dword [ebx + edx*4 + 0xc00]
or edx, dword [ebx + edi*4]
movzx edi, ch
mov ecx, esi
or edx, dword [ebx + edi*4 + 0x400]
movzx esi, cl
mov ecx, ebp
or edx, dword [ebx + esi*4 + 0x800]
xor ecx, edx
mov edx, dword [esp + 0x18]
add edx, ecx
mov esi, edx
movzx edi, dl
shr esi, 0x18
mov esi, dword [ebx + esi*4 + 0xc00]
or esi, dword [ebx + edi*4]
movzx edi, dh
shr edx, 0x10
or esi, dword [ebx + edi*4 + 0x400]
movzx edx, dl
or esi, dword [ebx + edx*4 + 0x800]
xor eax, esi
mov esi, dword [esp + 0x14]
mov ebp, eax
add esi, eax
mov eax, esi
mov edx, esi
movzx edi, al
shr edx, 0x18
mov eax, esi
shr esi, 0x10
mov edx, dword [ebx + edx*4 + 0xc00]
or edx, dword [ebx + edi*4]
movzx edi, ah
mov eax, esi
or edx, dword [ebx + edi*4 + 0x400]
movzx esi, al
mov eax, ebp
or edx, dword [ebx + esi*4 + 0x800]
xor ecx, edx
mov edx, dword [esp + 0x10]
add edx, ecx
mov esi, edx
movzx edi, dl
shr esi, 0x18
mov esi, dword [ebx + esi*4 + 0xc00]
or esi, dword [ebx + edi*4]
movzx edi, dh
shr edx, 0x10
or esi, dword [ebx + edi*4 + 0x400]
movzx edx, dl
or esi, dword [ebx + edx*4 + 0x800]
mov edx, dword [esp + 0xc]
xor eax, esi
add edx, eax
mov esi, edx
movzx edi, dl
shr esi, 0x18
mov esi, dword [ebx + esi*4 + 0xc00]
or esi, dword [ebx + edi*4]
movzx edi, dh
or esi, dword [ebx + edi*4 + 0x400]
shr edx, 0x10
movzx edx, dl
or esi, dword [ebx + edx*4 + 0x800]
mov edx, dword [esp + 8]
xor ecx, esi
add edx, ecx
mov esi, edx
movzx edi, dl
shr esi, 0x18
mov esi, dword [ebx + esi*4 + 0xc00]
or esi, dword [ebx + edi*4]
movzx edi, dh
shr edx, 0x10
or esi, dword [ebx + edi*4 + 0x400]
movzx edx, dl
or esi, dword [ebx + edx*4 + 0x800]
mov edx, dword [esp + 4]
xor eax, esi
add edx, eax
mov ebp, eax
mov esi, edx
movzx edi, dl
shr esi, 0x18
mov esi, dword [ebx + esi*4 + 0xc00]
or esi, dword [ebx + edi*4]
movzx edi, dh
shr edx, 0x10
or esi, dword [ebx + edi*4 + 0x400]
movzx edx, dl
or esi, dword [ebx + edx*4 + 0x800]
xor ecx, esi
mov esi, dword [esp]
add esi, ecx
mov eax, esi
mov edx, esi
movzx edi, al
shr edx, 0x18
mov eax, esi
shr esi, 0x10
mov edx, dword [ebx + edx*4 + 0xc00]
or edx, dword [ebx + edi*4]
movzx edi, ah
mov eax, esi
or edx, dword [ebx + edi*4 + 0x400]
movzx esi, al
mov eax, dword [esp + 0x20]
or edx, dword [ebx + esi*4 + 0x800]
mov esi, dword [esp + 0x40]
mov dword [esi + eax*8], ecx
xor edx, ebp
mov dword [esi + eax*8 + 4], edx
add eax, 1
cmp dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
jne 0x403b75
add esp, 0x28
pop ebx
pop esi
pop edi
pop ebp
ret 0xc