Function at 0x1003db50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x100934c0]
xor eax, esp
mov dword [esp + 0x40], eax
cmp byte [0x1009dfeb], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], eax
jne 0x1003db8c
call fcn.10044360
cmp byte [0x1009dff9], 0
je 0x1003dbbb
mov ecx, dword [esp + 0x24]
push 0
push 0x10
push ecx
push ebx
push edi
mov ecx, esi
call fcn.1003f340
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10053489
mov esp, ebp
pop ebp
ret 0xc
call fcn.1004cc60
mov esi, dword [edi]
mov ebx, eax
call fcn.1004cc60
cmp ebx, eax
je 0x1003dbcf
bswap esi
mov dword [esp + 0x34], esi
lea esi, [edi + 4]
call fcn.1004cc60
mov ebx, dword [esi]
mov edi, eax
call fcn.1004cc60
cmp edi, eax
je 0x1003dbee
bswap ebx
mov dword [esp + 0x28], ebx
call fcn.1004cc60
mov edi, dword [esi + 4]
mov dword [esp + 0x14], eax
call fcn.1004cc60
cmp dword [esp + 0x14], eax
je 0x1003dc0b
bswap edi
mov dword [esp + 0x10], edi
call fcn.1004cc60
mov esi, dword [esi + 8]
mov dword [esp + 0x14], eax
call fcn.1004cc60
cmp dword [esp + 0x14], eax
jne 0x1003dc26
mov eax, esi
jmp 0x1003dc2e
bswap esi
mov dword [esp + 0x18], esi
mov eax, esi
mov edx, dword [esp + 0x2c]
mov esi, dword [edx + 0x118]
xor ebx, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
xor dword [esp + 0x34], ecx
xor edi, dword [esi + 8]
xor eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x28], ebx
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x18]
add esi, 0x20
cmp byte [0x1009dfeb], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], esi
jne 0x1003dc84
call fcn.10044360
mov eax, dword [esp + 0x18]
mov edi, dword [0x10094778]
xor ecx, ecx
xor edx, edx
mov edi, edi
and ecx, dword [edx + 0x1009d7d0]
add edx, edi
cmp edx, 0x800
jb 0x1003dc90
and ecx, dword [0x1009dfc8]
mov edx, dword [esp + 0x34]
or dword [esp + 0x10], ecx
or dword [esp + 0x28], ecx
or eax, ecx
or edx, ecx
mov dword [esp + 0x18], ecx
movzx ecx, al
xor ebx, dword [ecx*8 + 0x1009d7d4]
shr eax, 8
movzx ecx, al
mov ecx, dword [ecx*8 + 0x1009d7d1]
xor dword [esp + 0xc], ecx
movzx ecx, byte [esp + 0x10]
mov ecx, dword [ecx*8 + 0x1009d7d4]
xor dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
shr eax, 8
shr ecx, 8
movzx edi, al
mov dword [esp + 0x10], ecx
shr dword [esp + 0x10], 8
movzx ecx, cl
mov ecx, dword [ecx*8 + 0x1009d7d1]
xor ecx, dword [edi*8 + 0x1009d7d2]
mov edi, dword [esp + 0x20]
xor edi, ecx
movzx ecx, byte [esp + 0x28]
xor edi, dword [ecx*8 + 0x1009d7d4]
mov ecx, dword [esp + 0x28]
shr eax, 8
mov eax, dword [eax*8 + 0x1009d7d3]
mov dword [esp + 0x20], edi
shr ecx, 8
movzx edi, cl
xor eax, dword [edi*8 + 0x1009d7d1]
movzx edi, byte [esp + 0x10]
xor eax, dword [edi*8 + 0x1009d7d2]
movzx edi, dl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x18]
shr edx, 8
xor eax, dword [edi*8 + 0x1009d7d4]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
movzx eax, dl
shr edi, 8
mov edi, dword [edi*8 + 0x1009d7d3]
xor edi, dword [eax*8 + 0x1009d7d1]
shr ecx, 8
movzx eax, cl
xor edi, dword [eax*8 + 0x1009d7d2]
shr edx, 8
movzx eax, dl
shr ecx, 8
mov ecx, dword [ecx*8 + 0x1009d7d3]
xor ecx, dword [eax*8 + 0x1009d7d2]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
xor dword [esp + 0xc], ecx
shr edx, 8
mov edx, dword [edx*8 + 0x1009d7d3]
xor dword [esp + 0x20], edx
shr eax, 1
xor ebx, edi
dec eax
mov dword [esp + 0x2c], eax
movzx ecx, bl
mov eax, dword [ecx*8 + 0x1009d7d3]
shr ebx, 8
movzx edx, bl
mov edi, dword [edx*8 + 0x1009d7d2]
xor edi, dword [esi + 4]
shr ebx, 8
movzx ecx, bl
mov edx, dword [ecx*8 + 0x1009d7d1]
movzx ecx, byte [esp + 0xc]
xor eax, dword [esi]
shr ebx, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx*8 + 0x1009d7d4]
mov ebx, dword [esp + 0x18]
xor ecx, dword [ebx*8 + 0x1009d7d3]
mov ebx, dword [esp + 0xc]
shr ebx, 8
mov dword [esp + 0xc], ebx
movzx ebx, bl
xor eax, dword [ebx*8 + 0x1009d7d2]
mov ebx, dword [esp + 0xc]
xor edx, dword [esi + 8]
xor ecx, dword [esi + 0xc]
shr ebx, 8
mov dword [esp + 0xc], ebx
movzx ebx, bl
xor edi, dword [ebx*8 + 0x1009d7d1]
movzx ebx, byte [esp + 0x20]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0xc]
shr edi, 8
mov edi, dword [edi*8 + 0x1009d7d4]
xor edi, dword [ebx*8 + 0x1009d7d3]
mov ebx, dword [esp + 0x20]
xor edx, edi
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*8 + 0x1009d7d2]
shr ebx, 8
movzx edi, bl
xor eax, dword [edi*8 + 0x1009d7d1]
movzx edi, byte [esp + 0x1c]
shr ebx, 8
mov ebx, dword [ebx*8 + 0x1009d7d4]
xor ebx, dword [edi*8 + 0x1009d7d3]
xor dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1c]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*8 + 0x1009d7d2]
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*8 + 0x1009d7d1]
shr ebx, 8
xor eax, dword [ebx*8 + 0x1009d7d4]
movzx edi, cl
mov edi, dword [edi*8 + 0x1009d7d3]
xor edi, dword [esi + 0x10]
shr ecx, 8
mov dword [esp + 0x1c], edi
movzx edi, cl
mov edi, dword [edi*8 + 0x1009d7d2]
xor edi, dword [esi + 0x14]
shr ecx, 8
mov dword [esp + 0x20], edi
movzx ebx, dl
mov edi, ecx
shr edi, 8
mov edi, dword [edi*8 + 0x1009d7d4]
xor edi, dword [ebx*8 + 0x1009d7d3]
shr edx, 8
xor edi, dword [esi + 0x1c]
movzx esi, dl
mov esi, dword [esi*8 + 0x1009d7d2]
xor dword [esp + 0x1c], esi
shr edx, 8
mov esi, edx
mov ebx, edi
mov dword [esp + 0x10], edx
shr esi, 8
mov edx, dword [esp + 0x28]
mov esi, dword [esi*8 + 0x1009d7d4]
movzx ecx, cl
movzx edi, dl
xor esi, dword [edi*8 + 0x1009d7d3]
shr edx, 8
xor esi, dword [ecx*8 + 0x1009d7d1]
movzx ecx, dl
xor ebx, dword [ecx*8 + 0x1009d7d2]
mov edi, esi
mov esi, dword [esp + 0x14]
xor edi, dword [esi + 0x18]
shr edx, 8
mov dword [esp + 0xc], edi
movzx edi, al
mov ecx, edx
shr ecx, 8
mov ecx, dword [ecx*8 + 0x1009d7d4]
xor ecx, dword [edi*8 + 0x1009d7d3]
movzx edi, byte [esp + 0x10]
xor ecx, dword [edi*8 + 0x1009d7d1]
shr eax, 8
xor dword [esp + 0x20], ecx
movzx ecx, al
mov ecx, dword [ecx*8 + 0x1009d7d2]
xor dword [esp + 0xc], ecx
shr eax, 8
movzx ecx, al
xor ebx, dword [ecx*8 + 0x1009d7d1]
shr eax, 8
mov eax, dword [eax*8 + 0x1009d7d4]
movzx edx, dl
xor eax, dword [edx*8 + 0x1009d7d1]
add esi, 0x20
xor dword [esp + 0x1c], eax
dec dword [esp + 0x2c]
mov dword [esp + 0x14], esi
jne 0x1003ddc4
mov eax, dword [esp + 0xc]
movzx ecx, al
movzx edx, byte [ecx*8 + 0x1009d7d1]
shr eax, 8
movzx ecx, al
shr eax, 8
mov byte [esp + 0x4b], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x1009d7d1]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x20]
mov byte [esp + 0x3e], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x41], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x47], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x1009d7d1]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4a], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, al
mov byte [esp + 0x3d], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
shr eax, 8
mov edi, dword [esi]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x43], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x1009d7d1]
mov byte [esp + 0x46], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, bl
shr ebx, 8
mov byte [esp + 0x3c], al
movzx eax, bl
mov byte [esp + 0x49], dl
movzx edx, byte [ecx*8 + 0x1009d7d1]
movzx ecx, byte [eax*8 + 0x1009d7d1]
shr ebx, 8
mov byte [esp + 0x3f], dl
xor edi, dword [esp + 0x3c]
movzx edx, bl
movzx eax, byte [edx*8 + 0x1009d7d1]
shr ebx, 8
mov byte [esp + 0x42], cl
movzx ecx, byte [ebx*8 + 0x1009d7d1]
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x45], al
mov byte [esp + 0x48], cl
call fcn.1004cc60
mov dword [esp + 0x2c], eax
mov eax, ebx
test eax, eax
je 0x1003e0f9
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x1003e101
mov dword [esp + 0x14], 0
call fcn.1004cc60
cmp dword [esp + 0x2c], eax
je 0x1003e10e
bswap edi
xor edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x30], eax
mov eax, ebx
test eax, eax
je 0x1003e128
lea ebx, [eax + 4]
mov edi, dword [esi + 4]
xor edi, dword [esp + 0x40]
call fcn.1004cc60
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x1003e144
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
jmp 0x1003e14c
mov dword [esp + 0x24], 0
call fcn.1004cc60
cmp dword [esp + 0x14], eax
je 0x1003e159
bswap edi
mov ecx, dword [esp + 0x30]
mov eax, edi
xor eax, dword [esp + 0x24]
add ecx, 4
mov dword [ecx - 4], eax
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x1003e174
add ebx, 4
mov edi, dword [esi + 8]
xor edi, dword [esp + 0x44]
call fcn.1004cc60
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x1003e190
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
jmp 0x1003e198
mov dword [esp + 0x24], 0
call fcn.1004cc60
cmp dword [esp + 0x14], eax
je 0x1003e1a5
bswap edi
mov eax, edi
xor eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov dword [edi], eax
test ebx, ebx
je 0x1003e1b8
add ebx, 4
mov esi, dword [esi + 0xc]
xor esi, dword [esp + 0x48]
call fcn.1004cc60
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x1003e1d0
mov ebx, dword [ebx]
jmp 0x1003e1d2
xor ebx, ebx
call fcn.1004cc60
cmp dword [esp + 0x24], eax
je 0x1003e1df
bswap esi
mov ecx, dword [esp + 0x4c]
xor esi, ebx
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10053489
mov esp, ebp
pop ebp
ret 0xc