Function at 0x10007920
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [0x1004d3f0]
inc eax
movzx ecx, word [0x1004d414]
push ebx
push ebp
mov dword [0x1004d3f0], eax
mov ebx, 0x5c1
push esi
push edi
mov edi, dword [esp + 0x64]
movzx esi, word [0x1004d3ec]
mov byte [esp + 0x13], dl
or esi, 0x438
mov dword [esp + 0x28], 0x9ab
movzx eax, byte [edi + eax*2 + 3]
imul edi, dword [0x1004d3e0], 0x791
mov dword [esp + 0x2c], eax
mov eax, dword [0x1004d41c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], edi
mov eax, dword [eax + 0x3e68]
mov dword [esp + 0x20], eax
movzx eax, dl
mov edx, dword [0x1004d438]
mov dword [esp + 0x18], eax
mov al, byte [0x1004d3c5]
dec al
add ecx, dword [edx + 0x914]
mov byte [0x1004d3c5], al
movzx eax, al
mov dword [esp + 0x4c], eax
mov eax, dword [0x1004d3cc]
mov ebp, dword [ecx + 0x6618]
mov dword [esp + 0x34], eax
mov eax, dword [0x1004d3d4]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x6588]
mov dword [esp + 0x38], eax
mov eax, dword [0x1004d440]
mov dword [esp + 0x24], eax
cmp ebp, ebx
jg 0x10007a6d
mov esi, dword [esp + 0x2c]
mov eax, edx
sub eax, esi
mov dword [esp + 0x3c], eax
jmp 0x100079f4
mov ecx, dword [esp + 0x14]
mov dl, byte [0x1004d3c7]
lea esi, [esi + ebp*4]
movzx eax, dl
inc dl
imul eax, dword [ecx + ebp*4]
mov byte [0x1004d3c7], dl
add dword [esp + 0x14], 4
mov dword [ecx + ebp*4], eax
cdq
idiv edi
mov edi, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + eax]
mov eax, dword [ecx]
and edx, ebp
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x1692]
mov eax, dword [0x1004d404]
movzx eax, byte [eax + 0x4b5]
imul eax, dword [esi]
push eax
push 0x15f7
push dword [esp + 0x3c]
push ecx
mov ecx, edi
call 0x1000ef21
mov esi, dword [esp + 0x3c]
inc ebp
mov edi, dword [esp + 0x50]
add esp, 0x10
movzx ebx, ax
movzx eax, bx
mov dword [esp + 0x30], ebx
cmp ebp, eax
jle 0x100079f0
mov esi, dword [esp + 0x1c]
mov ax, word [0x1004d414]
mov ecx, dword [esp + 0x68]
movzx edi, al
mov eax, dword [esp + 0x6c]
dec eax
mov ebp, dword [esp + 0x20]
movzx eax, ax
and eax, edi
mov dword [esp + 0x40], edi
cdq
idiv ecx
xor word [0x1004d428], ax
cmp ebp, ecx
jne 0x10007b60
mov ecx, dword [0x1004d3d4]
lea edx, [esi + 0x18]
movzx esi, word [0x1004d400]
add esi, dword [esp + 0x60]
movzx eax, bx
mov bx, word [0x1004d3ec]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
lea edx, [edx + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], edx
mov ecx, dword [0x1004d420]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
inc ecx
and dword [eax + ebp*4], ecx
mov eax, dword [edx]
mov edx, dword [0x1004d41c]
mov dword [esp + 0x44], eax
movzx eax, bx
inc bx
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x6c]
xor eax, edi
mov dword [0x1004d440], eax
movzx eax, dx
movzx edx, byte [eax]
mov eax, dword [0x1004d3c8]
lea edi, [eax + edx*2]
movzx eax, byte [esi]
add edi, edx
xor edx, edx
movzx esi, byte [edi]
div esi
mov edx, dword [0x1004d3f0]
mov esi, dword [esp + 0x38]
mov byte [edi], al
mov eax, ebp
mov edi, dword [esp + 0x40]
imul eax, ebp
inc ebp
xor dword [esi + edx*4], eax
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
cmp ebp, dword [esp + 0x68]
je 0x10007ad8
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov word [0x1004d3ec], bx
mov ebx, dword [esp + 0x30]
mov dword [0x1004d420], ecx
mov dword [edx], eax
jmp 0x10007b66
mov ecx, dword [0x1004d420]
mov eax, dword [esp + 0x58]
mov edi, dword [0x1004d418]
mov esi, dword [esp + 0x1c]
inc byte [eax]
mov al, byte [eax]
movzx eax, al
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x64]
movzx eax, byte [eax]
cmp edi, dword [esi + eax*4 + 0x20]
jl 0x10007c9f
movzx eax, byte [0x1004d3c7]
mov edx, dword [esp + 0x18]
mov ebp, dword [0x1004d3f4]
mov dword [esp + 0x30], eax
imul eax, edi, 0x1ead
mov dword [esp + 0x48], 0x183
mov dword [esp + 0x68], eax
lea eax, [edi + edi*2]
lea edx, [edx + eax*4]
add edx, 0x14
mov dword [esp + 0x2c], edx
nop dword [eax]
nop word [eax + eax]
imul eax, dword [0x1004d3c0], 0x2e41
mov dword [0x1004d3c0], eax
mov eax, edi
and eax, ecx
dec ecx
sub eax, dword [edx]
cdq
idiv dword [esp + 0x30]
mov eax, ebp
mov dword [0x1004d420], ecx
mov byte [0x1004d3c7], dl
dec ebp
movzx edx, dl
mov dword [esp + 0x30], edx
mov dword [0x1004d3f4], ebp
cmp edx, eax
je 0x10007c9f
cmp dword [esp + 0x20], 0x169c
jg 0x10007d7c
mov eax, dword [esp + 0x60]
xor edx, edx
movzx esi, byte [edi + eax]
mov eax, 0xb3
div esi
mov edx, dword [esp + 0x54]
inc edi
sub eax, dword [0x1004d3e4]
mov dword [0x1004d3e4], eax
movzx eax, bx
add ebx, 0xffff
lea esi, [edx + eax*4]
mov eax, dword [esp + 0x68]
cdq
idiv dword [esp + 0x48]
add dword [esp + 0x68], 0x1ead
mov eax, edx
cdq
idiv dword [esi]
mov dword [esi], eax
mov ax, word [0x1004d3fc]
mov esi, dword [esp + 0x4c]
inc ax
movzx edx, ax
mov word [0x1004d3fc], ax
movzx eax, bx
add eax, eax
mov dword [esi + eax*8], edx
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add edx, 0xc
movzx eax, byte [eax]
mov dword [esp + 0x2c], edx
cmp edi, dword [esi + eax*4 + 0x20]
jge 0x10007bd0
mov edx, dword [esp + 0x6c]
inc ebx
movzx eax, dx
mov edx, dword [0x1004d438]
movzx esi, byte [eax]
mov eax, dword [esp + 0x60]
movzx eax, byte [eax + 0x1e37]
and eax, 0x177d
xor eax, dword [edx + esi*4]
xor edx, edx
div dword [0x1004d440]
mov eax, dword [esp + 0x58]
mov dword [0x1004d440], edx
movzx edx, bx
mov dword [esp + 0x4c], edx
movzx ebp, byte [eax + esi*2 + 8]
add ebp, dword [0x1004d3c0]
imul ebp, dword [0x1004d3e0]
lea ebx, [edx*4]
mov eax, dword [0x1004d42c]
mov dword [esp + 0x68], ebx
cmp edx, dword [eax + ebx]
mov ebx, dword [0x1004d408]
mov dword [0x1004d3e0], ebp
jne 0x10007db1
cmp edx, ebx
jae 0x10007db1
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
movzx eax, si
mov ecx, dword [edi]
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + edx*8]
jg 0x10007d4f
mov ecx, dword [esp + 0x18]
movzx eax, byte [0x1004d3c4]
cmp eax, dword [ecx + 0x4968]
je 0x10007f84
mov ax, word [0x1004d400]
mov ecx, 0xffff
add ax, cx
xor edx, edx
mov ecx, dword [0x1004d3c8]
mov word [0x1004d400], ax
movzx eax, ax
pop edi
pop esi
movzx eax, byte [eax + ecx]
div ebp
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [esi + eax*4]
movzx eax, bx
or ecx, 0x1981
mov dword [edx + eax*4], ecx
mov ecx, 0xffff
mov ax, word [0x1004d400]
add ax, cx
mov word [0x1004d400], ax
movzx eax, ax
jmp 0x1000800b
mov bx, word [0x1004d400]
mov edx, dword [esp + 0x54]
mov ebp, dword [0x1004d3f0]
mov edi, dword [esp + 0x14]
movzx eax, bx
lea esi, [edx + eax*4]
mov edx, dword [esp + 0x18]
mov eax, ebp
inc ebp
add eax, eax
mov dword [0x1004d3f0], ebp
mov ebp, dword [0x1004d3d8]
mov edx, dword [edx + 0x7b34]
or edx, 0xfffffd51
xor edx, dword [edi + eax*8 + 8]
mov eax, 0xffff
sub edx, dword [esi]
add bx, ax
mov eax, dword [0x1004d3dc]
mov dword [esi], edx
mov esi, dword [esp + 0x6c]
mov word [0x1004d400], bx
movzx ebx, byte [eax + 0xacd]
mov eax, dword [esp + 0x68]
movzx edx, si
imul ebx, dword [eax + ebp]
mov eax, dword [0x1004d3f8]
movzx eax, byte [eax + edx + 1]
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x58]
movzx eax, byte [eax]
movzx edi, byte [eax + edx]
mov eax, dword [0x1004d438]
mov edx, dword [0x1004d3e8]
movzx esi, word [eax + 0x174c]
mov eax, dword [0x1004d418]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x58]
add edx, ecx
movzx eax, byte [eax + 0x3302]
push eax
push edx
push dword [0x1004d410]
mov edx, dword [esp + 0x40]
push esi
push dword [esp + 0x30]
and edx, 0x15d8
push edi
push dword [esp + 0x80]
push ecx
push ebx
call fcn.10005290
mov edx, dword [esp + 0x70]
add esp, 0x24
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
dec dword [0x1004d3f0]
lea ecx, [eax + edx*2]
mov eax, dword [esp + 0x38]
movzx ecx, byte [edx + ecx + 4]
mov dl, byte [esp + 0x13]
inc dl
imul ecx, dword [eax + 0x16c]
mov al, dl
shl dl, 3
add al, dl
movzx edx, word [0x1004d400]
xor byte [0x1004d3c7], al
imul ecx, dword [0x1004d3e0]
mov ebx, ecx
inc ecx
mov dword [0x1004d3e0], ecx
mov ecx, dword [esp + 0x6c]
movzx eax, cx
inc byte [eax]
movzx ecx, byte [eax]
mov eax, dword [0x1004d40c]
mov edi, dword [eax + ecx*4]
mov ecx, dword [esp + 0x24]
mov eax, dword [0x1004d3c8]
add edi, dword [ecx + edx*4]
movzx esi, byte [eax + 0x18a2]
mov eax, dword [0x1004d3dc]
add esi, 0x1162
mov ecx, dword [0x1004d3f0]
mov edx, dword [0x1004d3b4]
sub edx, dword [ebp + 0x1304]
mov ebp, dword [0x1004d3f8]
movzx ecx, byte [eax + ecx + 6]
movzx eax, word [0x1004d428]
imul ecx, eax
imul eax, ebp, 0x1981
push ecx
push edx
push esi
push eax
mov eax, 0x4777c3b3
imul dword [0x1004d43c]
push edi
push dword [0x1004d3e8]
mov eax, edx
sar eax, 8
push 0xc3
mov edx, eax
push ecx
shr edx, 0x1f
push ebx
add edx, eax
call fcn.10005290
mov si, word [0x1004d400]
add esp, 0x24
mov edi, dword [esp + 0x64]
mov ebx, dword [0x1004d408]
movzx ecx, si
mov byte [ecx + edi], al
mov ecx, dword [esp + 0x18]
jmp 0x10007f91
mov ebp, dword [0x1004d3f8]
mov si, word [0x1004d400]
cmp ebx, 0x9dd
jle 0x10007ff9
movzx eax, si
add ecx, 0xc
shl eax, 4
xor edx, edx
add eax, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
mov eax, 0x57b
div dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov eax, dword [0x1004d3f0]
lea edi, [ecx + eax*2]
mov eax, dword [esp + 0x1c]
inc ebx
lea ecx, [eax + ebp*4]
mov eax, dword [esp + 0x6c]
inc ebp
mov eax, dword [eax]
and eax, 0x1a5d
cdq
idiv dword [ecx]
mov eax, dword [esp + 0x58]
xor eax, 0x19c0
mov dword [ecx], edx
sub ax, word [edi]
mov word [edi], ax
cmp ebx, 0x9dd
jg 0x10007fc3
mov dword [0x1004d3f8], ebp
mov eax, 0xffff
add si, ax
mov word [0x1004d400], si
movzx eax, si
mov ecx, dword [0x1004d3c8]
xor edx, edx
pop edi
pop esi
pop ebp
movzx eax, byte [eax + ecx]
div dword [0x1004d3e0]
pop ebx
add esp, 0x40
ret