Function at 0x1003d290
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x40], ecx
test eax, eax
je 0x1003d2a7
mov ebp, dword [eax]
add eax, 4
xor edi, edi
test eax, eax
je 0x1003d2b2
mov edi, dword [eax]
add eax, 4
mov edx, 0
je 0x1003d2be
mov edx, dword [eax]
add eax, 4
xor ebx, ebx
test eax, eax
je 0x1003d2c9
mov ebx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
xor ecx, edi
mov edi, dword [esi + 8]
xor edi, edx
mov edx, dword [esi + 0xc]
xor edx, ebx
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x18]
xor eax, ebp
add esi, 0x20
cmp byte [0x102892cb], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
jne 0x1003d320
call fcn.100420b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [0x1027f6fc]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
xor ebp, ebp
jmp 0x1003d340
and edx, dword [ebp + 0x102882c0]
add ebp, dword [esp + 0x1c]
cmp ebp, 0x400
jb 0x1003d340
and edx, dword [0x102886bc]
or ecx, edx
or edi, edx
or eax, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
or edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
movzx edi, dl
shr edx, 8
mov edi, dword [edi*4 + 0x102882c0]
mov dword [esp + 0x28], edi
movzx edi, dl
shr edx, 8
movzx ebp, dl
mov ebp, dword [ebp*4 + 0x102882c0]
shr edx, 8
mov edx, dword [edx*4 + 0x102882c0]
mov edi, dword [edi*4 + 0x102882c0]
ror edi, 8
ror ebp, 0x10
ror edx, 0x18
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], ebp
movzx ebp, dl
mov ebp, dword [ebp*4 + 0x102882c0]
shr edx, 8
mov dword [esp + 0x30], ebp
movzx ebp, dl
mov ebp, dword [ebp*4 + 0x102882c0]
shr edx, 8
ror ebp, 8
mov dword [esp + 0x38], ebp
movzx ebp, dl
mov ebp, dword [ebp*4 + 0x102882c0]
shr edx, 8
mov edx, dword [edx*4 + 0x102882c0]
ror ebp, 0x10
ror edx, 0x18
mov dword [esp + 0x18], edx
movzx edx, cl
mov edx, dword [edx*4 + 0x102882c0]
mov dword [esp + 0x34], edx
shr ecx, 8
movzx edx, cl
mov edx, dword [edx*4 + 0x102882c0]
ror edx, 8
mov dword [esp + 0x24], edx
shr ecx, 8
movzx edx, cl
mov edx, dword [edx*4 + 0x102882c0]
ror edx, 0x10
shr ecx, 8
mov ecx, dword [ecx*4 + 0x102882c0]
mov dword [esp + 0x1c], edx
ror ecx, 0x18
mov dword [esp + 0x2c], ecx
movzx ecx, al
mov edx, dword [ecx*4 + 0x102882c0]
xor edx, dword [esp + 0x24]
shr eax, 8
xor edx, ebp
xor edx, dword [esp + 0x20]
movzx ecx, al
xor dword [esp + 0x10], edx
mov edx, dword [ecx*4 + 0x102882c0]
ror edx, 8
xor edx, dword [esp + 0x1c]
shr eax, 8
xor edx, dword [esp + 0x18]
movzx ecx, al
xor edx, dword [esp + 0x28]
xor ebx, edx
mov edx, dword [ecx*4 + 0x102882c0]
ror edx, 0x10
xor edx, dword [esp + 0x2c]
xor edx, dword [esp + 0x30]
xor edx, edi
xor dword [esp + 0x14], edx
shr eax, 8
mov eax, dword [eax*4 + 0x102882c0]
mov ecx, dword [esp + 0x40]
ror eax, 0x18
xor eax, dword [esp + 0x34]
xor eax, dword [esp + 0x38]
xor eax, dword [esp + 0x3c]
xor dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
shr eax, 1
dec eax
mov dword [esp + 0x20], eax
mov edi, edi
movzx edx, bl
mov eax, dword [edx*4 + 0x10288ec0]
shr ebx, 8
movzx ecx, bl
mov edi, dword [ecx*4 + 0x10288ac0]
xor edi, dword [esi + 4]
movzx ebp, byte [esp + 0x14]
shr ebx, 8
xor eax, dword [esi]
movzx edx, bl
shr ebx, 8
mov ecx, dword [ebx*4 + 0x102882c0]
xor ecx, dword [ebp*4 + 0x10288ec0]
mov ebx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x102886c0]
shr ebx, 8
xor edx, dword [esi + 8]
movzx ebp, bl
xor eax, dword [ebp*4 + 0x10288ac0]
shr ebx, 8
movzx ebp, bl
xor edi, dword [ebp*4 + 0x102886c0]
movzx ebp, byte [esp + 0x58]
xor ecx, dword [esi + 0xc]
shr ebx, 8
mov ebx, dword [ebx*4 + 0x102882c0]
xor ebx, dword [ebp*4 + 0x10288ec0]
xor edx, ebx
mov ebx, dword [esp + 0x58]
shr ebx, 8
movzx ebp, bl
xor ecx, dword [ebp*4 + 0x10288ac0]
shr ebx, 8
movzx ebp, bl
xor eax, dword [ebp*4 + 0x102886c0]
movzx ebp, byte [esp + 0x10]
shr ebx, 8
mov ebx, dword [ebx*4 + 0x102882c0]
xor ebx, dword [ebp*4 + 0x10288ec0]
xor edi, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x10288ac0]
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*4 + 0x102886c0]
shr ebx, 8
xor eax, dword [ebx*4 + 0x102882c0]
movzx edi, cl
mov edi, dword [edi*4 + 0x10288ec0]
xor edi, dword [esi + 0x10]
shr ecx, 8
movzx ebx, cl
mov ebx, dword [ebx*4 + 0x10288ac0]
xor ebx, dword [esi + 0x14]
shr ecx, 8
mov dword [esp + 0x58], ebx
mov ebx, ecx
movzx ebp, dl
shr ebx, 8
mov ebx, dword [ebx*4 + 0x102882c0]
xor ebx, dword [ebp*4 + 0x10288ec0]
shr edx, 8
xor ebx, dword [esi + 0x1c]
movzx ebp, dl
xor edi, dword [ebp*4 + 0x10288ac0]
shr edx, 8
mov dword [esp + 0x10], edi
mov edi, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
shr edi, 8
mov edi, dword [edi*4 + 0x102882c0]
movzx ebp, dl
xor edi, dword [ebp*4 + 0x10288ec0]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x102886c0]
xor edi, dword [esi + 0x18]
mov ecx, edi
shr edx, 8
movzx edi, dl
xor ebx, dword [edi*4 + 0x10288ac0]
shr edx, 8
movzx ebp, al
mov edi, edx
shr edi, 8
mov edi, dword [edi*4 + 0x102882c0]
xor edi, dword [ebp*4 + 0x10288ec0]
movzx ebp, byte [esp + 0x18]
xor edi, dword [ebp*4 + 0x102886c0]
shr eax, 8
xor dword [esp + 0x58], edi
movzx edi, al
xor ecx, dword [edi*4 + 0x10288ac0]
shr eax, 8
mov dword [esp + 0x14], ecx
movzx ecx, al
xor ebx, dword [ecx*4 + 0x102886c0]
shr eax, 8
mov eax, dword [eax*4 + 0x102882c0]
movzx edx, dl
xor eax, dword [edx*4 + 0x102886c0]
add esi, 0x20
xor dword [esp + 0x10], eax
sub dword [esp + 0x20], 1
jne 0x1003d4c0
mov eax, dword [esp + 0x14]
movzx ecx, al
movzx edx, byte [ecx*4 + 0x102882c1]
shr eax, 8
movzx ecx, al
shr eax, 8
mov byte [esp + 0x53], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*4 + 0x102882c1]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x58]
mov byte [esp + 0x46], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x49], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x4f], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*4 + 0x102882c1]
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x52], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x45], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x4b], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*4 + 0x102882c1]
mov byte [esp + 0x4e], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, bl
shr ebx, 8
mov byte [esp + 0x44], al
movzx eax, bl
mov byte [esp + 0x51], dl
movzx edx, byte [ecx*4 + 0x102882c1]
movzx ecx, byte [eax*4 + 0x102882c1]
shr ebx, 8
mov byte [esp + 0x47], dl
movzx edx, bl
movzx eax, byte [edx*4 + 0x102882c1]
mov byte [esp + 0x4a], cl
shr ebx, 8
movzx ecx, byte [ebx*4 + 0x102882c1]
mov byte [esp + 0x50], cl
mov ecx, dword [esi]
xor ecx, dword [esp + 0x44]
mov byte [esp + 0x4d], al
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1003d7b9
xor ecx, dword [eax]
mov edx, dword [esp + 0x60]
test edx, edx
je 0x1003d7c3
mov dword [edx], ecx
add edx, 4
test eax, eax
je 0x1003d7cd
add eax, 4
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x48]
test eax, eax
je 0x1003d7da
xor ecx, dword [eax]
test edx, edx
je 0x1003d7e0
mov dword [edx], ecx
add edx, 4
test eax, eax
je 0x1003d7ea
add eax, 4
mov ecx, dword [esi + 8]
xor ecx, dword [esp + 0x4c]
test eax, eax
je 0x1003d7f7
xor ecx, dword [eax]
test edx, edx
je 0x1003d7fd
mov dword [edx], ecx
add edx, 4
test eax, eax
je 0x1003d807
add eax, 4
mov esi, dword [esi + 0xc]
xor esi, dword [esp + 0x50]
test eax, eax
je 0x1003d814
xor esi, dword [eax]
test edx, edx
je 0x1003d81a
mov dword [edx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc