Function at 0x6d8d80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x7e425c
mov dword [esi + 8], 0x7e41f4
mov dword [esi + 0x6c4], 0x7e41e4
call fcn.006b6e00
lea edi, [esi + 0x754]
xor ebx, ebx
mov dword [esi + 0x72c], 0x7e42cc
push ebx
mov ecx, edi
mov dword [edi], 0x7d5810
call fcn.00708af0
mov dword [edi], 0x7d5808
mov eax, dword [esi + 0x74c]
or edi, 0xffffffff
cmp eax, edi
je 0x6d8de5
push eax
call fcn.00695680
add esp, 4
mov eax, dword [esi + 0x748]
cmp eax, edi
je 0x6d8dfa
mov ecx, eax
push ecx
call fcn.00695680
add esp, 4
mov eax, dword [esi + 0x744]
cmp eax, edi
je 0x6d8e0f
mov edx, eax
push edx
call fcn.006968f0
add esp, 4
mov eax, dword [esi + 0x740]
cmp eax, edi
je 0x6d8e22
push eax
call fcn.00695680
add esp, 4
mov eax, dword [esi + 0x73c]
cmp eax, edi
je 0x6d8e37
mov ecx, eax
push ecx
call fcn.00695680
add esp, 4
mov eax, dword [esi + 0x738]
cmp eax, edi
je 0x6d8e4c
mov edx, eax
push edx
call fcn.006968f0
add esp, 4
mov ebp, dword [esi + 0x734]
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x6d9098
mov eax, dword [0x81c700]
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6d9017
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x6d8e9d
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d8eaa
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d8ed4
mov edx, ecx
or edx, eax
je 0x6d8ed4
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d9017
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d9017
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, ebx
mov dword [esp + 0x18], ebx
not esi
jle 0x6d8f7b
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6d8f59
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x6d8f59
mov edi, dword [eax]
mov ebx, dword [edi + 0xc]
sar ebx, 2
test edi, edi
je 0x6d8f59
xor ebp, ebp
test ecx, ecx
jle 0x6d8f59
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebx, ebx
jle 0x6d8f4a
mov ecx, ebx
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x6d8f40
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebp
mov edx, dword [ecx]
cmp ebp, dword [edx + 4]
jl 0x6d8f2e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x6d8f0b
mov ebp, dword [esp + 0x1c]
cmp esi, dword [0x8294d8]
je 0x6d8f88
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x6d9010
mov ecx, 0x829464
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x6d8fd2
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x6d8fcd
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d8fcd
cmp dword [eax], 0x29874362
je 0x6d8fd2
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x6d9010
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6d900b
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d900b
cmp dword [eax], 0xbad0bad
je 0x6d9010
call fcn.00406630
mov byte [0x81c6fc], 0
mov edi, dword [0x820dd0]
push ebp
xor edi, ebp
mov dword [esp + 0x20], edi
mov ebx, edi
mov esi, dword [esp + 0x22]
and ebx, 0xff
and esi, 0xffff
call fcn.0045c0b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x6d9091
mov ecx, dword [0x8294d8]
mov eax, dword [0x829478]
mov edx, dword [esi*4 + 0x820e44]
xor ecx, eax
xor ecx, edi
push 1
mov dword [0x8294d8], ecx
push eax
mov eax, dword [edx + 8]
lea edx, [ebp + 0x14]
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x828e68]
push ecx
push edx
call fcn.0045cc80
push ebp
push esi
call fcn.0045d050
push ebx
push esi
call fcn.0045dc80
push ebp
call fcn.00672c80
add esp, 0x24
mov esi, dword [esp + 0x14]
or edi, 0xffffffff
mov ebp, dword [esi + 0x730]
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x6d92e5
mov eax, dword [0x81c700]
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6d9265
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
xor edi, edi
sub edx, ecx
mov dword [0x81c700], edi
cmp edx, eax
jne 0x6d90eb
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d90f8
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d9122
mov edx, eax
or edx, ecx
je 0x6d9122
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d9265
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d9265
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, edi
mov dword [esp + 0x18], edi
not esi
jle 0x6d91c9
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6d91a7
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x6d91a7
mov edi, dword [eax]
mov ebx, dword [edi + 0xc]
sar ebx, 2
test edi, edi
je 0x6d91a7
xor ebp, ebp
test ecx, ecx
jle 0x6d91a7
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebx, ebx
jle 0x6d9198
mov ecx, ebx
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x6d918e
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebp
mov edx, dword [ecx]
cmp ebp, dword [edx + 4]
jl 0x6d917c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x6d9159
mov ebp, dword [esp + 0x1c]
cmp esi, dword [0x8294d8]
je 0x6d91d6
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x6d925e
mov ecx, 0x829464
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x6d9220
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x6d921b
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d921b
cmp dword [eax], 0x29874362
je 0x6d9220
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x6d925e
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6d9259
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d9259
cmp dword [eax], 0xbad0bad
je 0x6d925e
call fcn.00406630
mov byte [0x81c6fc], 0
mov edx, dword [0x820dd0]
mov esi, ebp
xor esi, edx
push ebp
mov dword [esp + 0x20], esi
mov ebx, esi
mov edi, dword [esp + 0x22]
and ebx, 0xff
and edi, 0xffff
call fcn.0045c0b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x6d92e1
mov edx, dword [0x8294d8]
mov eax, dword [0x829478]
mov ecx, dword [edi*4 + 0x820e44]
xor esi, edx
xor esi, eax
push 1
mov dword [0x8294d8], esi
push eax
mov eax, dword [ecx + 8]
lea ecx, [ebp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [edx*4 + 0x828e68]
push eax
push ecx
call fcn.0045cc80
push ebp
push edi
call fcn.0045d050
push ebx
push edi
call fcn.0045dc80
push ebp
call fcn.00672c80
add esp, 0x24
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.006b6040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret