Function at 0x10001730
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push edi
mov edi, dword [esp + 0x28]
xor ecx, dword [edi]
xor edx, dword [edi + 4]
mov edi, dword [esi + 0x3c]
xor edi, dword [ebx + 8]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x40]
xor edi, dword [ebx + 0xc]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
mov dword [esp + 0x20], edi
movzx ebx, bl
shr edi, 0x18
mov edi, dword [edi*4 + 0x100427e0]
xor edi, dword [ebx*4 + 0x100423e0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x10041fe0]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x10041be0]
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x100423e0]
mov ebx, dword [esp + 0x1c]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x10041fe0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100427e0]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x10041be0]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], edi
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + 0x10041fe0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100427e0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100423e0]
mov ebx, dword [esp + 0x1c]
movzx ebp, bl
xor edi, dword [ebp*4 + 0x10041be0]
shr edx, 0x10
mov dword [eax + 8], edi
shr ecx, 8
shr ebx, 0x18
mov edi, dword [ebx*4 + 0x100427e0]
movzx edx, dl
xor edi, dword [edx*4 + 0x100423e0]
movzx edx, byte [esp + 0x20]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x10041fe0]
mov dword [esp + 0x10], 1
xor edi, dword [edx*4 + 0x10041be0]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x30]
dec ecx
cmp ecx, 1
jbe 0x10001987
lea edi, [esi + 0x48]
lea ebx, [ebx]
mov ebp, dword [edi + 4]
xor ebp, dword [eax + 8]
mov edx, dword [edi]
xor edx, dword [eax + 4]
mov ecx, dword [edi - 4]
xor ecx, dword [eax]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edi + 8]
xor ebp, dword [eax + 0xc]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov dword [esp + 0x20], ebp
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x100427e0]
xor ebp, dword [ebx*4 + 0x100423e0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ebp, dword [ebx*4 + 0x10041fe0]
movzx ebx, cl
xor ebp, dword [ebx*4 + 0x10041be0]
mov ebx, dword [esp + 0x20]
mov dword [eax], ebp
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x100423e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx ebp, al
xor ebx, dword [ebp*4 + 0x10041fe0]
mov eax, dword [esp + 0xc]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x100427e0]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x10041be0]
mov ebp, edx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x20]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x10041fe0]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x100427e0]
mov dword [esp + 0xc], ecx
shr ecx, 0x10
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x100423e0]
movzx ebp, byte [esp + 0x1c]
xor ebx, dword [ebp*4 + 0x10041be0]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
shr edx, 0x10
mov dword [eax + 8], ebx
movzx edx, dl
shr ecx, 8
shr ebp, 0x18
mov ebx, dword [ebp*4 + 0x100427e0]
xor ebx, dword [edx*4 + 0x100423e0]
movzx edx, byte [esp + 0x20]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x10041fe0]
mov ecx, dword [esp + 0x10]
xor ebx, dword [edx*4 + 0x10041be0]
inc ecx
mov dword [eax + 0xc], ebx
mov edx, dword [esi + 0x30]
dec edx
add edi, 0x10
mov dword [esp + 0x10], ecx
cmp ecx, edx
jb 0x10001860
mov ebp, dword [esi + 0x30]
mov ecx, ebp
shl ecx, 4
mov edx, dword [ecx + esi + 0x28]
xor edx, dword [eax + 4]
lea edi, [ecx + esi]
mov ecx, dword [edi + 0x24]
mov edi, dword [edi + 0x2c]
xor edi, dword [eax + 8]
xor ecx, dword [eax]
mov dword [esp + 0x1c], edi
add ebp, 3
shl ebp, 4
mov edi, dword [esi + ebp]
xor edi, dword [eax + 0xc]
mov dword [esp + 0x20], edi
movzx edi, cl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax], bl
mov ebx, edx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov edi, dword [esp + 0x20]
mov byte [eax + 2], bl
shr edi, 0x18
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 3], bl
movzx edi, dl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 4], bl
mov ebx, dword [esp + 0x1c]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 5], bl
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 6], bl
mov edi, ecx
shr edi, 0x18
movzx ebx, byte [edi*4 + 0x10041be1]
movzx edi, byte [esp + 0x1c]
mov byte [eax + 7], bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 8], bl
mov ebx, dword [esp + 0x20]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi*4 + 0x10041be1]
mov edi, edx
mov byte [eax + 0xa], bl
shr edi, 0x18
movzx ebx, byte [edi*4 + 0x10041be1]
movzx edi, byte [esp + 0x20]
shr ecx, 8
mov byte [eax + 0xb], bl
movzx ebx, byte [edi*4 + 0x10041be1]
movzx ecx, cl
mov byte [eax + 0xc], bl
movzx ecx, byte [ecx*4 + 0x10041be1]
shr edx, 0x10
movzx edx, dl
mov byte [eax + 0xd], cl
movzx ecx, byte [edx*4 + 0x10041be1]
mov byte [eax + 0xe], cl
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
mov dl, byte [ecx*4 + 0x10041be1]
mov byte [eax + 0xf], dl
mov ecx, dword [esi + 0x30]
shl ecx, 4
mov edx, dword [ecx + esi + 0x34]
xor dword [eax], edx
mov ecx, dword [esi + 0x30]
shl ecx, 4
mov edx, dword [ecx + esi + 0x38]
xor dword [eax + 4], edx
mov ecx, dword [esi + 0x30]
shl ecx, 4
mov edx, dword [ecx + esi + 0x3c]
xor dword [eax + 8], edx
mov ecx, dword [esi + 0x30]
add ecx, 4
shl ecx, 4
mov edx, dword [ecx + esi]
xor dword [eax + 0xc], edx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 8