Function at 0x690ec0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
or ebx, 0xffffffff
xor ebp, ebp
mov dword [esp + 0x1c], edi
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x69115b
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x69115b
push ebp
add eax, 0x14
push 4
push eax
mov eax, dword [0x8294dc]
lea ecx, [eax*4 + 0x8294b4]
push ecx
call fcn.0045cba0
mov eax, dword [0x8294dc]
add esp, 0x10
lea esi, [eax*4 + 0x8294b4]
inc eax
cmp eax, 8
mov dword [esp + 0x20], esi
mov dword [0x8294dc], eax
jl 0x690f2b
mov dword [0x8294dc], ebp
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x69114f
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x690f79
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x690f8c
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x690fa6
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x690fba
sub eax, ecx
jmp 0x690fc2
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x690fe2
mov edx, ecx
or edx, eax
je 0x690fe2
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x69114f
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x69114f
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x69106f
mov ebx, 0x820e44
mov dword [esp + 0x18], ecx
jmp 0x69101a
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x691054
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x691054
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x691054
cmp esi, ebp
jle 0x691054
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x69104e
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x691046
mov edx, dword [edx + 4]
dec ebp
jne 0x691039
mov ecx, dword [esp + 0x18]
add ebx, 4
dec ecx
mov dword [esp + 0x18], ecx
jne 0x691018
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
or ebx, 0xffffffff
xor ebp, ebp
cmp eax, dword [0x8294d8]
je 0x691082
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x691148
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x69110e
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x691103
push ebp
add eax, 0x14
push 4
push eax
mov eax, dword [0x829488]
lea ecx, [eax*4 + 0x82948c]
push ecx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea edx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x10], edx
mov dword [0x829488], eax
jl 0x6910e5
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x691103
cmp dword [eax], 0x29874362
je 0x69110e
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x691148
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x69113d
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x69113d
cmp dword [eax], 0xbad0bad
je 0x691148
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp esi, ebp
je 0x69115b
mov edx, dword [esi]
mov dword [esp + 0x18], edx
jmp 0x691164
mov eax, dword [0x89fe2c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x6913ea
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6913ea
mov ecx, dword [0x8294dc]
push ebp
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x8294b4]
push eax
push edx
call fcn.0045cba0
mov eax, dword [0x8294dc]
add esp, 0x10
lea esi, [eax*4 + 0x8294b4]
inc eax
cmp eax, 8
mov dword [esp + 0x20], esi
mov dword [0x8294dc], eax
jl 0x6911be
mov dword [0x8294dc], ebp
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6913e2
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x69120c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x69121f
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x691239
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x69124d
sub eax, ecx
jmp 0x691255
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x691275
mov edx, ecx
or edx, eax
je 0x691275
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6913e2
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6913e2
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6912f1
mov ebx, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x6912e3
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6912e3
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6912e3
test esi, esi
jle 0x6912e3
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6912dd
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6912d5
mov edx, dword [edx + 4]
dec ebp
jne 0x6912c8
mov ecx, dword [esp + 0x14]
add ebx, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x6912a9
cmp eax, dword [0x8294d8]
je 0x691304
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x6913ce
mov eax, dword [0x829464]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x691394
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, esi
je 0x691389
mov edx, dword [0x829488]
push esi
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea ecx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], ecx
mov dword [0x829488], eax
jl 0x69136b
mov dword [0x829488], esi
push esi
call fcn.0045d120
add esp, 4
call fcn.004059e0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x691389
cmp dword [eax], 0x29874362
je 0x691394
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x6913ce
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6913c3
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x6913c3
cmp dword [eax], 0xbad0bad
je 0x6913ce
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
or ebx, 0xffffffff
mov byte [0x81c6fc], 0
xor ebp, ebp
cmp esi, ebp
je 0x6913ea
fld dword [esi]
jmp 0x6913f0
fld dword [0x89fe2c]
fadd dword [esp + 0x28]
fcom dword [0x7cd7b4]
fnstsw ax
test ah, 1
je 0x69140d
fstp st(0)
mov dword [esp + 0x28], 0
jmp 0x691428
fcom dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x691424
mov eax, dword [esp + 0x18]
fstp st(0)
mov dword [esp + 0x28], eax
jmp 0x691428
fstp dword [esp + 0x28]
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], ebp
cmp eax, ebx
je 0x691453
lea ecx, [esp + 0x1c]
mov edx, eax
push ecx
push edx
call fcn.00428f80
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, ebp
je 0x691453
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x69145d
mov ecx, dword [0x89fe2c]
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], ebp
cmp eax, ebx
je 0x691482
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00428f80
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, ebp
je 0x691482
fld dword [eax]
jmp 0x691488
fld dword [0x89fe2c]
fld dword [esp + 0x28]
fcomp dword [0x7cd7b4]
fnstsw ax
test ah, 1
je 0x6914a5
fstp st(0)
mov dword [esp + 0x18], 0
jmp 0x6914c2
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x6914b8
fstp dword [esp + 0x18]
jmp 0x6914c2
mov ecx, dword [esp + 0x28]
fstp st(0)
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x6914d7
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00694f90
add esp, 8
mov eax, dword [edi + 4]
mov dword [esp + 0x28], ebp
cmp eax, ebx
je 0x6914fe
lea ecx, [esp + 0x28]
mov edx, eax
push ecx
push edx
call fcn.00428f80
mov eax, dword [esp + 0x30]
add esp, 8
cmp eax, ebp
je 0x6914fe
fld dword [eax]
jmp 0x691504
fld dword [0x89fe2c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x40
fstp st(0)
jne 0x691536
mov eax, dword [edi + 0x30]
cmp eax, ebp
je 0x691536
cmp dword [eax + 4], ebp
je 0x691536
cmp eax, ebp
je 0x691528
mov eax, dword [eax + 4]
jmp 0x69152a
xor eax, eax
lea ecx, [eax + 8]
push 1
push 3
mov eax, dword [ecx]
call dword [eax + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4