Function at 0x690560
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x14], edi
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x6907ac
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6907ac
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 + 0x1c], esi
mov dword [0x8294dc], eax
jl 0x6905c9
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 0x6907a0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x690617
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x69062a
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x690644
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 0x690658
sub eax, ecx
jmp 0x690660
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x690680
mov edx, ecx
or edx, eax
je 0x690680
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6907a0
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6907a0
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x69070a
mov ebx, 0x820e44
mov dword [esp + 0x18], ecx
jmp 0x6906b8
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x6906f2
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x6906f2
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x6906f2
cmp esi, ebp
jle 0x6906f2
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6906ec
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6906e4
mov edx, dword [edx + 4]
dec ebp
jne 0x6906d7
mov ecx, dword [esp + 0x18]
add ebx, 4
dec ecx
mov dword [esp + 0x18], ecx
jne 0x6906b6
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, dword [0x8294d8]
je 0x69071d
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x690799
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x69075f
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x690754
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x690754
cmp dword [eax], 0x29874362
je 0x69075f
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x690799
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x69078e
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x69078e
cmp dword [eax], 0xbad0bad
je 0x690799
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp esi, ebp
je 0x6907ac
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
jmp 0x6907b6
mov ecx, dword [0x89fe2c]
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x6909ef
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6909ef
mov edx, dword [0x8294dc]
push ebp
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x8294b4]
push eax
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 0x690811
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 0x6909e7
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x69085f
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x690872
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x69088c
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 0x6908a0
sub eax, ecx
jmp 0x6908a8
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6908c8
mov edx, ecx
or edx, eax
je 0x6908c8
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6909e7
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6909e7
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x690944
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x690936
mov esi, dword [ecx + 4]
test esi, esi
jle 0x690936
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x690936
test esi, esi
jle 0x690936
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x690930
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x690928
mov edx, dword [edx + 4]
dec ebp
jne 0x69091b
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6908fc
cmp eax, dword [0x8294d8]
je 0x690957
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x6909d6
mov eax, dword [0x829464]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x69099c
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x690991
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x690991
cmp dword [eax], 0x29874362
je 0x69099c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x6909d6
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6909cb
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6909cb
cmp dword [eax], 0xbad0bad
je 0x6909d6
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov byte [0x81c6fc], 0
xor ebp, ebp
cmp esi, ebp
je 0x6909ef
fld dword [esi]
jmp 0x6909f5
fld dword [0x89fe2c]
fld dword [esp + 0x28]
fcomp dword [0x7cd7b4]
fnstsw ax
test ah, 1
je 0x690a12
fstp st(0)
mov dword [esp + 0x18], 0
jmp 0x690a2f
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x690a25
fstp dword [esp + 0x18]
jmp 0x690a2f
mov edx, dword [esp + 0x28]
fstp st(0)
mov dword [esp + 0x18], edx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x690c40
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x690c40
lea esi, [eax + 0x14]
mov eax, dword [0x829478]
push 1
push eax
push 4
push esi
call fcn.0045cc80
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call fcn.0045cb20
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x690c40
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x690abc
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x690acf
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x690ae9
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 0x690afd
sub eax, ecx
jmp 0x690b05
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x690b25
mov edx, eax
or edx, ecx
je 0x690b25
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x690c40
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x690c40
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x690ba1
mov ebx, 0x820e44
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x690b93
mov esi, dword [ecx + 4]
test esi, esi
jle 0x690b93
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x690b93
test esi, esi
jle 0x690b93
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x690b8d
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x690b85
mov edx, dword [edx + 4]
dec ebp
jne 0x690b78
mov ecx, dword [esp + 0x28]
add ebx, 4
dec ecx
mov dword [esp + 0x28], ecx
jne 0x690b59
cmp eax, dword [0x8294d8]
je 0x690bb4
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x690c33
mov eax, dword [0x829464]
mov dword [esp + 0x28], esi
cmp eax, esi
je 0x690bf9
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x690bee
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x690bee
cmp dword [eax], 0x29874362
je 0x690bf9
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x28], esi
cmp eax, esi
je 0x690c33
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x690c28
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x690c28
cmp dword [eax], 0xbad0bad
je 0x690c33
inc dword [0x8294f0]
call fcn.0045dca0
mov edi, dword [esp + 0x14]
mov byte [0x81c6fc], 0
xor ebp, ebp
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x690e79
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x690e79
mov edx, dword [0x8294dc]
push ebp
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x8294b4]
push eax
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 0x690c9b
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 0x690e71
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x690ce9
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x690cfc
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x690d16
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 0x690d2a
sub eax, ecx
jmp 0x690d32
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x690d52
mov edx, eax
or edx, ecx
je 0x690d52
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x690e71
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x690e71
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x690dce
mov ebx, 0x820e44
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x690dc0
mov esi, dword [ecx + 4]
test esi, esi
jle 0x690dc0
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x690dc0
test esi, esi
jle 0x690dc0
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x690dba
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x690db2
mov edx, dword [edx + 4]
dec ebp
jne 0x690da5
mov ecx, dword [esp + 0x28]
add ebx, 4
dec ecx
mov dword [esp + 0x28], ecx
jne 0x690d86
cmp eax, dword [0x8294d8]
je 0x690de1
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x690e60
mov eax, dword [0x829464]
mov dword [esp + 0x28], esi
cmp eax, esi
je 0x690e26
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x690e1b
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x690e1b
cmp dword [eax], 0x29874362
je 0x690e26
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x28], esi
cmp eax, esi
je 0x690e60
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x690e55
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x690e55
cmp dword [eax], 0xbad0bad
je 0x690e60
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov byte [0x81c6fc], 0
xor ebp, ebp
cmp esi, ebp
je 0x690e79
fld dword [esi]
jmp 0x690e7f
fld dword [0x89fe2c]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x40
fstp st(0)
jne 0x690eb2
mov eax, dword [edi + 0x30]
cmp eax, ebp
je 0x690eb2
cmp dword [eax + 4], ebp
je 0x690eb2
cmp eax, ebp
je 0x690ea3
mov eax, dword [eax + 4]
jmp 0x690ea5
xor eax, eax
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
push 1
push 3
call dword [edx + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4