Function at 0x10003090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
movzx eax, byte [eax + 0x2e]
add eax, 0x13f6
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
push edi
mov edi, edx
mov cl, byte [0x1004d424]
mov dword [esp + 0x14], edi
xor edx, edx
mov si, word [0x1004d400]
mov ebp, dword [0x1004d3f4]
inc si
mov eax, dword [eax + edi*4 + 0x40]
xor ebp, 0x16f3
or eax, dword [0x1004d3e4]
inc edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
dec dword [0x1004d3e8]
dec byte [0x1004d3ee]
mov word [0x1004d400], si
movzx ebx, byte [eax + edi*4 + 0x1d]
mov eax, dword [0x1004d3d0]
mov dword [esp + 0x20], eax
mov eax, 0x1b23
div dword [0x1004d3b8]
mov edx, dword [0x1004d3f8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ebx
and byte [edx + ebx], cl
mov edx, dword [eax]
mov ecx, dword [0x1004d41c]
mov eax, dword [esp + 0x50]
movzx ebx, byte [ecx + 0x89c]
mov ecx, dword [0x1004d3c8]
or bl, 0x85
mov byte [ecx + edx], bl
lea ecx, [eax + edi*4]
mov eax, dword [esp + 0x40]
xor edx, edx
mov bl, byte [0x1004d434]
mov eax, dword [eax + edi*4 + 0x58]
div dword [ecx + 0xc]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x1004d3f0]
movzx eax, si
mov esi, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov edi, dword [edi + ecx*4]
mov eax, dword [edx]
mov dword [0x1004d3d0], edi
mov edi, dword [esp + 0x18]
cmp esi, dword [edi + eax*4]
mov edi, dword [0x1004d3d0]
je 0x100032ad
movzx eax, bl
mov ebx, dword [0x1004d408]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
lea eax, [eax + ecx*4]
add eax, 0x3c
mov dword [esp + 0x28], eax
nop
mov ecx, dword [esp + 0x50]
sub edx, 4
add dword [eax], ecx
mov dword [esp + 0x48], edx
mov eax, dword [edx]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x38], ecx
cmp ecx, ebp
jl 0x10003295
mov si, word [0x1004d414]
mov ecx, dword [edx + ecx*4]
movzx eax, si
and ecx, eax
mov eax, 0xffff
mov dword [0x1004d3cc], ecx
add si, ax
mov ecx, dword [0x1004d410]
mov word [0x1004d414], si
cmp ecx, edi
jg 0x10003280
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [0x1004d3d0]
add edi, 0x18
sub esi, ecx
lea eax, [eax + ecx*4]
inc esi
add eax, 8
lea edi, [edi + ebp*4]
sub ebp, esi
mov dword [esp + 0x14], ebp
mov ecx, dword [edx]
lea edi, [edi - 4]
mov ebp, dword [esp + 0x10]
lea eax, [eax + 4]
sub dword [esp + 0x10], 4
dec ebx
mov edx, dword [ebp]
mov ebp, dword [esp + 0x20]
mov cl, byte [ebp + ecx*2]
mov ebp, dword [esp + 0x24]
mov byte [edx + ebp], cl
mov ecx, dword [0x1004d41c]
mov edx, dword [esp + 0x40]
mov ebp, dword [ecx + edx*4 + 0x20]
mov ecx, dword [edi]
or dword [eax - 4], ecx
xor ebp, dword [0x1004d3e4]
mov edx, dword [esp + 0x48]
sub esi, 1
jne 0x10003227
mov si, word [0x1004d414]
mov edi, dword [0x1004d3d0]
mov dword [0x1004d408], ebx
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, ebp
jge 0x100031d5
mov esi, dword [esp + 0x4c]
mov eax, dword [edx]
inc esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], esi
cmp esi, dword [ecx + eax*4]
mov eax, dword [esp + 0x28]
jne 0x100031b0
pop edi
pop esi
pop ebp
mov eax, 0x690
pop ebx
add esp, 0x1c
ret