Function at 0x10004050
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
mov eax, dword [ebx]
mov esi, ecx
mov ecx, dword [ebx + 4]
push edi
mov edi, dword [edx + 4]
xor eax, ebp
mov ebp, dword [edx + 8]
xor ecx, edi
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
xor edi, ebp
mov ebp, dword [edx + 0xc]
xor ebx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x23]
mov ebp, dword [esp + 0x1e]
and ebx, 0xff
and ebp, 0xff
mov dword [esp + 0x14], eax
and eax, 0xff
mov ebx, dword [ebx*4 + 0x10017000]
and ecx, 0xff
xor ebx, dword [ebp*4 + 0x10016c00]
mov ebp, dword [esp + 0x19]
and ebp, 0xff
and edi, 0xff
mov dword [esp + 0x10], esi
xor ebx, dword [ebp*4 + 0x10016800]
mov ebp, dword [eax*4 + 0x10016400]
mov eax, dword [esp + 0x30]
xor ebx, ebp
mov ebp, dword [esp + 0x22]
mov dword [eax], ebx
mov ebx, dword [esp + 0x17]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ebx*4 + 0x10017000]
xor ebx, dword [ebp*4 + 0x10016c00]
mov ebp, dword [esp + 0x1d]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x10016800]
mov ebp, dword [ecx*4 + 0x10016400]
mov ecx, dword [esp + 0x1b]
xor ebx, ebp
and ecx, 0xff
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x16]
mov ecx, dword [ecx*4 + 0x10017000]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x10016c00]
mov ebx, dword [esp + 0x21]
and ebx, 0xff
xor ecx, ebp
mov ebp, dword [ebx*4 + 0x10016800]
mov ebx, dword [edi*4 + 0x10016400]
xor ecx, ebp
mov edi, dword [esp + 0x1a]
xor ecx, ebx
and edi, 0xff
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1f]
mov ebp, dword [edi*4 + 0x10016c00]
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x10017000]
mov ecx, dword [esp + 0x15]
and ecx, 0xff
xor ebx, ebp
mov ebp, dword [ecx*4 + 0x10016800]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
xor ebx, ebp
xor ebx, dword [ecx*4 + 0x10016400]
mov dword [eax + 0xc], ebx
mov ecx, dword [esi + 4]
dec ecx
mov dword [esp + 0x2c], 1
cmp ecx, 1
jle 0x10004344
lea ebx, [edx + 0x18]
mov dword [esp + 0x30], ebx
mov edx, dword [ebx - 8]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [ebx]
mov ebp, dword [eax + 8]
xor edx, esi
mov esi, dword [ebx - 4]
mov ebx, dword [ebx + 4]
xor esi, ecx
mov ecx, dword [eax + 0xc]
xor ebx, ecx
xor edi, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x23]
mov ebp, dword [esp + 0x1e]
and ecx, 0xff
and ebp, 0xff
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov ecx, dword [ecx*4 + 0x10017000]
and edx, 0xff
xor ecx, dword [ebp*4 + 0x10016c00]
mov ebp, dword [esp + 0x19]
and ebp, 0xff
and esi, 0xff
and edi, 0xff
and ebx, 0xff
xor ecx, dword [ebp*4 + 0x10016800]
mov ebp, dword [edx*4 + 0x10016400]
mov edx, dword [esp + 0x17]
xor ecx, ebp
and edx, 0xff
mov dword [eax], ecx
mov ecx, dword [esp + 0x22]
mov edx, dword [edx*4 + 0x10017000]
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x10016c00]
mov ecx, dword [esp + 0x1d]
and ecx, 0xff
xor edx, ebp
mov ebp, dword [ecx*4 + 0x10016800]
mov ecx, dword [esp + 0x16]
xor edx, ebp
mov ebp, dword [esi*4 + 0x10016400]
xor edx, ebp
and ecx, 0xff
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1b]
mov esi, dword [ecx*4 + 0x10016c00]
mov ecx, dword [esp + 0x21]
and edx, 0xff
mov ebp, dword [edi*4 + 0x10016400]
and ecx, 0xff
mov edx, dword [edx*4 + 0x10017000]
xor edx, esi
mov esi, dword [ecx*4 + 0x10016800]
mov ecx, dword [esp + 0x1a]
xor edx, esi
xor edx, ebp
and ecx, 0xff
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1f]
mov ebp, dword [ecx*4 + 0x10016c00]
mov ecx, dword [esp + 0x15]
mov edi, dword [ebx*4 + 0x10016400]
and edx, 0xff
mov ebx, dword [esp + 0x30]
and ecx, 0xff
mov edx, dword [edx*4 + 0x10017000]
mov esi, dword [ecx*4 + 0x10016800]
mov ecx, dword [esp + 0x2c]
xor edx, ebp
xor edx, esi
mov esi, dword [esp + 0x10]
xor edx, edi
inc ecx
add ebx, 0x10
mov dword [eax + 0xc], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov edx, dword [esi + 4]
dec edx
cmp ecx, edx
jl 0x100041cf
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 4]
mov ebp, dword [eax]
shl ecx, 4
mov edi, dword [ecx + edx - 0x10]
lea ebx, [ecx + edx]
mov ecx, dword [eax + 4]
xor edi, ebp
mov ebp, dword [ebx - 0xc]
mov dword [esp + 0x14], edi
xor ebp, ecx
mov ecx, dword [ebx - 8]
mov ebx, dword [ebx - 4]
xor ecx, dword [eax + 8]
xor ebx, dword [eax + 0xc]
and edi, 0xff
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x19]
mov byte [eax], bl
and edi, 0xff
and ebp, 0xff
and ecx, 0xff
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x1e]
and edi, 0xff
mov byte [eax + 1], bl
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x23]
and edi, 0xff
mov byte [eax + 2], bl
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x1d]
mov byte [eax + 3], bl
mov bl, byte [ebp*4 + 0x10016401]
and edi, 0xff
mov byte [eax + 4], bl
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x22]
and edi, 0xff
mov byte [eax + 5], bl
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x17]
and edi, 0xff
mov byte [eax + 6], bl
mov bl, byte [edi*4 + 0x10016401]
mov edi, dword [esp + 0x20]
mov byte [eax + 7], bl
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 8], cl
mov ecx, dword [esp + 0x21]
and ecx, 0xff
and edi, 0xff
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 9], cl
mov ecx, dword [esp + 0x16]
and ecx, 0xff
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 0xa], cl
mov ecx, dword [esp + 0x1b]
and ecx, 0xff
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 0xb], cl
mov cl, byte [edi*4 + 0x10016401]
mov byte [eax + 0xc], cl
mov ecx, dword [esp + 0x15]
and ecx, 0xff
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 0xd], cl
mov ecx, dword [esp + 0x1a]
and ecx, 0xff
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 0xe], cl
mov ecx, dword [esp + 0x1f]
and ecx, 0xff
mov cl, byte [ecx*4 + 0x10016401]
mov byte [eax + 0xf], cl
mov ecx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
xor ebx, ecx
mov edi, dword [eax + 8]
mov dword [eax], ebx
mov ecx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx + 4]
xor ebp, ecx
mov dword [eax + 4], ebp
mov ecx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx + 8]
xor edi, ecx
mov dword [eax + 8], edi
mov ecx, dword [esi + 4]
shl ecx, 4
pop edi
pop esi
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [eax + 0xc]
xor ecx, edx
pop ebp
mov dword [eax + 0xc], ecx
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc